summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2006-11-10 23:46:05 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2006-11-10 23:46:05 +0000
commit6679b0968981f8be7c33a7df2c30bb5146f3a6d3 (patch)
tree0cc86c8a1be101bb2af749547ef5fec578013bc2
parenta765a367145893e3e28dc518f5d08dd9bdfa1358 (diff)
downloadds-6679b0968981f8be7c33a7df2c30bb5146f3a6d3.tar.gz
ds-6679b0968981f8be7c33a7df2c30bb5146f3a6d3.tar.xz
ds-6679b0968981f8be7c33a7df2c30bb5146f3a6d3.zip
Resolves: #214533
Summary: configure needs to support --with-fhs (Comment #6) Changes: Added the following include next to the end of the copyright block. + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif +
-rw-r--r--config/nsinstall.c5
-rw-r--r--config/pathsub.c5
-rw-r--r--config/pathsub.h5
-rw-r--r--httpd/src/ntnsapi.c5
-rw-r--r--include/base/crit.h5
-rw-r--r--include/base/dbtbase.h5
-rw-r--r--include/base/ereport.h5
-rw-r--r--include/base/eventhandler.h5
-rw-r--r--include/base/eventlog.h5
-rw-r--r--include/base/file.h5
-rw-r--r--include/base/fsmutex.h5
-rw-r--r--include/base/lexer.h5
-rw-r--r--include/base/nterr.h5
-rw-r--r--include/base/nterrors.h5
-rw-r--r--include/base/plist.h5
-rw-r--r--include/base/pool.h5
-rw-r--r--include/base/rwlock.h5
-rw-r--r--include/base/shexp.h5
-rw-r--r--include/base/systems.h5
-rw-r--r--include/base/systhr.h5
-rw-r--r--include/base/util.h5
-rw-r--r--include/i18n.h5
-rw-r--r--include/ldaputil/cert.h5
-rw-r--r--include/ldaputil/certmap.h5
-rw-r--r--include/ldaputil/dbconf.h5
-rw-r--r--include/ldaputil/encode.h5
-rw-r--r--include/ldaputil/errors.h5
-rw-r--r--include/ldaputil/extcmap.h5
-rw-r--r--include/ldaputil/init.h5
-rw-r--r--include/ldaputil/ldapauth.h5
-rw-r--r--include/ldaputil/ldapdb.h5
-rw-r--r--include/ldaputil/ldaputil.h5
-rw-r--r--include/libaccess/acl.h5
-rw-r--r--include/libaccess/aclerror.h5
-rw-r--r--include/libaccess/acleval.h5
-rw-r--r--include/libaccess/aclglobal.h5
-rw-r--r--include/libaccess/aclproto.h5
-rw-r--r--include/libaccess/aclstruct.h5
-rw-r--r--include/libaccess/attrec.h5
-rw-r--r--include/libaccess/authdb.h5
-rw-r--r--include/libaccess/dbtlibaccess.h5
-rw-r--r--include/libaccess/dnfstruct.h5
-rw-r--r--include/libaccess/ipfstruct.h5
-rw-r--r--include/libaccess/las.h5
-rw-r--r--include/libaccess/ldapacl.h5
-rw-r--r--include/libaccess/nsauth.h5
-rw-r--r--include/libaccess/nsautherr.h5
-rw-r--r--include/libaccess/nserror.h5
-rw-r--r--include/libaccess/symbols.h5
-rw-r--r--include/libaccess/userauth.h5
-rw-r--r--include/libaccess/usi.h5
-rw-r--r--include/libaccess/usrcache.h5
-rw-r--r--include/libadmin/dbtlibadmin.h5
-rw-r--r--include/libadmin/libadmin.h5
-rw-r--r--include/netsite.h5
-rw-r--r--include/nt/messages.h5
-rw-r--r--include/nt/nsapi.h5
-rw-r--r--include/nt/ntos.h5
-rw-r--r--include/nt/regparms.h5
-rw-r--r--include/nt/resource.h5
-rw-r--r--include/public/base/systems.h5
-rw-r--r--include/public/netsite.h5
-rw-r--r--include/public/nsacl/aclapi.h5
-rw-r--r--include/public/nsacl/acldef.h5
-rw-r--r--include/public/nsacl/nserrdef.h5
-rw-r--r--include/public/nsacl/plistdef.h5
-rw-r--r--include/public/nsapi.h5
-rw-r--r--include/version.h5
-rw-r--r--ldap/admin/include/dsalib.h5
-rw-r--r--ldap/admin/include/dsalib_pw.h5
-rw-r--r--ldap/admin/include/dsalib_schema.h5
-rw-r--r--ldap/admin/include/nterrors.h5
-rw-r--r--ldap/admin/lib/dsalib_conf.c5
-rw-r--r--ldap/admin/lib/dsalib_confs.c5
-rw-r--r--ldap/admin/lib/dsalib_db.c5
-rw-r--r--ldap/admin/lib/dsalib_debug.c5
-rw-r--r--ldap/admin/lib/dsalib_dn.c5
-rw-r--r--ldap/admin/lib/dsalib_filename.c5
-rw-r--r--ldap/admin/lib/dsalib_html.c5
-rw-r--r--ldap/admin/lib/dsalib_ldif.c5
-rw-r--r--ldap/admin/lib/dsalib_location.c5
-rw-r--r--ldap/admin/lib/dsalib_pw.c5
-rw-r--r--ldap/admin/lib/dsalib_tailf.c5
-rw-r--r--ldap/admin/lib/dsalib_updown.c5
-rw-r--r--ldap/admin/lib/dsalib_util.c5
-rw-r--r--ldap/admin/src/addindex.c5
-rw-r--r--ldap/admin/src/cfg_sspt.c5
-rw-r--r--ldap/admin/src/cfg_sspt.h5
-rw-r--r--ldap/admin/src/configure_instance.cpp5
-rw-r--r--ldap/admin/src/configure_instance.h5
-rw-r--r--ldap/admin/src/create_instance.c5
-rw-r--r--ldap/admin/src/create_instance.h5
-rw-r--r--ldap/admin/src/ds_bak2db.c5
-rw-r--r--ldap/admin/src/ds_db2bak.c5
-rw-r--r--ldap/admin/src/ds_db2ldif.c5
-rw-r--r--ldap/admin/src/ds_ldif2db.c5
-rw-r--r--ldap/admin/src/ds_listdb.c5
-rw-r--r--ldap/admin/src/ds_newinst.c5
-rw-r--r--ldap/admin/src/ds_remove.c5
-rw-r--r--ldap/admin/src/ds_remove_uninst.cpp5
-rw-r--r--ldap/admin/src/ds_remove_uninst.h5
-rw-r--r--ldap/admin/src/ds_rmdb.c5
-rw-r--r--ldap/admin/src/ds_snmpctrl.c5
-rw-r--r--ldap/admin/src/init_ds_env.c5
-rw-r--r--ldap/admin/src/init_ds_env.h5
-rw-r--r--ldap/admin/src/install_keywords.h5
-rw-r--r--ldap/admin/src/instindex.cpp5
-rw-r--r--ldap/admin/src/latest_file.c5
-rw-r--r--ldap/admin/src/namegen.c5
-rw-r--r--ldap/admin/src/restart.c5
-rw-r--r--ldap/admin/src/script-gen.c5
-rw-r--r--ldap/admin/src/shutdown.c5
-rw-r--r--ldap/admin/src/start.c5
-rw-r--r--ldap/admin/src/vlvindex.c5
-rw-r--r--ldap/clients/dsgw/Versiongw.c5
-rw-r--r--ldap/clients/dsgw/auth.c5
-rw-r--r--ldap/clients/dsgw/cgiutil.c5
-rw-r--r--ldap/clients/dsgw/ckdel.c5
-rw-r--r--ldap/clients/dsgw/ckdump.c5
-rw-r--r--ldap/clients/dsgw/ckget.c5
-rw-r--r--ldap/clients/dsgw/ckpurge.c5
-rw-r--r--ldap/clients/dsgw/ckput.c5
-rw-r--r--ldap/clients/dsgw/collate.c5
-rw-r--r--ldap/clients/dsgw/config.c5
-rw-r--r--ldap/clients/dsgw/cookie.c5
-rw-r--r--ldap/clients/dsgw/csearch.c5
-rw-r--r--ldap/clients/dsgw/dbtdsgw.h5
-rw-r--r--ldap/clients/dsgw/dnedit.c5
-rw-r--r--ldap/clients/dsgw/doauth.c5
-rw-r--r--ldap/clients/dsgw/domodify.c5
-rw-r--r--ldap/clients/dsgw/dosearch.c5
-rw-r--r--ldap/clients/dsgw/dsgw.h5
-rw-r--r--ldap/clients/dsgw/dsgwutil.c5
-rw-r--r--ldap/clients/dsgw/edit.c5
-rw-r--r--ldap/clients/dsgw/emitauth.c5
-rw-r--r--ldap/clients/dsgw/emitf.c5
-rw-r--r--ldap/clients/dsgw/entrydisplay.c5
-rw-r--r--ldap/clients/dsgw/error.c5
-rw-r--r--ldap/clients/dsgw/getopt.c5
-rw-r--r--ldap/clients/dsgw/htmlout.c5
-rw-r--r--ldap/clients/dsgw/htmlparse.c5
-rw-r--r--ldap/clients/dsgw/lang.c5
-rw-r--r--ldap/clients/dsgw/ldaputil.c5
-rw-r--r--ldap/clients/dsgw/newentry.c5
-rw-r--r--ldap/clients/dsgw/search.c5
-rw-r--r--ldap/clients/dsgw/secglue.c5
-rw-r--r--ldap/clients/dsgw/sort.c5
-rw-r--r--ldap/clients/dsgw/tutor.c5
-rw-r--r--ldap/clients/dsgw/unauth.c5
-rw-r--r--ldap/clients/dsgw/utf8compare.c5
-rw-r--r--ldap/clients/dsgw/vcard.c5
-rw-r--r--ldap/clients/orgchart/wrapper.c5
-rw-r--r--ldap/cm/newinst/ux-config.cc5
-rw-r--r--ldap/cm/newinst/ux-config.h15
-rw-r--r--ldap/cm/newinst/ux-dialog.cc5
-rw-r--r--ldap/cm/newinst/ux-dialog.h5
-rw-r--r--ldap/cm/newinst/ux-dsalib_dn.c5
-rw-r--r--ldap/cm/newinst/ux-guesses.cc17
-rw-r--r--ldap/cm/newinstnt/consolinst.c5
-rw-r--r--ldap/cm/newinstnt/consolinst.h5
-rw-r--r--ldap/cm/newinstnt/dsinst.c5
-rw-r--r--ldap/cm/newinstnt/dsinst.h5
-rw-r--r--ldap/cm/newinstnt/dsinst_dsalib_dn.c5
-rw-r--r--ldap/cm/newinstnt/libinst.c5
-rw-r--r--ldap/cm/newinstnt/libinst.h5
-rw-r--r--ldap/cm/newinstnt/resource.h5
-rw-r--r--ldap/include/avl.h5
-rw-r--r--ldap/include/dblayer.h5
-rw-r--r--ldap/include/dirlite_strings.h5
-rw-r--r--ldap/include/disptmpl.h5
-rw-r--r--ldap/include/ldaplog.h5
-rw-r--r--ldap/include/ldaprot.h5
-rw-r--r--ldap/include/ldbm.h5
-rw-r--r--ldap/include/ldif.h5
-rw-r--r--ldap/include/litekey.h5
-rw-r--r--ldap/include/lthread.h5
-rw-r--r--ldap/include/ntslapdregparms.h5
-rw-r--r--ldap/include/ntwatchdog.h5
-rw-r--r--ldap/include/portable.h5
-rw-r--r--ldap/include/proto-ntutil.h5
-rw-r--r--ldap/include/regex.h5
-rw-r--r--ldap/include/srchpref.h5
-rw-r--r--ldap/include/sysexits-compat.h5
-rw-r--r--ldap/libraries/libavl/avl.c5
-rw-r--r--ldap/libraries/libavl/testavl.c5
-rw-r--r--ldap/libraries/libldif/fileurl.c5
-rw-r--r--ldap/libraries/libldif/fileurl.h5
-rw-r--r--ldap/libraries/libldif/line64.c5
-rw-r--r--ldap/libraries/liblitekey/keycheck.c5
-rw-r--r--ldap/libraries/libutil/getopt.c5
-rw-r--r--ldap/libraries/libutil/ntdebug.c5
-rw-r--r--ldap/libraries/libutil/ntevent.c5
-rw-r--r--ldap/libraries/libutil/ntreg.c5
-rw-r--r--ldap/libraries/libutil/ntresource.h5
-rw-r--r--ldap/libraries/libutil/ntstubs.c5
-rw-r--r--ldap/servers/plugins/acl/acl.c5
-rw-r--r--ldap/servers/plugins/acl/acl.h5
-rw-r--r--ldap/servers/plugins/acl/acl_ext.c5
-rw-r--r--ldap/servers/plugins/acl/aclanom.c5
-rw-r--r--ldap/servers/plugins/acl/acldllmain.c5
-rw-r--r--ldap/servers/plugins/acl/acleffectiverights.c5
-rw-r--r--ldap/servers/plugins/acl/aclgroup.c5
-rw-r--r--ldap/servers/plugins/acl/aclinit.c5
-rw-r--r--ldap/servers/plugins/acl/acllas.c5
-rw-r--r--ldap/servers/plugins/acl/acllist.c5
-rw-r--r--ldap/servers/plugins/acl/aclparse.c5
-rw-r--r--ldap/servers/plugins/acl/aclplugin.c5
-rw-r--r--ldap/servers/plugins/acl/aclproxy.c5
-rw-r--r--ldap/servers/plugins/acl/aclutil.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb.h5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_abandon.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_acl.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_add.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_bind.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_cleanup.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_close.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_compare.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_config.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_conn_stateless.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_controls.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_debug.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_delete.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_init.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_instance.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_modify.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_modrdn.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_monitor.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_schema.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_search.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_size.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_start.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_temp.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_test.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_unbind.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cb_utils.c5
-rw-r--r--ldap/servers/plugins/chainingdb/cbdllmain.c5
-rw-r--r--ldap/servers/plugins/collation/collate.c5
-rw-r--r--ldap/servers/plugins/collation/collate.h5
-rw-r--r--ldap/servers/plugins/collation/config.c5
-rw-r--r--ldap/servers/plugins/collation/config.h5
-rw-r--r--ldap/servers/plugins/collation/debug.c5
-rw-r--r--ldap/servers/plugins/collation/dllmain.c5
-rw-r--r--ldap/servers/plugins/collation/orfilter.c5
-rw-r--r--ldap/servers/plugins/collation/orfilter.h5
-rw-r--r--ldap/servers/plugins/cos/cos.c5
-rw-r--r--ldap/servers/plugins/cos/cos_cache.c5
-rw-r--r--ldap/servers/plugins/cos/cos_cache.h5
-rw-r--r--ldap/servers/plugins/cos/dllmain.c5
-rw-r--r--ldap/servers/plugins/distrib/distrib.c5
-rw-r--r--ldap/servers/plugins/distrib/dllmain.c7
-rw-r--r--ldap/servers/plugins/http/dllmain.c5
-rw-r--r--ldap/servers/plugins/http/http_client.c5
-rw-r--r--ldap/servers/plugins/http/http_client.h5
-rw-r--r--ldap/servers/plugins/http/http_impl.c5
-rw-r--r--ldap/servers/plugins/http/http_impl.h5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_passthru.h5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_ptconfig.c5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_ptdebug.c5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_ptdllmain.c5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_ptimpl.c5
-rw-r--r--ldap/servers/plugins/pam_passthru/pam_ptpreop.c5
-rw-r--r--ldap/servers/plugins/passthru/passthru.h5
-rw-r--r--ldap/servers/plugins/passthru/ptbind.c5
-rw-r--r--ldap/servers/plugins/passthru/ptconfig.c5
-rw-r--r--ldap/servers/plugins/passthru/ptconn.c5
-rw-r--r--ldap/servers/plugins/passthru/ptdebug.c5
-rw-r--r--ldap/servers/plugins/passthru/ptdllmain.c5
-rw-r--r--ldap/servers/plugins/passthru/ptpreop.c5
-rw-r--r--ldap/servers/plugins/passthru/ptutil.c5
-rw-r--r--ldap/servers/plugins/presence/dllmain.c5
-rw-r--r--ldap/servers/plugins/presence/presence.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/clear_pwd.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/crypt_pwd.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/dllmain.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/md5.h5
-rw-r--r--ldap/servers/plugins/pwdstorage/md5_pwd.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/md5c.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/ns-mta-md5_pwd.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/pwd_init.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/pwdstorage.h5
-rw-r--r--ldap/servers/plugins/pwdstorage/sha_pwd.c5
-rw-r--r--ldap/servers/plugins/pwdstorage/ssha_pwd.c5
-rw-r--r--ldap/servers/plugins/referint/dllmain.c5
-rw-r--r--ldap/servers/plugins/referint/referint.c5
-rw-r--r--ldap/servers/plugins/replication/cl4.h5
-rw-r--r--ldap/servers/plugins/replication/cl4_api.c5
-rw-r--r--ldap/servers/plugins/replication/cl4_api.h5
-rw-r--r--ldap/servers/plugins/replication/cl4_init.c5
-rw-r--r--ldap/servers/plugins/replication/cl5.h5
-rw-r--r--ldap/servers/plugins/replication/cl5_api.c5
-rw-r--r--ldap/servers/plugins/replication/cl5_api.h5
-rw-r--r--ldap/servers/plugins/replication/cl5_clcache.c5
-rw-r--r--ldap/servers/plugins/replication/cl5_clcache.h5
-rw-r--r--ldap/servers/plugins/replication/cl5_config.c5
-rw-r--r--ldap/servers/plugins/replication/cl5_init.c5
-rw-r--r--ldap/servers/plugins/replication/cl5_test.c5
-rw-r--r--ldap/servers/plugins/replication/cl5_test.h5
-rw-r--r--ldap/servers/plugins/replication/csnpl.c5
-rw-r--r--ldap/servers/plugins/replication/csnpl.h5
-rw-r--r--ldap/servers/plugins/replication/dllmain.c5
-rw-r--r--ldap/servers/plugins/replication/legacy_consumer.c5
-rw-r--r--ldap/servers/plugins/replication/llist.c5
-rw-r--r--ldap/servers/plugins/replication/llist.h5
-rw-r--r--ldap/servers/plugins/replication/profile.c5
-rw-r--r--ldap/servers/plugins/replication/repl.h5
-rw-r--r--ldap/servers/plugins/replication/repl5.h5
-rw-r--r--ldap/servers/plugins/replication/repl5_agmt.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_agmtlist.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_backoff.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_connection.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_inc_protocol.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_init.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_mtnode_ext.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_plugins.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_prot_private.h5
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol_util.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_replica.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_replica_config.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_replica_dnhash.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_replica_hash.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_replsupplier.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_ruv.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_ruv.h5
-rw-r--r--ldap/servers/plugins/replication/repl5_schedule.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_tot_protocol.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_total.c5
-rw-r--r--ldap/servers/plugins/replication/repl5_updatedn_list.c5
-rw-r--r--ldap/servers/plugins/replication/repl_add.c5
-rw-r--r--ldap/servers/plugins/replication/repl_bind.c5
-rw-r--r--ldap/servers/plugins/replication/repl_compare.c5
-rw-r--r--ldap/servers/plugins/replication/repl_connext.c5
-rw-r--r--ldap/servers/plugins/replication/repl_controls.c5
-rw-r--r--ldap/servers/plugins/replication/repl_delete.c5
-rw-r--r--ldap/servers/plugins/replication/repl_entry.c5
-rw-r--r--ldap/servers/plugins/replication/repl_ext.c5
-rw-r--r--ldap/servers/plugins/replication/repl_extop.c5
-rw-r--r--ldap/servers/plugins/replication/repl_globals.c5
-rw-r--r--ldap/servers/plugins/replication/repl_helper.c5
-rw-r--r--ldap/servers/plugins/replication/repl_helper.h5
-rw-r--r--ldap/servers/plugins/replication/repl_init.c5
-rw-r--r--ldap/servers/plugins/replication/repl_modify.c5
-rw-r--r--ldap/servers/plugins/replication/repl_modrdn.c5
-rw-r--r--ldap/servers/plugins/replication/repl_monitor.c5
-rw-r--r--ldap/servers/plugins/replication/repl_objset.c5
-rw-r--r--ldap/servers/plugins/replication/repl_objset.h5
-rw-r--r--ldap/servers/plugins/replication/repl_opext.c5
-rw-r--r--ldap/servers/plugins/replication/repl_ops.c5
-rw-r--r--ldap/servers/plugins/replication/repl_rootdse.c5
-rw-r--r--ldap/servers/plugins/replication/repl_search.c5
-rw-r--r--ldap/servers/plugins/replication/repl_shared.h5
-rw-r--r--ldap/servers/plugins/replication/replutil.c5
-rw-r--r--ldap/servers/plugins/replication/tests/dnp_sim.c5
-rw-r--r--ldap/servers/plugins/replication/tests/dnp_sim2.c5
-rw-r--r--ldap/servers/plugins/replication/tests/dnp_sim3.c5
-rw-r--r--ldap/servers/plugins/replication/urp.c5
-rw-r--r--ldap/servers/plugins/replication/urp.h5
-rw-r--r--ldap/servers/plugins/replication/urp_glue.c5
-rw-r--r--ldap/servers/plugins/replication/urp_tombstone.c5
-rw-r--r--ldap/servers/plugins/replication/windows_connection.c5
-rw-r--r--ldap/servers/plugins/replication/windows_inc_protocol.c5
-rw-r--r--ldap/servers/plugins/replication/windows_private.c5
-rw-r--r--ldap/servers/plugins/replication/windows_prot_private.h5
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c5
-rw-r--r--ldap/servers/plugins/replication/windows_tot_protocol.c5
-rw-r--r--ldap/servers/plugins/replication/windowsrepl.h5
-rw-r--r--ldap/servers/plugins/retrocl/dllmain.c5
-rw-r--r--ldap/servers/plugins/retrocl/linktest.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl.h5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl_cn.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl_create.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl_po.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl_rootdse.c5
-rw-r--r--ldap/servers/plugins/retrocl/retrocl_trim.c5
-rw-r--r--ldap/servers/plugins/rever/des.c5
-rw-r--r--ldap/servers/plugins/rever/dllmain.c5
-rw-r--r--ldap/servers/plugins/rever/rever.c5
-rw-r--r--ldap/servers/plugins/rever/rever.h5
-rw-r--r--ldap/servers/plugins/roles/dllmain.c5
-rw-r--r--ldap/servers/plugins/roles/roles_cache.c5
-rw-r--r--ldap/servers/plugins/roles/roles_cache.h5
-rw-r--r--ldap/servers/plugins/roles/roles_plugin.c5
-rw-r--r--ldap/servers/plugins/shared/plugin-utils.h5
-rw-r--r--ldap/servers/plugins/shared/utils.c5
-rw-r--r--ldap/servers/plugins/statechange/dllmain.c5
-rw-r--r--ldap/servers/plugins/statechange/statechange.c5
-rw-r--r--ldap/servers/plugins/syntaxes/bin.c5
-rw-r--r--ldap/servers/plugins/syntaxes/ces.c5
-rw-r--r--ldap/servers/plugins/syntaxes/cis.c5
-rw-r--r--ldap/servers/plugins/syntaxes/debug.c5
-rw-r--r--ldap/servers/plugins/syntaxes/dllmain.c5
-rw-r--r--ldap/servers/plugins/syntaxes/dn.c5
-rw-r--r--ldap/servers/plugins/syntaxes/int.c5
-rw-r--r--ldap/servers/plugins/syntaxes/phonetic.c5
-rw-r--r--ldap/servers/plugins/syntaxes/sicis.c5
-rw-r--r--ldap/servers/plugins/syntaxes/string.c5
-rw-r--r--ldap/servers/plugins/syntaxes/syntax.h5
-rw-r--r--ldap/servers/plugins/syntaxes/tel.c5
-rw-r--r--ldap/servers/plugins/syntaxes/value.c5
-rw-r--r--ldap/servers/plugins/uiduniq/7bit.c5
-rw-r--r--ldap/servers/plugins/uiduniq/uid.c5
-rw-r--r--ldap/servers/plugins/vattrsp_template/dllmain.c5
-rw-r--r--ldap/servers/plugins/vattrsp_template/vattrsp.c5
-rw-r--r--ldap/servers/plugins/views/dllmain.c5
-rw-r--r--ldap/servers/plugins/views/views.c5
-rw-r--r--ldap/servers/slapd/abandon.c5
-rw-r--r--ldap/servers/slapd/add.c5
-rw-r--r--ldap/servers/slapd/agtmmap.c5
-rw-r--r--ldap/servers/slapd/agtmmap.h5
-rw-r--r--ldap/servers/slapd/apibroker.c5
-rw-r--r--ldap/servers/slapd/attr.c5
-rw-r--r--ldap/servers/slapd/attrlist.c5
-rw-r--r--ldap/servers/slapd/attrsyntax.c5
-rw-r--r--ldap/servers/slapd/auditlog.c5
-rw-r--r--ldap/servers/slapd/auth.c5
-rw-r--r--ldap/servers/slapd/auth.h5
-rw-r--r--ldap/servers/slapd/ava.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ancestorid.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/archive.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/attrcrypt.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/back-ldbm.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/backentry.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/cache.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/cleanup.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/close.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dbhelp.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dblayer.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dblayer.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/dbsize.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dbtest.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dbversion.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dllmain.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/dn2entry.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/entrystore.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/filterindex.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/findentry.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/haschildren.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/id2entry.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/idl.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/idl_common.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/idl_new.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/idl_shim.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/idlapi.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/import-merge.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/import-threads.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/import.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/import.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/index.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/init.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/instance.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_abandon.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_add.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_attr.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_bind.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_compare.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_config.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_config.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_delete.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_index_config.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_instance_config.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_modify.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_modrdn.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_search.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_unbind.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/ldif2ldbm.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/matchrule.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/misc.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/monitor.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/nextid.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/parents.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/perfctrs.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/perfctrs.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/proto-back-ldbm.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/rmdb.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/seq.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/sort.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/start.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/tools/index_dump/index_dump.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/uniqueid2entry.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/upgrade.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv_key.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv_key.h5
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv_srch.c5
-rw-r--r--ldap/servers/slapd/back-ldbm/vlv_srch.h5
-rw-r--r--ldap/servers/slapd/back-ldif/add.c5
-rw-r--r--ldap/servers/slapd/back-ldif/back-ldif.h5
-rw-r--r--ldap/servers/slapd/back-ldif/bind.c5
-rw-r--r--ldap/servers/slapd/back-ldif/close.c5
-rw-r--r--ldap/servers/slapd/back-ldif/compare.c5
-rw-r--r--ldap/servers/slapd/back-ldif/config.c5
-rw-r--r--ldap/servers/slapd/back-ldif/delete.c5
-rw-r--r--ldap/servers/slapd/back-ldif/dllmain.c5
-rw-r--r--ldap/servers/slapd/back-ldif/init.c5
-rw-r--r--ldap/servers/slapd/back-ldif/modify.c5
-rw-r--r--ldap/servers/slapd/back-ldif/modrdn.c5
-rw-r--r--ldap/servers/slapd/back-ldif/monitor.c5
-rw-r--r--ldap/servers/slapd/back-ldif/search.c5
-rw-r--r--ldap/servers/slapd/back-ldif/start.c5
-rw-r--r--ldap/servers/slapd/back-ldif/unbind.c5
-rw-r--r--ldap/servers/slapd/backend.c5
-rw-r--r--ldap/servers/slapd/backend_manager.c5
-rw-r--r--ldap/servers/slapd/bind.c5
-rw-r--r--ldap/servers/slapd/bitset.c5
-rw-r--r--ldap/servers/slapd/bulk_import.c5
-rw-r--r--ldap/servers/slapd/ch_malloc.c5
-rw-r--r--ldap/servers/slapd/charray.c5
-rw-r--r--ldap/servers/slapd/compare.c5
-rw-r--r--ldap/servers/slapd/computed.c5
-rw-r--r--ldap/servers/slapd/config.c5
-rw-r--r--ldap/servers/slapd/configdse.c5
-rw-r--r--ldap/servers/slapd/connection.c5
-rw-r--r--ldap/servers/slapd/conntable.c5
-rw-r--r--ldap/servers/slapd/control.c5
-rw-r--r--ldap/servers/slapd/counters.c5
-rw-r--r--ldap/servers/slapd/csn.c5
-rw-r--r--ldap/servers/slapd/csngen.c5
-rw-r--r--ldap/servers/slapd/csngen.h5
-rw-r--r--ldap/servers/slapd/csnset.c5
-rw-r--r--ldap/servers/slapd/daemon.c5
-rw-r--r--ldap/servers/slapd/defbackend.c5
-rw-r--r--ldap/servers/slapd/delete.c5
-rw-r--r--ldap/servers/slapd/detach.c5
-rw-r--r--ldap/servers/slapd/disconnect_error_strings.h5
-rw-r--r--ldap/servers/slapd/disconnect_errors.h5
-rw-r--r--ldap/servers/slapd/dl.c5
-rw-r--r--ldap/servers/slapd/dn.c5
-rw-r--r--ldap/servers/slapd/dse.c5
-rw-r--r--ldap/servers/slapd/dynalib.c5
-rw-r--r--ldap/servers/slapd/entry.c5
-rw-r--r--ldap/servers/slapd/entrywsi.c5
-rw-r--r--ldap/servers/slapd/errormap.c5
-rw-r--r--ldap/servers/slapd/eventq.c5
-rw-r--r--ldap/servers/slapd/extendop.c5
-rw-r--r--ldap/servers/slapd/factory.c5
-rw-r--r--ldap/servers/slapd/fe.h5
-rw-r--r--ldap/servers/slapd/fedse.c5
-rw-r--r--ldap/servers/slapd/fileio.c5
-rw-r--r--ldap/servers/slapd/filter.c5
-rw-r--r--ldap/servers/slapd/filter.h5
-rw-r--r--ldap/servers/slapd/filtercmp.c5
-rw-r--r--ldap/servers/slapd/filterentry.c5
-rw-r--r--ldap/servers/slapd/generation.c5
-rw-r--r--ldap/servers/slapd/getfilelist.c5
-rw-r--r--ldap/servers/slapd/getopt_ext.c5
-rw-r--r--ldap/servers/slapd/getopt_ext.h5
-rw-r--r--ldap/servers/slapd/globals.c5
-rw-r--r--ldap/servers/slapd/house.c5
-rw-r--r--ldap/servers/slapd/http.h5
-rw-r--r--ldap/servers/slapd/index_subsys.h5
-rw-r--r--ldap/servers/slapd/index_subsystem.c5
-rw-r--r--ldap/servers/slapd/init.c5
-rw-r--r--ldap/servers/slapd/intrinsics.h5
-rw-r--r--ldap/servers/slapd/ldbmlinktest.c5
-rw-r--r--ldap/servers/slapd/lenstr.c5
-rw-r--r--ldap/servers/slapd/libglobs.c5
-rw-r--r--ldap/servers/slapd/libsh_stub/libsh_stub.c5
-rw-r--r--ldap/servers/slapd/lite_entries.c5
-rw-r--r--ldap/servers/slapd/localhost.c5
-rw-r--r--ldap/servers/slapd/lock.c5
-rw-r--r--ldap/servers/slapd/log.c5
-rw-r--r--ldap/servers/slapd/log.h5
-rw-r--r--ldap/servers/slapd/main.c5
-rw-r--r--ldap/servers/slapd/mapping_tree.c5
-rw-r--r--ldap/servers/slapd/match.c5
-rw-r--r--ldap/servers/slapd/modify.c5
-rw-r--r--ldap/servers/slapd/modrdn.c5
-rw-r--r--ldap/servers/slapd/modutil.c5
-rw-r--r--ldap/servers/slapd/monitor.c5
-rw-r--r--ldap/servers/slapd/ntmsgdll/ntslapdmessages.c5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctr.cpp5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrdef.h5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrmc.h5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrmsg.h5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrs.h5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrutil.cpp5
-rw-r--r--ldap/servers/slapd/ntperfdll/nsldapctrutil.h5
-rw-r--r--ldap/servers/slapd/ntuserpin.c5
-rw-r--r--ldap/servers/slapd/ntwdog/cron_conf.c5
-rw-r--r--ldap/servers/slapd/ntwdog/cron_conf.h7
-rw-r--r--ldap/servers/slapd/ntwdog/ntcron.c5
-rw-r--r--ldap/servers/slapd/ntwdog/ntwatchdog.c5
-rw-r--r--ldap/servers/slapd/object.c5
-rw-r--r--ldap/servers/slapd/objset.c5
-rw-r--r--ldap/servers/slapd/operation.c5
-rw-r--r--ldap/servers/slapd/opshared.c5
-rw-r--r--ldap/servers/slapd/passwd_extop.c5
-rw-r--r--ldap/servers/slapd/pblock.c5
-rw-r--r--ldap/servers/slapd/plugin.c5
-rw-r--r--ldap/servers/slapd/plugin_acl.c5
-rw-r--r--ldap/servers/slapd/plugin_internal_op.c5
-rw-r--r--ldap/servers/slapd/plugin_mr.c5
-rw-r--r--ldap/servers/slapd/plugin_role.c5
-rw-r--r--ldap/servers/slapd/plugin_syntax.c5
-rw-r--r--ldap/servers/slapd/poll_using_select.c5
-rw-r--r--ldap/servers/slapd/poll_using_select.h5
-rw-r--r--ldap/servers/slapd/prerrstrs.h5
-rw-r--r--ldap/servers/slapd/protect_db.c5
-rw-r--r--ldap/servers/slapd/protect_db.h5
-rw-r--r--ldap/servers/slapd/proto-slap.h5
-rw-r--r--ldap/servers/slapd/psearch.c5
-rw-r--r--ldap/servers/slapd/pw.c5
-rw-r--r--ldap/servers/slapd/pw.h5
-rw-r--r--ldap/servers/slapd/pw_mgmt.c5
-rw-r--r--ldap/servers/slapd/pw_retry.c5
-rw-r--r--ldap/servers/slapd/rdn.c5
-rw-r--r--ldap/servers/slapd/referral.c5
-rw-r--r--ldap/servers/slapd/regex.c15
-rw-r--r--ldap/servers/slapd/resourcelimit.c5
-rw-r--r--ldap/servers/slapd/result.c5
-rw-r--r--ldap/servers/slapd/rootdse.c5
-rw-r--r--ldap/servers/slapd/rwlock.c5
-rw-r--r--ldap/servers/slapd/rwlock.h5
-rw-r--r--ldap/servers/slapd/sasl_io.c5
-rw-r--r--ldap/servers/slapd/sasl_map.c5
-rw-r--r--ldap/servers/slapd/saslbind.c5
-rw-r--r--ldap/servers/slapd/schema.c5
-rw-r--r--ldap/servers/slapd/schemaparse.c5
-rw-r--r--ldap/servers/slapd/search.c5
-rw-r--r--ldap/servers/slapd/secerrstrs.h5
-rw-r--r--ldap/servers/slapd/security_wrappers.c5
-rw-r--r--ldap/servers/slapd/slap.h5
-rw-r--r--ldap/servers/slapd/slapd_plhash.c5
-rw-r--r--ldap/servers/slapd/slapi-plugin-compat4.h5
-rw-r--r--ldap/servers/slapd/slapi-plugin.h5
-rw-r--r--ldap/servers/slapd/slapi-private.h5
-rw-r--r--ldap/servers/slapd/slapi2nspr.c5
-rw-r--r--ldap/servers/slapd/snmp_collator.c5
-rw-r--r--ldap/servers/slapd/snmp_collator.h5
-rw-r--r--ldap/servers/slapd/snoop.c5
-rw-r--r--ldap/servers/slapd/ssl.c5
-rw-r--r--ldap/servers/slapd/sslerrstrs.h5
-rw-r--r--ldap/servers/slapd/start_tls_extop.c5
-rw-r--r--ldap/servers/slapd/statechange.h5
-rw-r--r--ldap/servers/slapd/str2filter.c5
-rw-r--r--ldap/servers/slapd/strdup.c5
-rw-r--r--ldap/servers/slapd/stubrepl.c5
-rw-r--r--ldap/servers/slapd/stubs.c5
-rw-r--r--ldap/servers/slapd/subentry.c5
-rw-r--r--ldap/servers/slapd/task.c5
-rw-r--r--ldap/servers/slapd/tempnam.c5
-rw-r--r--ldap/servers/slapd/test-plugins/clients/reqextop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/dllmain.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testbind.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testdatainterop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testdbinterop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testdbinterop.h5
-rw-r--r--ldap/servers/slapd/test-plugins/testentry.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testextendedop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testgetip.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testpostop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testpreop.c5
-rw-r--r--ldap/servers/slapd/test-plugins/testsaslbind.c5
-rw-r--r--ldap/servers/slapd/time.c5
-rw-r--r--ldap/servers/slapd/tools/dbscan.c5
-rw-r--r--ldap/servers/slapd/tools/eggencode.c5
-rw-r--r--ldap/servers/slapd/tools/keyupg.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/data.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldap-private.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldapfct.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldclt.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldclt.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/ldcltU.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/opCheck.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/parser.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/port.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/port.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/remote.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/repcheck.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/repslave.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/scalab01.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/scalab01.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/srv.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/threadMain.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/utils.c5
-rw-r--r--ldap/servers/slapd/tools/ldclt/utils.h5
-rw-r--r--ldap/servers/slapd/tools/ldclt/workarounds.c5
-rw-r--r--ldap/servers/slapd/tools/ldif.c5
-rw-r--r--ldap/servers/slapd/tools/migratecred.c5
-rw-r--r--ldap/servers/slapd/tools/mkdep.c5
-rw-r--r--ldap/servers/slapd/tools/mmldif.c5
-rw-r--r--ldap/servers/slapd/tools/pwenc.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/addthread.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/addthread.h5
-rw-r--r--ldap/servers/slapd/tools/rsearch/infadd.c12
-rw-r--r--ldap/servers/slapd/tools/rsearch/infadd.h5
-rw-r--r--ldap/servers/slapd/tools/rsearch/main.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/nametable.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/nametable.h5
-rw-r--r--ldap/servers/slapd/tools/rsearch/rsearch.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/rsearch.h5
-rw-r--r--ldap/servers/slapd/tools/rsearch/sdattable.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/sdattable.h5
-rw-r--r--ldap/servers/slapd/tools/rsearch/searchthread.c5
-rw-r--r--ldap/servers/slapd/tools/rsearch/searchthread.h5
-rw-r--r--ldap/servers/slapd/unbind.c5
-rw-r--r--ldap/servers/slapd/uniqueid.c5
-rw-r--r--ldap/servers/slapd/uniqueidgen.c5
-rw-r--r--ldap/servers/slapd/utf8compare.c5
-rw-r--r--ldap/servers/slapd/util.c5
-rw-r--r--ldap/servers/slapd/uuid.c5
-rw-r--r--ldap/servers/slapd/uuid.h5
-rw-r--r--ldap/servers/slapd/value.c5
-rw-r--r--ldap/servers/slapd/valueset.c5
-rw-r--r--ldap/servers/slapd/vattr.c5
-rw-r--r--ldap/servers/slapd/vattr_spi.h5
-rw-r--r--ldap/servers/slapd/views.h5
-rw-r--r--ldap/servers/snmp/ldap-agent.c5
-rw-r--r--ldap/servers/snmp/ldap-agent.h5
-rw-r--r--ldap/servers/snmp/main.c5
-rw-r--r--ldap/servers/snmp/ntagt/nslagtcom_nt.h5
-rw-r--r--ldap/servers/snmp/ntagt/nsldapagt_nt.c5
-rw-r--r--ldap/servers/snmp/ntagt/nsldapagt_nt.h5
-rw-r--r--ldap/servers/snmp/ntagt/nsldapmib_nt.c5
-rw-r--r--ldap/servers/snmp/ntagt/nsldapmib_nt.h5
-rw-r--r--ldap/systools/hp_patches.c5
-rw-r--r--ldap/systools/idsktune.c5
-rw-r--r--ldap/systools/pio.c5
-rw-r--r--ldap/systools/pio.h5
-rw-r--r--ldap/systools/sol_patches.c5
-rw-r--r--ldap/systools/viewcore.c5
-rw-r--r--lib/base/crit.cpp5
-rw-r--r--lib/base/dns.cpp5
-rw-r--r--lib/base/dnsdmain.cpp5
-rw-r--r--lib/base/ereport.cpp5
-rw-r--r--lib/base/eventlog.cpp5
-rw-r--r--lib/base/file.cpp5
-rw-r--r--lib/base/fsmutex.cpp5
-rw-r--r--lib/base/lexer.cpp5
-rw-r--r--lib/base/lexer_pvt.h5
-rw-r--r--lib/base/net.cpp5
-rw-r--r--lib/base/nscperror.c5
-rw-r--r--lib/base/nterrors.cpp5
-rw-r--r--lib/base/plist.cpp5
-rw-r--r--lib/base/plist_pvt.h5
-rw-r--r--lib/base/pool.cpp5
-rw-r--r--lib/base/rwlock.cpp5
-rw-r--r--lib/base/shexp.cpp5
-rw-r--r--lib/base/system.cpp5
-rw-r--r--lib/base/systhr.cpp5
-rw-r--r--lib/base/util.cpp5
-rw-r--r--lib/ldaputil/cert.c5
-rw-r--r--lib/ldaputil/certmap.c5
-rw-r--r--lib/ldaputil/dbconf.c5
-rw-r--r--lib/ldaputil/encode.c5
-rw-r--r--lib/ldaputil/errors.c5
-rw-r--r--lib/ldaputil/examples/init.c5
-rw-r--r--lib/ldaputil/examples/plugin.c5
-rw-r--r--lib/ldaputil/examples/plugin.h5
-rw-r--r--lib/ldaputil/init.c5
-rw-r--r--lib/ldaputil/ldapauth.c5
-rw-r--r--lib/ldaputil/ldapdb.c5
-rw-r--r--lib/ldaputil/ldaputili.h5
-rw-r--r--lib/ldaputil/utest/auth.cpp5
-rw-r--r--lib/ldaputil/utest/example.c5
-rw-r--r--lib/ldaputil/utest/plugin.c5
-rw-r--r--lib/ldaputil/utest/plugin.h5
-rw-r--r--lib/ldaputil/utest/stubs.c5
-rw-r--r--lib/ldaputil/utest/stubs.cpp5
-rw-r--r--lib/ldaputil/vtable.c5
-rw-r--r--lib/libaccess/access_plhash.cpp5
-rw-r--r--lib/libaccess/access_plhash.h5
-rw-r--r--lib/libaccess/acl.tab.cpp5
-rw-r--r--lib/libaccess/acl.tab.h5
-rw-r--r--lib/libaccess/acl.yy.cpp5
-rw-r--r--lib/libaccess/aclcache.cpp5
-rw-r--r--lib/libaccess/aclcache.h5
-rw-r--r--lib/libaccess/aclerror.cpp5
-rw-r--r--lib/libaccess/acleval.cpp5
-rw-r--r--lib/libaccess/aclflush.cpp5
-rw-r--r--lib/libaccess/aclpriv.h5
-rw-r--r--lib/libaccess/aclscan.h5
-rw-r--r--lib/libaccess/aclspace.cpp5
-rw-r--r--lib/libaccess/acltools.cpp5
-rw-r--r--lib/libaccess/aclutil.cpp5
-rw-r--r--lib/libaccess/aclutil.h5
-rw-r--r--lib/libaccess/authdb.cpp5
-rw-r--r--lib/libaccess/las.h5
-rw-r--r--lib/libaccess/lasdns.cpp5
-rw-r--r--lib/libaccess/lasdns.h5
-rw-r--r--lib/libaccess/lasgroup.cpp5
-rw-r--r--lib/libaccess/lasip.cpp5
-rw-r--r--lib/libaccess/lasip.h5
-rw-r--r--lib/libaccess/lastod.cpp5
-rw-r--r--lib/libaccess/lasuser.cpp5
-rw-r--r--lib/libaccess/ldapacl.cpp5
-rw-r--r--lib/libaccess/ldapauth.h5
-rw-r--r--lib/libaccess/method.cpp5
-rw-r--r--lib/libaccess/nsautherr.cpp5
-rw-r--r--lib/libaccess/nseframe.cpp5
-rw-r--r--lib/libaccess/oneeval.cpp5
-rw-r--r--lib/libaccess/oneeval.h5
-rw-r--r--lib/libaccess/parse.h5
-rw-r--r--lib/libaccess/permhash.h5
-rw-r--r--lib/libaccess/register.cpp5
-rw-r--r--lib/libaccess/symbols.cpp5
-rw-r--r--lib/libaccess/usi.cpp5
-rw-r--r--lib/libaccess/usrcache.cpp5
-rw-r--r--lib/libaccess/utest/acltest.cpp5
-rw-r--r--lib/libaccess/utest/lasemail.cpp5
-rw-r--r--lib/libaccess/utest/onetest.cpp5
-rw-r--r--lib/libaccess/utest/shexp.cpp5
-rw-r--r--lib/libaccess/utest/shexp.h5
-rw-r--r--lib/libaccess/utest/testmain.cpp5
-rw-r--r--lib/libaccess/utest/twotest.cpp5
-rw-r--r--lib/libaccess/utest/ustubs.cpp5
-rw-r--r--lib/libadmin/authdb.c5
-rw-r--r--lib/libadmin/error.c5
-rw-r--r--lib/libadmin/template.c5
-rw-r--r--lib/libadmin/util.c5
-rw-r--r--lib/libnt/info.c5
-rw-r--r--lib/libnt/path.c5
-rw-r--r--lib/libnt/pmddeml.c5
-rw-r--r--lib/libnt/registry.c5
-rw-r--r--lib/libnt/service.c5
-rw-r--r--lib/libnt/tcpip.c5
-rw-r--r--lib/libsi18n/acclanglist.c5
-rw-r--r--lib/libsi18n/coreres.c5
-rw-r--r--lib/libsi18n/coreres.h5
-rw-r--r--lib/libsi18n/getlang.c5
-rw-r--r--lib/libsi18n/getstrmem.c5
-rw-r--r--lib/libsi18n/getstrmem.h5
-rw-r--r--lib/libsi18n/getstrprop.c5
-rw-r--r--lib/libsi18n/gsslapd.h5
-rw-r--r--lib/libsi18n/makstrdb.c5
-rw-r--r--lib/libsi18n/propset.c5
-rw-r--r--lib/libsi18n/propset.h5
-rw-r--r--lib/libsi18n/reshash.c5
-rw-r--r--lib/libsi18n/reshash.h5
-rw-r--r--lib/libsi18n/txtfile.c5
-rw-r--r--lib/libsi18n/txtfile.h5
834 files changed, 4208 insertions, 5 deletions
diff --git a/config/nsinstall.c b/config/nsinstall.c
index 90a7b2f1..12f43a99 100644
--- a/config/nsinstall.c
+++ b/config/nsinstall.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
** install command.
**
diff --git a/config/pathsub.c b/config/pathsub.c
index 2f243d0d..289fdf35 100644
--- a/config/pathsub.c
+++ b/config/pathsub.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
** Pathname subroutines.
**
diff --git a/config/pathsub.h b/config/pathsub.h
index 7f2da579..f1c1efbd 100644
--- a/config/pathsub.h
+++ b/config/pathsub.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef pathsub_h___
#define pathsub_h___
/*
diff --git a/httpd/src/ntnsapi.c b/httpd/src/ntnsapi.c
index b8b11ef2..9124955e 100644
--- a/httpd/src/ntnsapi.c
+++ b/httpd/src/ntnsapi.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Aruna Victor
* NT NSAPI works differently from UNIX. The DLL doesn't know the addresses
diff --git a/include/base/crit.h b/include/base/crit.h
index cb98d5d1..b4f51977 100644
--- a/include/base/crit.h
+++ b/include/base/crit.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_CRIT_H
#define BASE_CRIT_H
diff --git a/include/base/dbtbase.h b/include/base/dbtbase.h
index 460b5caf..380bfa06 100644
--- a/include/base/dbtbase.h
+++ b/include/base/dbtbase.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#define LIBRARY_NAME "base"
static char dbtbaseid[] = "$DBT: base referenced v1 $";
diff --git a/include/base/ereport.h b/include/base/ereport.h
index a097a939..e97be14e 100644
--- a/include/base/ereport.h
+++ b/include/base/ereport.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_EREPORT_H
#define BASE_EREPORT_H
diff --git a/include/base/eventhandler.h b/include/base/eventhandler.h
index ac8597dc..f4de0c29 100644
--- a/include/base/eventhandler.h
+++ b/include/base/eventhandler.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* eventhandler.h: Handle registration of event handlers
*
diff --git a/include/base/eventlog.h b/include/base/eventlog.h
index c1e748de..5e6c6ac4 100644
--- a/include/base/eventlog.h
+++ b/include/base/eventlog.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// EVENTLOG.H
//
// This file contains the defines that make NT an installable service.
diff --git a/include/base/file.h b/include/base/file.h
index 4ad5de2e..496c33e7 100644
--- a/include/base/file.h
+++ b/include/base/file.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_FILE_H
#define BASE_FILE_H
diff --git a/include/base/fsmutex.h b/include/base/fsmutex.h
index f5fe2422..5eca55c2 100644
--- a/include/base/fsmutex.h
+++ b/include/base/fsmutex.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* fsmutex: Mutexes that are filesystem-based so they're available from more
* than one process and address space
diff --git a/include/base/lexer.h b/include/base/lexer.h
index 30a29b5e..e8fd8bb9 100644
--- a/include/base/lexer.h
+++ b/include/base/lexer.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __lexer_h
#define __lexer_h
diff --git a/include/base/nterr.h b/include/base/nterr.h
index ead6eca7..90446e76 100644
--- a/include/base/nterr.h
+++ b/include/base/nterr.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Added function prototypes for nterror stuff.
*
diff --git a/include/base/nterrors.h b/include/base/nterrors.h
index c81f355c..895e26c5 100644
--- a/include/base/nterrors.h
+++ b/include/base/nterrors.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* DO NOT EDIT THIS FILE - it is automatically generated */
typedef struct _NtError {
diff --git a/include/base/plist.h b/include/base/plist.h
index aff540a0..06cffcbc 100644
--- a/include/base/plist.h
+++ b/include/base/plist.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PLIST_H
#define _PLIST_H
diff --git a/include/base/pool.h b/include/base/pool.h
index 767eb6eb..30990fce 100644
--- a/include/base/pool.h
+++ b/include/base/pool.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_POOL_H
#define BASE_POOL_H
diff --git a/include/base/rwlock.h b/include/base/rwlock.h
index 3ca1ffa0..5b5d67b6 100644
--- a/include/base/rwlock.h
+++ b/include/base/rwlock.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* rwlock.h: Shared/Exclusive lock abstraction.
*
diff --git a/include/base/shexp.h b/include/base/shexp.h
index 17856b5e..fb087955 100644
--- a/include/base/shexp.h
+++ b/include/base/shexp.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_SHEXP_H
#define BASE_SHEXP_H
diff --git a/include/base/systems.h b/include/base/systems.h
index d1403aa0..1b6d41d0 100644
--- a/include/base/systems.h
+++ b/include/base/systems.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_SYSTEMS_H
#define BASE_SYSTEMS_H
diff --git a/include/base/systhr.h b/include/base/systhr.h
index 098c13e9..20cc4ad5 100644
--- a/include/base/systhr.h
+++ b/include/base/systhr.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_SYSTHR_H
#define BASE_SYSTHR_H
diff --git a/include/base/util.h b/include/base/util.h
index 3302a1cf..10a59d69 100644
--- a/include/base/util.h
+++ b/include/base/util.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef BASE_UTIL_H
#define BASE_UTIL_H
diff --git a/include/i18n.h b/include/i18n.h
index 27cbde11..aa76997c 100644
--- a/include/i18n.h
+++ b/include/i18n.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef I18N_H
#define I18N_H
diff --git a/include/ldaputil/cert.h b/include/ldaputil/cert.h
index d7307cf6..051940ce 100644
--- a/include/ldaputil/cert.h
+++ b/include/ldaputil/cert.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_CERT_H
#define _LDAPU_CERT_H
diff --git a/include/ldaputil/certmap.h b/include/ldaputil/certmap.h
index 6fc81c89..4320ff48 100644
--- a/include/ldaputil/certmap.h
+++ b/include/ldaputil/certmap.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_CERTMAP_H
#define _LDAPU_CERTMAP_H
diff --git a/include/ldaputil/dbconf.h b/include/ldaputil/dbconf.h
index c430c94e..b6dd1ed0 100644
--- a/include/ldaputil/dbconf.h
+++ b/include/ldaputil/dbconf.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_DBCONF_H
#define _LDAPU_DBCONF_H
diff --git a/include/ldaputil/encode.h b/include/ldaputil/encode.h
index 0c3a4a07..5aa63b70 100644
--- a/include/ldaputil/encode.h
+++ b/include/ldaputil/encode.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_ENCODE_H
#define _LDAPU_ENCODE_H
diff --git a/include/ldaputil/errors.h b/include/ldaputil/errors.h
index 6dd074ec..7b36a472 100644
--- a/include/ldaputil/errors.h
+++ b/include/ldaputil/errors.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_ERRORS_H
#define _LDAPU_ERRORS_H
diff --git a/include/ldaputil/extcmap.h b/include/ldaputil/extcmap.h
index aae63066..0327135c 100644
--- a/include/ldaputil/extcmap.h
+++ b/include/ldaputil/extcmap.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PUBLIC_CERTMAP_H
#define _PUBLIC_CERTMAP_H
diff --git a/include/ldaputil/init.h b/include/ldaputil/init.h
index f51d3bf3..a1fdc9db 100644
--- a/include/ldaputil/init.h
+++ b/include/ldaputil/init.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_INIT_H
#define _LDAPU_INIT_H
diff --git a/include/ldaputil/ldapauth.h b/include/ldaputil/ldapauth.h
index bc3b73ae..c2c7f99b 100644
--- a/include/ldaputil/ldapauth.h
+++ b/include/ldaputil/ldapauth.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef LDAPU_AUTH_H
#define LDAPU_AUTH_H
diff --git a/include/ldaputil/ldapdb.h b/include/ldaputil/ldapdb.h
index 6f326d22..5a768f59 100644
--- a/include/ldaputil/ldapdb.h
+++ b/include/ldaputil/ldapdb.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_LDAPDB_H
#define _LDAPU_LDAPDB_H
diff --git a/include/ldaputil/ldaputil.h b/include/ldaputil/ldaputil.h
index 35b9a640..4cb05e6a 100644
--- a/include/ldaputil/ldaputil.h
+++ b/include/ldaputil/ldaputil.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_LDAPUTIL_H
#define _LDAPU_LDAPUTIL_H
diff --git a/include/libaccess/acl.h b/include/libaccess/acl.h
index 253fa4f8..c3f61eaa 100644
--- a/include/libaccess/acl.h
+++ b/include/libaccess/acl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef ACL_HEADER
#define ACL_HEADER
diff --git a/include/libaccess/aclerror.h b/include/libaccess/aclerror.h
index 771ffeb7..add1d000 100644
--- a/include/libaccess/aclerror.h
+++ b/include/libaccess/aclerror.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __aclerror_h
#define __aclerror_h
diff --git a/include/libaccess/acleval.h b/include/libaccess/acleval.h
index ce9750e5..15e1f5e0 100644
--- a/include/libaccess/acleval.h
+++ b/include/libaccess/acleval.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __acleval_h
#define __acleval_h
diff --git a/include/libaccess/aclglobal.h b/include/libaccess/aclglobal.h
index 0ddd06ee..bd903502 100644
--- a/include/libaccess/aclglobal.h
+++ b/include/libaccess/aclglobal.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
** Header file containing global data elements. These are duplicated
** when a cache flush is done.
diff --git a/include/libaccess/aclproto.h b/include/libaccess/aclproto.h
index 57f8137e..68ef3d80 100644
--- a/include/libaccess/aclproto.h
+++ b/include/libaccess/aclproto.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef ACL_PROTO_HEADER
#define ACL_PROTO_HEADER
diff --git a/include/libaccess/aclstruct.h b/include/libaccess/aclstruct.h
index 7e9c7a30..6d464ffc 100644
--- a/include/libaccess/aclstruct.h
+++ b/include/libaccess/aclstruct.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __aclstruct_h
#define __aclstruct_h
diff --git a/include/libaccess/attrec.h b/include/libaccess/attrec.h
index 09fd9f68..21a6a57b 100644
--- a/include/libaccess/attrec.h
+++ b/include/libaccess/attrec.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __attrec_h
#define __attrec_h
diff --git a/include/libaccess/authdb.h b/include/libaccess/authdb.h
index 97c2e5a6..34588c8a 100644
--- a/include/libaccess/authdb.h
+++ b/include/libaccess/authdb.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef AUTHDB_H
#define AUTHDB_H
diff --git a/include/libaccess/dbtlibaccess.h b/include/libaccess/dbtlibaccess.h
index dc902675..1bc39824 100644
--- a/include/libaccess/dbtlibaccess.h
+++ b/include/libaccess/dbtlibaccess.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#define LIBRARY_NAME "libaccess"
static char dbtlibaccessid[] = "$DBT: libaccess referenced v1 $";
diff --git a/include/libaccess/dnfstruct.h b/include/libaccess/dnfstruct.h
index 2c2502d7..f87ea0e5 100644
--- a/include/libaccess/dnfstruct.h
+++ b/include/libaccess/dnfstruct.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __dnfstruct_h
#define __dnfstruct_h
diff --git a/include/libaccess/ipfstruct.h b/include/libaccess/ipfstruct.h
index 37d1d7c6..d67bbbe1 100644
--- a/include/libaccess/ipfstruct.h
+++ b/include/libaccess/ipfstruct.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __ipfstruct_h
#define __ipfstruct_h
diff --git a/include/libaccess/las.h b/include/libaccess/las.h
index c2127f83..2e5673d7 100644
--- a/include/libaccess/las.h
+++ b/include/libaccess/las.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef ACL_LAS_HEADER
#define ACL_LAS_HEADER
diff --git a/include/libaccess/ldapacl.h b/include/libaccess/ldapacl.h
index 881d42b3..39731e61 100644
--- a/include/libaccess/ldapacl.h
+++ b/include/libaccess/ldapacl.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef ACL_AUTH_H
#define ACL_AUTH_H
diff --git a/include/libaccess/nsauth.h b/include/libaccess/nsauth.h
index 360485db..b859fae7 100644
--- a/include/libaccess/nsauth.h
+++ b/include/libaccess/nsauth.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __nsauth_h
#define __nsauth_h
diff --git a/include/libaccess/nsautherr.h b/include/libaccess/nsautherr.h
index a73b6539..325e0373 100644
--- a/include/libaccess/nsautherr.h
+++ b/include/libaccess/nsautherr.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __nsautherr_h
#define __nsautherr_h
diff --git a/include/libaccess/nserror.h b/include/libaccess/nserror.h
index b09d04f4..f6b5ef2a 100644
--- a/include/libaccess/nserror.h
+++ b/include/libaccess/nserror.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __nserror_h
#define __nserror_h
diff --git a/include/libaccess/symbols.h b/include/libaccess/symbols.h
index 7a30f28a..73d04a49 100644
--- a/include/libaccess/symbols.h
+++ b/include/libaccess/symbols.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __symbols_h
#define __symbols_h
diff --git a/include/libaccess/userauth.h b/include/libaccess/userauth.h
index 3766d26a..6dd19fad 100644
--- a/include/libaccess/userauth.h
+++ b/include/libaccess/userauth.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef USERAUTH_H
#define USERAUTH_H
diff --git a/include/libaccess/usi.h b/include/libaccess/usi.h
index 2a51d85b..7649819c 100644
--- a/include/libaccess/usi.h
+++ b/include/libaccess/usi.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __usi_h
#define __usi_h
diff --git a/include/libaccess/usrcache.h b/include/libaccess/usrcache.h
index 5021b0bb..dfb73a1a 100644
--- a/include/libaccess/usrcache.h
+++ b/include/libaccess/usrcache.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef ACL_USER_CACHE_H
#define ACL_USER_CACHE_H
diff --git a/include/libadmin/dbtlibadmin.h b/include/libadmin/dbtlibadmin.h
index 43acf214..cc4e0957 100644
--- a/include/libadmin/dbtlibadmin.h
+++ b/include/libadmin/dbtlibadmin.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#define LIBRARY_NAME "libadmin"
static char dbtlibadminid[] = "$DBT: libadmin referenced v1 $";
diff --git a/include/libadmin/libadmin.h b/include/libadmin/libadmin.h
index 70631795..05d0b090 100644
--- a/include/libadmin/libadmin.h
+++ b/include/libadmin/libadmin.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* libadmin.h - All functions contained in libadmin.a
*
diff --git a/include/netsite.h b/include/netsite.h
index 2b7db9d6..78e7d6a7 100644
--- a/include/netsite.h
+++ b/include/netsite.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef NETSITE_H
#define NETSITE_H
diff --git a/include/nt/messages.h b/include/nt/messages.h
index ee519ba9..35fda4d3 100644
--- a/include/nt/messages.h
+++ b/include/nt/messages.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
Microsoft Developer Support
Copyright (c) 1992 Microsoft Corporation
diff --git a/include/nt/nsapi.h b/include/nt/nsapi.h
index 09d4e134..460293ef 100644
--- a/include/nt/nsapi.h
+++ b/include/nt/nsapi.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Aruna Victor
*/
diff --git a/include/nt/ntos.h b/include/nt/ntos.h
index 7d129d6c..7d971b7e 100644
--- a/include/nt/ntos.h
+++ b/include/nt/ntos.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/**********************************************************************
* ntOS.h - functionality used bt NT Operating System
*
diff --git a/include/nt/regparms.h b/include/nt/regparms.h
index 8dcbc6ed..ccee49a8 100644
--- a/include/nt/regparms.h
+++ b/include/nt/regparms.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// //
// Name: regparms.h //
// Platforms: WIN32 //
diff --git a/include/nt/resource.h b/include/nt/resource.h
index 2dcd3278..ce706980 100644
--- a/include/nt/resource.h
+++ b/include/nt/resource.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by netsite.rc
diff --git a/include/public/base/systems.h b/include/public/base/systems.h
index cdd9fc79..fc9b045e 100644
--- a/include/public/base/systems.h
+++ b/include/public/base/systems.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_BASE_SYSTEMS_H
#define PUBLIC_BASE_SYSTEMS_H
diff --git a/include/public/netsite.h b/include/public/netsite.h
index 643f2da8..f6ff012b 100644
--- a/include/public/netsite.h
+++ b/include/public/netsite.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NETSITE_H
#define PUBLIC_NETSITE_H
diff --git a/include/public/nsacl/aclapi.h b/include/public/nsacl/aclapi.h
index 3180eb76..197d9d38 100644
--- a/include/public/nsacl/aclapi.h
+++ b/include/public/nsacl/aclapi.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NSACL_ACLAPI_H
#define PUBLIC_NSACL_ACLAPI_H
diff --git a/include/public/nsacl/acldef.h b/include/public/nsacl/acldef.h
index 4e9a0b74..b3e9f4d1 100644
--- a/include/public/nsacl/acldef.h
+++ b/include/public/nsacl/acldef.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NSACL_ACLDEF_H
#define PUBLIC_NSACL_ACLDEF_H
diff --git a/include/public/nsacl/nserrdef.h b/include/public/nsacl/nserrdef.h
index 4850e8bb..96857f47 100644
--- a/include/public/nsacl/nserrdef.h
+++ b/include/public/nsacl/nserrdef.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NSACL_NSERRDEF_H
#define PUBLIC_NSACL_NSERRDEF_H
diff --git a/include/public/nsacl/plistdef.h b/include/public/nsacl/plistdef.h
index f991f1f3..ac61f516 100644
--- a/include/public/nsacl/plistdef.h
+++ b/include/public/nsacl/plistdef.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NSACL_PLISTDEF_H
#define PUBLIC_NSACL_PLISTDEF_H
diff --git a/include/public/nsapi.h b/include/public/nsapi.h
index 9e4c13e9..c3f17485 100644
--- a/include/public/nsapi.h
+++ b/include/public/nsapi.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PUBLIC_NSAPI_H
#define PUBLIC_NSAPI_H
diff --git a/include/version.h b/include/version.h
index 80237258..e28bf2ea 100644
--- a/include/version.h
+++ b/include/version.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
This file is included from both C source and the NT installation compiler.
Because of that, no ifdefs are allowed, and strings must be simple strings
diff --git a/ldap/admin/include/dsalib.h b/ldap/admin/include/dsalib.h
index 96ff5ee8..7383295d 100644
--- a/ldap/admin/include/dsalib.h
+++ b/ldap/admin/include/dsalib.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef __dsalib_h
#define __dsalib_h
diff --git a/ldap/admin/include/dsalib_pw.h b/ldap/admin/include/dsalib_pw.h
index 3510d90a..a849826f 100644
--- a/ldap/admin/include/dsalib_pw.h
+++ b/ldap/admin/include/dsalib_pw.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef __dsalib_pw_h
#define __dsalib_pw_h
diff --git a/ldap/admin/include/dsalib_schema.h b/ldap/admin/include/dsalib_schema.h
index a03ba3ae..0ab7fe87 100644
--- a/ldap/admin/include/dsalib_schema.h
+++ b/ldap/admin/include/dsalib_schema.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Routines to parse schema LDIF
*
diff --git a/ldap/admin/include/nterrors.h b/ldap/admin/include/nterrors.h
index 1a74ac50..255cac13 100644
--- a/ldap/admin/include/nterrors.h
+++ b/ldap/admin/include/nterrors.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* DO NOT EDIT THIS FILE - it is automatically generated */
struct _NtError {
diff --git a/ldap/admin/lib/dsalib_conf.c b/ldap/admin/lib/dsalib_conf.c
index 86d9dc31..19161c59 100644
--- a/ldap/admin/lib/dsalib_conf.c
+++ b/ldap/admin/lib/dsalib_conf.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#include <process.h>
diff --git a/ldap/admin/lib/dsalib_confs.c b/ldap/admin/lib/dsalib_confs.c
index fc6c71fc..0a2023ce 100644
--- a/ldap/admin/lib/dsalib_confs.c
+++ b/ldap/admin/lib/dsalib_confs.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Some of the simple conf stuff here. Must not call any
* libadmin functions! This is needed by ds_config.c
diff --git a/ldap/admin/lib/dsalib_db.c b/ldap/admin/lib/dsalib_db.c
index 60916b14..c974b766 100644
--- a/ldap/admin/lib/dsalib_db.c
+++ b/ldap/admin/lib/dsalib_db.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#include <process.h>
diff --git a/ldap/admin/lib/dsalib_debug.c b/ldap/admin/lib/dsalib_debug.c
index 1dc2d808..6be074ae 100644
--- a/ldap/admin/lib/dsalib_debug.c
+++ b/ldap/admin/lib/dsalib_debug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#endif
diff --git a/ldap/admin/lib/dsalib_dn.c b/ldap/admin/lib/dsalib_dn.c
index cd157876..8cd43235 100644
--- a/ldap/admin/lib/dsalib_dn.c
+++ b/ldap/admin/lib/dsalib_dn.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#if defined( XP_WIN32 )
#include <windows.h>
#else
diff --git a/ldap/admin/lib/dsalib_filename.c b/ldap/admin/lib/dsalib_filename.c
index 8f6d66f7..7395859a 100644
--- a/ldap/admin/lib/dsalib_filename.c
+++ b/ldap/admin/lib/dsalib_filename.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#endif
diff --git a/ldap/admin/lib/dsalib_html.c b/ldap/admin/lib/dsalib_html.c
index c1ef4888..1c3377c8 100644
--- a/ldap/admin/lib/dsalib_html.c
+++ b/ldap/admin/lib/dsalib_html.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#endif
diff --git a/ldap/admin/lib/dsalib_ldif.c b/ldap/admin/lib/dsalib_ldif.c
index 9813b918..1009a4eb 100644
--- a/ldap/admin/lib/dsalib_ldif.c
+++ b/ldap/admin/lib/dsalib_ldif.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#include <process.h>
diff --git a/ldap/admin/lib/dsalib_location.c b/ldap/admin/lib/dsalib_location.c
index 6aefb061..7b4ae627 100644
--- a/ldap/admin/lib/dsalib_location.c
+++ b/ldap/admin/lib/dsalib_location.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#endif
diff --git a/ldap/admin/lib/dsalib_pw.c b/ldap/admin/lib/dsalib_pw.c
index 3c64ba0f..0696f7cf 100644
--- a/ldap/admin/lib/dsalib_pw.c
+++ b/ldap/admin/lib/dsalib_pw.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Adjust password policy management related variables.
*
diff --git a/ldap/admin/lib/dsalib_tailf.c b/ldap/admin/lib/dsalib_tailf.c
index 8bddf224..a9db5ce3 100644
--- a/ldap/admin/lib/dsalib_tailf.c
+++ b/ldap/admin/lib/dsalib_tailf.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#endif
diff --git a/ldap/admin/lib/dsalib_updown.c b/ldap/admin/lib/dsalib_updown.c
index d769ec4f..a1f5fcd5 100644
--- a/ldap/admin/lib/dsalib_updown.c
+++ b/ldap/admin/lib/dsalib_updown.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#include <process.h>
diff --git a/ldap/admin/lib/dsalib_util.c b/ldap/admin/lib/dsalib_util.c
index bebb38a9..0a0cfe0c 100644
--- a/ldap/admin/lib/dsalib_util.c
+++ b/ldap/admin/lib/dsalib_util.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( XP_WIN32 )
#include <windows.h>
#include <io.h>
diff --git a/ldap/admin/src/addindex.c b/ldap/admin/src/addindex.c
index 22732dbb..4a3d0dff 100644
--- a/ldap/admin/src/addindex.c
+++ b/ldap/admin/src/addindex.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* addindex.c: Creates one or more indexes for specified attributes
*
diff --git a/ldap/admin/src/cfg_sspt.c b/ldap/admin/src/cfg_sspt.c
index 239da87d..5d6028c3 100644
--- a/ldap/admin/src/cfg_sspt.c
+++ b/ldap/admin/src/cfg_sspt.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
diff --git a/ldap/admin/src/cfg_sspt.h b/ldap/admin/src/cfg_sspt.h
index d437080a..15ad7237 100644
--- a/ldap/admin/src/cfg_sspt.h
+++ b/ldap/admin/src/cfg_sspt.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __cfg_sspt_h
#define __cfg_sspt_h
diff --git a/ldap/admin/src/configure_instance.cpp b/ldap/admin/src/configure_instance.cpp
index 80b5b24d..c70cc7ea 100644
--- a/ldap/admin/src/configure_instance.cpp
+++ b/ldap/admin/src/configure_instance.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*********************************************************************
**
**
diff --git a/ldap/admin/src/configure_instance.h b/ldap/admin/src/configure_instance.h
index 7127af83..aedde9e1 100644
--- a/ldap/admin/src/configure_instance.h
+++ b/ldap/admin/src/configure_instance.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
**
**
diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c
index 40e37934..0bae15cc 100644
--- a/ldap/admin/src/create_instance.c
+++ b/ldap/admin/src/create_instance.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* create_instance.c: Routines for creating an instance of a Directory Server
*
diff --git a/ldap/admin/src/create_instance.h b/ldap/admin/src/create_instance.h
index c63f1a87..971da882 100644
--- a/ldap/admin/src/create_instance.h
+++ b/ldap/admin/src/create_instance.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* create_instance.h: create an instance of a directory server
*
diff --git a/ldap/admin/src/ds_bak2db.c b/ldap/admin/src/ds_bak2db.c
index 57c17fc4..39021dbd 100644
--- a/ldap/admin/src/ds_bak2db.c
+++ b/ldap/admin/src/ds_bak2db.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Restores a database.
*
diff --git a/ldap/admin/src/ds_db2bak.c b/ldap/admin/src/ds_db2bak.c
index 0a1ceeed..a8e280b9 100644
--- a/ldap/admin/src/ds_db2bak.c
+++ b/ldap/admin/src/ds_db2bak.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Backs up the database.
*
diff --git a/ldap/admin/src/ds_db2ldif.c b/ldap/admin/src/ds_db2ldif.c
index a63894d2..031ee2dc 100644
--- a/ldap/admin/src/ds_db2ldif.c
+++ b/ldap/admin/src/ds_db2ldif.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Converts the database into an ldif file.
*
diff --git a/ldap/admin/src/ds_ldif2db.c b/ldap/admin/src/ds_ldif2db.c
index 276a0fe5..aef7fed8 100644
--- a/ldap/admin/src/ds_ldif2db.c
+++ b/ldap/admin/src/ds_ldif2db.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ds_ldif2db.c: Converts an ldif file into a database.
*
diff --git a/ldap/admin/src/ds_listdb.c b/ldap/admin/src/ds_listdb.c
index 197e5696..fc44d5d3 100644
--- a/ldap/admin/src/ds_listdb.c
+++ b/ldap/admin/src/ds_listdb.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* List the database backup directories.
* No HTML - this is for DS 4.0.
diff --git a/ldap/admin/src/ds_newinst.c b/ldap/admin/src/ds_newinst.c
index 79ee7fa9..5de0c4d7 100644
--- a/ldap/admin/src/ds_newinst.c
+++ b/ldap/admin/src/ds_newinst.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ds_newinst.c - creates a new instance of directory server, scripts,
* configuration, etc. Does not create any Admin Server stuff or
diff --git a/ldap/admin/src/ds_remove.c b/ldap/admin/src/ds_remove.c
index aefc88bf..660104bc 100644
--- a/ldap/admin/src/ds_remove.c
+++ b/ldap/admin/src/ds_remove.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Remove the server
*
diff --git a/ldap/admin/src/ds_remove_uninst.cpp b/ldap/admin/src/ds_remove_uninst.cpp
index 118c5d55..b7699176 100644
--- a/ldap/admin/src/ds_remove_uninst.cpp
+++ b/ldap/admin/src/ds_remove_uninst.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// ds_remove_uninst.cpp
//
// ds_remove routines that use c++ calls in adminutil
diff --git a/ldap/admin/src/ds_remove_uninst.h b/ldap/admin/src/ds_remove_uninst.h
index a1500696..6ce2b6b1 100644
--- a/ldap/admin/src/ds_remove_uninst.h
+++ b/ldap/admin/src/ds_remove_uninst.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ds_remove_uninst.h */
diff --git a/ldap/admin/src/ds_rmdb.c b/ldap/admin/src/ds_rmdb.c
index 476897f6..2c6f47e3 100644
--- a/ldap/admin/src/ds_rmdb.c
+++ b/ldap/admin/src/ds_rmdb.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Delete backed-up database files.
*
diff --git a/ldap/admin/src/ds_snmpctrl.c b/ldap/admin/src/ds_snmpctrl.c
index 06c30503..1ac2fea6 100644
--- a/ldap/admin/src/ds_snmpctrl.c
+++ b/ldap/admin/src/ds_snmpctrl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* snmpctrl.c - start/stop/restart LDAP-based SNMP subagent
*
diff --git a/ldap/admin/src/init_ds_env.c b/ldap/admin/src/init_ds_env.c
index c4a1ce49..f6ca8a03 100644
--- a/ldap/admin/src/init_ds_env.c
+++ b/ldap/admin/src/init_ds_env.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Set up environment for CGIs.
*
diff --git a/ldap/admin/src/init_ds_env.h b/ldap/admin/src/init_ds_env.h
index fcb9c8c5..7e6b7275 100644
--- a/ldap/admin/src/init_ds_env.h
+++ b/ldap/admin/src/init_ds_env.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Set up environment for CGIs.
*
diff --git a/ldap/admin/src/install_keywords.h b/ldap/admin/src/install_keywords.h
index 56856614..9106a1cf 100644
--- a/ldap/admin/src/install_keywords.h
+++ b/ldap/admin/src/install_keywords.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*********************************************************************
**
**
diff --git a/ldap/admin/src/instindex.cpp b/ldap/admin/src/instindex.cpp
index 83ebe45a..05c3fbee 100644
--- a/ldap/admin/src/instindex.cpp
+++ b/ldap/admin/src/instindex.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* index.c: Shows the first page you see on install
*
diff --git a/ldap/admin/src/latest_file.c b/ldap/admin/src/latest_file.c
index df1d6dd2..7e38b368 100644
--- a/ldap/admin/src/latest_file.c
+++ b/ldap/admin/src/latest_file.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
**
** NAME
diff --git a/ldap/admin/src/namegen.c b/ldap/admin/src/namegen.c
index 5e36c15b..c35c3eda 100644
--- a/ldap/admin/src/namegen.c
+++ b/ldap/admin/src/namegen.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* namegen.c - utility program to generate name *
* of backup files in the format YYYY_MM_DD_HMS *
* and set it up as an environment variable to *
diff --git a/ldap/admin/src/restart.c b/ldap/admin/src/restart.c
index fec805fb..e45676e7 100644
--- a/ldap/admin/src/restart.c
+++ b/ldap/admin/src/restart.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* restart.c: Stops and the starts up the server.
*
diff --git a/ldap/admin/src/script-gen.c b/ldap/admin/src/script-gen.c
index cac07884..0b17eb03 100644
--- a/ldap/admin/src/script-gen.c
+++ b/ldap/admin/src/script-gen.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* this is used for generating the (large) scripts during create_instance.
*/
diff --git a/ldap/admin/src/shutdown.c b/ldap/admin/src/shutdown.c
index 14e6d86a..a1c98a5d 100644
--- a/ldap/admin/src/shutdown.c
+++ b/ldap/admin/src/shutdown.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* shutdown.c: Kills the server.
*
diff --git a/ldap/admin/src/start.c b/ldap/admin/src/start.c
index 63194fe3..1765ab0c 100644
--- a/ldap/admin/src/start.c
+++ b/ldap/admin/src/start.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* start.c: Starts up the server.
*
diff --git a/ldap/admin/src/vlvindex.c b/ldap/admin/src/vlvindex.c
index 426c6925..6eb8c1a9 100644
--- a/ldap/admin/src/vlvindex.c
+++ b/ldap/admin/src/vlvindex.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* vlvindex.c: Creates a VLV index for a given search
*
diff --git a/ldap/clients/dsgw/Versiongw.c b/ldap/clients/dsgw/Versiongw.c
index b4a83c14..5cde5938 100644
--- a/ldap/clients/dsgw/Versiongw.c
+++ b/ldap/clients/dsgw/Versiongw.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "netsite.h" /* to get MAGNUS_VERSION_STRING */
#ifdef MAGNUS_VERSION_STRING
diff --git a/ldap/clients/dsgw/auth.c b/ldap/clients/dsgw/auth.c
index a2f4156d..409d8813 100644
--- a/ldap/clients/dsgw/auth.c
+++ b/ldap/clients/dsgw/auth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* auth.c -- CGI authentication form generator -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/cgiutil.c b/ldap/clients/dsgw/cgiutil.c
index 965a28f9..99413142 100644
--- a/ldap/clients/dsgw/cgiutil.c
+++ b/ldap/clients/dsgw/cgiutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* cgiutil.c -- CGI-related utility functions -- HTTP gateway
*
diff --git a/ldap/clients/dsgw/ckdel.c b/ldap/clients/dsgw/ckdel.c
index 596499b4..c90f9a1c 100644
--- a/ldap/clients/dsgw/ckdel.c
+++ b/ldap/clients/dsgw/ckdel.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include "dsgw.h"
diff --git a/ldap/clients/dsgw/ckdump.c b/ldap/clients/dsgw/ckdump.c
index 7b0cc54d..847e83fc 100644
--- a/ldap/clients/dsgw/ckdump.c
+++ b/ldap/clients/dsgw/ckdump.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include "dsgw.h"
diff --git a/ldap/clients/dsgw/ckget.c b/ldap/clients/dsgw/ckget.c
index df48500e..a8930717 100644
--- a/ldap/clients/dsgw/ckget.c
+++ b/ldap/clients/dsgw/ckget.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include "dsgw.h"
diff --git a/ldap/clients/dsgw/ckpurge.c b/ldap/clients/dsgw/ckpurge.c
index 1f9bc30f..dde1c120 100644
--- a/ldap/clients/dsgw/ckpurge.c
+++ b/ldap/clients/dsgw/ckpurge.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include "dsgw.h"
diff --git a/ldap/clients/dsgw/ckput.c b/ldap/clients/dsgw/ckput.c
index 42baf85f..363f717a 100644
--- a/ldap/clients/dsgw/ckput.c
+++ b/ldap/clients/dsgw/ckput.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include "dsgw.h"
diff --git a/ldap/clients/dsgw/collate.c b/ldap/clients/dsgw/collate.c
index 66146c36..947c493b 100644
--- a/ldap/clients/dsgw/collate.c
+++ b/ldap/clients/dsgw/collate.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* collate.c -- routines to collate character strings
*/
diff --git a/ldap/clients/dsgw/config.c b/ldap/clients/dsgw/config.c
index 9113572d..a329e4b9 100644
--- a/ldap/clients/dsgw/config.c
+++ b/ldap/clients/dsgw/config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* config.c -- parse config file for directory server gateway
*/
diff --git a/ldap/clients/dsgw/cookie.c b/ldap/clients/dsgw/cookie.c
index 681d10e2..dbecfb53 100644
--- a/ldap/clients/dsgw/cookie.c
+++ b/ldap/clients/dsgw/cookie.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* cookie.c -- routines to generate and manipulate cookies for dsgw
*/
diff --git a/ldap/clients/dsgw/csearch.c b/ldap/clients/dsgw/csearch.c
index 178b5e32..0be7b86a 100644
--- a/ldap/clients/dsgw/csearch.c
+++ b/ldap/clients/dsgw/csearch.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* csearch.c -- CGI program to generate complex search form -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/dbtdsgw.h b/ldap/clients/dsgw/dbtdsgw.h
index b882e93a..bcd60e0a 100644
--- a/ldap/clients/dsgw/dbtdsgw.h
+++ b/ldap/clients/dsgw/dbtdsgw.h
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#define LIBRARY_NAME "dsgw"
/* avoid warnings for this extremely annoying variable */
diff --git a/ldap/clients/dsgw/dnedit.c b/ldap/clients/dsgw/dnedit.c
index 2f320bd3..02c9ade7 100644
--- a/ldap/clients/dsgw/dnedit.c
+++ b/ldap/clients/dsgw/dnedit.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Generate a DN edit screen.
*/
diff --git a/ldap/clients/dsgw/doauth.c b/ldap/clients/dsgw/doauth.c
index 68e714cd..6590a6b8 100644
--- a/ldap/clients/dsgw/doauth.c
+++ b/ldap/clients/dsgw/doauth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* doauth.c -- CGI authentication handler -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/domodify.c b/ldap/clients/dsgw/domodify.c
index 75d2c5e3..13ddb4f0 100644
--- a/ldap/clients/dsgw/domodify.c
+++ b/ldap/clients/dsgw/domodify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* domodify.c -- LDAP modify CGI handler -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/dosearch.c b/ldap/clients/dsgw/dosearch.c
index 5fbbd292..efd140b4 100644
--- a/ldap/clients/dsgw/dosearch.c
+++ b/ldap/clients/dsgw/dosearch.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dosearch.c -- CGI search handler -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/dsgw.h b/ldap/clients/dsgw/dsgw.h
index edfcf1aa..a6e61f4a 100644
--- a/ldap/clients/dsgw/dsgw.h
+++ b/ldap/clients/dsgw/dsgw.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dsgw.h -- defines for HTTP gateway
*/
diff --git a/ldap/clients/dsgw/dsgwutil.c b/ldap/clients/dsgw/dsgwutil.c
index 71235f7d..872db869 100644
--- a/ldap/clients/dsgw/dsgwutil.c
+++ b/ldap/clients/dsgw/dsgwutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dsgwutil.c -- misc. utility functions -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/edit.c b/ldap/clients/dsgw/edit.c
index a08f4ad6..b20a8b36 100644
--- a/ldap/clients/dsgw/edit.c
+++ b/ldap/clients/dsgw/edit.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* edit.c -- CGI editable entry display -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/emitauth.c b/ldap/clients/dsgw/emitauth.c
index 5a2b4075..55bd1017 100644
--- a/ldap/clients/dsgw/emitauth.c
+++ b/ldap/clients/dsgw/emitauth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* emitauth.c -- generate authentication form -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/emitf.c b/ldap/clients/dsgw/emitf.c
index a6352821..68b15e14 100644
--- a/ldap/clients/dsgw/emitf.c
+++ b/ldap/clients/dsgw/emitf.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdarg.h> /* va_list etc. */
#include <stdio.h> /* sprintf */
#include <stdlib.h> /* malloc, realloc, free */
diff --git a/ldap/clients/dsgw/entrydisplay.c b/ldap/clients/dsgw/entrydisplay.c
index 4b6d47ed..4c252eb2 100644
--- a/ldap/clients/dsgw/entrydisplay.c
+++ b/ldap/clients/dsgw/entrydisplay.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* entrydisplay.c -- output entries one at a time or in a list -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/error.c b/ldap/clients/dsgw/error.c
index 79c33c06..4c8b19e4 100644
--- a/ldap/clients/dsgw/error.c
+++ b/ldap/clients/dsgw/error.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* error.c -- error handling functions -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/getopt.c b/ldap/clients/dsgw/getopt.c
index 4f73d452..1a9b102d 100644
--- a/ldap/clients/dsgw/getopt.c
+++ b/ldap/clients/dsgw/getopt.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1987 Regents of the University of California.
* All rights reserved.
diff --git a/ldap/clients/dsgw/htmlout.c b/ldap/clients/dsgw/htmlout.c
index 4d72971d..d7c65ab3 100644
--- a/ldap/clients/dsgw/htmlout.c
+++ b/ldap/clients/dsgw/htmlout.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* htmlout.c -- routines to output HTML elements -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/htmlparse.c b/ldap/clients/dsgw/htmlparse.c
index 7bc9b38d..d9e04d9f 100644
--- a/ldap/clients/dsgw/htmlparse.c
+++ b/ldap/clients/dsgw/htmlparse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* htmlparse.c -- routines to parse HTML templates -- HTTP gateway.
* Stolen from libadmin/template.c and libadmin/form_get.c, originally
diff --git a/ldap/clients/dsgw/lang.c b/ldap/clients/dsgw/lang.c
index 8c93c0d4..6176c5cc 100644
--- a/ldap/clients/dsgw/lang.c
+++ b/ldap/clients/dsgw/lang.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Convert a document from ../html, or redirect the server to it.
*/
diff --git a/ldap/clients/dsgw/ldaputil.c b/ldap/clients/dsgw/ldaputil.c
index 750fee67..591c4918 100644
--- a/ldap/clients/dsgw/ldaputil.c
+++ b/ldap/clients/dsgw/ldaputil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ldaputil.c -- LDAP utility functions -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/newentry.c b/ldap/clients/dsgw/newentry.c
index 4e09986c..e8e6b448 100644
--- a/ldap/clients/dsgw/newentry.c
+++ b/ldap/clients/dsgw/newentry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* newentry.c -- CGI program to generate newentry form -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/search.c b/ldap/clients/dsgw/search.c
index 386c7ce1..760a3098 100644
--- a/ldap/clients/dsgw/search.c
+++ b/ldap/clients/dsgw/search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* search.c -- CGI program to generate smart search form -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/secglue.c b/ldap/clients/dsgw/secglue.c
index 95834fd2..0095406f 100644
--- a/ldap/clients/dsgw/secglue.c
+++ b/ldap/clients/dsgw/secglue.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* secglue.c: Glue routines for the httpd.so shared object. These are
* necessary because on many system no garbage collection is performed for
diff --git a/ldap/clients/dsgw/sort.c b/ldap/clients/dsgw/sort.c
index 3901e1ad..a191025c 100644
--- a/ldap/clients/dsgw/sort.c
+++ b/ldap/clients/dsgw/sort.c
@@ -36,6 +36,11 @@
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* DON'T SHIP THIS PROGRAM. It's terribly un-secure, as it
enables an HTTP client to read the contents of any file.
*/
diff --git a/ldap/clients/dsgw/tutor.c b/ldap/clients/dsgw/tutor.c
index 11b3a564..67e808cb 100644
--- a/ldap/clients/dsgw/tutor.c
+++ b/ldap/clients/dsgw/tutor.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* tutor.c - Take a qs, and spit out the appropriate tutorial
*
diff --git a/ldap/clients/dsgw/unauth.c b/ldap/clients/dsgw/unauth.c
index 7739995e..686ea057 100644
--- a/ldap/clients/dsgw/unauth.c
+++ b/ldap/clients/dsgw/unauth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* unauth.c -- CGI to discard cookies -- HTTP gateway
*/
diff --git a/ldap/clients/dsgw/utf8compare.c b/ldap/clients/dsgw/utf8compare.c
index f351419d..c2d09f18 100644
--- a/ldap/clients/dsgw/utf8compare.c
+++ b/ldap/clients/dsgw/utf8compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/ldap/clients/dsgw/vcard.c b/ldap/clients/dsgw/vcard.c
index a8e4ef8b..5ad54c00 100644
--- a/ldap/clients/dsgw/vcard.c
+++ b/ldap/clients/dsgw/vcard.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* vcard.c -- vCard utility functions -- HTTP gateway
*/
diff --git a/ldap/clients/orgchart/wrapper.c b/ldap/clients/orgchart/wrapper.c
index 1ab67b23..3a9b0c5a 100644
--- a/ldap/clients/orgchart/wrapper.c
+++ b/ldap/clients/orgchart/wrapper.c
@@ -35,6 +35,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/***********************************************************************
** Includes
***********************************************************************/
diff --git a/ldap/cm/newinst/ux-config.cc b/ldap/cm/newinst/ux-config.cc
index ba419292..df1cf5c8 100644
--- a/ldap/cm/newinst/ux-config.cc
+++ b/ldap/cm/newinst/ux-config.cc
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*********************************************************************
**
** NAME:
diff --git a/ldap/cm/newinst/ux-config.h b/ldap/cm/newinst/ux-config.h
index 7e73d6c1..5fb55c28 100644
--- a/ldap/cm/newinst/ux-config.h
+++ b/ldap/cm/newinst/ux-config.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*********************************************************************
**
**
@@ -48,6 +53,16 @@
**
** HISTORY:
** $Log: ux-config.h,v $
+** Revision 1.7 2006/11/10 23:44:40 nhosoi
+** Resolves: #214533
+** Summary: configure needs to support --with-fhs (Comment #6)
+** Changes: Added the following include next to the end of the copyright block.
+** +
+** +#ifdef HAVE_CONFIG_H
+** +# include <config.h>
+** +#endif
+** +
+**
** Revision 1.6 2005/04/19 22:07:21 nkinder
** Fixed licensing typo
**
diff --git a/ldap/cm/newinst/ux-dialog.cc b/ldap/cm/newinst/ux-dialog.cc
index 7de31488..a66b5939 100644
--- a/ldap/cm/newinst/ux-dialog.cc
+++ b/ldap/cm/newinst/ux-dialog.cc
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*********************************************************************
**
** NAME:
diff --git a/ldap/cm/newinst/ux-dialog.h b/ldap/cm/newinst/ux-dialog.h
index 5b892480..51c899f5 100644
--- a/ldap/cm/newinst/ux-dialog.h
+++ b/ldap/cm/newinst/ux-dialog.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _UX_DIALOG_H_
#define _UX_DIALOG_H_
diff --git a/ldap/cm/newinst/ux-dsalib_dn.c b/ldap/cm/newinst/ux-dsalib_dn.c
index ebdc528a..22ff7585 100644
--- a/ldap/cm/newinst/ux-dsalib_dn.c
+++ b/ldap/cm/newinst/ux-dsalib_dn.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/ldap/cm/newinst/ux-guesses.cc b/ldap/cm/newinst/ux-guesses.cc
index 0402feac..5f79edb6 100644
--- a/ldap/cm/newinst/ux-guesses.cc
+++ b/ldap/cm/newinst/ux-guesses.cc
@@ -36,13 +36,28 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Print guesses of host and domain name as made by the setup SDK. */
-/* $RCSfile: ux-guesses.cc,v $ $Revision: 1.5 $ $Date: 2005/04/19 22:07:21 $ $State: Exp $ */
+/* $RCSfile: ux-guesses.cc,v $ $Revision: 1.6 $ $Date: 2006/11/10 23:44:40 $ $State: Exp $ */
/*
* $Log: ux-guesses.cc,v $
+ * Revision 1.6 2006/11/10 23:44:40 nhosoi
+ * Resolves: #214533
+ * Summary: configure needs to support --with-fhs (Comment #6)
+ * Changes: Added the following include next to the end of the copyright block.
+ * +
+ * +#ifdef HAVE_CONFIG_H
+ * +# include <config.h>
+ * +#endif
+ * +
+ *
* Revision 1.5 2005/04/19 22:07:21 nkinder
* Fixed licensing typo
*
diff --git a/ldap/cm/newinstnt/consolinst.c b/ldap/cm/newinstnt/consolinst.c
index a85341f9..9e08c6ab 100644
--- a/ldap/cm/newinstnt/consolinst.c
+++ b/ldap/cm/newinstnt/consolinst.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//////////////////////////////////////////////////////////////////////////////
// CONSOLINST.c - Fedora Directory Server Installation Plug-In
//
diff --git a/ldap/cm/newinstnt/consolinst.h b/ldap/cm/newinstnt/consolinst.h
index 9878ff2b..c013016a 100644
--- a/ldap/cm/newinstnt/consolinst.h
+++ b/ldap/cm/newinstnt/consolinst.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//////////////////////////////////////////////////////////////////////////////
// CONSOLINST.h - Netscape SuiteSpot Installation Plug-In Directory Server
//
diff --git a/ldap/cm/newinstnt/dsinst.c b/ldap/cm/newinstnt/dsinst.c
index f371d4c7..178714c1 100644
--- a/ldap/cm/newinstnt/dsinst.c
+++ b/ldap/cm/newinstnt/dsinst.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
///////////////////////////////////////////////////////////////////////////////
// dsinst.c - Fedora Directory Server Installation Plug-In
//
diff --git a/ldap/cm/newinstnt/dsinst.h b/ldap/cm/newinstnt/dsinst.h
index 28a118ed..a6be96f1 100644
--- a/ldap/cm/newinstnt/dsinst.h
+++ b/ldap/cm/newinstnt/dsinst.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//////////////////////////////////////////////////////////////////////////////
// dsinst.h - Netscape SuiteSpot Installation Plug-In Directory Server
//
diff --git a/ldap/cm/newinstnt/dsinst_dsalib_dn.c b/ldap/cm/newinstnt/dsinst_dsalib_dn.c
index f478ac8f..53b92f7a 100644
--- a/ldap/cm/newinstnt/dsinst_dsalib_dn.c
+++ b/ldap/cm/newinstnt/dsinst_dsalib_dn.c
@@ -36,4 +36,9 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <dsalib_dn.c>
diff --git a/ldap/cm/newinstnt/libinst.c b/ldap/cm/newinstnt/libinst.c
index 37e966a7..2246b011 100644
--- a/ldap/cm/newinstnt/libinst.c
+++ b/ldap/cm/newinstnt/libinst.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "libinst.h"
#include <stdio.h>
diff --git a/ldap/cm/newinstnt/libinst.h b/ldap/cm/newinstnt/libinst.h
index e5709ef9..a3d50442 100644
--- a/ldap/cm/newinstnt/libinst.h
+++ b/ldap/cm/newinstnt/libinst.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//////////////////////////////////////////////////////////////////////////////
// libinst.h - Netscape SuiteSpot Installation Plug-In Directory Server
//
diff --git a/ldap/cm/newinstnt/resource.h b/ldap/cm/newinstnt/resource.h
index 04cadeeb..2355e440 100644
--- a/ldap/cm/newinstnt/resource.h
+++ b/ldap/cm/newinstnt/resource.h
@@ -36,6 +36,11 @@
// All rights reserved.
// --- END COPYRIGHT BLOCK ---
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by dsinst.rc
diff --git a/ldap/include/avl.h b/ldap/include/avl.h
index be0b15db..2fa10f89 100644
--- a/ldap/include/avl.h
+++ b/ldap/include/avl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* avl.h - avl tree definitions */
/*
* Copyright (c) 1993 Regents of the University of Michigan.
diff --git a/ldap/include/dblayer.h b/ldap/include/dblayer.h
index 3929b3c0..db131022 100644
--- a/ldap/include/dblayer.h
+++ b/ldap/include/dblayer.h
@@ -36,4 +36,9 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* This file is no longer used */
diff --git a/ldap/include/dirlite_strings.h b/ldap/include/dirlite_strings.h
index 6089e1b9..8a396df1 100644
--- a/ldap/include/dirlite_strings.h
+++ b/ldap/include/dirlite_strings.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dirlite_strings.h - strings used for Directory Lite */
#ifndef _DIRLITE_STRINGS_H_
#define _DIRLITE_STRINGS_H_
diff --git a/ldap/include/disptmpl.h b/ldap/include/disptmpl.h
index 19198aeb..226470c7 100644
--- a/ldap/include/disptmpl.h
+++ b/ldap/include/disptmpl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1993, 1994 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/include/ldaplog.h b/ldap/include/ldaplog.h
index a7e703f9..195f67c0 100644
--- a/ldap/include/ldaplog.h
+++ b/ldap/include/ldaplog.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPLOG_H
#define _LDAPLOG_H
diff --git a/ldap/include/ldaprot.h b/ldap/include/ldaprot.h
index 1e0bf137..81cb9e9d 100644
--- a/ldap/include/ldaprot.h
+++ b/ldap/include/ldaprot.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPROT_H
#define _LDAPROT_H
diff --git a/ldap/include/ldbm.h b/ldap/include/ldbm.h
index 69936d5e..b50e5c3c 100644
--- a/ldap/include/ldbm.h
+++ b/ldap/include/ldbm.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ldbm.h - ldap dbm compatibility routine header file */
#error "Hmm, shoudn't be here"
diff --git a/ldap/include/ldif.h b/ldap/include/ldif.h
index 3f04db83..c6de212c 100644
--- a/ldap/include/ldif.h
+++ b/ldap/include/ldif.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1996 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/include/litekey.h b/ldap/include/litekey.h
index e8d9b6b1..04ee11bc 100644
--- a/ldap/include/litekey.h
+++ b/ldap/include/litekey.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Defines function used to determine the type of DS based on the
* key.
diff --git a/ldap/include/lthread.h b/ldap/include/lthread.h
index daed6edb..bfdd4f39 100644
--- a/ldap/include/lthread.h
+++ b/ldap/include/lthread.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* lthread.h - ldap threads header file */
#ifndef _LTHREAD_H
diff --git a/ldap/include/ntslapdregparms.h b/ldap/include/ntslapdregparms.h
index 66ef331b..ef40080a 100644
--- a/ldap/include/ntslapdregparms.h
+++ b/ldap/include/ntslapdregparms.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
*
diff --git a/ldap/include/ntwatchdog.h b/ldap/include/ntwatchdog.h
index bdb66c01..0c8be74d 100644
--- a/ldap/include/ntwatchdog.h
+++ b/ldap/include/ntwatchdog.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
*
diff --git a/ldap/include/portable.h b/ldap/include/portable.h
index 52a75723..f1d54924 100644
--- a/ldap/include/portable.h
+++ b/ldap/include/portable.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1994 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/include/proto-ntutil.h b/ldap/include/proto-ntutil.h
index 88181469..26295772 100644
--- a/ldap/include/proto-ntutil.h
+++ b/ldap/include/proto-ntutil.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
*
diff --git a/ldap/include/regex.h b/ldap/include/regex.h
index 1ce0de61..11fd870a 100644
--- a/ldap/include/regex.h
+++ b/ldap/include/regex.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( macintosh ) || defined( DOS ) || defined( _WINDOWS ) || defined( NEED_BSDREGEX )
/*
* Copyright (c) 1993 Regents of the University of Michigan.
diff --git a/ldap/include/srchpref.h b/ldap/include/srchpref.h
index c14fbe5f..d5918f8d 100644
--- a/ldap/include/srchpref.h
+++ b/ldap/include/srchpref.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1993, 1994 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/include/sysexits-compat.h b/ldap/include/sysexits-compat.h
index 11c698c0..c7922b4a 100644
--- a/ldap/include/sysexits-compat.h
+++ b/ldap/include/sysexits-compat.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1987 Regents of the University of California.
* All rights reserved.
diff --git a/ldap/libraries/libavl/avl.c b/ldap/libraries/libavl/avl.c
index e26aab69..75778916 100644
--- a/ldap/libraries/libavl/avl.c
+++ b/ldap/libraries/libavl/avl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* avl.c - routines to implement an avl tree */
/*
* Copyright (c) 1993 Regents of the University of Michigan.
diff --git a/ldap/libraries/libavl/testavl.c b/ldap/libraries/libavl/testavl.c
index d27df39c..eae9b7a2 100644
--- a/ldap/libraries/libavl/testavl.c
+++ b/ldap/libraries/libavl/testavl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* testavl.c - Test Tim Howes AVL code */
#ifdef _WIN32
#include <windows.h>
diff --git a/ldap/libraries/libldif/fileurl.c b/ldap/libraries/libldif/fileurl.c
index 55b8ece7..751c0bf3 100644
--- a/ldap/libraries/libldif/fileurl.c
+++ b/ldap/libraries/libldif/fileurl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* LDIF tools fileurl.c -- functions for handling file URLs.
* Used by ldif_parse_line.
diff --git a/ldap/libraries/libldif/fileurl.h b/ldap/libraries/libldif/fileurl.h
index e0acddf9..79ce02ed 100644
--- a/ldap/libraries/libldif/fileurl.h
+++ b/ldap/libraries/libldif/fileurl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* LDIF tools fileurl.h -- defines for file URL functions.
* Used by ldif_parse_line.
diff --git a/ldap/libraries/libldif/line64.c b/ldap/libraries/libldif/line64.c
index 22adfbef..9cdc4941 100644
--- a/ldap/libraries/libldif/line64.c
+++ b/ldap/libraries/libldif/line64.c
@@ -35,6 +35,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
diff --git a/ldap/libraries/liblitekey/keycheck.c b/ldap/libraries/liblitekey/keycheck.c
index b66e6bf0..6d9d41b8 100644
--- a/ldap/libraries/liblitekey/keycheck.c
+++ b/ldap/libraries/liblitekey/keycheck.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* keycheck.c
*/
diff --git a/ldap/libraries/libutil/getopt.c b/ldap/libraries/libutil/getopt.c
index 612d78fe..e3c5d56f 100644
--- a/ldap/libraries/libutil/getopt.c
+++ b/ldap/libraries/libutil/getopt.c
@@ -17,6 +17,11 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifdef _WINDOWS
#if defined(LIBC_SCCS) && !defined(lint)
diff --git a/ldap/libraries/libutil/ntdebug.c b/ldap/libraries/libutil/ntdebug.c
index 367ca6b9..9f429574 100644
--- a/ldap/libraries/libutil/ntdebug.c
+++ b/ldap/libraries/libutil/ntdebug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
* ntdebug.c - Sends debug output to window and stdout
diff --git a/ldap/libraries/libutil/ntevent.c b/ldap/libraries/libutil/ntevent.c
index 77eb3713..0eab55ef 100644
--- a/ldap/libraries/libutil/ntevent.c
+++ b/ldap/libraries/libutil/ntevent.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifdef _WIN32
#include <windows.h>
diff --git a/ldap/libraries/libutil/ntreg.c b/ldap/libraries/libutil/ntreg.c
index d81446de..1efd536e 100644
--- a/ldap/libraries/libutil/ntreg.c
+++ b/ldap/libraries/libutil/ntreg.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifdef _WIN32
#include <windows.h>
diff --git a/ldap/libraries/libutil/ntresource.h b/ldap/libraries/libutil/ntresource.h
index 173e5476..c8953513 100644
--- a/ldap/libraries/libutil/ntresource.h
+++ b/ldap/libraries/libutil/ntresource.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by ntslapd.rc
diff --git a/ldap/libraries/libutil/ntstubs.c b/ldap/libraries/libutil/ntstubs.c
index e7adbf2e..393e269e 100644
--- a/ldap/libraries/libutil/ntstubs.c
+++ b/ldap/libraries/libutil/ntstubs.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
* ntstubs.c - Stubs needed on NT when linking in
diff --git a/ldap/servers/plugins/acl/acl.c b/ldap/servers/plugins/acl/acl.c
index d6dcbd6f..bab002c2 100644
--- a/ldap/servers/plugins/acl/acl.c
+++ b/ldap/servers/plugins/acl/acl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
/****************************************************************************
diff --git a/ldap/servers/plugins/acl/acl.h b/ldap/servers/plugins/acl/acl.h
index 0c6990bc..f1153b21 100644
--- a/ldap/servers/plugins/acl/acl.h
+++ b/ldap/servers/plugins/acl/acl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*****************************************************************************
* acl.h
*
diff --git a/ldap/servers/plugins/acl/acl_ext.c b/ldap/servers/plugins/acl/acl_ext.c
index 06c269b2..4d70a69b 100644
--- a/ldap/servers/plugins/acl/acl_ext.c
+++ b/ldap/servers/plugins/acl/acl_ext.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
static void acl__done_aclpb ( struct acl_pblock *aclpb );
diff --git a/ldap/servers/plugins/acl/aclanom.c b/ldap/servers/plugins/acl/aclanom.c
index 0e4c5306..02efd231 100644
--- a/ldap/servers/plugins/acl/aclanom.c
+++ b/ldap/servers/plugins/acl/aclanom.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
/************************************************************************
diff --git a/ldap/servers/plugins/acl/acldllmain.c b/ldap/servers/plugins/acl/acldllmain.c
index 900a45d0..627ecc8e 100644
--- a/ldap/servers/plugins/acl/acldllmain.c
+++ b/ldap/servers/plugins/acl/acldllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
#ifdef _WIN32
diff --git a/ldap/servers/plugins/acl/acleffectiverights.c b/ldap/servers/plugins/acl/acleffectiverights.c
index 7ef6d3fc..a9cba0c4 100644
--- a/ldap/servers/plugins/acl/acleffectiverights.c
+++ b/ldap/servers/plugins/acl/acleffectiverights.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "acl.h"
/* safer than doing strcat unprotected */
diff --git a/ldap/servers/plugins/acl/aclgroup.c b/ldap/servers/plugins/acl/aclgroup.c
index 33baa59b..b2888287 100644
--- a/ldap/servers/plugins/acl/aclgroup.c
+++ b/ldap/servers/plugins/acl/aclgroup.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
/***************************************************************************
diff --git a/ldap/servers/plugins/acl/aclinit.c b/ldap/servers/plugins/acl/aclinit.c
index 06fdf916..e6b7c4f3 100644
--- a/ldap/servers/plugins/acl/aclinit.c
+++ b/ldap/servers/plugins/acl/aclinit.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
static int __aclinit__RegisterLases(void);
diff --git a/ldap/servers/plugins/acl/acllas.c b/ldap/servers/plugins/acl/acllas.c
index e0ec42d7..b69c86ad 100644
--- a/ldap/servers/plugins/acl/acllas.c
+++ b/ldap/servers/plugins/acl/acllas.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <ipfstruct.h>
#include "acl.h"
diff --git a/ldap/servers/plugins/acl/acllist.c b/ldap/servers/plugins/acl/acllist.c
index 8da71a40..755ce643 100644
--- a/ldap/servers/plugins/acl/acllist.c
+++ b/ldap/servers/plugins/acl/acllist.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/************************************************************************
*
* ACLLIST
diff --git a/ldap/servers/plugins/acl/aclparse.c b/ldap/servers/plugins/acl/aclparse.c
index baf871a6..0fe5a3a7 100644
--- a/ldap/servers/plugins/acl/aclparse.c
+++ b/ldap/servers/plugins/acl/aclparse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
/****************************************************************************/
diff --git a/ldap/servers/plugins/acl/aclplugin.c b/ldap/servers/plugins/acl/aclplugin.c
index 84e3e42e..3ddcd68b 100644
--- a/ldap/servers/plugins/acl/aclplugin.c
+++ b/ldap/servers/plugins/acl/aclplugin.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* There are 3 ACL PLUGIN points
* PREOP, POSTOP and ACL plugin
diff --git a/ldap/servers/plugins/acl/aclproxy.c b/ldap/servers/plugins/acl/aclproxy.c
index 69619d14..d40f543f 100644
--- a/ldap/servers/plugins/acl/aclproxy.c
+++ b/ldap/servers/plugins/acl/aclproxy.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
#define BEGIN do {
diff --git a/ldap/servers/plugins/acl/aclutil.c b/ldap/servers/plugins/acl/aclutil.c
index 619f02d2..56ca5cef 100644
--- a/ldap/servers/plugins/acl/aclutil.c
+++ b/ldap/servers/plugins/acl/aclutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "acl.h"
/**************************************************************************
diff --git a/ldap/servers/plugins/chainingdb/cb.h b/ldap/servers/plugins/chainingdb/cb.h
index 129fe87f..ef39ab26 100644
--- a/ldap/servers/plugins/chainingdb/cb.h
+++ b/ldap/servers/plugins/chainingdb/cb.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef CBHFILE
#define CBHFILE
diff --git a/ldap/servers/plugins/chainingdb/cb_abandon.c b/ldap/servers/plugins/chainingdb/cb_abandon.c
index c1a85d1f..f3bb10bd 100644
--- a/ldap/servers/plugins/chainingdb/cb_abandon.c
+++ b/ldap/servers/plugins/chainingdb/cb_abandon.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_acl.c b/ldap/servers/plugins/chainingdb/cb_acl.c
index 35db2cae..d97aface 100644
--- a/ldap/servers/plugins/chainingdb/cb_acl.c
+++ b/ldap/servers/plugins/chainingdb/cb_acl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_add.c b/ldap/servers/plugins/chainingdb/cb_add.c
index 79e776bc..720c48fe 100644
--- a/ldap/servers/plugins/chainingdb/cb_add.c
+++ b/ldap/servers/plugins/chainingdb/cb_add.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_bind.c b/ldap/servers/plugins/chainingdb/cb_bind.c
index 329a132a..d8c9f87b 100644
--- a/ldap/servers/plugins/chainingdb/cb_bind.c
+++ b/ldap/servers/plugins/chainingdb/cb_bind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
static void
diff --git a/ldap/servers/plugins/chainingdb/cb_cleanup.c b/ldap/servers/plugins/chainingdb/cb_cleanup.c
index ced5a0c2..16d897e7 100644
--- a/ldap/servers/plugins/chainingdb/cb_cleanup.c
+++ b/ldap/servers/plugins/chainingdb/cb_cleanup.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_close.c b/ldap/servers/plugins/chainingdb/cb_close.c
index 9a61bd76..ecac5858 100644
--- a/ldap/servers/plugins/chainingdb/cb_close.c
+++ b/ldap/servers/plugins/chainingdb/cb_close.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_compare.c b/ldap/servers/plugins/chainingdb/cb_compare.c
index 5920cc45..57235fc0 100644
--- a/ldap/servers/plugins/chainingdb/cb_compare.c
+++ b/ldap/servers/plugins/chainingdb/cb_compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_config.c b/ldap/servers/plugins/chainingdb/cb_config.c
index f7f6d684..f2846b49 100644
--- a/ldap/servers/plugins/chainingdb/cb_config.c
+++ b/ldap/servers/plugins/chainingdb/cb_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
#include <errno.h>
diff --git a/ldap/servers/plugins/chainingdb/cb_conn_stateless.c b/ldap/servers/plugins/chainingdb/cb_conn_stateless.c
index 314c061a..5e2f3a59 100644
--- a/ldap/servers/plugins/chainingdb/cb_conn_stateless.c
+++ b/ldap/servers/plugins/chainingdb/cb_conn_stateless.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_controls.c b/ldap/servers/plugins/chainingdb/cb_controls.c
index 1b7bfcbb..3c79f1cc 100644
--- a/ldap/servers/plugins/chainingdb/cb_controls.c
+++ b/ldap/servers/plugins/chainingdb/cb_controls.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_debug.c b/ldap/servers/plugins/chainingdb/cb_debug.c
index d6a7c409..07fbc889 100644
--- a/ldap/servers/plugins/chainingdb/cb_debug.c
+++ b/ldap/servers/plugins/chainingdb/cb_debug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* cb_debug.c - debugging-related code for Chaining backend
*/
diff --git a/ldap/servers/plugins/chainingdb/cb_delete.c b/ldap/servers/plugins/chainingdb/cb_delete.c
index bfec7c31..dcca630f 100644
--- a/ldap/servers/plugins/chainingdb/cb_delete.c
+++ b/ldap/servers/plugins/chainingdb/cb_delete.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_init.c b/ldap/servers/plugins/chainingdb/cb_init.c
index 4017320e..1662a5b3 100644
--- a/ldap/servers/plugins/chainingdb/cb_init.c
+++ b/ldap/servers/plugins/chainingdb/cb_init.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
Slapi_PluginDesc chainingdbdesc = { CB_PLUGIN_NAME,
diff --git a/ldap/servers/plugins/chainingdb/cb_instance.c b/ldap/servers/plugins/chainingdb/cb_instance.c
index 3ead2908..e2719151 100644
--- a/ldap/servers/plugins/chainingdb/cb_instance.c
+++ b/ldap/servers/plugins/chainingdb/cb_instance.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
#include "plstr.h"
diff --git a/ldap/servers/plugins/chainingdb/cb_modify.c b/ldap/servers/plugins/chainingdb/cb_modify.c
index c0f3b0a9..8b50f6e7 100644
--- a/ldap/servers/plugins/chainingdb/cb_modify.c
+++ b/ldap/servers/plugins/chainingdb/cb_modify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
static void cb_remove_illegal_mods(cb_backend_instance * inst, LDAPMod **mods);
diff --git a/ldap/servers/plugins/chainingdb/cb_modrdn.c b/ldap/servers/plugins/chainingdb/cb_modrdn.c
index 348d0722..aa0bcacd 100644
--- a/ldap/servers/plugins/chainingdb/cb_modrdn.c
+++ b/ldap/servers/plugins/chainingdb/cb_modrdn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_monitor.c b/ldap/servers/plugins/chainingdb/cb_monitor.c
index dbc45214..295ea58b 100644
--- a/ldap/servers/plugins/chainingdb/cb_monitor.c
+++ b/ldap/servers/plugins/chainingdb/cb_monitor.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
extern cb_instance_config_info cb_the_instance_config[];
diff --git a/ldap/servers/plugins/chainingdb/cb_schema.c b/ldap/servers/plugins/chainingdb/cb_schema.c
index 319b319e..80602db5 100644
--- a/ldap/servers/plugins/chainingdb/cb_schema.c
+++ b/ldap/servers/plugins/chainingdb/cb_schema.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
void cb_eliminate_illegal_attributes(cb_backend_instance * inst, Slapi_Entry * e) {
diff --git a/ldap/servers/plugins/chainingdb/cb_search.c b/ldap/servers/plugins/chainingdb/cb_search.c
index 5facadc2..94b680f7 100644
--- a/ldap/servers/plugins/chainingdb/cb_search.c
+++ b/ldap/servers/plugins/chainingdb/cb_search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_size.c b/ldap/servers/plugins/chainingdb/cb_size.c
index 965cbfea..0f5947b6 100644
--- a/ldap/servers/plugins/chainingdb/cb_size.c
+++ b/ldap/servers/plugins/chainingdb/cb_size.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
int
diff --git a/ldap/servers/plugins/chainingdb/cb_start.c b/ldap/servers/plugins/chainingdb/cb_start.c
index 980f0c13..19031503 100644
--- a/ldap/servers/plugins/chainingdb/cb_start.c
+++ b/ldap/servers/plugins/chainingdb/cb_start.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
int
diff --git a/ldap/servers/plugins/chainingdb/cb_temp.c b/ldap/servers/plugins/chainingdb/cb_temp.c
index 6007e6f3..b44553da 100644
--- a/ldap/servers/plugins/chainingdb/cb_temp.c
+++ b/ldap/servers/plugins/chainingdb/cb_temp.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/*
diff --git a/ldap/servers/plugins/chainingdb/cb_test.c b/ldap/servers/plugins/chainingdb/cb_test.c
index 13edd55a..ffb8b724 100644
--- a/ldap/servers/plugins/chainingdb/cb_test.c
+++ b/ldap/servers/plugins/chainingdb/cb_test.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
int cb_back_test( Slapi_PBlock *pb )
diff --git a/ldap/servers/plugins/chainingdb/cb_unbind.c b/ldap/servers/plugins/chainingdb/cb_unbind.c
index 5c14c86e..b02280d2 100644
--- a/ldap/servers/plugins/chainingdb/cb_unbind.c
+++ b/ldap/servers/plugins/chainingdb/cb_unbind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
int
diff --git a/ldap/servers/plugins/chainingdb/cb_utils.c b/ldap/servers/plugins/chainingdb/cb_utils.c
index b851b6f5..128c2adc 100644
--- a/ldap/servers/plugins/chainingdb/cb_utils.c
+++ b/ldap/servers/plugins/chainingdb/cb_utils.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
/* return the rootdn configured in the server */
diff --git a/ldap/servers/plugins/chainingdb/cbdllmain.c b/ldap/servers/plugins/chainingdb/cbdllmain.c
index d38e7175..77c840b2 100644
--- a/ldap/servers/plugins/chainingdb/cbdllmain.c
+++ b/ldap/servers/plugins/chainingdb/cbdllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "cb.h"
#ifdef _WIN32
diff --git a/ldap/servers/plugins/collation/collate.c b/ldap/servers/plugins/collation/collate.c
index 25da89f3..e7e8195d 100644
--- a/ldap/servers/plugins/collation/collate.c
+++ b/ldap/servers/plugins/collation/collate.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* collate.c - implementation of indexing, using a Collation */
#include "collate.h"
diff --git a/ldap/servers/plugins/collation/collate.h b/ldap/servers/plugins/collation/collate.h
index fd66eee9..0f5110ef 100644
--- a/ldap/servers/plugins/collation/collate.h
+++ b/ldap/servers/plugins/collation/collate.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _COLLATE_H_
#define _COLLATE_H_
diff --git a/ldap/servers/plugins/collation/config.c b/ldap/servers/plugins/collation/config.c
index 4eb96f31..3a155dcd 100644
--- a/ldap/servers/plugins/collation/config.c
+++ b/ldap/servers/plugins/collation/config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "collate.h"
#include "config.h"
#include <stdio.h>
diff --git a/ldap/servers/plugins/collation/config.h b/ldap/servers/plugins/collation/config.h
index 8189355d..b57a8373 100644
--- a/ldap/servers/plugins/collation/config.h
+++ b/ldap/servers/plugins/collation/config.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _COLL_CONFIG_H_
#define _COLL_CONFIG_H_
diff --git a/ldap/servers/plugins/collation/debug.c b/ldap/servers/plugins/collation/debug.c
index 2ef9a984..fb648553 100644
--- a/ldap/servers/plugins/collation/debug.c
+++ b/ldap/servers/plugins/collation/debug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifdef _WIN32
int *module_ldap_debug = 0;
diff --git a/ldap/servers/plugins/collation/dllmain.c b/ldap/servers/plugins/collation/dllmain.c
index 0bbb5a9a..cc3d016f 100644
--- a/ldap/servers/plugins/collation/dllmain.c
+++ b/ldap/servers/plugins/collation/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for collation DLL
*/
diff --git a/ldap/servers/plugins/collation/orfilter.c b/ldap/servers/plugins/collation/orfilter.c
index b70974cd..9e072626 100644
--- a/ldap/servers/plugins/collation/orfilter.c
+++ b/ldap/servers/plugins/collation/orfilter.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* orfilter.c - implementation of ordering rule filter */
#include <ldap.h> /* LDAP_UTF8INC */
diff --git a/ldap/servers/plugins/collation/orfilter.h b/ldap/servers/plugins/collation/orfilter.h
index 8a7d0f49..bfff55f0 100644
--- a/ldap/servers/plugins/collation/orfilter.h
+++ b/ldap/servers/plugins/collation/orfilter.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _ORFILTER_H_
#define _ORFILTER_H_
diff --git a/ldap/servers/plugins/cos/cos.c b/ldap/servers/plugins/cos/cos.c
index cebb5acf..aa1c2ffc 100644
--- a/ldap/servers/plugins/cos/cos.c
+++ b/ldap/servers/plugins/cos/cos.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include "portable.h"
diff --git a/ldap/servers/plugins/cos/cos_cache.c b/ldap/servers/plugins/cos/cos_cache.c
index 7ec98443..9eac62a1 100644
--- a/ldap/servers/plugins/cos/cos_cache.c
+++ b/ldap/servers/plugins/cos/cos_cache.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
The cos cache keeps in memory all of
the data related to cos. This allows
diff --git a/ldap/servers/plugins/cos/cos_cache.h b/ldap/servers/plugins/cos/cos_cache.h
index 4c29f409..5e6105f5 100644
--- a/ldap/servers/plugins/cos/cos_cache.h
+++ b/ldap/servers/plugins/cos/cos_cache.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#if !defined( _COS_CACHE_H )
#define _COS_CACHE_H
diff --git a/ldap/servers/plugins/cos/dllmain.c b/ldap/servers/plugins/cos/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/cos/dllmain.c
+++ b/ldap/servers/plugins/cos/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/distrib/distrib.c b/ldap/servers/plugins/distrib/distrib.c
index f62dbe18..a9908aee 100644
--- a/ldap/servers/plugins/distrib/distrib.c
+++ b/ldap/servers/plugins/distrib/distrib.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <ctype.h>
#include <string.h>
#include "slapi-plugin.h"
diff --git a/ldap/servers/plugins/distrib/dllmain.c b/ldap/servers/plugins/distrib/dllmain.c
index 59d9a33a..32715ff5 100644
--- a/ldap/servers/plugins/distrib/dllmain.c
+++ b/ldap/servers/plugins/distrib/dllmain.c
@@ -34,7 +34,12 @@
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
- * --- END COPYRIGHT BLOCK --- */
+ * --- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics
*/
diff --git a/ldap/servers/plugins/http/dllmain.c b/ldap/servers/plugins/http/dllmain.c
index 3eb6ff94..9bf3c1b7 100644
--- a/ldap/servers/plugins/http/dllmain.c
+++ b/ldap/servers/plugins/http/dllmain.c
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/http/http_client.c b/ldap/servers/plugins/http/http_client.c
index 7a5afd54..814e8d1f 100644
--- a/ldap/servers/plugins/http/http_client.c
+++ b/ldap/servers/plugins/http/http_client.c
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/**
* Simple Http Client API broker plugin
*/
diff --git a/ldap/servers/plugins/http/http_client.h b/ldap/servers/plugins/http/http_client.h
index a717003f..832a28b4 100644
--- a/ldap/servers/plugins/http/http_client.h
+++ b/ldap/servers/plugins/http/http_client.h
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _HTTP_CLIENT_H_
#define _HTTP_CLIENT_H_
diff --git a/ldap/servers/plugins/http/http_impl.c b/ldap/servers/plugins/http/http_impl.c
index ee4f7ab3..708a8579 100644
--- a/ldap/servers/plugins/http/http_impl.c
+++ b/ldap/servers/plugins/http/http_impl.c
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/**
* Implementation of a Simple HTTP Client
*/
diff --git a/ldap/servers/plugins/http/http_impl.h b/ldap/servers/plugins/http/http_impl.h
index 10bb86cb..fef2a7b5 100644
--- a/ldap/servers/plugins/http/http_impl.h
+++ b/ldap/servers/plugins/http/http_impl.h
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef HTTP_IMPL_H__
#define HTTP_IMPL_H__
diff --git a/ldap/servers/plugins/pam_passthru/pam_passthru.h b/ldap/servers/plugins/pam_passthru/pam_passthru.h
index 19e93b22..1f6dccba 100644
--- a/ldap/servers/plugins/pam_passthru/pam_passthru.h
+++ b/ldap/servers/plugins/pam_passthru/pam_passthru.h
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* pam_passthru.h - Pass Through Authentication shared definitions
*
diff --git a/ldap/servers/plugins/pam_passthru/pam_ptconfig.c b/ldap/servers/plugins/pam_passthru/pam_ptconfig.c
index 296307ee..4528802b 100644
--- a/ldap/servers/plugins/pam_passthru/pam_ptconfig.c
+++ b/ldap/servers/plugins/pam_passthru/pam_ptconfig.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptconfig.c - configuration-related code for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/pam_passthru/pam_ptdebug.c b/ldap/servers/plugins/pam_passthru/pam_ptdebug.c
index 832dcc8e..d72967a0 100644
--- a/ldap/servers/plugins/pam_passthru/pam_ptdebug.c
+++ b/ldap/servers/plugins/pam_passthru/pam_ptdebug.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* pam_ptdebug.c - debugging-related code for PAM Pass Through Authentication
*
diff --git a/ldap/servers/plugins/pam_passthru/pam_ptdllmain.c b/ldap/servers/plugins/pam_passthru/pam_ptdllmain.c
index 96f55624..6948a1fa 100644
--- a/ldap/servers/plugins/pam_passthru/pam_ptdllmain.c
+++ b/ldap/servers/plugins/pam_passthru/pam_ptdllmain.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "ldap.h"
#include "lber.h"
#include "passthru.h"
diff --git a/ldap/servers/plugins/pam_passthru/pam_ptimpl.c b/ldap/servers/plugins/pam_passthru/pam_ptimpl.c
index 1a3ce4a6..93aa9207 100644
--- a/ldap/servers/plugins/pam_passthru/pam_ptimpl.c
+++ b/ldap/servers/plugins/pam_passthru/pam_ptimpl.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <security/pam_appl.h>
#include "pam_passthru.h"
diff --git a/ldap/servers/plugins/pam_passthru/pam_ptpreop.c b/ldap/servers/plugins/pam_passthru/pam_ptpreop.c
index 40a425ce..b27d4dc3 100644
--- a/ldap/servers/plugins/pam_passthru/pam_ptpreop.c
+++ b/ldap/servers/plugins/pam_passthru/pam_ptpreop.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* pamptpreop.c - bind pre-operation plugin for Pass Through Authentication to PAM
*
diff --git a/ldap/servers/plugins/passthru/passthru.h b/ldap/servers/plugins/passthru/passthru.h
index 7ff32bdc..6f5a5435 100644
--- a/ldap/servers/plugins/passthru/passthru.h
+++ b/ldap/servers/plugins/passthru/passthru.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* passthru.h - Pass Through Authentication shared definitions
*
diff --git a/ldap/servers/plugins/passthru/ptbind.c b/ldap/servers/plugins/passthru/ptbind.c
index f3841c05..2cce0b57 100644
--- a/ldap/servers/plugins/passthru/ptbind.c
+++ b/ldap/servers/plugins/passthru/ptbind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptbind.c - LDAP bind-related code for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/passthru/ptconfig.c b/ldap/servers/plugins/passthru/ptconfig.c
index 3d7b3727..d25f363d 100644
--- a/ldap/servers/plugins/passthru/ptconfig.c
+++ b/ldap/servers/plugins/passthru/ptconfig.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptconfig.c - configuration-related code for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/passthru/ptconn.c b/ldap/servers/plugins/passthru/ptconn.c
index 6d5cb979..f8b39c3e 100644
--- a/ldap/servers/plugins/passthru/ptconn.c
+++ b/ldap/servers/plugins/passthru/ptconn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptconn.c - LDAP connection-related code for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/passthru/ptdebug.c b/ldap/servers/plugins/passthru/ptdebug.c
index e603cf4c..f504aed2 100644
--- a/ldap/servers/plugins/passthru/ptdebug.c
+++ b/ldap/servers/plugins/passthru/ptdebug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptdebug.c - debugging-related code for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/passthru/ptdllmain.c b/ldap/servers/plugins/passthru/ptdllmain.c
index fe8b45e4..f3a7e88a 100644
--- a/ldap/servers/plugins/passthru/ptdllmain.c
+++ b/ldap/servers/plugins/passthru/ptdllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "ldap.h"
#include "lber.h"
#include "passthru.h"
diff --git a/ldap/servers/plugins/passthru/ptpreop.c b/ldap/servers/plugins/passthru/ptpreop.c
index df61f9a6..86d83fb7 100644
--- a/ldap/servers/plugins/passthru/ptpreop.c
+++ b/ldap/servers/plugins/passthru/ptpreop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptpreop.c - bind pre-operation plugin for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/passthru/ptutil.c b/ldap/servers/plugins/passthru/ptutil.c
index 82708dde..399e5b5a 100644
--- a/ldap/servers/plugins/passthru/ptutil.c
+++ b/ldap/servers/plugins/passthru/ptutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ptutil.c - utility functions for Pass Through Authentication
*
diff --git a/ldap/servers/plugins/presence/dllmain.c b/ldap/servers/plugins/presence/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/presence/dllmain.c
+++ b/ldap/servers/plugins/presence/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/presence/presence.c b/ldap/servers/plugins/presence/presence.c
index 41ebcbee..9a6e97b8 100644
--- a/ldap/servers/plugins/presence/presence.c
+++ b/ldap/servers/plugins/presence/presence.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/**
* IM Presence plug-in
*/
diff --git a/ldap/servers/plugins/pwdstorage/clear_pwd.c b/ldap/servers/plugins/pwdstorage/clear_pwd.c
index e12adc33..a2e5920a 100644
--- a/ldap/servers/plugins/pwdstorage/clear_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/clear_pwd.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/plugins/pwdstorage/crypt_pwd.c b/ldap/servers/plugins/pwdstorage/crypt_pwd.c
index 36d49d99..aa7ac3a7 100644
--- a/ldap/servers/plugins/pwdstorage/crypt_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/crypt_pwd.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/plugins/pwdstorage/dllmain.c b/ldap/servers/plugins/pwdstorage/dllmain.c
index d09ab45f..7c9faa1b 100644
--- a/ldap/servers/plugins/pwdstorage/dllmain.c
+++ b/ldap/servers/plugins/pwdstorage/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for LIBPWDSTORAGE DLL
diff --git a/ldap/servers/plugins/pwdstorage/md5.h b/ldap/servers/plugins/pwdstorage/md5.h
index e34525ef..09128ab7 100644
--- a/ldap/servers/plugins/pwdstorage/md5.h
+++ b/ldap/servers/plugins/pwdstorage/md5.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* MD5 algorithm used by Netscape Mail Server
*/
diff --git a/ldap/servers/plugins/pwdstorage/md5_pwd.c b/ldap/servers/plugins/pwdstorage/md5_pwd.c
index 410e9c5a..4e9dcb55 100644
--- a/ldap/servers/plugins/pwdstorage/md5_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/md5_pwd.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* MD5 Password Encryption/Comparison routines by David Irving, Fred Brittain,
* and Aaron Gagnon -- University of Maine Farmington
diff --git a/ldap/servers/plugins/pwdstorage/md5c.c b/ldap/servers/plugins/pwdstorage/md5c.c
index 5d7c7ef2..467cbad7 100644
--- a/ldap/servers/plugins/pwdstorage/md5c.c
+++ b/ldap/servers/plugins/pwdstorage/md5c.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* MD5 code taken from reference implementation published in RFC 1321 */
/* MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm */
diff --git a/ldap/servers/plugins/pwdstorage/ns-mta-md5_pwd.c b/ldap/servers/plugins/pwdstorage/ns-mta-md5_pwd.c
index cf3b8b90..467766fb 100644
--- a/ldap/servers/plugins/pwdstorage/ns-mta-md5_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/ns-mta-md5_pwd.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/plugins/pwdstorage/pwd_init.c b/ldap/servers/plugins/pwdstorage/pwd_init.c
index e55d3096..b5104b5b 100644
--- a/ldap/servers/plugins/pwdstorage/pwd_init.c
+++ b/ldap/servers/plugins/pwdstorage/pwd_init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
diff --git a/ldap/servers/plugins/pwdstorage/pwdstorage.h b/ldap/servers/plugins/pwdstorage/pwdstorage.h
index 83e885de..ccd0deee 100644
--- a/ldap/servers/plugins/pwdstorage/pwdstorage.h
+++ b/ldap/servers/plugins/pwdstorage/pwdstorage.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PWDSTORAGE_H
#define _PWDSTORAGE_H
diff --git a/ldap/servers/plugins/pwdstorage/sha_pwd.c b/ldap/servers/plugins/pwdstorage/sha_pwd.c
index f1389f69..ea0afdd0 100644
--- a/ldap/servers/plugins/pwdstorage/sha_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/sha_pwd.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/plugins/pwdstorage/ssha_pwd.c b/ldap/servers/plugins/pwdstorage/ssha_pwd.c
index b20e5012..048eee42 100644
--- a/ldap/servers/plugins/pwdstorage/ssha_pwd.c
+++ b/ldap/servers/plugins/pwdstorage/ssha_pwd.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/plugins/referint/dllmain.c b/ldap/servers/plugins/referint/dllmain.c
index 957a8032..ca2ab1c7 100644
--- a/ldap/servers/plugins/referint/dllmain.c
+++ b/ldap/servers/plugins/referint/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/referint/referint.c b/ldap/servers/plugins/referint/referint.c
index ba7f2712..0d8fbbf3 100644
--- a/ldap/servers/plugins/referint/referint.c
+++ b/ldap/servers/plugins/referint/referint.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include "portable.h"
diff --git a/ldap/servers/plugins/replication/cl4.h b/ldap/servers/plugins/replication/cl4.h
index 8f985730..bc56f699 100644
--- a/ldap/servers/plugins/replication/cl4.h
+++ b/ldap/servers/plugins/replication/cl4.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl4.h - global declarations used by the 4.0 style changelog module
*/
diff --git a/ldap/servers/plugins/replication/cl4_api.c b/ldap/servers/plugins/replication/cl4_api.c
index 029d2612..07bf7b24 100644
--- a/ldap/servers/plugins/replication/cl4_api.c
+++ b/ldap/servers/plugins/replication/cl4_api.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl4_api.h - implementation of the minimal interface to 4.0 changelog necessary to
link 4.0 changelog to 5.0 replication
*/
diff --git a/ldap/servers/plugins/replication/cl4_api.h b/ldap/servers/plugins/replication/cl4_api.h
index 4796e8c8..f5949272 100644
--- a/ldap/servers/plugins/replication/cl4_api.h
+++ b/ldap/servers/plugins/replication/cl4_api.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl4_api.h - minimal interface to 4.0 changelog necessary to link 4.0 changelog
to 5.0 replication
*/
diff --git a/ldap/servers/plugins/replication/cl4_init.c b/ldap/servers/plugins/replication/cl4_init.c
index 4b686efb..87cd1477 100644
--- a/ldap/servers/plugins/replication/cl4_init.c
+++ b/ldap/servers/plugins/replication/cl4_init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* cl4_init.c - implments initialization/cleanup functions for
4.0 style changelog
*/
diff --git a/ldap/servers/plugins/replication/cl5.h b/ldap/servers/plugins/replication/cl5.h
index 0eeb5dbb..1b959730 100644
--- a/ldap/servers/plugins/replication/cl5.h
+++ b/ldap/servers/plugins/replication/cl5.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl5.h - changelog related function */
#ifndef CL5_H
diff --git a/ldap/servers/plugins/replication/cl5_api.c b/ldap/servers/plugins/replication/cl5_api.c
index 1cf2ae2c..6be30db3 100644
--- a/ldap/servers/plugins/replication/cl5_api.c
+++ b/ldap/servers/plugins/replication/cl5_api.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* cl5_api.c - implementation of 5.0 style changelog API */
#include <errno.h>
diff --git a/ldap/servers/plugins/replication/cl5_api.h b/ldap/servers/plugins/replication/cl5_api.h
index edda3a05..66cb0f47 100644
--- a/ldap/servers/plugins/replication/cl5_api.h
+++ b/ldap/servers/plugins/replication/cl5_api.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl5_api.h - interface to 5.0 changelog */
#ifndef CL5_API_H
diff --git a/ldap/servers/plugins/replication/cl5_clcache.c b/ldap/servers/plugins/replication/cl5_clcache.c
index d22f8dd6..746dfd09 100644
--- a/ldap/servers/plugins/replication/cl5_clcache.c
+++ b/ldap/servers/plugins/replication/cl5_clcache.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "errno.h" /* ENOMEM, EVAL used by Berkeley DB */
#include "db.h" /* Berkeley DB */
#include "cl5.h" /* changelog5Config */
diff --git a/ldap/servers/plugins/replication/cl5_clcache.h b/ldap/servers/plugins/replication/cl5_clcache.h
index 7aebcb9e..8549fb75 100644
--- a/ldap/servers/plugins/replication/cl5_clcache.h
+++ b/ldap/servers/plugins/replication/cl5_clcache.h
@@ -39,6 +39,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "db.h"
#include "slapi-private.h"
diff --git a/ldap/servers/plugins/replication/cl5_config.c b/ldap/servers/plugins/replication/cl5_config.c
index 6f4282a5..86f354c4 100644
--- a/ldap/servers/plugins/replication/cl5_config.c
+++ b/ldap/servers/plugins/replication/cl5_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl5_config.c - functions to process changelog configuration
*/
diff --git a/ldap/servers/plugins/replication/cl5_init.c b/ldap/servers/plugins/replication/cl5_init.c
index 058406ab..ed5aaf6d 100644
--- a/ldap/servers/plugins/replication/cl5_init.c
+++ b/ldap/servers/plugins/replication/cl5_init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* cl5_init.c - implments initialization/cleanup functions for
4.0 style changelog
*/
diff --git a/ldap/servers/plugins/replication/cl5_test.c b/ldap/servers/plugins/replication/cl5_test.c
index 30fe16ea..91cdef2d 100644
--- a/ldap/servers/plugins/replication/cl5_test.c
+++ b/ldap/servers/plugins/replication/cl5_test.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl5_test.c - changelog test cases */
#include "cl5_test.h"
#include "slapi-plugin.h"
diff --git a/ldap/servers/plugins/replication/cl5_test.h b/ldap/servers/plugins/replication/cl5_test.h
index d6e31503..c0574178 100644
--- a/ldap/servers/plugins/replication/cl5_test.h
+++ b/ldap/servers/plugins/replication/cl5_test.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cl5_test.h - changelog test cases */
typedef enum
diff --git a/ldap/servers/plugins/replication/csnpl.c b/ldap/servers/plugins/replication/csnpl.c
index 362618a7..0f0d24bf 100644
--- a/ldap/servers/plugins/replication/csnpl.c
+++ b/ldap/servers/plugins/replication/csnpl.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "csnpl.h"
#include "llist.h"
#include "repl_shared.h"
diff --git a/ldap/servers/plugins/replication/csnpl.h b/ldap/servers/plugins/replication/csnpl.h
index fd3c08fd..affb51d6 100644
--- a/ldap/servers/plugins/replication/csnpl.h
+++ b/ldap/servers/plugins/replication/csnpl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* csnpl.h - interface for csn pending list */
#ifndef CSNPL_H
diff --git a/ldap/servers/plugins/replication/dllmain.c b/ldap/servers/plugins/replication/dllmain.c
index 1e39219b..940b3e95 100644
--- a/ldap/servers/plugins/replication/dllmain.c
+++ b/ldap/servers/plugins/replication/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for LIBREPLICATION DLL
diff --git a/ldap/servers/plugins/replication/legacy_consumer.c b/ldap/servers/plugins/replication/legacy_consumer.c
index 0530e2e3..97745278 100644
--- a/ldap/servers/plugins/replication/legacy_consumer.c
+++ b/ldap/servers/plugins/replication/legacy_consumer.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* repl_legacy_consumer.c - support for legacy replication (consumer-side)
*
diff --git a/ldap/servers/plugins/replication/llist.c b/ldap/servers/plugins/replication/llist.c
index d7206c33..bd0bc1d6 100644
--- a/ldap/servers/plugins/replication/llist.c
+++ b/ldap/servers/plugins/replication/llist.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* llist.c - single link list implementation */
#include <string.h>
diff --git a/ldap/servers/plugins/replication/llist.h b/ldap/servers/plugins/replication/llist.h
index 7896ceaa..8d31bb98 100644
--- a/ldap/servers/plugins/replication/llist.h
+++ b/ldap/servers/plugins/replication/llist.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* llist.h - single link list interface */
#ifndef LLIST_H
diff --git a/ldap/servers/plugins/replication/profile.c b/ldap/servers/plugins/replication/profile.c
index 615540cf..7a99fd49 100644
--- a/ldap/servers/plugins/replication/profile.c
+++ b/ldap/servers/plugins/replication/profile.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl.h b/ldap/servers/plugins/replication/repl.h
index 561c1c67..05ea0929 100644
--- a/ldap/servers/plugins/replication/repl.h
+++ b/ldap/servers/plugins/replication/repl.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _REPL_H_
#define _REPL_H_
diff --git a/ldap/servers/plugins/replication/repl5.h b/ldap/servers/plugins/replication/repl5.h
index dfebcddd..304f1267 100644
--- a/ldap/servers/plugins/replication/repl5.h
+++ b/ldap/servers/plugins/replication/repl5.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5.h - 5.0 replication header */
#ifndef _REPL5_H_
diff --git a/ldap/servers/plugins/replication/repl5_agmt.c b/ldap/servers/plugins/replication/repl5_agmt.c
index d73fbf50..3a4be762 100644
--- a/ldap/servers/plugins/replication/repl5_agmt.c
+++ b/ldap/servers/plugins/replication/repl5_agmt.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_agmt.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_agmtlist.c b/ldap/servers/plugins/replication/repl5_agmtlist.c
index 9afe486b..6793903c 100644
--- a/ldap/servers/plugins/replication/repl5_agmtlist.c
+++ b/ldap/servers/plugins/replication/repl5_agmtlist.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_agmtlist.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_backoff.c b/ldap/servers/plugins/replication/repl5_backoff.c
index dd7a22e6..7315d829 100644
--- a/ldap/servers/plugins/replication/repl5_backoff.c
+++ b/ldap/servers/plugins/replication/repl5_backoff.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_backoff.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_connection.c b/ldap/servers/plugins/replication/repl5_connection.c
index cdcb038c..f03fd4b6 100644
--- a/ldap/servers/plugins/replication/repl5_connection.c
+++ b/ldap/servers/plugins/replication/repl5_connection.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_connection.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_inc_protocol.c b/ldap/servers/plugins/replication/repl5_inc_protocol.c
index ba7c507b..5b151dfb 100644
--- a/ldap/servers/plugins/replication/repl5_inc_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_inc_protocol.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_inc_protocol.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_init.c b/ldap/servers/plugins/replication/repl5_init.c
index 35312292..36af798b 100644
--- a/ldap/servers/plugins/replication/repl5_init.c
+++ b/ldap/servers/plugins/replication/repl5_init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
repl5_init.c - plugin initialization functions
*/
diff --git a/ldap/servers/plugins/replication/repl5_mtnode_ext.c b/ldap/servers/plugins/replication/repl5_mtnode_ext.c
index 262e39b5..3043624d 100644
--- a/ldap/servers/plugins/replication/repl5_mtnode_ext.c
+++ b/ldap/servers/plugins/replication/repl5_mtnode_ext.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_replica.c */
#include "repl.h" /* ONREPL - this is bad */
diff --git a/ldap/servers/plugins/replication/repl5_plugins.c b/ldap/servers/plugins/replication/repl5_plugins.c
index 8bedeedc..a1b146aa 100644
--- a/ldap/servers/plugins/replication/repl5_plugins.c
+++ b/ldap/servers/plugins/replication/repl5_plugins.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* repl5_consumer.c - consumer plugin functions
*/
diff --git a/ldap/servers/plugins/replication/repl5_prot_private.h b/ldap/servers/plugins/replication/repl5_prot_private.h
index dc02ab28..f9be9de5 100644
--- a/ldap/servers/plugins/replication/repl5_prot_private.h
+++ b/ldap/servers/plugins/replication/repl5_prot_private.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _REPL5_PROT_PRIVATE_H_
#define _REPL5_PROT_PRIVATE_H_
diff --git a/ldap/servers/plugins/replication/repl5_protocol.c b/ldap/servers/plugins/replication/repl5_protocol.c
index 0a52ffd7..8fdf8125 100644
--- a/ldap/servers/plugins/replication/repl5_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_protocol.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_protocol.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_protocol_util.c b/ldap/servers/plugins/replication/repl5_protocol_util.c
index 4b19bc87..944e23e8 100644
--- a/ldap/servers/plugins/replication/repl5_protocol_util.c
+++ b/ldap/servers/plugins/replication/repl5_protocol_util.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_protocol_util.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_replica.c b/ldap/servers/plugins/replication/repl5_replica.c
index ae2e9f86..f6cc9e40 100644
--- a/ldap/servers/plugins/replication/repl5_replica.c
+++ b/ldap/servers/plugins/replication/repl5_replica.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_replica.c */
#include "slapi-plugin.h"
diff --git a/ldap/servers/plugins/replication/repl5_replica_config.c b/ldap/servers/plugins/replication/repl5_replica_config.c
index 34ce7313..a575f1f3 100644
--- a/ldap/servers/plugins/replication/repl5_replica_config.c
+++ b/ldap/servers/plugins/replication/repl5_replica_config.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_replica_config.c - replica configuration over ldap */
#include <ctype.h> /* for isdigit() */
#include "repl.h" /* ONREPL - this is bad */
diff --git a/ldap/servers/plugins/replication/repl5_replica_dnhash.c b/ldap/servers/plugins/replication/repl5_replica_dnhash.c
index cb0bfbc8..e536fe88 100644
--- a/ldap/servers/plugins/replication/repl5_replica_dnhash.c
+++ b/ldap/servers/plugins/replication/repl5_replica_dnhash.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_replica_dnhash.c */
#include "repl5.h"
diff --git a/ldap/servers/plugins/replication/repl5_replica_hash.c b/ldap/servers/plugins/replication/repl5_replica_hash.c
index 159d1671..9eeff36c 100644
--- a/ldap/servers/plugins/replication/repl5_replica_hash.c
+++ b/ldap/servers/plugins/replication/repl5_replica_hash.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_replica_hash.c */
#include "repl5.h"
diff --git a/ldap/servers/plugins/replication/repl5_replsupplier.c b/ldap/servers/plugins/replication/repl5_replsupplier.c
index 438f2455..c257b6c0 100644
--- a/ldap/servers/plugins/replication/repl5_replsupplier.c
+++ b/ldap/servers/plugins/replication/repl5_replsupplier.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_replsupplier.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_ruv.c b/ldap/servers/plugins/replication/repl5_ruv.c
index 6ece3676..f71032a9 100644
--- a/ldap/servers/plugins/replication/repl5_ruv.c
+++ b/ldap/servers/plugins/replication/repl5_ruv.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_ruv.c - implementation of replica update vector */
/*
* The replica update vector is stored in the nsds50ruv attribute. The LDIF
diff --git a/ldap/servers/plugins/replication/repl5_ruv.h b/ldap/servers/plugins/replication/repl5_ruv.h
index aa4b04db..688f9442 100644
--- a/ldap/servers/plugins/replication/repl5_ruv.h
+++ b/ldap/servers/plugins/replication/repl5_ruv.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_ruv.h - interface for replica update vector */
#ifndef REPL5_RUV
diff --git a/ldap/servers/plugins/replication/repl5_schedule.c b/ldap/servers/plugins/replication/repl5_schedule.c
index 318fabc5..419e3ece 100644
--- a/ldap/servers/plugins/replication/repl5_schedule.c
+++ b/ldap/servers/plugins/replication/repl5_schedule.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl5_schedule.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_tot_protocol.c b/ldap/servers/plugins/replication/repl5_tot_protocol.c
index 971fe079..c260afba 100644
--- a/ldap/servers/plugins/replication/repl5_tot_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_tot_protocol.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_tot_protocol.c */
/*
diff --git a/ldap/servers/plugins/replication/repl5_total.c b/ldap/servers/plugins/replication/repl5_total.c
index dc309a21..ac6c1b8a 100644
--- a/ldap/servers/plugins/replication/repl5_total.c
+++ b/ldap/servers/plugins/replication/repl5_total.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
repl5_total.c - code that implements a total replica update.
diff --git a/ldap/servers/plugins/replication/repl5_updatedn_list.c b/ldap/servers/plugins/replication/repl5_updatedn_list.c
index 08731ce2..3d897198 100644
--- a/ldap/servers/plugins/replication/repl5_updatedn_list.c
+++ b/ldap/servers/plugins/replication/repl5_updatedn_list.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_updatedn_list.c */
/*
diff --git a/ldap/servers/plugins/replication/repl_add.c b/ldap/servers/plugins/replication/repl_add.c
index 240711fb..4d9aafa5 100644
--- a/ldap/servers/plugins/replication/repl_add.c
+++ b/ldap/servers/plugins/replication/repl_add.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_bind.c b/ldap/servers/plugins/replication/repl_bind.c
index 5e1ec717..a7eb78cc 100644
--- a/ldap/servers/plugins/replication/repl_bind.c
+++ b/ldap/servers/plugins/replication/repl_bind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
diff --git a/ldap/servers/plugins/replication/repl_compare.c b/ldap/servers/plugins/replication/repl_compare.c
index 6cc71b8f..0771511c 100644
--- a/ldap/servers/plugins/replication/repl_compare.c
+++ b/ldap/servers/plugins/replication/repl_compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_connext.c b/ldap/servers/plugins/replication/repl_connext.c
index 736c51d1..3b216b65 100644
--- a/ldap/servers/plugins/replication/repl_connext.c
+++ b/ldap/servers/plugins/replication/repl_connext.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl_connext.c - replication extension to the Connection object
*/
diff --git a/ldap/servers/plugins/replication/repl_controls.c b/ldap/servers/plugins/replication/repl_controls.c
index 73c7a107..07a20cfe 100644
--- a/ldap/servers/plugins/replication/repl_controls.c
+++ b/ldap/servers/plugins/replication/repl_controls.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slapi-plugin.h"
#include "repl5.h"
#include "repl.h" /* For LDAP_CONTROL_REPL_MODRDN_EXTRAMODS */
diff --git a/ldap/servers/plugins/replication/repl_delete.c b/ldap/servers/plugins/replication/repl_delete.c
index c5ae737a..90ec60fc 100644
--- a/ldap/servers/plugins/replication/repl_delete.c
+++ b/ldap/servers/plugins/replication/repl_delete.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_entry.c b/ldap/servers/plugins/replication/repl_entry.c
index 55b934ff..a6536685 100644
--- a/ldap/servers/plugins/replication/repl_entry.c
+++ b/ldap/servers/plugins/replication/repl_entry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_ext.c b/ldap/servers/plugins/replication/repl_ext.c
index 5b2ceec5..533ccee8 100644
--- a/ldap/servers/plugins/replication/repl_ext.c
+++ b/ldap/servers/plugins/replication/repl_ext.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl_ext.c - manages operation extensions created by the
* replication system
*/
diff --git a/ldap/servers/plugins/replication/repl_extop.c b/ldap/servers/plugins/replication/repl_extop.c
index d82994fa..91bbd647 100644
--- a/ldap/servers/plugins/replication/repl_extop.c
+++ b/ldap/servers/plugins/replication/repl_extop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_globals.c b/ldap/servers/plugins/replication/repl_globals.c
index dffd37df..48329fc4 100644
--- a/ldap/servers/plugins/replication/repl_globals.c
+++ b/ldap/servers/plugins/replication/repl_globals.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "nspr.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_helper.c b/ldap/servers/plugins/replication/repl_helper.c
index 8edbccbd..a43fc84a 100644
--- a/ldap/servers/plugins/replication/repl_helper.c
+++ b/ldap/servers/plugins/replication/repl_helper.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "repl_helper.h"
ReplGenericList *
diff --git a/ldap/servers/plugins/replication/repl_helper.h b/ldap/servers/plugins/replication/repl_helper.h
index 0c50c0ac..4b64470c 100644
--- a/ldap/servers/plugins/replication/repl_helper.h
+++ b/ldap/servers/plugins/replication/repl_helper.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* repl_helper.h - Helper functions (should actually be repl_utils.h)
*
diff --git a/ldap/servers/plugins/replication/repl_init.c b/ldap/servers/plugins/replication/repl_init.c
index 11bc270d..83cc04f6 100644
--- a/ldap/servers/plugins/replication/repl_init.c
+++ b/ldap/servers/plugins/replication/repl_init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Add an entry like the following to dse.ldif to enable this plugin:
diff --git a/ldap/servers/plugins/replication/repl_modify.c b/ldap/servers/plugins/replication/repl_modify.c
index 8caccb78..8ededa03 100644
--- a/ldap/servers/plugins/replication/repl_modify.c
+++ b/ldap/servers/plugins/replication/repl_modify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_modrdn.c b/ldap/servers/plugins/replication/repl_modrdn.c
index d5fb116e..9881d7d0 100644
--- a/ldap/servers/plugins/replication/repl_modrdn.c
+++ b/ldap/servers/plugins/replication/repl_modrdn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_monitor.c b/ldap/servers/plugins/replication/repl_monitor.c
index af8f5a08..297277d2 100644
--- a/ldap/servers/plugins/replication/repl_monitor.c
+++ b/ldap/servers/plugins/replication/repl_monitor.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_objset.c b/ldap/servers/plugins/replication/repl_objset.c
index 519cb69a..300cfee0 100644
--- a/ldap/servers/plugins/replication/repl_objset.c
+++ b/ldap/servers/plugins/replication/repl_objset.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl_objset.c */
/*
* Support for lifetime management of sets of objects.
diff --git a/ldap/servers/plugins/replication/repl_objset.h b/ldap/servers/plugins/replication/repl_objset.h
index 530a450a..7b16f716 100644
--- a/ldap/servers/plugins/replication/repl_objset.h
+++ b/ldap/servers/plugins/replication/repl_objset.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
*/
diff --git a/ldap/servers/plugins/replication/repl_opext.c b/ldap/servers/plugins/replication/repl_opext.c
index 27385a86..ccd35ea2 100644
--- a/ldap/servers/plugins/replication/repl_opext.c
+++ b/ldap/servers/plugins/replication/repl_opext.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* supplier_operation_extension.c - replication extension to the Operation object
*/
diff --git a/ldap/servers/plugins/replication/repl_ops.c b/ldap/servers/plugins/replication/repl_ops.c
index 1e2ebf7b..6cafc2d0 100644
--- a/ldap/servers/plugins/replication/repl_ops.c
+++ b/ldap/servers/plugins/replication/repl_ops.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slapi-plugin.h"
#include "repl.h"
#include "repl5.h"
diff --git a/ldap/servers/plugins/replication/repl_rootdse.c b/ldap/servers/plugins/replication/repl_rootdse.c
index 6d185b07..8d604046 100644
--- a/ldap/servers/plugins/replication/repl_rootdse.c
+++ b/ldap/servers/plugins/replication/repl_rootdse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <string.h>
diff --git a/ldap/servers/plugins/replication/repl_search.c b/ldap/servers/plugins/replication/repl_search.c
index 6c55f3ad..c6758936 100644
--- a/ldap/servers/plugins/replication/repl_search.c
+++ b/ldap/servers/plugins/replication/repl_search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slapi-plugin.h"
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/repl_shared.h b/ldap/servers/plugins/replication/repl_shared.h
index 5cc5dfc2..957fdc76 100644
--- a/ldap/servers/plugins/replication/repl_shared.h
+++ b/ldap/servers/plugins/replication/repl_shared.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* repl_shared.h - definitions shared between 4.0 and 5.0 replication
modules
*/
diff --git a/ldap/servers/plugins/replication/replutil.c b/ldap/servers/plugins/replication/replutil.c
index b479bd0e..c86b14b9 100644
--- a/ldap/servers/plugins/replication/replutil.c
+++ b/ldap/servers/plugins/replication/replutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* replutil.c - various utility functions common to all replication methods.
diff --git a/ldap/servers/plugins/replication/tests/dnp_sim.c b/ldap/servers/plugins/replication/tests/dnp_sim.c
index b1c85dba..96a61024 100644
--- a/ldap/servers/plugins/replication/tests/dnp_sim.c
+++ b/ldap/servers/plugins/replication/tests/dnp_sim.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dnp_simulation.c - this file varifies the correctness of dnp algorithm
by generating random sequences of operations, applying
the algorithm and outputing the result
diff --git a/ldap/servers/plugins/replication/tests/dnp_sim2.c b/ldap/servers/plugins/replication/tests/dnp_sim2.c
index 042aae5e..38fc68d6 100644
--- a/ldap/servers/plugins/replication/tests/dnp_sim2.c
+++ b/ldap/servers/plugins/replication/tests/dnp_sim2.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dnp_simulation.c - this file varifies the correctness of dnp algorithm
by generating random sequences of operations, applying
the algorithm and outputing the result
diff --git a/ldap/servers/plugins/replication/tests/dnp_sim3.c b/ldap/servers/plugins/replication/tests/dnp_sim3.c
index c26953fe..da5156d2 100644
--- a/ldap/servers/plugins/replication/tests/dnp_sim3.c
+++ b/ldap/servers/plugins/replication/tests/dnp_sim3.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dnp_simulation.c - this file varifies the correctness of dnp algorithm
by generating random sequences of operations, applying
the algorithm and outputing the result
diff --git a/ldap/servers/plugins/replication/urp.c b/ldap/servers/plugins/replication/urp.c
index 08100b31..9f03851c 100644
--- a/ldap/servers/plugins/replication/urp.c
+++ b/ldap/servers/plugins/replication/urp.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* urp.c - Update Resolution Procedures
*/
diff --git a/ldap/servers/plugins/replication/urp.h b/ldap/servers/plugins/replication/urp.h
index 06b89129..ff4d51a0 100644
--- a/ldap/servers/plugins/replication/urp.h
+++ b/ldap/servers/plugins/replication/urp.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
*/
diff --git a/ldap/servers/plugins/replication/urp_glue.c b/ldap/servers/plugins/replication/urp_glue.c
index a8fac3fa..6bceb5a0 100644
--- a/ldap/servers/plugins/replication/urp_glue.c
+++ b/ldap/servers/plugins/replication/urp_glue.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* urp_glue.c - Update Resolution Procedures - Glue
diff --git a/ldap/servers/plugins/replication/urp_tombstone.c b/ldap/servers/plugins/replication/urp_tombstone.c
index f33e863d..e183cb12 100644
--- a/ldap/servers/plugins/replication/urp_tombstone.c
+++ b/ldap/servers/plugins/replication/urp_tombstone.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* urp_tombstone.c - Update Resolution Procedures - Tombstones
diff --git a/ldap/servers/plugins/replication/windows_connection.c b/ldap/servers/plugins/replication/windows_connection.c
index fd9f56a6..8ef08419 100644
--- a/ldap/servers/plugins/replication/windows_connection.c
+++ b/ldap/servers/plugins/replication/windows_connection.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_connection.c */
/*
diff --git a/ldap/servers/plugins/replication/windows_inc_protocol.c b/ldap/servers/plugins/replication/windows_inc_protocol.c
index 2418f25d..ae69eaf6 100644
--- a/ldap/servers/plugins/replication/windows_inc_protocol.c
+++ b/ldap/servers/plugins/replication/windows_inc_protocol.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_inc_protocol.c */
/*
diff --git a/ldap/servers/plugins/replication/windows_private.c b/ldap/servers/plugins/replication/windows_private.c
index 935379f3..340047f7 100644
--- a/ldap/servers/plugins/replication/windows_private.c
+++ b/ldap/servers/plugins/replication/windows_private.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* windows_private.c */
#include "repl.h"
diff --git a/ldap/servers/plugins/replication/windows_prot_private.h b/ldap/servers/plugins/replication/windows_prot_private.h
index c01e8cb0..68a9a5d9 100644
--- a/ldap/servers/plugins/replication/windows_prot_private.h
+++ b/ldap/servers/plugins/replication/windows_prot_private.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "repl5_prot_private.h"
#ifndef _WINDOWS_PROT_PRIVATE_H_
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
index cc409c6d..e0a89b6b 100644
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* repl5_protocol_util.c */
/*
diff --git a/ldap/servers/plugins/replication/windows_tot_protocol.c b/ldap/servers/plugins/replication/windows_tot_protocol.c
index ba34dd93..0ecef159 100644
--- a/ldap/servers/plugins/replication/windows_tot_protocol.c
+++ b/ldap/servers/plugins/replication/windows_tot_protocol.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* windows_tot_protocol.c */
/*
diff --git a/ldap/servers/plugins/replication/windowsrepl.h b/ldap/servers/plugins/replication/windowsrepl.h
index 791f9baf..1417b3ff 100644
--- a/ldap/servers/plugins/replication/windowsrepl.h
+++ b/ldap/servers/plugins/replication/windowsrepl.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* windows_private.c */
typedef struct windowsprivate Dirsync_Private;
Dirsync_Private* windows_private_new();
diff --git a/ldap/servers/plugins/retrocl/dllmain.c b/ldap/servers/plugins/retrocl/dllmain.c
index 4de09ab2..1a089b2c 100644
--- a/ldap/servers/plugins/retrocl/dllmain.c
+++ b/ldap/servers/plugins/retrocl/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for LIBRETROCL DLL
*/
diff --git a/ldap/servers/plugins/retrocl/linktest.c b/ldap/servers/plugins/retrocl/linktest.c
index e0e14595..e705cd35 100644
--- a/ldap/servers/plugins/retrocl/linktest.c
+++ b/ldap/servers/plugins/retrocl/linktest.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* This is a test program. Not linked into the shared library */
#include "retrocl.h"
diff --git a/ldap/servers/plugins/retrocl/retrocl.c b/ldap/servers/plugins/retrocl/retrocl.c
index 77040f5d..bda04a65 100644
--- a/ldap/servers/plugins/retrocl/retrocl.c
+++ b/ldap/servers/plugins/retrocl/retrocl.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Requires that create_instance.c have added a plugin entry similar to:
diff --git a/ldap/servers/plugins/retrocl/retrocl.h b/ldap/servers/plugins/retrocl/retrocl.h
index dfa71f59..4833d257 100644
--- a/ldap/servers/plugins/retrocl/retrocl.h
+++ b/ldap/servers/plugins/retrocl/retrocl.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _H_RETROCL
#define _H_RETROCL 1
diff --git a/ldap/servers/plugins/retrocl/retrocl_cn.c b/ldap/servers/plugins/retrocl/retrocl_cn.c
index 6978073a..9145bd91 100644
--- a/ldap/servers/plugins/retrocl/retrocl_cn.c
+++ b/ldap/servers/plugins/retrocl/retrocl_cn.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "retrocl.h"
static changeNumber retrocl_internal_cn = 0;
diff --git a/ldap/servers/plugins/retrocl/retrocl_create.c b/ldap/servers/plugins/retrocl/retrocl_create.c
index 5f70e6a6..e4de45de 100644
--- a/ldap/servers/plugins/retrocl/retrocl_create.c
+++ b/ldap/servers/plugins/retrocl/retrocl_create.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "retrocl.h"
/*
diff --git a/ldap/servers/plugins/retrocl/retrocl_po.c b/ldap/servers/plugins/retrocl/retrocl_po.c
index d8cce37f..a069fd9f 100644
--- a/ldap/servers/plugins/retrocl/retrocl_po.c
+++ b/ldap/servers/plugins/retrocl/retrocl_po.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "retrocl.h"
static int
diff --git a/ldap/servers/plugins/retrocl/retrocl_rootdse.c b/ldap/servers/plugins/retrocl/retrocl_rootdse.c
index d7d23e14..c2e6e03e 100644
--- a/ldap/servers/plugins/retrocl/retrocl_rootdse.c
+++ b/ldap/servers/plugins/retrocl/retrocl_rootdse.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "retrocl.h"
diff --git a/ldap/servers/plugins/retrocl/retrocl_trim.c b/ldap/servers/plugins/retrocl/retrocl_trim.c
index a57d53aa..e8723b09 100644
--- a/ldap/servers/plugins/retrocl/retrocl_trim.c
+++ b/ldap/servers/plugins/retrocl/retrocl_trim.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "retrocl.h"
diff --git a/ldap/servers/plugins/rever/des.c b/ldap/servers/plugins/rever/des.c
index 049f2a01..014c0876 100644
--- a/ldap/servers/plugins/rever/des.c
+++ b/ldap/servers/plugins/rever/des.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* from /usr/project/iplanet/ws/ds5.ke/ns/svrcore/pkcs7/tstarchive.c */
#include <string.h>
diff --git a/ldap/servers/plugins/rever/dllmain.c b/ldap/servers/plugins/rever/dllmain.c
index 7b029408..50afe628 100644
--- a/ldap/servers/plugins/rever/dllmain.c
+++ b/ldap/servers/plugins/rever/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for LIBPWDSTORAGE DLL
diff --git a/ldap/servers/plugins/rever/rever.c b/ldap/servers/plugins/rever/rever.c
index 89d9b16f..ac01058c 100644
--- a/ldap/servers/plugins/rever/rever.c
+++ b/ldap/servers/plugins/rever/rever.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
diff --git a/ldap/servers/plugins/rever/rever.h b/ldap/servers/plugins/rever/rever.h
index e4204b36..ac303fd1 100644
--- a/ldap/servers/plugins/rever/rever.h
+++ b/ldap/servers/plugins/rever/rever.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _REVER_H
#define _REVER_H
diff --git a/ldap/servers/plugins/roles/dllmain.c b/ldap/servers/plugins/roles/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/roles/dllmain.c
+++ b/ldap/servers/plugins/roles/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/roles/roles_cache.c b/ldap/servers/plugins/roles/roles_cache.c
index 3b5e82cf..9aa00191 100644
--- a/ldap/servers/plugins/roles/roles_cache.c
+++ b/ldap/servers/plugins/roles/roles_cache.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
diff --git a/ldap/servers/plugins/roles/roles_cache.h b/ldap/servers/plugins/roles/roles_cache.h
index f3f6dd87..c4049d9a 100644
--- a/ldap/servers/plugins/roles/roles_cache.h
+++ b/ldap/servers/plugins/roles/roles_cache.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#if !defined( _ROLES_CACHE_H )
#define SLAPD_ROLES_INTERFACE "roles-slapd"
diff --git a/ldap/servers/plugins/roles/roles_plugin.c b/ldap/servers/plugins/roles/roles_plugin.c
index 5a04c6c1..e5d8f4ca 100644
--- a/ldap/servers/plugins/roles/roles_plugin.c
+++ b/ldap/servers/plugins/roles/roles_plugin.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
Code to implement server roles features
*/
diff --git a/ldap/servers/plugins/shared/plugin-utils.h b/ldap/servers/plugins/shared/plugin-utils.h
index af36b33d..12884551 100644
--- a/ldap/servers/plugins/shared/plugin-utils.h
+++ b/ldap/servers/plugins/shared/plugin-utils.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
**
** NAME
diff --git a/ldap/servers/plugins/shared/utils.c b/ldap/servers/plugins/shared/utils.c
index ec1f7c1d..f3e1ec42 100644
--- a/ldap/servers/plugins/shared/utils.c
+++ b/ldap/servers/plugins/shared/utils.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
** NAME
** utils.c
diff --git a/ldap/servers/plugins/statechange/dllmain.c b/ldap/servers/plugins/statechange/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/statechange/dllmain.c
+++ b/ldap/servers/plugins/statechange/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/statechange/statechange.c b/ldap/servers/plugins/statechange/statechange.c
index 755f66e7..9bc1db91 100644
--- a/ldap/servers/plugins/statechange/statechange.c
+++ b/ldap/servers/plugins/statechange/statechange.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* plugin which provides a callback mechanism for state changes in the DS */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/bin.c b/ldap/servers/plugins/syntaxes/bin.c
index 911f1cfa..1ae58a9f 100644
--- a/ldap/servers/plugins/syntaxes/bin.c
+++ b/ldap/servers/plugins/syntaxes/bin.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* bin.c - bin syntax routines */
/*
diff --git a/ldap/servers/plugins/syntaxes/ces.c b/ldap/servers/plugins/syntaxes/ces.c
index 16f3987a..a7ffee5a 100644
--- a/ldap/servers/plugins/syntaxes/ces.c
+++ b/ldap/servers/plugins/syntaxes/ces.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ces.c - caseexactstring syntax routines */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/cis.c b/ldap/servers/plugins/syntaxes/cis.c
index db34cd00..b3ca4712 100644
--- a/ldap/servers/plugins/syntaxes/cis.c
+++ b/ldap/servers/plugins/syntaxes/cis.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cis.c - caseignorestring syntax routines */
/*
diff --git a/ldap/servers/plugins/syntaxes/debug.c b/ldap/servers/plugins/syntaxes/debug.c
index 0902654b..c887875a 100644
--- a/ldap/servers/plugins/syntaxes/debug.c
+++ b/ldap/servers/plugins/syntaxes/debug.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* debug.c - syntax debug stuff */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/dllmain.c b/ldap/servers/plugins/syntaxes/dllmain.c
index cde0a541..d1555c30 100644
--- a/ldap/servers/plugins/syntaxes/dllmain.c
+++ b/ldap/servers/plugins/syntaxes/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for syntax-plugin DLL
*/
diff --git a/ldap/servers/plugins/syntaxes/dn.c b/ldap/servers/plugins/syntaxes/dn.c
index 13a27267..c7d34758 100644
--- a/ldap/servers/plugins/syntaxes/dn.c
+++ b/ldap/servers/plugins/syntaxes/dn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dn.c - dn syntax routines */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/int.c b/ldap/servers/plugins/syntaxes/int.c
index a01143a4..300d4137 100644
--- a/ldap/servers/plugins/syntaxes/int.c
+++ b/ldap/servers/plugins/syntaxes/int.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* int.c - integer syntax routines */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/phonetic.c b/ldap/servers/plugins/syntaxes/phonetic.c
index 027dd9f0..a974ebda 100644
--- a/ldap/servers/plugins/syntaxes/phonetic.c
+++ b/ldap/servers/plugins/syntaxes/phonetic.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* phonetic.c - routines to do phonetic matching */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/sicis.c b/ldap/servers/plugins/syntaxes/sicis.c
index 91f477bf..fe7188cd 100644
--- a/ldap/servers/plugins/syntaxes/sicis.c
+++ b/ldap/servers/plugins/syntaxes/sicis.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* sicis.c - space insensitive string syntax routines.
* these strings are also case insensitive.
diff --git a/ldap/servers/plugins/syntaxes/string.c b/ldap/servers/plugins/syntaxes/string.c
index 759e9a1e..a2f28e12 100644
--- a/ldap/servers/plugins/syntaxes/string.c
+++ b/ldap/servers/plugins/syntaxes/string.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* string.c - common string syntax routines */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/syntax.h b/ldap/servers/plugins/syntaxes/syntax.h
index d0ab4224..be27a79f 100644
--- a/ldap/servers/plugins/syntaxes/syntax.h
+++ b/ldap/servers/plugins/syntaxes/syntax.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* syntax.h - string syntax definitions */
#ifndef _LIBSYNTAX_H_
diff --git a/ldap/servers/plugins/syntaxes/tel.c b/ldap/servers/plugins/syntaxes/tel.c
index c229fc30..b67fb78b 100644
--- a/ldap/servers/plugins/syntaxes/tel.c
+++ b/ldap/servers/plugins/syntaxes/tel.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* tel.c - telephonenumber syntax routines */
#include <stdio.h>
diff --git a/ldap/servers/plugins/syntaxes/value.c b/ldap/servers/plugins/syntaxes/value.c
index 317ebb57..c4e88599 100644
--- a/ldap/servers/plugins/syntaxes/value.c
+++ b/ldap/servers/plugins/syntaxes/value.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* value.c - routines for dealing with values */
#include <stdio.h>
diff --git a/ldap/servers/plugins/uiduniq/7bit.c b/ldap/servers/plugins/uiduniq/7bit.c
index fb340fa3..09b380b6 100644
--- a/ldap/servers/plugins/uiduniq/7bit.c
+++ b/ldap/servers/plugins/uiduniq/7bit.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* 7bit.c
*
diff --git a/ldap/servers/plugins/uiduniq/uid.c b/ldap/servers/plugins/uiduniq/uid.c
index b1f0d1da..cbe178dd 100644
--- a/ldap/servers/plugins/uiduniq/uid.c
+++ b/ldap/servers/plugins/uiduniq/uid.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* uid.c
*
diff --git a/ldap/servers/plugins/vattrsp_template/dllmain.c b/ldap/servers/plugins/vattrsp_template/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/vattrsp_template/dllmain.c
+++ b/ldap/servers/plugins/vattrsp_template/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/vattrsp_template/vattrsp.c b/ldap/servers/plugins/vattrsp_template/vattrsp.c
index bb67cfa3..b58e4e04 100644
--- a/ldap/servers/plugins/vattrsp_template/vattrsp.c
+++ b/ldap/servers/plugins/vattrsp_template/vattrsp.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include "portable.h"
diff --git a/ldap/servers/plugins/views/dllmain.c b/ldap/servers/plugins/views/dllmain.c
index 78d47523..1fb17e4e 100644
--- a/ldap/servers/plugins/views/dllmain.c
+++ b/ldap/servers/plugins/views/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/plugins/views/views.c b/ldap/servers/plugins/views/views.c
index a52f3ded..3a6d83bd 100644
--- a/ldap/servers/plugins/views/views.c
+++ b/ldap/servers/plugins/views/views.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* plugin which implements directory server views */
#include <stdio.h>
diff --git a/ldap/servers/slapd/abandon.c b/ldap/servers/slapd/abandon.c
index 84f12827..4ceb54f7 100644
--- a/ldap/servers/slapd/abandon.c
+++ b/ldap/servers/slapd/abandon.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* abandon.c - decode and handle an ldap abandon operation */
/*
diff --git a/ldap/servers/slapd/add.c b/ldap/servers/slapd/add.c
index 6663a622..12797037 100644
--- a/ldap/servers/slapd/add.c
+++ b/ldap/servers/slapd/add.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/agtmmap.c b/ldap/servers/slapd/agtmmap.c
index cc950f5e..180abb0a 100644
--- a/ldap/servers/slapd/agtmmap.c
+++ b/ldap/servers/slapd/agtmmap.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/********************************************************************
*
* agtmmap.c: Memory Map interface for SNMP sub-agent for
diff --git a/ldap/servers/slapd/agtmmap.h b/ldap/servers/slapd/agtmmap.h
index e5488d6d..4ee660a8 100644
--- a/ldap/servers/slapd/agtmmap.h
+++ b/ldap/servers/slapd/agtmmap.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/********************************************************************
*
* agtmmap.h: Memory Map interface for SNMP sub-agent for
diff --git a/ldap/servers/slapd/apibroker.c b/ldap/servers/slapd/apibroker.c
index 14c38649..2987716b 100644
--- a/ldap/servers/slapd/apibroker.c
+++ b/ldap/servers/slapd/apibroker.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ABAPI Broker */
/* Pete Rowley */
diff --git a/ldap/servers/slapd/attr.c b/ldap/servers/slapd/attr.c
index 60dea0a2..7cd5a2f5 100644
--- a/ldap/servers/slapd/attr.c
+++ b/ldap/servers/slapd/attr.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* attr.c - routines for dealing with attributes */
#include <stdio.h>
diff --git a/ldap/servers/slapd/attrlist.c b/ldap/servers/slapd/attrlist.c
index d622a409..6946c0cc 100644
--- a/ldap/servers/slapd/attrlist.c
+++ b/ldap/servers/slapd/attrlist.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
void
diff --git a/ldap/servers/slapd/attrsyntax.c b/ldap/servers/slapd/attrsyntax.c
index 9d2293d2..51661d79 100644
--- a/ldap/servers/slapd/attrsyntax.c
+++ b/ldap/servers/slapd/attrsyntax.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* attrsyntax.c */
#include "slap.h"
diff --git a/ldap/servers/slapd/auditlog.c b/ldap/servers/slapd/auditlog.c
index 2a079b2a..d524415b 100644
--- a/ldap/servers/slapd/auditlog.c
+++ b/ldap/servers/slapd/auditlog.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
/*
diff --git a/ldap/servers/slapd/auth.c b/ldap/servers/slapd/auth.c
index 9f0a614a..023c5f85 100644
--- a/ldap/servers/slapd/auth.c
+++ b/ldap/servers/slapd/auth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdlib.h> /* getenv */
#include <string.h> /* memcpy */
#include <ldaputil/ldaputil.h> /* LDAPU_SUCCESS, ldapu_VTable_set */
diff --git a/ldap/servers/slapd/auth.h b/ldap/servers/slapd/auth.h
index 4106b5a2..9aa9b9a7 100644
--- a/ldap/servers/slapd/auth.h
+++ b/ldap/servers/slapd/auth.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _SLDAPD_AUTH_H_
#define _SLDAPD_AUTH_H_
diff --git a/ldap/servers/slapd/ava.c b/ldap/servers/slapd/ava.c
index 7ea35f0a..ea11033f 100644
--- a/ldap/servers/slapd/ava.c
+++ b/ldap/servers/slapd/ava.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ava.c - routines for dealing with attribute value assertions */
#include <stdio.h>
diff --git a/ldap/servers/slapd/back-ldbm/ancestorid.c b/ldap/servers/slapd/back-ldbm/ancestorid.c
index e40388e1..0ac082b9 100644
--- a/ldap/servers/slapd/back-ldbm/ancestorid.c
+++ b/ldap/servers/slapd/back-ldbm/ancestorid.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "back-ldbm.h"
static char *sourcefile = "ancestorid";
diff --git a/ldap/servers/slapd/back-ldbm/archive.c b/ldap/servers/slapd/back-ldbm/archive.c
index 46b7a5b4..06e2d16b 100644
--- a/ldap/servers/slapd/back-ldbm/archive.c
+++ b/ldap/servers/slapd/back-ldbm/archive.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* archive.c - ldap ldbm back-end archive and restore entry points */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/attrcrypt.h b/ldap/servers/slapd/back-ldbm/attrcrypt.h
index f7df35ab..ef6208f0 100644
--- a/ldap/servers/slapd/back-ldbm/attrcrypt.h
+++ b/ldap/servers/slapd/back-ldbm/attrcrypt.h
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Private tructures and #defines used in the attribute encryption code. */
#ifndef _ATTRCRYPT_H_
diff --git a/ldap/servers/slapd/back-ldbm/back-ldbm.h b/ldap/servers/slapd/back-ldbm/back-ldbm.h
index 8b6271e2..cafaf60a 100644
--- a/ldap/servers/slapd/back-ldbm/back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/back-ldbm.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* back-ldbm.h - ldap ldbm back-end header file */
#ifndef _BACK_LDBM_H_
diff --git a/ldap/servers/slapd/back-ldbm/backentry.c b/ldap/servers/slapd/back-ldbm/backentry.c
index 362c3ec9..1e91f6fa 100644
--- a/ldap/servers/slapd/back-ldbm/backentry.c
+++ b/ldap/servers/slapd/back-ldbm/backentry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* backentry.c - wrapper routines to deal with entries */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/cache.c b/ldap/servers/slapd/back-ldbm/cache.c
index 1f099897..45c252b3 100644
--- a/ldap/servers/slapd/back-ldbm/cache.c
+++ b/ldap/servers/slapd/back-ldbm/cache.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cache.c - routines to maintain an in-core cache of entries */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/cleanup.c b/ldap/servers/slapd/back-ldbm/cleanup.c
index c729397c..f49015e0 100644
--- a/ldap/servers/slapd/back-ldbm/cleanup.c
+++ b/ldap/servers/slapd/back-ldbm/cleanup.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* cleanup.c - cleans up ldbm backend */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/close.c b/ldap/servers/slapd/back-ldbm/close.c
index e01cc3c3..1ab7253d 100644
--- a/ldap/servers/slapd/back-ldbm/close.c
+++ b/ldap/servers/slapd/back-ldbm/close.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* close.c - close ldbm backend */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/dbhelp.c b/ldap/servers/slapd/back-ldbm/dbhelp.c
index 29f2d284..9efd7642 100644
--- a/ldap/servers/slapd/back-ldbm/dbhelp.c
+++ b/ldap/servers/slapd/back-ldbm/dbhelp.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* File for helper functions related to BerkeleyDB.
* This exists because dblayer.c is 5k+ lines long,
diff --git a/ldap/servers/slapd/back-ldbm/dblayer.c b/ldap/servers/slapd/back-ldbm/dblayer.c
index 562a7cf9..ed871791 100644
--- a/ldap/servers/slapd/back-ldbm/dblayer.c
+++ b/ldap/servers/slapd/back-ldbm/dblayer.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
Abstraction layer which sits between db2.0 and
higher layers in the directory server---typically
diff --git a/ldap/servers/slapd/back-ldbm/dblayer.h b/ldap/servers/slapd/back-ldbm/dblayer.h
index 4c4e1aaa..9b774b6a 100644
--- a/ldap/servers/slapd/back-ldbm/dblayer.h
+++ b/ldap/servers/slapd/back-ldbm/dblayer.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Structures and #defines used in the dblayer. */
#ifndef _DBLAYER_H_
diff --git a/ldap/servers/slapd/back-ldbm/dbsize.c b/ldap/servers/slapd/back-ldbm/dbsize.c
index 01af727d..43defe12 100644
--- a/ldap/servers/slapd/back-ldbm/dbsize.c
+++ b/ldap/servers/slapd/back-ldbm/dbsize.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dbsize.c - ldbm backend routine which returns the size (in bytes)
* that the database occupies on disk.
diff --git a/ldap/servers/slapd/back-ldbm/dbtest.c b/ldap/servers/slapd/back-ldbm/dbtest.c
index 5ec13173..222d0ff6 100644
--- a/ldap/servers/slapd/back-ldbm/dbtest.c
+++ b/ldap/servers/slapd/back-ldbm/dbtest.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dbtest.c - ldbm database test program */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/dbversion.c b/ldap/servers/slapd/back-ldbm/dbversion.c
index 017e5e88..ba2dd9e8 100644
--- a/ldap/servers/slapd/back-ldbm/dbversion.c
+++ b/ldap/servers/slapd/back-ldbm/dbversion.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/dllmain.c b/ldap/servers/slapd/back-ldbm/dllmain.c
index 47d3ce56..056ccc31 100644
--- a/ldap/servers/slapd/back-ldbm/dllmain.c
+++ b/ldap/servers/slapd/back-ldbm/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for BACK-LDBM DLL
*/
diff --git a/ldap/servers/slapd/back-ldbm/dn2entry.c b/ldap/servers/slapd/back-ldbm/dn2entry.c
index ce9df447..58b5ad1b 100644
--- a/ldap/servers/slapd/back-ldbm/dn2entry.c
+++ b/ldap/servers/slapd/back-ldbm/dn2entry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dn2entry.c - given a dn return an entry */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/entrystore.c b/ldap/servers/slapd/back-ldbm/entrystore.c
index 6d71a38f..1afcb7b9 100644
--- a/ldap/servers/slapd/back-ldbm/entrystore.c
+++ b/ldap/servers/slapd/back-ldbm/entrystore.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* entrystore.c --- functions dealing with entries and their storage.
Put computed attributes, compression etc here */
diff --git a/ldap/servers/slapd/back-ldbm/filterindex.c b/ldap/servers/slapd/back-ldbm/filterindex.c
index 5693a5ea..050fc243 100644
--- a/ldap/servers/slapd/back-ldbm/filterindex.c
+++ b/ldap/servers/slapd/back-ldbm/filterindex.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* filterindex.c - generate the list of candidate entries from a filter */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/findentry.c b/ldap/servers/slapd/back-ldbm/findentry.c
index b676c098..cc051bf4 100644
--- a/ldap/servers/slapd/back-ldbm/findentry.c
+++ b/ldap/servers/slapd/back-ldbm/findentry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* findentry.c - find a database entry, obeying referrals (& aliases?) */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/haschildren.c b/ldap/servers/slapd/back-ldbm/haschildren.c
index 2cee1eb3..a02f54aa 100644
--- a/ldap/servers/slapd/back-ldbm/haschildren.c
+++ b/ldap/servers/slapd/back-ldbm/haschildren.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* haschildren.c - tell if an entry has kids or not */
diff --git a/ldap/servers/slapd/back-ldbm/id2entry.c b/ldap/servers/slapd/back-ldbm/id2entry.c
index f4b89c55..3fa60282 100644
--- a/ldap/servers/slapd/back-ldbm/id2entry.c
+++ b/ldap/servers/slapd/back-ldbm/id2entry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* id2entry.c - routines to deal with the id2entry index */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/idl.c b/ldap/servers/slapd/back-ldbm/idl.c
index e2c86d86..b84923db 100644
--- a/ldap/servers/slapd/back-ldbm/idl.c
+++ b/ldap/servers/slapd/back-ldbm/idl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* idl.c - ldap id list handling routines */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/idl_common.c b/ldap/servers/slapd/back-ldbm/idl_common.c
index 4dd54589..db58aa8f 100644
--- a/ldap/servers/slapd/back-ldbm/idl_common.c
+++ b/ldap/servers/slapd/back-ldbm/idl_common.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Common IDL code, used in both old and new indexing schemes */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/idl_new.c b/ldap/servers/slapd/back-ldbm/idl_new.c
index 15c022a7..bf855f13 100644
--- a/ldap/servers/slapd/back-ldbm/idl_new.c
+++ b/ldap/servers/slapd/back-ldbm/idl_new.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* New IDL code for new indexing scheme */
/* Note to future editors:
diff --git a/ldap/servers/slapd/back-ldbm/idl_shim.c b/ldap/servers/slapd/back-ldbm/idl_shim.c
index 9f258e1d..10d8618b 100644
--- a/ldap/servers/slapd/back-ldbm/idl_shim.c
+++ b/ldap/servers/slapd/back-ldbm/idl_shim.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Shim which forwards IDL calls to the appropriate implementation */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/idlapi.h b/ldap/servers/slapd/back-ldbm/idlapi.h
index 129aec94..7dbb0f71 100644
--- a/ldap/servers/slapd/back-ldbm/idlapi.h
+++ b/ldap/servers/slapd/back-ldbm/idlapi.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _IDL_API_H_
#define _IDL_API_H_
diff --git a/ldap/servers/slapd/back-ldbm/import-merge.c b/ldap/servers/slapd/back-ldbm/import-merge.c
index bed6a9b6..690cd0c5 100644
--- a/ldap/servers/slapd/back-ldbm/import-merge.c
+++ b/ldap/servers/slapd/back-ldbm/import-merge.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* this is a bunch of routines for merging groups of db files together --
* currently it's only used for imports (when we import into several small
diff --git a/ldap/servers/slapd/back-ldbm/import-threads.c b/ldap/servers/slapd/back-ldbm/import-threads.c
index d4d7cc20..6d51a3b0 100644
--- a/ldap/servers/slapd/back-ldbm/import-threads.c
+++ b/ldap/servers/slapd/back-ldbm/import-threads.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* the threads that make up an import:
* producer (1)
diff --git a/ldap/servers/slapd/back-ldbm/import.c b/ldap/servers/slapd/back-ldbm/import.c
index 7d9ae285..6b107d12 100644
--- a/ldap/servers/slapd/back-ldbm/import.c
+++ b/ldap/servers/slapd/back-ldbm/import.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* the "new" ("deluxe") backend import code
*
diff --git a/ldap/servers/slapd/back-ldbm/import.h b/ldap/servers/slapd/back-ldbm/import.h
index 04b79855..f94004fd 100644
--- a/ldap/servers/slapd/back-ldbm/import.h
+++ b/ldap/servers/slapd/back-ldbm/import.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* structures & constants used for the import code
*/
diff --git a/ldap/servers/slapd/back-ldbm/index.c b/ldap/servers/slapd/back-ldbm/index.c
index e01a2780..ebd4d27d 100644
--- a/ldap/servers/slapd/back-ldbm/index.c
+++ b/ldap/servers/slapd/back-ldbm/index.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* index.c - routines for dealing with attribute indexes */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/init.c b/ldap/servers/slapd/back-ldbm/init.c
index 065e8f2a..66f6d97e 100644
--- a/ldap/servers/slapd/back-ldbm/init.c
+++ b/ldap/servers/slapd/back-ldbm/init.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* init.c - initialize ldbm backend */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/instance.c b/ldap/servers/slapd/back-ldbm/instance.c
index f2986808..c52bbf15 100644
--- a/ldap/servers/slapd/back-ldbm/instance.c
+++ b/ldap/servers/slapd/back-ldbm/instance.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "back-ldbm.h"
/* Forward declarations */
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_abandon.c b/ldap/servers/slapd/back-ldbm/ldbm_abandon.c
index 28669e3a..5dd64a9f 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_abandon.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_abandon.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* abandon.c - ldbm backend abandon routine */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_add.c b/ldap/servers/slapd/back-ldbm/ldbm_add.c
index c6d298a4..06ca4398 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_add.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_add.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* add.c - ldap ldbm back-end add routine */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attr.c b/ldap/servers/slapd/back-ldbm/ldbm_attr.c
index d6a3d169..8f1b04c3 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_attr.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_attr.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* attr.c - backend routines for dealing with attributes */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
index 626df177..5e1d998c 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* This file handles attribute encryption.
*/
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c
index 1a30cbb4..7195380e 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* This file handles configuration information that is specific
* to ldbm instance attribute encryption configuration.
*/
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_bind.c b/ldap/servers/slapd/back-ldbm/ldbm_bind.c
index ab62ffee..ded8480d 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_bind.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_bind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* bind.c - ldbm backend bind and unbind routines */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_compare.c b/ldap/servers/slapd/back-ldbm/ldbm_compare.c
index 354c008e..207252df 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_compare.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* compare.c - ldbm backend compare routine */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.c b/ldap/servers/slapd/back-ldbm/ldbm_config.c
index 08fb22ef..d9c298b4 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ldbm_config.c - Handles configuration information that is global to all ldbm instances. */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.h b/ldap/servers/slapd/back-ldbm/ldbm_config.h
index 6dd11e7d..7a2ea5be 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.h
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDBM_CONFIG_H_
#define _LDBM_CONFIG_H_
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_delete.c b/ldap/servers/slapd/back-ldbm/ldbm_delete.c
index f8c0bceb..f9e2520e 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_delete.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_delete.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* delete.c - ldbm backend delete routine */
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_index_config.c b/ldap/servers/slapd/back-ldbm/ldbm_index_config.c
index ac168701..df8e0dda 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_index_config.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_index_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* This file handles configuration information that is specific
* to ldbm instance indexes.
*/
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
index f71ca1d2..0616bc0f 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* This file handles configuration information that is specific
* to ldbm instances.
*/
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modify.c b/ldap/servers/slapd/back-ldbm/ldbm_modify.c
index bd8f8f98..470c40d5 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_modify.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_modify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* modify.c - ldbm backend modify routine */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
index 60aa5b42..099f2572 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* modrdn.c - ldbm backend modrdn routine */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_search.c b/ldap/servers/slapd/back-ldbm/ldbm_search.c
index 34a7aada..e2202e40 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_search.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* search.c - ldbm backend search function */
/* view with ts=4 */
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_unbind.c b/ldap/servers/slapd/back-ldbm/ldbm_unbind.c
index e5f72ae2..d7db6898 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_unbind.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_unbind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* unbind.c - handle an ldap unbind operation */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
index 51998ec3..e29439d7 100644
--- a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
+++ b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* ldif2ldbm.c
*
* common functions for import (old and new) and export
diff --git a/ldap/servers/slapd/back-ldbm/matchrule.c b/ldap/servers/slapd/back-ldbm/matchrule.c
index 8e7c9401..0734935f 100644
--- a/ldap/servers/slapd/back-ldbm/matchrule.c
+++ b/ldap/servers/slapd/back-ldbm/matchrule.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* matchrule.c */
diff --git a/ldap/servers/slapd/back-ldbm/misc.c b/ldap/servers/slapd/back-ldbm/misc.c
index 64e7a82d..3d637d2d 100644
--- a/ldap/servers/slapd/back-ldbm/misc.c
+++ b/ldap/servers/slapd/back-ldbm/misc.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* misc.c - backend misc routines */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/monitor.c b/ldap/servers/slapd/back-ldbm/monitor.c
index 0e96d333..17d8ac03 100644
--- a/ldap/servers/slapd/back-ldbm/monitor.c
+++ b/ldap/servers/slapd/back-ldbm/monitor.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* monitor.c - ldbm backend monitor function */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/nextid.c b/ldap/servers/slapd/back-ldbm/nextid.c
index 4671db96..a1cff1a8 100644
--- a/ldap/servers/slapd/back-ldbm/nextid.c
+++ b/ldap/servers/slapd/back-ldbm/nextid.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* id.c - keep track of the next id to be given out */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/parents.c b/ldap/servers/slapd/back-ldbm/parents.c
index 81980bbe..7e470241 100644
--- a/ldap/servers/slapd/back-ldbm/parents.c
+++ b/ldap/servers/slapd/back-ldbm/parents.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* parents.c - where the adults live */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/perfctrs.c b/ldap/servers/slapd/back-ldbm/perfctrs.c
index 6471b58a..be7450d2 100644
--- a/ldap/servers/slapd/back-ldbm/perfctrs.c
+++ b/ldap/servers/slapd/back-ldbm/perfctrs.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Database performance counters stuff */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/perfctrs.h b/ldap/servers/slapd/back-ldbm/perfctrs.h
index 99e58463..4b3dbc56 100644
--- a/ldap/servers/slapd/back-ldbm/perfctrs.h
+++ b/ldap/servers/slapd/back-ldbm/perfctrs.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Structure definition for performance data */
/* This stuff goes in shared memory, so make sure the packing is consistent */
diff --git a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
index 87873ab9..017914b0 100644
--- a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PROTO_BACK_LDBM
#define _PROTO_BACK_LDBM
diff --git a/ldap/servers/slapd/back-ldbm/rmdb.c b/ldap/servers/slapd/back-ldbm/rmdb.c
index 36ee6b3a..e2bc981c 100644
--- a/ldap/servers/slapd/back-ldbm/rmdb.c
+++ b/ldap/servers/slapd/back-ldbm/rmdb.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* rmdb.c - ldbm backend routine which deletes an entire database.
* This routine is not exposed in the public SLAPI interface. It
diff --git a/ldap/servers/slapd/back-ldbm/seq.c b/ldap/servers/slapd/back-ldbm/seq.c
index 9fb667f2..449bcf83 100644
--- a/ldap/servers/slapd/back-ldbm/seq.c
+++ b/ldap/servers/slapd/back-ldbm/seq.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* seq.c - ldbm backend sequential access function */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/sort.c b/ldap/servers/slapd/back-ldbm/sort.c
index 9b77917f..411e56d3 100644
--- a/ldap/servers/slapd/back-ldbm/sort.c
+++ b/ldap/servers/slapd/back-ldbm/sort.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Code to implement result sorting */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/start.c b/ldap/servers/slapd/back-ldbm/start.c
index 8066325d..aedd1a12 100644
--- a/ldap/servers/slapd/back-ldbm/start.c
+++ b/ldap/servers/slapd/back-ldbm/start.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* start.c
*/
diff --git a/ldap/servers/slapd/back-ldbm/tools/index_dump/index_dump.c b/ldap/servers/slapd/back-ldbm/tools/index_dump/index_dump.c
index 7cf5b76f..5ae58ef7 100644
--- a/ldap/servers/slapd/back-ldbm/tools/index_dump/index_dump.c
+++ b/ldap/servers/slapd/back-ldbm/tools/index_dump/index_dump.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
void configure __P((char *));
DB_ENV *db_init __P((char *));
void pheader __P((DB *, int));
diff --git a/ldap/servers/slapd/back-ldbm/uniqueid2entry.c b/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
index e37b0dd0..954331e1 100644
--- a/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
+++ b/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* uniqueid2entry.c - given a dn return an entry */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/upgrade.c b/ldap/servers/slapd/back-ldbm/upgrade.c
index 3b669e1b..c291b661 100644
--- a/ldap/servers/slapd/back-ldbm/upgrade.c
+++ b/ldap/servers/slapd/back-ldbm/upgrade.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* upgrade.c --- upgrade from a previous version of the database */
#include "back-ldbm.h"
diff --git a/ldap/servers/slapd/back-ldbm/vlv.c b/ldap/servers/slapd/back-ldbm/vlv.c
index 9d3f26fc..8d0980f9 100644
--- a/ldap/servers/slapd/back-ldbm/vlv.c
+++ b/ldap/servers/slapd/back-ldbm/vlv.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* vlv.c */
diff --git a/ldap/servers/slapd/back-ldbm/vlv_key.c b/ldap/servers/slapd/back-ldbm/vlv_key.c
index 80524867..96092616 100644
--- a/ldap/servers/slapd/back-ldbm/vlv_key.c
+++ b/ldap/servers/slapd/back-ldbm/vlv_key.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* vlv_key.c */
diff --git a/ldap/servers/slapd/back-ldbm/vlv_key.h b/ldap/servers/slapd/back-ldbm/vlv_key.h
index f9892403..dc2d41ad 100644
--- a/ldap/servers/slapd/back-ldbm/vlv_key.h
+++ b/ldap/servers/slapd/back-ldbm/vlv_key.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* vlv_key.h */
diff --git a/ldap/servers/slapd/back-ldbm/vlv_srch.c b/ldap/servers/slapd/back-ldbm/vlv_srch.c
index 892b9125..0c673c21 100644
--- a/ldap/servers/slapd/back-ldbm/vlv_srch.c
+++ b/ldap/servers/slapd/back-ldbm/vlv_srch.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* vlv_srch.c */
diff --git a/ldap/servers/slapd/back-ldbm/vlv_srch.h b/ldap/servers/slapd/back-ldbm/vlv_srch.h
index 87f1b0b7..71d8f27a 100644
--- a/ldap/servers/slapd/back-ldbm/vlv_srch.h
+++ b/ldap/servers/slapd/back-ldbm/vlv_srch.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* vlv_srch.h */
diff --git a/ldap/servers/slapd/back-ldif/add.c b/ldap/servers/slapd/back-ldif/add.c
index f78c11dd..231f5483 100644
--- a/ldap/servers/slapd/back-ldif/add.c
+++ b/ldap/servers/slapd/back-ldif/add.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: add.c
*
diff --git a/ldap/servers/slapd/back-ldif/back-ldif.h b/ldap/servers/slapd/back-ldif/back-ldif.h
index 1c9b4d47..56bbcfd6 100644
--- a/ldap/servers/slapd/back-ldif/back-ldif.h
+++ b/ldap/servers/slapd/back-ldif/back-ldif.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: back-ldif.h
*
diff --git a/ldap/servers/slapd/back-ldif/bind.c b/ldap/servers/slapd/back-ldif/bind.c
index c370adaa..f897230d 100644
--- a/ldap/servers/slapd/back-ldif/bind.c
+++ b/ldap/servers/slapd/back-ldif/bind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: bind.c
*
diff --git a/ldap/servers/slapd/back-ldif/close.c b/ldap/servers/slapd/back-ldif/close.c
index 037caa52..379ea96f 100644
--- a/ldap/servers/slapd/back-ldif/close.c
+++ b/ldap/servers/slapd/back-ldif/close.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: close.c
*
diff --git a/ldap/servers/slapd/back-ldif/compare.c b/ldap/servers/slapd/back-ldif/compare.c
index c3748db2..9d8269fe 100644
--- a/ldap/servers/slapd/back-ldif/compare.c
+++ b/ldap/servers/slapd/back-ldif/compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: compare.c
*
diff --git a/ldap/servers/slapd/back-ldif/config.c b/ldap/servers/slapd/back-ldif/config.c
index 593738ff..03516713 100644
--- a/ldap/servers/slapd/back-ldif/config.c
+++ b/ldap/servers/slapd/back-ldif/config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: config.c
*
diff --git a/ldap/servers/slapd/back-ldif/delete.c b/ldap/servers/slapd/back-ldif/delete.c
index c0f89453..39243157 100644
--- a/ldap/servers/slapd/back-ldif/delete.c
+++ b/ldap/servers/slapd/back-ldif/delete.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: delete.c
*
diff --git a/ldap/servers/slapd/back-ldif/dllmain.c b/ldap/servers/slapd/back-ldif/dllmain.c
index 29942f99..6b3ef872 100644
--- a/ldap/servers/slapd/back-ldif/dllmain.c
+++ b/ldap/servers/slapd/back-ldif/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for LIBLDAP DLL
*/
diff --git a/ldap/servers/slapd/back-ldif/init.c b/ldap/servers/slapd/back-ldif/init.c
index 7d95021e..a3259b26 100644
--- a/ldap/servers/slapd/back-ldif/init.c
+++ b/ldap/servers/slapd/back-ldif/init.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: init.c
*
diff --git a/ldap/servers/slapd/back-ldif/modify.c b/ldap/servers/slapd/back-ldif/modify.c
index 50d68ed5..58229ecc 100644
--- a/ldap/servers/slapd/back-ldif/modify.c
+++ b/ldap/servers/slapd/back-ldif/modify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: modify.c
*
diff --git a/ldap/servers/slapd/back-ldif/modrdn.c b/ldap/servers/slapd/back-ldif/modrdn.c
index 5cb75ea1..2ad4e430 100644
--- a/ldap/servers/slapd/back-ldif/modrdn.c
+++ b/ldap/servers/slapd/back-ldif/modrdn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: modrdn.c
*
diff --git a/ldap/servers/slapd/back-ldif/monitor.c b/ldap/servers/slapd/back-ldif/monitor.c
index a70f69ed..a11dfdce 100644
--- a/ldap/servers/slapd/back-ldif/monitor.c
+++ b/ldap/servers/slapd/back-ldif/monitor.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: monitor.c
*
diff --git a/ldap/servers/slapd/back-ldif/search.c b/ldap/servers/slapd/back-ldif/search.c
index f66b4c97..d5dc26fd 100644
--- a/ldap/servers/slapd/back-ldif/search.c
+++ b/ldap/servers/slapd/back-ldif/search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: search.c
*
diff --git a/ldap/servers/slapd/back-ldif/start.c b/ldap/servers/slapd/back-ldif/start.c
index 7e0bff41..5ee34e44 100644
--- a/ldap/servers/slapd/back-ldif/start.c
+++ b/ldap/servers/slapd/back-ldif/start.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: start.c
*
diff --git a/ldap/servers/slapd/back-ldif/unbind.c b/ldap/servers/slapd/back-ldif/unbind.c
index f1684871..093c51d3 100644
--- a/ldap/servers/slapd/back-ldif/unbind.c
+++ b/ldap/servers/slapd/back-ldif/unbind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* File: unbind.c
*
diff --git a/ldap/servers/slapd/backend.c b/ldap/servers/slapd/backend.c
index 0b04a548..ed8c2274 100644
--- a/ldap/servers/slapd/backend.c
+++ b/ldap/servers/slapd/backend.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* backend.c - Slapi_Backend methods */
#include "slap.h"
diff --git a/ldap/servers/slapd/backend_manager.c b/ldap/servers/slapd/backend_manager.c
index d22e1919..5ae39b81 100644
--- a/ldap/servers/slapd/backend_manager.c
+++ b/ldap/servers/slapd/backend_manager.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* backend_manager.c - routines for dealing with back-end databases */
#include "slap.h"
diff --git a/ldap/servers/slapd/bind.c b/ldap/servers/slapd/bind.c
index 6ea3b583..6c4453cd 100644
--- a/ldap/servers/slapd/bind.c
+++ b/ldap/servers/slapd/bind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* bind.c - decode an ldap bind operation and pass it to a backend db */
/*
diff --git a/ldap/servers/slapd/bitset.c b/ldap/servers/slapd/bitset.c
index 1d93597c..e2922002 100644
--- a/ldap/servers/slapd/bitset.c
+++ b/ldap/servers/slapd/bitset.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
unsigned char
slapi_setbit_uchar(unsigned char f,unsigned char bitnum)
{
diff --git a/ldap/servers/slapd/bulk_import.c b/ldap/servers/slapd/bulk_import.c
index f12bcdaf..5e158d36 100644
--- a/ldap/servers/slapd/bulk_import.c
+++ b/ldap/servers/slapd/bulk_import.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/ch_malloc.c b/ldap/servers/slapd/ch_malloc.c
index 4f3a90de..df72a603 100644
--- a/ldap/servers/slapd/ch_malloc.c
+++ b/ldap/servers/slapd/ch_malloc.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* slapi_ch_malloc.c - malloc routines that test returns from malloc and friends */
#include <errno.h>
diff --git a/ldap/servers/slapd/charray.c b/ldap/servers/slapd/charray.c
index 327de756..64dc1976 100644
--- a/ldap/servers/slapd/charray.c
+++ b/ldap/servers/slapd/charray.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* charray.c - routines for dealing with char * arrays */
#include <stdio.h>
diff --git a/ldap/servers/slapd/compare.c b/ldap/servers/slapd/compare.c
index 8bd2f549..59961d8d 100644
--- a/ldap/servers/slapd/compare.c
+++ b/ldap/servers/slapd/compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/computed.c b/ldap/servers/slapd/computed.c
index dc58194c..c82746f5 100644
--- a/ldap/servers/slapd/computed.c
+++ b/ldap/servers/slapd/computed.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Handles computed attributes for entries as they're returned to the client */
#include "slap.h"
diff --git a/ldap/servers/slapd/config.c b/ldap/servers/slapd/config.c
index 4940dda9..75777699 100644
--- a/ldap/servers/slapd/config.c
+++ b/ldap/servers/slapd/config.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* config.c - configuration file handling routines */
#include <stdio.h>
diff --git a/ldap/servers/slapd/configdse.c b/ldap/servers/slapd/configdse.c
index 2d8ffee9..ebe9aa6b 100644
--- a/ldap/servers/slapd/configdse.c
+++ b/ldap/servers/slapd/configdse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* configdse.c - routines to manage the config DSE */
#include <stdio.h>
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
index c76bbfb6..9d4dfe28 100644
--- a/ldap/servers/slapd/connection.c
+++ b/ldap/servers/slapd/connection.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
diff --git a/ldap/servers/slapd/conntable.c b/ldap/servers/slapd/conntable.c
index 6fe06f4c..28c2d7d3 100644
--- a/ldap/servers/slapd/conntable.c
+++ b/ldap/servers/slapd/conntable.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Connection Table */
#include "fe.h"
diff --git a/ldap/servers/slapd/control.c b/ldap/servers/slapd/control.c
index fa2b687f..5bf4c7e3 100644
--- a/ldap/servers/slapd/control.c
+++ b/ldap/servers/slapd/control.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* control.c - routines for dealing with LDAPMessage controls */
#include <stdio.h>
diff --git a/ldap/servers/slapd/counters.c b/ldap/servers/slapd/counters.c
index ed941712..2ee0a0eb 100644
--- a/ldap/servers/slapd/counters.c
+++ b/ldap/servers/slapd/counters.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <prcountr.h>
#include "slap.h"
diff --git a/ldap/servers/slapd/csn.c b/ldap/servers/slapd/csn.c
index 7c517048..b50ab25c 100644
--- a/ldap/servers/slapd/csn.c
+++ b/ldap/servers/slapd/csn.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* csn.c - CSN
*/
diff --git a/ldap/servers/slapd/csngen.c b/ldap/servers/slapd/csngen.c
index 9716d3b2..7fcd379d 100644
--- a/ldap/servers/slapd/csngen.c
+++ b/ldap/servers/slapd/csngen.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* csngen.c - CSN Generator
*/
diff --git a/ldap/servers/slapd/csngen.h b/ldap/servers/slapd/csngen.h
index b65a19d9..f0128b60 100644
--- a/ldap/servers/slapd/csngen.h
+++ b/ldap/servers/slapd/csngen.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _REPL_CSNGEN_H
#define _REPL_CSNGEN_H
diff --git a/ldap/servers/slapd/csnset.c b/ldap/servers/slapd/csnset.c
index 245a4afd..645c17e9 100644
--- a/ldap/servers/slapd/csnset.c
+++ b/ldap/servers/slapd/csnset.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
#include "slapi-private.h"
diff --git a/ldap/servers/slapd/daemon.c b/ldap/servers/slapd/daemon.c
index 7c895be5..61523d7e 100644
--- a/ldap/servers/slapd/daemon.c
+++ b/ldap/servers/slapd/daemon.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <string.h>
#include <sys/types.h>
#ifdef _WIN32
diff --git a/ldap/servers/slapd/defbackend.c b/ldap/servers/slapd/defbackend.c
index bd727945..549ebbf5 100644
--- a/ldap/servers/slapd/defbackend.c
+++ b/ldap/servers/slapd/defbackend.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* defbackend.c - implement a "backend of last resort" which is used only
* when a request's basedn does not match one of the suffixes of any of the
diff --git a/ldap/servers/slapd/delete.c b/ldap/servers/slapd/delete.c
index fe09def7..381239bd 100644
--- a/ldap/servers/slapd/delete.c
+++ b/ldap/servers/slapd/delete.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/detach.c b/ldap/servers/slapd/detach.c
index edb9b293..d9906263 100644
--- a/ldap/servers/slapd/detach.c
+++ b/ldap/servers/slapd/detach.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1990, 1994 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/disconnect_error_strings.h b/ldap/servers/slapd/disconnect_error_strings.h
index e417e8aa..bc05eb6f 100644
--- a/ldap/servers/slapd/disconnect_error_strings.h
+++ b/ldap/servers/slapd/disconnect_error_strings.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* disconnect_error_strings.h
*
* Strings describing the errors used in logging the reason a connection
diff --git a/ldap/servers/slapd/disconnect_errors.h b/ldap/servers/slapd/disconnect_errors.h
index 85f5f967..878ea21f 100644
--- a/ldap/servers/slapd/disconnect_errors.h
+++ b/ldap/servers/slapd/disconnect_errors.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* disconnect_errors.h
*
* Errors used in logging the reason a connection was closed.
diff --git a/ldap/servers/slapd/dl.c b/ldap/servers/slapd/dl.c
index 8daaabd8..4f677c97 100644
--- a/ldap/servers/slapd/dl.c
+++ b/ldap/servers/slapd/dl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* DataList access functions */
#define INIT_ALLOC 8
#define ALLOC_INCREMENT 4
diff --git a/ldap/servers/slapd/dn.c b/ldap/servers/slapd/dn.c
index 90e2f6dd..70e9bc25 100644
--- a/ldap/servers/slapd/dn.c
+++ b/ldap/servers/slapd/dn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dn.c - routines for dealing with distinguished names */
#include <stdio.h>
diff --git a/ldap/servers/slapd/dse.c b/ldap/servers/slapd/dse.c
index 2cf78577..023972d9 100644
--- a/ldap/servers/slapd/dse.c
+++ b/ldap/servers/slapd/dse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dse.c - DSE (DSA-Specific Entry) persistent storage.
*
diff --git a/ldap/servers/slapd/dynalib.c b/ldap/servers/slapd/dynalib.c
index 791dde19..2bc1c65d 100644
--- a/ldap/servers/slapd/dynalib.c
+++ b/ldap/servers/slapd/dynalib.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* dynalib.c - dynamic library routines */
#include <stdio.h>
diff --git a/ldap/servers/slapd/entry.c b/ldap/servers/slapd/entry.c
index 8f10f7de..0ae4b4fb 100644
--- a/ldap/servers/slapd/entry.c
+++ b/ldap/servers/slapd/entry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* entry.c - routines for dealing with entries */
#include <stdio.h>
diff --git a/ldap/servers/slapd/entrywsi.c b/ldap/servers/slapd/entrywsi.c
index 0760ca5e..53a5fa3e 100644
--- a/ldap/servers/slapd/entrywsi.c
+++ b/ldap/servers/slapd/entrywsi.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* entrywsi.c - routines for dealing with entries... With State Information */
#include "slap.h"
diff --git a/ldap/servers/slapd/errormap.c b/ldap/servers/slapd/errormap.c
index 7aae4348..adbbc659 100644
--- a/ldap/servers/slapd/errormap.c
+++ b/ldap/servers/slapd/errormap.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* errormap.c - map NSPR and OS errors to strings
*
diff --git a/ldap/servers/slapd/eventq.c b/ldap/servers/slapd/eventq.c
index 8909e074..6870ecc2 100644
--- a/ldap/servers/slapd/eventq.c
+++ b/ldap/servers/slapd/eventq.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* ********************************************************
eventq.c - Event queue/scheduling system.
diff --git a/ldap/servers/slapd/extendop.c b/ldap/servers/slapd/extendop.c
index 5a32c4f7..b95bf405 100644
--- a/ldap/servers/slapd/extendop.c
+++ b/ldap/servers/slapd/extendop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* extendedop.c - handle an LDAPv3 extended operation */
#include <stdio.h>
diff --git a/ldap/servers/slapd/factory.c b/ldap/servers/slapd/factory.c
index 1ad9f297..6de2d69f 100644
--- a/ldap/servers/slapd/factory.c
+++ b/ldap/servers/slapd/factory.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
/*
diff --git a/ldap/servers/slapd/fe.h b/ldap/servers/slapd/fe.h
index 32040a82..d4773f00 100644
--- a/ldap/servers/slapd/fe.h
+++ b/ldap/servers/slapd/fe.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _SLAPD_FE_H_
#define _SLAPD_FE_H_
diff --git a/ldap/servers/slapd/fedse.c b/ldap/servers/slapd/fedse.c
index 9e2ef358..0b07a97c 100644
--- a/ldap/servers/slapd/fedse.c
+++ b/ldap/servers/slapd/fedse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* fedse.c - Front End DSE (DSA-Specific Entry) persistent storage.
*
diff --git a/ldap/servers/slapd/fileio.c b/ldap/servers/slapd/fileio.c
index 13771fda..8a2482a9 100644
--- a/ldap/servers/slapd/fileio.c
+++ b/ldap/servers/slapd/fileio.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* fileio.c - layer to adjust EOL to use DOS format via PR_Read/Write on NT */
#include <stdio.h>
diff --git a/ldap/servers/slapd/filter.c b/ldap/servers/slapd/filter.c
index 0a894fc0..9e0b1f0e 100644
--- a/ldap/servers/slapd/filter.c
+++ b/ldap/servers/slapd/filter.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* filter.c - routines for parsing and dealing with filters */
#include <stdio.h>
diff --git a/ldap/servers/slapd/filter.h b/ldap/servers/slapd/filter.h
index 93299503..ad85b5fd 100644
--- a/ldap/servers/slapd/filter.h
+++ b/ldap/servers/slapd/filter.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _FILTER_H_
#define _FILTER_H_
diff --git a/ldap/servers/slapd/filtercmp.c b/ldap/servers/slapd/filtercmp.c
index 78ce6d59..40b9178d 100644
--- a/ldap/servers/slapd/filtercmp.c
+++ b/ldap/servers/slapd/filtercmp.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* filtercmp.c - routines for comparing filters */
#include <stdio.h>
diff --git a/ldap/servers/slapd/filterentry.c b/ldap/servers/slapd/filterentry.c
index 2d55a234..1669bdc3 100644
--- a/ldap/servers/slapd/filterentry.c
+++ b/ldap/servers/slapd/filterentry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* filterentry.c - apply a filter to an entry */
#include <stdio.h>
diff --git a/ldap/servers/slapd/generation.c b/ldap/servers/slapd/generation.c
index 995981c7..26f9f971 100644
--- a/ldap/servers/slapd/generation.c
+++ b/ldap/servers/slapd/generation.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <time.h>
diff --git a/ldap/servers/slapd/getfilelist.c b/ldap/servers/slapd/getfilelist.c
index 56b165c6..b72b0453 100644
--- a/ldap/servers/slapd/getfilelist.c
+++ b/ldap/servers/slapd/getfilelist.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
** NAME
** getfilelist.c
diff --git a/ldap/servers/slapd/getopt_ext.c b/ldap/servers/slapd/getopt_ext.c
index ac3bbea8..f2d65492 100644
--- a/ldap/servers/slapd/getopt_ext.c
+++ b/ldap/servers/slapd/getopt_ext.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "getopt_ext.h"
char *optarg_ext;
diff --git a/ldap/servers/slapd/getopt_ext.h b/ldap/servers/slapd/getopt_ext.h
index 30230a36..92fb4345 100644
--- a/ldap/servers/slapd/getopt_ext.h
+++ b/ldap/servers/slapd/getopt_ext.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* getopt_ext.h - long option names
*
diff --git a/ldap/servers/slapd/globals.c b/ldap/servers/slapd/globals.c
index 6ab34b7b..742b9c14 100644
--- a/ldap/servers/slapd/globals.c
+++ b/ldap/servers/slapd/globals.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1996 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/house.c b/ldap/servers/slapd/house.c
index 23791da9..a2c3ddbe 100644
--- a/ldap/servers/slapd/house.c
+++ b/ldap/servers/slapd/house.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/ldap/servers/slapd/http.h b/ldap/servers/slapd/http.h
index 26e85309..a42babee 100644
--- a/ldap/servers/slapd/http.h
+++ b/ldap/servers/slapd/http.h
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _HTTP_H_
#define _HTTP_H_
diff --git a/ldap/servers/slapd/index_subsys.h b/ldap/servers/slapd/index_subsys.h
index ee375cf2..de303ff9 100644
--- a/ldap/servers/slapd/index_subsys.h
+++ b/ldap/servers/slapd/index_subsys.h
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _INDEX_SUBSYS_H_
#define _INDEX_SUBSYS_H_
diff --git a/ldap/servers/slapd/index_subsystem.c b/ldap/servers/slapd/index_subsystem.c
index 88db257e..890e6c85 100644
--- a/ldap/servers/slapd/index_subsystem.c
+++ b/ldap/servers/slapd/index_subsystem.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* The indexing subsystem
* ----------------------
*
diff --git a/ldap/servers/slapd/init.c b/ldap/servers/slapd/init.c
index b823942c..bfe51ed4 100644
--- a/ldap/servers/slapd/init.c
+++ b/ldap/servers/slapd/init.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* init.c - initialize various things */
#include <stdio.h>
diff --git a/ldap/servers/slapd/intrinsics.h b/ldap/servers/slapd/intrinsics.h
index 6ed302b0..05d49e1d 100644
--- a/ldap/servers/slapd/intrinsics.h
+++ b/ldap/servers/slapd/intrinsics.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Header file used to declare functions which we beat on heavily as intrinsic */
/* For NT ...*/
diff --git a/ldap/servers/slapd/ldbmlinktest.c b/ldap/servers/slapd/ldbmlinktest.c
index 015f6411..f3200878 100644
--- a/ldap/servers/slapd/ldbmlinktest.c
+++ b/ldap/servers/slapd/ldbmlinktest.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if 0
int detached;
int error_logfp;
diff --git a/ldap/servers/slapd/lenstr.c b/ldap/servers/slapd/lenstr.c
index d9e196db..23229f51 100644
--- a/ldap/servers/slapd/lenstr.c
+++ b/ldap/servers/slapd/lenstr.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include "slapi-private.h"
diff --git a/ldap/servers/slapd/libglobs.c b/ldap/servers/slapd/libglobs.c
index d6549cf1..0c9338fc 100644
--- a/ldap/servers/slapd/libglobs.c
+++ b/ldap/servers/slapd/libglobs.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
*
* libglobs.c -- SLAPD library global variables
diff --git a/ldap/servers/slapd/libsh_stub/libsh_stub.c b/ldap/servers/slapd/libsh_stub/libsh_stub.c
index e5347f55..e17c1f4d 100644
--- a/ldap/servers/slapd/libsh_stub/libsh_stub.c
+++ b/ldap/servers/slapd/libsh_stub/libsh_stub.c
@@ -36,4 +36,9 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
int MemRegisterTask(void) { return 0; }
diff --git a/ldap/servers/slapd/lite_entries.c b/ldap/servers/slapd/lite_entries.c
index 68dfe41f..afa08db5 100644
--- a/ldap/servers/slapd/lite_entries.c
+++ b/ldap/servers/slapd/lite_entries.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* lite_entries.c -
*
* These entries are added under cn=options,cn=features,cn=config for
diff --git a/ldap/servers/slapd/localhost.c b/ldap/servers/slapd/localhost.c
index f95af184..c946e8d9 100644
--- a/ldap/servers/slapd/localhost.c
+++ b/ldap/servers/slapd/localhost.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
diff --git a/ldap/servers/slapd/lock.c b/ldap/servers/slapd/lock.c
index 847edffb..c62bbd4b 100644
--- a/ldap/servers/slapd/lock.c
+++ b/ldap/servers/slapd/lock.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* lock.c - routines to open and apply an advisory lock to a file */
#include <stdio.h>
diff --git a/ldap/servers/slapd/log.c b/ldap/servers/slapd/log.c
index 2138d36b..1e2efa85 100644
--- a/ldap/servers/slapd/log.c
+++ b/ldap/servers/slapd/log.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
**
** log.c
diff --git a/ldap/servers/slapd/log.h b/ldap/servers/slapd/log.h
index 24ec4ab1..dddc4875 100644
--- a/ldap/servers/slapd/log.h
+++ b/ldap/servers/slapd/log.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/***********************************************************************
* log.h
*
diff --git a/ldap/servers/slapd/main.c b/ldap/servers/slapd/main.c
index 8ef052e2..5a6aa111 100644
--- a/ldap/servers/slapd/main.c
+++ b/ldap/servers/slapd/main.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <ldap.h>
#undef OFF
#undef LITTLE_ENDIAN
diff --git a/ldap/servers/slapd/mapping_tree.c b/ldap/servers/slapd/mapping_tree.c
index 22a34414..39c971dc 100644
--- a/ldap/servers/slapd/mapping_tree.c
+++ b/ldap/servers/slapd/mapping_tree.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* mapping_tree.c - Maps the DIT onto backends and/or referrals. */
diff --git a/ldap/servers/slapd/match.c b/ldap/servers/slapd/match.c
index 4ee5e589..d66f3c10 100644
--- a/ldap/servers/slapd/match.c
+++ b/ldap/servers/slapd/match.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* match.c
*
diff --git a/ldap/servers/slapd/modify.c b/ldap/servers/slapd/modify.c
index c2bb3dd7..b0491a84 100644
--- a/ldap/servers/slapd/modify.c
+++ b/ldap/servers/slapd/modify.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/modrdn.c b/ldap/servers/slapd/modrdn.c
index 64cc2c0e..a9c5100a 100644
--- a/ldap/servers/slapd/modrdn.c
+++ b/ldap/servers/slapd/modrdn.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/modutil.c b/ldap/servers/slapd/modutil.c
index e8b9ebf8..e36eedb7 100644
--- a/ldap/servers/slapd/modutil.c
+++ b/ldap/servers/slapd/modutil.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* modutil.c - modify utility routine */
#include <stdio.h>
diff --git a/ldap/servers/slapd/monitor.c b/ldap/servers/slapd/monitor.c
index 092bca06..096e3ced 100644
--- a/ldap/servers/slapd/monitor.c
+++ b/ldap/servers/slapd/monitor.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/ntmsgdll/ntslapdmessages.c b/ldap/servers/slapd/ntmsgdll/ntslapdmessages.c
index b2ee7844..3a3ddc3b 100644
--- a/ldap/servers/slapd/ntmsgdll/ntslapdmessages.c
+++ b/ldap/servers/slapd/ntmsgdll/ntslapdmessages.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* This is the required stub entry point for the message-table DLL */
#if defined( _WIN32 )
#include <windows.h>
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctr.cpp b/ldap/servers/slapd/ntperfdll/nsldapctr.cpp
index 4dc36f3b..e8af096c 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctr.cpp
+++ b/ldap/servers/slapd/ntperfdll/nsldapctr.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
nsctr.c
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrdef.h b/ldap/servers/slapd/ntperfdll/nsldapctrdef.h
index 1c16af00..9ddf2e4c 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrdef.h
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrdef.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* nsctrdef.h
*
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrmc.h b/ldap/servers/slapd/ntperfdll/nsldapctrmc.h
index 8bf70f27..22e64b61 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrmc.h
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrmc.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* nsctrs.h
*/
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrmsg.h b/ldap/servers/slapd/ntperfdll/nsldapctrmsg.h
index fc662cfd..f1c3ee05 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrmsg.h
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrmsg.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* nsctrmsg.h
*
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrs.h b/ldap/servers/slapd/ntperfdll/nsldapctrs.h
index 7974f76b..6fe4f908 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrs.h
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrs.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
nsctrs.h
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrutil.cpp b/ldap/servers/slapd/ntperfdll/nsldapctrutil.cpp
index 99be713f..df7dc679 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrutil.cpp
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrutil.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
nsctrutil.c
diff --git a/ldap/servers/slapd/ntperfdll/nsldapctrutil.h b/ldap/servers/slapd/ntperfdll/nsldapctrutil.h
index 8a3ee908..5d8586d6 100644
--- a/ldap/servers/slapd/ntperfdll/nsldapctrutil.h
+++ b/ldap/servers/slapd/ntperfdll/nsldapctrutil.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*++ BUILD Version: 0001 // Increment this if a change has global effects
diff --git a/ldap/servers/slapd/ntuserpin.c b/ldap/servers/slapd/ntuserpin.c
index b420cad1..8a9eb718 100644
--- a/ldap/servers/slapd/ntuserpin.c
+++ b/ldap/servers/slapd/ntuserpin.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************
*
* ntuserpin.c - Prompts for the key
diff --git a/ldap/servers/slapd/ntwdog/cron_conf.c b/ldap/servers/slapd/ntwdog/cron_conf.c
index 44d7033b..02db64f1 100644
--- a/ldap/servers/slapd/ntwdog/cron_conf.c
+++ b/ldap/servers/slapd/ntwdog/cron_conf.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <windows.h>
#include <stdio.h>
#include <string.h>
diff --git a/ldap/servers/slapd/ntwdog/cron_conf.h b/ldap/servers/slapd/ntwdog/cron_conf.h
index e815d9b1..1cc43eec 100644
--- a/ldap/servers/slapd/ntwdog/cron_conf.h
+++ b/ldap/servers/slapd/ntwdog/cron_conf.h
@@ -35,8 +35,13 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************************
-** $Id: cron_conf.h,v 1.5 2006/09/15 16:26:44 rmeggins Exp $
+** $Id: cron_conf.h,v 1.6 2006/11/10 23:45:49 nhosoi Exp $
**
**
** NAME
diff --git a/ldap/servers/slapd/ntwdog/ntcron.c b/ldap/servers/slapd/ntwdog/ntcron.c
index 862eb18e..8977936d 100644
--- a/ldap/servers/slapd/ntwdog/ntcron.c
+++ b/ldap/servers/slapd/ntwdog/ntcron.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// //
// Name: NTCRON //
// Platforms: WIN32 //
diff --git a/ldap/servers/slapd/ntwdog/ntwatchdog.c b/ldap/servers/slapd/ntwdog/ntwatchdog.c
index 0a959671..b607c3e2 100644
--- a/ldap/servers/slapd/ntwdog/ntwatchdog.c
+++ b/ldap/servers/slapd/ntwdog/ntwatchdog.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#pragma warning(disable : 4001)
// disable warning C4001: nonstandard extension 'single line comment' was used
diff --git a/ldap/servers/slapd/object.c b/ldap/servers/slapd/object.c
index bb2f1c1e..4d0a5dde 100644
--- a/ldap/servers/slapd/object.c
+++ b/ldap/servers/slapd/object.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Implementation note:
PR_AtomicIncrement and PR_AtomicDecrement both return a value whose
sign is the same sign (or zero) as the variable *after* it was updated.
diff --git a/ldap/servers/slapd/objset.c b/ldap/servers/slapd/objset.c
index 0bf12336..0f9c6680 100644
--- a/ldap/servers/slapd/objset.c
+++ b/ldap/servers/slapd/objset.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slapi-plugin.h"
#include "slapi-private.h"
diff --git a/ldap/servers/slapd/operation.c b/ldap/servers/slapd/operation.c
index 0fb8eccd..39dffdbc 100644
--- a/ldap/servers/slapd/operation.c
+++ b/ldap/servers/slapd/operation.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* operation.c - routines to deal with pending ldap operations */
#include <stdio.h>
diff --git a/ldap/servers/slapd/opshared.c b/ldap/servers/slapd/opshared.c
index 02077c86..8c6f2513 100644
--- a/ldap/servers/slapd/opshared.c
+++ b/ldap/servers/slapd/opshared.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* opshared.c - functions shared between regular and internal operations */
#include "slap.h"
diff --git a/ldap/servers/slapd/passwd_extop.c b/ldap/servers/slapd/passwd_extop.c
index 62c84363..33fffda8 100644
--- a/ldap/servers/slapd/passwd_extop.c
+++ b/ldap/servers/slapd/passwd_extop.c
@@ -34,6 +34,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Password Modify - LDAP Extended Operation.
* RFC 3062
diff --git a/ldap/servers/slapd/pblock.c b/ldap/servers/slapd/pblock.c
index 11ce4ca7..be59e274 100644
--- a/ldap/servers/slapd/pblock.c
+++ b/ldap/servers/slapd/pblock.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
diff --git a/ldap/servers/slapd/plugin.c b/ldap/servers/slapd/plugin.c
index a1b9ad7b..a7ad7dff 100644
--- a/ldap/servers/slapd/plugin.c
+++ b/ldap/servers/slapd/plugin.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* plugin.c - routines for setting up and calling plugins */
#include <stddef.h>
diff --git a/ldap/servers/slapd/plugin_acl.c b/ldap/servers/slapd/plugin_acl.c
index 7d61b359..2dd0f714 100644
--- a/ldap/servers/slapd/plugin_acl.c
+++ b/ldap/servers/slapd/plugin_acl.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* plugin_acl.c - routines for calling access control plugins
*/
diff --git a/ldap/servers/slapd/plugin_internal_op.c b/ldap/servers/slapd/plugin_internal_op.c
index 1292881e..35021e8b 100644
--- a/ldap/servers/slapd/plugin_internal_op.c
+++ b/ldap/servers/slapd/plugin_internal_op.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* stevross@netscape.com June 13 1997 */
#include <stdio.h>
diff --git a/ldap/servers/slapd/plugin_mr.c b/ldap/servers/slapd/plugin_mr.c
index c7a09db4..fc07733c 100644
--- a/ldap/servers/slapd/plugin_mr.c
+++ b/ldap/servers/slapd/plugin_mr.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* plugin_mr.c - routines for calling matching rule plugins
*/
diff --git a/ldap/servers/slapd/plugin_role.c b/ldap/servers/slapd/plugin_role.c
index aff6cb9c..2270b3cd 100644
--- a/ldap/servers/slapd/plugin_role.c
+++ b/ldap/servers/slapd/plugin_role.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* plugin_role.c - routines for calling roles plugins
*/
diff --git a/ldap/servers/slapd/plugin_syntax.c b/ldap/servers/slapd/plugin_syntax.c
index 7859a3f4..2002ae58 100644
--- a/ldap/servers/slapd/plugin_syntax.c
+++ b/ldap/servers/slapd/plugin_syntax.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* plugin_syntax.c - routines for calling syntax plugins
*/
diff --git a/ldap/servers/slapd/poll_using_select.c b/ldap/servers/slapd/poll_using_select.c
index e32f8dbd..2b84ede6 100644
--- a/ldap/servers/slapd/poll_using_select.c
+++ b/ldap/servers/slapd/poll_using_select.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* poll_using_select.c
*
diff --git a/ldap/servers/slapd/poll_using_select.h b/ldap/servers/slapd/poll_using_select.h
index 17d417fb..1ecdc7d9 100644
--- a/ldap/servers/slapd/poll_using_select.h
+++ b/ldap/servers/slapd/poll_using_select.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _POLL_USING_SELECT_H
#define _POLL_USING_SELECT_H
diff --git a/ldap/servers/slapd/prerrstrs.h b/ldap/servers/slapd/prerrstrs.h
index f87f68cb..e6bdc9f7 100644
--- a/ldap/servers/slapd/prerrstrs.h
+++ b/ldap/servers/slapd/prerrstrs.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* pserrstrs.h - map NSPR errors to strings (used by errormap.c)
*
diff --git a/ldap/servers/slapd/protect_db.c b/ldap/servers/slapd/protect_db.c
index 44c16804..85d30be7 100644
--- a/ldap/servers/slapd/protect_db.c
+++ b/ldap/servers/slapd/protect_db.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* protect_db.c
* Used to police access to the db. Prevents different instances of
* slapd from clobbering each other
diff --git a/ldap/servers/slapd/protect_db.h b/ldap/servers/slapd/protect_db.h
index 3e47481c..47b84c69 100644
--- a/ldap/servers/slapd/protect_db.h
+++ b/ldap/servers/slapd/protect_db.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Header file for protect_db.c */
int add_new_slapd_process(int exec_mode, int r_flag, int skip_flag);
diff --git a/ldap/servers/slapd/proto-slap.h b/ldap/servers/slapd/proto-slap.h
index a0a28675..c7c09a23 100644
--- a/ldap/servers/slapd/proto-slap.h
+++ b/ldap/servers/slapd/proto-slap.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PROTO_SLAP
#define _PROTO_SLAP
diff --git a/ldap/servers/slapd/psearch.c b/ldap/servers/slapd/psearch.c
index ba010353..4f691255 100644
--- a/ldap/servers/slapd/psearch.c
+++ b/ldap/servers/slapd/psearch.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
*
* psearch.c - persistent search
diff --git a/ldap/servers/slapd/pw.c b/ldap/servers/slapd/pw.c
index ae5cfd32..058dcac0 100644
--- a/ldap/servers/slapd/pw.c
+++ b/ldap/servers/slapd/pw.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapd hashed password routines
*
diff --git a/ldap/servers/slapd/pw.h b/ldap/servers/slapd/pw.h
index 734e6331..5f5eb1be 100644
--- a/ldap/servers/slapd/pw.h
+++ b/ldap/servers/slapd/pw.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _SLAPD_PW_H_
#define _SLAPD_PW_H_
diff --git a/ldap/servers/slapd/pw_mgmt.c b/ldap/servers/slapd/pw_mgmt.c
index 2c3de026..a383032c 100644
--- a/ldap/servers/slapd/pw_mgmt.c
+++ b/ldap/servers/slapd/pw_mgmt.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* pw_mgmt.c
*/
diff --git a/ldap/servers/slapd/pw_retry.c b/ldap/servers/slapd/pw_retry.c
index e0adbddb..2f0ebe02 100644
--- a/ldap/servers/slapd/pw_retry.c
+++ b/ldap/servers/slapd/pw_retry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* pw_retry.c
*/
diff --git a/ldap/servers/slapd/rdn.c b/ldap/servers/slapd/rdn.c
index cf8b2a38..026c80c7 100644
--- a/ldap/servers/slapd/rdn.c
+++ b/ldap/servers/slapd/rdn.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
#define FLAG_RDNS 0
diff --git a/ldap/servers/slapd/referral.c b/ldap/servers/slapd/referral.c
index 5d4f8941..81adccd4 100644
--- a/ldap/servers/slapd/referral.c
+++ b/ldap/servers/slapd/referral.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* referrals.c - LDAP referral-related routines.
* a) manage in-memory copiedfrom and copyingfrom referrals.
diff --git a/ldap/servers/slapd/regex.c b/ldap/servers/slapd/regex.c
index e112705b..6f423525 100644
--- a/ldap/servers/slapd/regex.c
+++ b/ldap/servers/slapd/regex.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "slap.h" /* must come before regex.h */
#include "portable.h"
@@ -86,6 +91,16 @@ slapd_re_unlock( void )
* Modification history:
*
* $Log: regex.c,v $
+ * Revision 1.5 2006/11/10 23:45:40 nhosoi
+ * Resolves: #214533
+ * Summary: configure needs to support --with-fhs (Comment #6)
+ * Changes: Added the following include next to the end of the copyright block.
+ * +
+ * +#ifdef HAVE_CONFIG_H
+ * +# include <config.h>
+ * +#endif
+ * +
+ *
* Revision 1.4 2005/04/19 22:07:37 nkinder
* Fixed licensing typo
*
diff --git a/ldap/servers/slapd/resourcelimit.c b/ldap/servers/slapd/resourcelimit.c
index d4cce9c2..dc22a0a0 100644
--- a/ldap/servers/slapd/resourcelimit.c
+++ b/ldap/servers/slapd/resourcelimit.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* resourcelimit.c - binder-based resource limits implementation */
diff --git a/ldap/servers/slapd/result.c b/ldap/servers/slapd/result.c
index 0292c2e2..4dd252d0 100644
--- a/ldap/servers/slapd/result.c
+++ b/ldap/servers/slapd/result.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* result.c - routines to send ldap results, errors, and referrals */
#include <stdio.h>
diff --git a/ldap/servers/slapd/rootdse.c b/ldap/servers/slapd/rootdse.c
index 36a70925..56382b89 100644
--- a/ldap/servers/slapd/rootdse.c
+++ b/ldap/servers/slapd/rootdse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* rootdse.c - routines to manage the root DSE */
#include <stdio.h>
diff --git a/ldap/servers/slapd/rwlock.c b/ldap/servers/slapd/rwlock.c
index 0943aa3e..abd55ef1 100644
--- a/ldap/servers/slapd/rwlock.c
+++ b/ldap/servers/slapd/rwlock.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* rwlock.c - generic multiple reader, single-writer locking routines.
*
diff --git a/ldap/servers/slapd/rwlock.h b/ldap/servers/slapd/rwlock.h
index 8d3bcdc6..c6bdee63 100644
--- a/ldap/servers/slapd/rwlock.h
+++ b/ldap/servers/slapd/rwlock.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _RWLOCK_H_
#define _RWLOCK_H_
diff --git a/ldap/servers/slapd/sasl_io.c b/ldap/servers/slapd/sasl_io.c
index 717a328f..c3107910 100644
--- a/ldap/servers/slapd/sasl_io.c
+++ b/ldap/servers/slapd/sasl_io.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
#include "slapi-plugin.h"
#include "fe.h"
diff --git a/ldap/servers/slapd/sasl_map.c b/ldap/servers/slapd/sasl_map.c
index 1e74eff9..25923b3c 100644
--- a/ldap/servers/slapd/sasl_map.c
+++ b/ldap/servers/slapd/sasl_map.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "slap.h"
#include "slapi-plugin.h"
#include "fe.h"
diff --git a/ldap/servers/slapd/saslbind.c b/ldap/servers/slapd/saslbind.c
index 6ddac340..15bd506f 100644
--- a/ldap/servers/slapd/saslbind.c
+++ b/ldap/servers/slapd/saslbind.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <slap.h>
#include <fe.h>
#include <sasl.h>
diff --git a/ldap/servers/slapd/schema.c b/ldap/servers/slapd/schema.c
index a8f35db8..2e54e9dc 100644
--- a/ldap/servers/slapd/schema.c
+++ b/ldap/servers/slapd/schema.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* schema.c - routines to enforce schema definitions */
#include <stdio.h>
diff --git a/ldap/servers/slapd/schemaparse.c b/ldap/servers/slapd/schemaparse.c
index 994f7819..3be59a16 100644
--- a/ldap/servers/slapd/schemaparse.c
+++ b/ldap/servers/slapd/schemaparse.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* schemaparse.c - routines to support objectclass definitions */
#include <stdio.h>
diff --git a/ldap/servers/slapd/search.c b/ldap/servers/slapd/search.c
index fc629f6f..51f2b92a 100644
--- a/ldap/servers/slapd/search.c
+++ b/ldap/servers/slapd/search.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
diff --git a/ldap/servers/slapd/secerrstrs.h b/ldap/servers/slapd/secerrstrs.h
index 5056e7de..e1617ead 100644
--- a/ldap/servers/slapd/secerrstrs.h
+++ b/ldap/servers/slapd/secerrstrs.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* secerrstrs.h - map security errors to strings (used by errormap.c)
*
diff --git a/ldap/servers/slapd/security_wrappers.c b/ldap/servers/slapd/security_wrappers.c
index 6384e926..628ad4d2 100644
--- a/ldap/servers/slapd/security_wrappers.c
+++ b/ldap/servers/slapd/security_wrappers.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <ssl.h>
#include <nss.h>
#include <key.h>
diff --git a/ldap/servers/slapd/slap.h b/ldap/servers/slapd/slap.h
index a8b51c42..acc4a3cb 100644
--- a/ldap/servers/slapd/slap.h
+++ b/ldap/servers/slapd/slap.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* slap.h - stand alone ldap server include file */
#ifndef _SLDAPD_H_
diff --git a/ldap/servers/slapd/slapd_plhash.c b/ldap/servers/slapd/slapd_plhash.c
index c07a1f0c..87043242 100644
--- a/ldap/servers/slapd/slapd_plhash.c
+++ b/ldap/servers/slapd/slapd_plhash.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
This file contains a function which augments the standard nspr PL_HashTable
api. The problem is that the hash table lookup function in the standard NSPR
diff --git a/ldap/servers/slapd/slapi-plugin-compat4.h b/ldap/servers/slapd/slapi-plugin-compat4.h
index cecf7b30..d54cc7d1 100644
--- a/ldap/servers/slapd/slapi-plugin-compat4.h
+++ b/ldap/servers/slapd/slapi-plugin-compat4.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Netscape Directory Server 4.x plugin API backwards compatible header file.
*/
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h
index 9c496c4a..e5ff2bba 100644
--- a/ldap/servers/slapd/slapi-plugin.h
+++ b/ldap/servers/slapd/slapi-plugin.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* slapi-plugin.h - public Directory Server plugin interface */
#ifndef _SLAPIPLUGIN
diff --git a/ldap/servers/slapd/slapi-private.h b/ldap/servers/slapd/slapi-private.h
index f53f5e21..ba6dfc37 100644
--- a/ldap/servers/slapd/slapi-private.h
+++ b/ldap/servers/slapd/slapi-private.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* slapi-private.h - external header file for some special plugins */
#ifndef _SLAPISTATE
diff --git a/ldap/servers/slapd/slapi2nspr.c b/ldap/servers/slapd/slapi2nspr.c
index 41bd7e4e..d5d583dc 100644
--- a/ldap/servers/slapd/slapi2nspr.c
+++ b/ldap/servers/slapd/slapi2nspr.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* slapi2nspr.c - expose a subset of the NSPR20/21 API to SLAPI plugin writers
*
diff --git a/ldap/servers/slapd/snmp_collator.c b/ldap/servers/slapd/snmp_collator.c
index 043e3765..2b9dca38 100644
--- a/ldap/servers/slapd/snmp_collator.c
+++ b/ldap/servers/slapd/snmp_collator.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
diff --git a/ldap/servers/slapd/snmp_collator.h b/ldap/servers/slapd/snmp_collator.h
index 2a55d73a..60943447 100644
--- a/ldap/servers/slapd/snmp_collator.h
+++ b/ldap/servers/slapd/snmp_collator.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/******************************************************************************
*
* defines
diff --git a/ldap/servers/slapd/snoop.c b/ldap/servers/slapd/snoop.c
index 924bfdec..8ca3f5f3 100644
--- a/ldap/servers/slapd/snoop.c
+++ b/ldap/servers/slapd/snoop.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Operation Snooping Function.
Used by server internal code (and plugins if they fancy)
to detect state changes in the server.
diff --git a/ldap/servers/slapd/ssl.c b/ldap/servers/slapd/ssl.c
index 027bb516..9e4b0efc 100644
--- a/ldap/servers/slapd/ssl.c
+++ b/ldap/servers/slapd/ssl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* SSL-related stuff for slapd */
#if defined( _WINDOWS )
diff --git a/ldap/servers/slapd/sslerrstrs.h b/ldap/servers/slapd/sslerrstrs.h
index a5f309a7..3f846c12 100644
--- a/ldap/servers/slapd/sslerrstrs.h
+++ b/ldap/servers/slapd/sslerrstrs.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* sslerrstrs.h - map SSL errors to strings (used by errormap.c)
*
diff --git a/ldap/servers/slapd/start_tls_extop.c b/ldap/servers/slapd/start_tls_extop.c
index 443d12f5..93c12775 100644
--- a/ldap/servers/slapd/start_tls_extop.c
+++ b/ldap/servers/slapd/start_tls_extop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Start TLS - LDAP Extended Operation.
*
diff --git a/ldap/servers/slapd/statechange.h b/ldap/servers/slapd/statechange.h
index 757c5091..c3946ee5 100644
--- a/ldap/servers/slapd/statechange.h
+++ b/ldap/servers/slapd/statechange.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _STATE_NOTIFY_H_
#define _STATE_NOTIFY_H_
diff --git a/ldap/servers/slapd/str2filter.c b/ldap/servers/slapd/str2filter.c
index a69d27d6..744b8fa3 100644
--- a/ldap/servers/slapd/str2filter.c
+++ b/ldap/servers/slapd/str2filter.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* slapi_str2filter.c - parse an rfc 1588 string filter */
#include <stdio.h>
diff --git a/ldap/servers/slapd/strdup.c b/ldap/servers/slapd/strdup.c
index fd44e0e2..c0fce1f6 100644
--- a/ldap/servers/slapd/strdup.c
+++ b/ldap/servers/slapd/strdup.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( ultrix ) || defined( nextstep )
#include <string.h>
diff --git a/ldap/servers/slapd/stubrepl.c b/ldap/servers/slapd/stubrepl.c
index 8a7ba9ee..c7145b62 100644
--- a/ldap/servers/slapd/stubrepl.c
+++ b/ldap/servers/slapd/stubrepl.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* stubrepl.c - stubs of functions required for the evil stuff in the tools directory */
#include "slap.h"
diff --git a/ldap/servers/slapd/stubs.c b/ldap/servers/slapd/stubs.c
index ff006173..cc613fba 100644
--- a/ldap/servers/slapd/stubs.c
+++ b/ldap/servers/slapd/stubs.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Needed because not all functions are currently defined for server3_branch */
#include <stdio.h>
diff --git a/ldap/servers/slapd/subentry.c b/ldap/servers/slapd/subentry.c
index 93b0602e..b4ff851f 100644
--- a/ldap/servers/slapd/subentry.c
+++ b/ldap/servers/slapd/subentry.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Code to implement subentries
*/
diff --git a/ldap/servers/slapd/task.c b/ldap/servers/slapd/task.c
index e3dfc191..13ff1565 100644
--- a/ldap/servers/slapd/task.c
+++ b/ldap/servers/slapd/task.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* directory online tasks (import, export, backup, restore)
*/
diff --git a/ldap/servers/slapd/tempnam.c b/ldap/servers/slapd/tempnam.c
index dd77714b..fb68eb5e 100644
--- a/ldap/servers/slapd/tempnam.c
+++ b/ldap/servers/slapd/tempnam.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( nextstep )
#include <string.h>
diff --git a/ldap/servers/slapd/test-plugins/clients/reqextop.c b/ldap/servers/slapd/test-plugins/clients/reqextop.c
index 5687cafb..d23e8dfc 100644
--- a/ldap/servers/slapd/test-plugins/clients/reqextop.c
+++ b/ldap/servers/slapd/test-plugins/clients/reqextop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Requests an extended operation with the OID 1.2.3.4.
* Use this client in conjunction with a server that can process
diff --git a/ldap/servers/slapd/test-plugins/dllmain.c b/ldap/servers/slapd/test-plugins/dllmain.c
index 17f0a578..a302e140 100644
--- a/ldap/servers/slapd/test-plugins/dllmain.c
+++ b/ldap/servers/slapd/test-plugins/dllmain.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Microsoft Windows specifics for sample plug-ins DLL
*/
diff --git a/ldap/servers/slapd/test-plugins/testbind.c b/ldap/servers/slapd/test-plugins/testbind.c
index 3419a66e..c3922029 100644
--- a/ldap/servers/slapd/test-plugins/testbind.c
+++ b/ldap/servers/slapd/test-plugins/testbind.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/************************************************************
testbind.c
diff --git a/ldap/servers/slapd/test-plugins/testdatainterop.c b/ldap/servers/slapd/test-plugins/testdatainterop.c
index 4f7e64f9..1915e6ed 100644
--- a/ldap/servers/slapd/test-plugins/testdatainterop.c
+++ b/ldap/servers/slapd/test-plugins/testdatainterop.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/******** testdatainterop.c *******************
This source file provides an example of a plug-in function
diff --git a/ldap/servers/slapd/test-plugins/testdbinterop.c b/ldap/servers/slapd/test-plugins/testdbinterop.c
index 8ba9c6a4..b0e6d388 100644
--- a/ldap/servers/slapd/test-plugins/testdbinterop.c
+++ b/ldap/servers/slapd/test-plugins/testdbinterop.c
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <sys/types.h>
#include <stdio.h>
#include "db.h"
diff --git a/ldap/servers/slapd/test-plugins/testdbinterop.h b/ldap/servers/slapd/test-plugins/testdbinterop.h
index 3ee4b442..9fe08ac6 100644
--- a/ldap/servers/slapd/test-plugins/testdbinterop.h
+++ b/ldap/servers/slapd/test-plugins/testdbinterop.h
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/******** testdbinterop.h *******************
The header file is for access to a Berkeley DB
diff --git a/ldap/servers/slapd/test-plugins/testentry.c b/ldap/servers/slapd/test-plugins/testentry.c
index 87a0b0a3..4909246f 100644
--- a/ldap/servers/slapd/test-plugins/testentry.c
+++ b/ldap/servers/slapd/test-plugins/testentry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/************************************************************
testentry.c
diff --git a/ldap/servers/slapd/test-plugins/testextendedop.c b/ldap/servers/slapd/test-plugins/testextendedop.c
index 38574c5b..42fcbc54 100644
--- a/ldap/servers/slapd/test-plugins/testextendedop.c
+++ b/ldap/servers/slapd/test-plugins/testextendedop.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/************************************************************
testextendedop.c
diff --git a/ldap/servers/slapd/test-plugins/testgetip.c b/ldap/servers/slapd/test-plugins/testgetip.c
index 724d96b7..5cb990c9 100644
--- a/ldap/servers/slapd/test-plugins/testgetip.c
+++ b/ldap/servers/slapd/test-plugins/testgetip.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/************************************************************
testgetip.c
diff --git a/ldap/servers/slapd/test-plugins/testpostop.c b/ldap/servers/slapd/test-plugins/testpostop.c
index cb035e7f..41720c55 100644
--- a/ldap/servers/slapd/test-plugins/testpostop.c
+++ b/ldap/servers/slapd/test-plugins/testpostop.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/************************************************************
testpostop.c
diff --git a/ldap/servers/slapd/test-plugins/testpreop.c b/ldap/servers/slapd/test-plugins/testpreop.c
index e8fb8836..da354b50 100644
--- a/ldap/servers/slapd/test-plugins/testpreop.c
+++ b/ldap/servers/slapd/test-plugins/testpreop.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/************************************************************
testpreop.c
diff --git a/ldap/servers/slapd/test-plugins/testsaslbind.c b/ldap/servers/slapd/test-plugins/testsaslbind.c
index b68965a4..2b43c358 100644
--- a/ldap/servers/slapd/test-plugins/testsaslbind.c
+++ b/ldap/servers/slapd/test-plugins/testsaslbind.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/************************************************************
testsaslbind.c
diff --git a/ldap/servers/slapd/time.c b/ldap/servers/slapd/time.c
index b4c4ef55..c5a83330 100644
--- a/ldap/servers/slapd/time.c
+++ b/ldap/servers/slapd/time.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* time.c - various time routines */
#include <stdio.h>
diff --git a/ldap/servers/slapd/tools/dbscan.c b/ldap/servers/slapd/tools/dbscan.c
index 178762ec..7f9433c2 100644
--- a/ldap/servers/slapd/tools/dbscan.c
+++ b/ldap/servers/slapd/tools/dbscan.c
@@ -35,6 +35,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* small program to scan a Directory Server db file and dump the contents
*
diff --git a/ldap/servers/slapd/tools/eggencode.c b/ldap/servers/slapd/tools/eggencode.c
index a00d7601..c9d9c1c7 100644
--- a/ldap/servers/slapd/tools/eggencode.c
+++ b/ldap/servers/slapd/tools/eggencode.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Easter egg encoder. See ../fedse.c:egg_decode() for the mirror image.
*/
diff --git a/ldap/servers/slapd/tools/keyupg.c b/ldap/servers/slapd/tools/keyupg.c
index fdb115a0..3fb0a2f7 100644
--- a/ldap/servers/slapd/tools/keyupg.c
+++ b/ldap/servers/slapd/tools/keyupg.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
*
* keyupg.c
diff --git a/ldap/servers/slapd/tools/ldclt/data.c b/ldap/servers/slapd/tools/ldclt/data.c
index 73b2c238..a27d088e 100644
--- a/ldap/servers/slapd/tools/ldclt/data.c
+++ b/ldap/servers/slapd/tools/ldclt/data.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : data.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/ldap-private.h b/ldap/servers/slapd/tools/ldclt/ldap-private.h
index 7db687d9..b9773a4f 100644
--- a/ldap/servers/slapd/tools/ldclt/ldap-private.h
+++ b/ldap/servers/slapd/tools/ldclt/ldap-private.h
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _LDAP_PRIVATE_H
#define _LDAP_PRIVATE_H
diff --git a/ldap/servers/slapd/tools/ldclt/ldapfct.c b/ldap/servers/slapd/tools/ldclt/ldapfct.c
index 213569d2..c9078e66 100644
--- a/ldap/servers/slapd/tools/ldclt/ldapfct.c
+++ b/ldap/servers/slapd/tools/ldclt/ldapfct.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : ldapfct.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/ldclt.c b/ldap/servers/slapd/tools/ldclt/ldclt.c
index f4114c7c..2c7048a0 100644
--- a/ldap/servers/slapd/tools/ldclt/ldclt.c
+++ b/ldap/servers/slapd/tools/ldclt/ldclt.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : ldclt.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/ldclt.h b/ldap/servers/slapd/tools/ldclt/ldclt.h
index f4262e64..6413b39d 100644
--- a/ldap/servers/slapd/tools/ldclt/ldclt.h
+++ b/ldap/servers/slapd/tools/ldclt/ldclt.h
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : ldclt.h
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/ldcltU.c b/ldap/servers/slapd/tools/ldclt/ldcltU.c
index 8c72be92..6f23dd1f 100644
--- a/ldap/servers/slapd/tools/ldclt/ldcltU.c
+++ b/ldap/servers/slapd/tools/ldclt/ldcltU.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
diff --git a/ldap/servers/slapd/tools/ldclt/opCheck.c b/ldap/servers/slapd/tools/ldclt/opCheck.c
index b9c200c0..e41ba30d 100644
--- a/ldap/servers/slapd/tools/ldclt/opCheck.c
+++ b/ldap/servers/slapd/tools/ldclt/opCheck.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : opCheck.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/parser.c b/ldap/servers/slapd/tools/ldclt/parser.c
index 84f574f0..0bd0a150 100644
--- a/ldap/servers/slapd/tools/ldclt/parser.c
+++ b/ldap/servers/slapd/tools/ldclt/parser.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : parser.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/port.c b/ldap/servers/slapd/tools/ldclt/port.c
index 0b1ddb09..f21139bc 100644
--- a/ldap/servers/slapd/tools/ldclt/port.c
+++ b/ldap/servers/slapd/tools/ldclt/port.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : port.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/port.h b/ldap/servers/slapd/tools/ldclt/port.h
index e247936c..6230ea84 100644
--- a/ldap/servers/slapd/tools/ldclt/port.h
+++ b/ldap/servers/slapd/tools/ldclt/port.h
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : port.h
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/remote.h b/ldap/servers/slapd/tools/ldclt/remote.h
index 1a99fba1..d10dcaa3 100644
--- a/ldap/servers/slapd/tools/ldclt/remote.h
+++ b/ldap/servers/slapd/tools/ldclt/remote.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : remote.h
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/repcheck.c b/ldap/servers/slapd/tools/ldclt/repcheck.c
index 8851f7fe..a2d2989b 100644
--- a/ldap/servers/slapd/tools/ldclt/repcheck.c
+++ b/ldap/servers/slapd/tools/ldclt/repcheck.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <time.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/ldclt/repslave.c b/ldap/servers/slapd/tools/ldclt/repslave.c
index 3e892f66..b64bfe6c 100644
--- a/ldap/servers/slapd/tools/ldclt/repslave.c
+++ b/ldap/servers/slapd/tools/ldclt/repslave.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : repslave.c
AUTHOR : Fabio Pistolesi
diff --git a/ldap/servers/slapd/tools/ldclt/scalab01.c b/ldap/servers/slapd/tools/ldclt/scalab01.c
index 2d0074ee..7a8ed5c4 100644
--- a/ldap/servers/slapd/tools/ldclt/scalab01.c
+++ b/ldap/servers/slapd/tools/ldclt/scalab01.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : scalab01.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/scalab01.h b/ldap/servers/slapd/tools/ldclt/scalab01.h
index 381c8bab..5bac3397 100644
--- a/ldap/servers/slapd/tools/ldclt/scalab01.h
+++ b/ldap/servers/slapd/tools/ldclt/scalab01.h
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : scalab01.h
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/srv.c b/ldap/servers/slapd/tools/ldclt/srv.c
index 80c2608a..eab98c89 100644
--- a/ldap/servers/slapd/tools/ldclt/srv.c
+++ b/ldap/servers/slapd/tools/ldclt/srv.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <time.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/ldclt/threadMain.c b/ldap/servers/slapd/tools/ldclt/threadMain.c
index f2f23725..bdba2af9 100644
--- a/ldap/servers/slapd/tools/ldclt/threadMain.c
+++ b/ldap/servers/slapd/tools/ldclt/threadMain.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : threadMain.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/utils.c b/ldap/servers/slapd/tools/ldclt/utils.c
index 54b6c150..123fea46 100644
--- a/ldap/servers/slapd/tools/ldclt/utils.c
+++ b/ldap/servers/slapd/tools/ldclt/utils.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : utils.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/utils.h b/ldap/servers/slapd/tools/ldclt/utils.h
index 37f7a934..52b6e812 100644
--- a/ldap/servers/slapd/tools/ldclt/utils.h
+++ b/ldap/servers/slapd/tools/ldclt/utils.h
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : utils.h
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldclt/workarounds.c b/ldap/servers/slapd/tools/ldclt/workarounds.c
index 85d96dea..5275e6de 100644
--- a/ldap/servers/slapd/tools/ldclt/workarounds.c
+++ b/ldap/servers/slapd/tools/ldclt/workarounds.c
@@ -38,6 +38,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
FILE : workarounds.c
AUTHOR : Jean-Luc SCHWING
diff --git a/ldap/servers/slapd/tools/ldif.c b/ldap/servers/slapd/tools/ldif.c
index 08b33424..5e4e63e2 100644
--- a/ldap/servers/slapd/tools/ldif.c
+++ b/ldap/servers/slapd/tools/ldif.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <memory.h>
diff --git a/ldap/servers/slapd/tools/migratecred.c b/ldap/servers/slapd/tools/migratecred.c
index b8543b0f..4c764a71 100644
--- a/ldap/servers/slapd/tools/migratecred.c
+++ b/ldap/servers/slapd/tools/migratecred.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <limits.h>
diff --git a/ldap/servers/slapd/tools/mkdep.c b/ldap/servers/slapd/tools/mkdep.c
index 821aebfb..e5f49e0d 100644
--- a/ldap/servers/slapd/tools/mkdep.c
+++ b/ldap/servers/slapd/tools/mkdep.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Originally by Linus Torvalds.
* Smart CONFIG_* processing by Werner Almesberger, Michael Chastain.
diff --git a/ldap/servers/slapd/tools/mmldif.c b/ldap/servers/slapd/tools/mmldif.c
index 7274930b..fb820823 100644
--- a/ldap/servers/slapd/tools/mmldif.c
+++ b/ldap/servers/slapd/tools/mmldif.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <ctype.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/pwenc.c b/ldap/servers/slapd/tools/pwenc.c
index 524c6a27..c833bb2e 100644
--- a/ldap/servers/slapd/tools/pwenc.c
+++ b/ldap/servers/slapd/tools/pwenc.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#if defined( _WIN32 )
#include <sys/stat.h> /* for S_IREAD and S_IWRITE */
#include <windows.h>
diff --git a/ldap/servers/slapd/tools/rsearch/addthread.c b/ldap/servers/slapd/tools/rsearch/addthread.c
index ca88d10a..d87c5a53 100644
--- a/ldap/servers/slapd/tools/rsearch/addthread.c
+++ b/ldap/servers/slapd/tools/rsearch/addthread.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/rsearch/addthread.h b/ldap/servers/slapd/tools/rsearch/addthread.h
index 0b17cd05..385808b0 100644
--- a/ldap/servers/slapd/tools/rsearch/addthread.h
+++ b/ldap/servers/slapd/tools/rsearch/addthread.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _ADDTHREAD_H
#define _ADDTHREAD_H
diff --git a/ldap/servers/slapd/tools/rsearch/infadd.c b/ldap/servers/slapd/tools/rsearch/infadd.c
index 818ed37c..039f85cb 100644
--- a/ldap/servers/slapd/tools/rsearch/infadd.c
+++ b/ldap/servers/slapd/tools/rsearch/infadd.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* XP port of dboreham's NT tool "infinite_add"
* robey, june 1998
@@ -338,8 +343,11 @@ int main(int argc, char **argv)
ntot);
}
if (!quiet && (numThreads > 1 || !verbose)) {
- fprintf(stdout, "Average rate:%7.2f, total: %u\n",
- (double)total/(double)numThreads, ntotal);
+ double val = 1000.0 * (double)total / (double)sampleInterval;
+ fprintf(stdout, "Rate: %7.2f/thr (%6.2f/sec =%7.4fms/op), "
+ "total: %u (%d thr)\n",
+ (double)total/(double)numThreads, val,
+ (double)1000.0/val, ntotal, numThreads);
}
if (lmtCount && ntotal >= lmtCount) {
if (!quiet) {
diff --git a/ldap/servers/slapd/tools/rsearch/infadd.h b/ldap/servers/slapd/tools/rsearch/infadd.h
index 1a963da0..0eae2ac1 100644
--- a/ldap/servers/slapd/tools/rsearch/infadd.h
+++ b/ldap/servers/slapd/tools/rsearch/infadd.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _INFADD_H
#define _INFADD_H
diff --git a/ldap/servers/slapd/tools/rsearch/main.c b/ldap/servers/slapd/tools/rsearch/main.c
index f9313320..33bc0a12 100644
--- a/ldap/servers/slapd/tools/rsearch/main.c
+++ b/ldap/servers/slapd/tools/rsearch/main.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* this was just easier to start from scratch. windows is too different
* from nspr.
diff --git a/ldap/servers/slapd/tools/rsearch/nametable.c b/ldap/servers/slapd/tools/rsearch/nametable.c
index c0026324..0a4b6fce 100644
--- a/ldap/servers/slapd/tools/rsearch/nametable.c
+++ b/ldap/servers/slapd/tools/rsearch/nametable.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/rsearch/nametable.h b/ldap/servers/slapd/tools/rsearch/nametable.h
index c66c568a..82780faa 100644
--- a/ldap/servers/slapd/tools/rsearch/nametable.h
+++ b/ldap/servers/slapd/tools/rsearch/nametable.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _NAMETABLE_H
#define _NAMETABLE_H
diff --git a/ldap/servers/slapd/tools/rsearch/rsearch.c b/ldap/servers/slapd/tools/rsearch/rsearch.c
index 729a8d72..17e998d2 100644
--- a/ldap/servers/slapd/tools/rsearch/rsearch.c
+++ b/ldap/servers/slapd/tools/rsearch/rsearch.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* XP port of dboreham's NT tool "repeated_search"
* robey, march 1998
diff --git a/ldap/servers/slapd/tools/rsearch/rsearch.h b/ldap/servers/slapd/tools/rsearch/rsearch.h
index e610bafa..3f797cc0 100644
--- a/ldap/servers/slapd/tools/rsearch/rsearch.h
+++ b/ldap/servers/slapd/tools/rsearch/rsearch.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _RSEARCH_H
#define _RSEARCH_H
diff --git a/ldap/servers/slapd/tools/rsearch/sdattable.c b/ldap/servers/slapd/tools/rsearch/sdattable.c
index 7d63e1f2..126ddc3b 100644
--- a/ldap/servers/slapd/tools/rsearch/sdattable.c
+++ b/ldap/servers/slapd/tools/rsearch/sdattable.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/rsearch/sdattable.h b/ldap/servers/slapd/tools/rsearch/sdattable.h
index 95507d18..5acf3996 100644
--- a/ldap/servers/slapd/tools/rsearch/sdattable.h
+++ b/ldap/servers/slapd/tools/rsearch/sdattable.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _SDATTABLE_H
#define _SDATTABLE_H
diff --git a/ldap/servers/slapd/tools/rsearch/searchthread.c b/ldap/servers/slapd/tools/rsearch/searchthread.c
index 0ab422e6..cfb16b52 100644
--- a/ldap/servers/slapd/tools/rsearch/searchthread.c
+++ b/ldap/servers/slapd/tools/rsearch/searchthread.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/ldap/servers/slapd/tools/rsearch/searchthread.h b/ldap/servers/slapd/tools/rsearch/searchthread.h
index 15629be4..a2e1a238 100644
--- a/ldap/servers/slapd/tools/rsearch/searchthread.h
+++ b/ldap/servers/slapd/tools/rsearch/searchthread.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _SEARCHTHREAD_H
#define _SEARCHTHREAD_H
diff --git a/ldap/servers/slapd/unbind.c b/ldap/servers/slapd/unbind.c
index 8f3c18be..dec6af5c 100644
--- a/ldap/servers/slapd/unbind.c
+++ b/ldap/servers/slapd/unbind.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* unbind.c - decode an ldap unbind operation and pass it to a backend db */
/*
diff --git a/ldap/servers/slapd/uniqueid.c b/ldap/servers/slapd/uniqueid.c
index 0297fd83..adfb448f 100644
--- a/ldap/servers/slapd/uniqueid.c
+++ b/ldap/servers/slapd/uniqueid.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* uniqueid.c implementation of entryid functionality */
#include <stdlib.h>
diff --git a/ldap/servers/slapd/uniqueidgen.c b/ldap/servers/slapd/uniqueidgen.c
index 2b07abef..15badc35 100644
--- a/ldap/servers/slapd/uniqueidgen.c
+++ b/ldap/servers/slapd/uniqueidgen.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* uniqueidgen.c - implementation for uniqueID generator */
#include <string.h>
diff --git a/ldap/servers/slapd/utf8compare.c b/ldap/servers/slapd/utf8compare.c
index 8b1b34fb..5d28b8c3 100644
--- a/ldap/servers/slapd/utf8compare.c
+++ b/ldap/servers/slapd/utf8compare.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/ldap/servers/slapd/util.c b/ldap/servers/slapd/util.c
index f2a4eacb..0ef040d8 100644
--- a/ldap/servers/slapd/util.c
+++ b/ldap/servers/slapd/util.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* util.c -- utility functions -- functions available form libslapd */
#ifdef _WIN32
#include <direct.h> /* for getcwd */
diff --git a/ldap/servers/slapd/uuid.c b/ldap/servers/slapd/uuid.c
index 6ca110c3..e98f456b 100644
--- a/ldap/servers/slapd/uuid.c
+++ b/ldap/servers/slapd/uuid.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* uuid.c */
/*
diff --git a/ldap/servers/slapd/uuid.h b/ldap/servers/slapd/uuid.h
index d0c3fb25..a97aeb80 100644
--- a/ldap/servers/slapd/uuid.h
+++ b/ldap/servers/slapd/uuid.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* uuid.h - interface to uuid layer. UUID is generated in accordance
with UUIDs and GUIDs IETF draft
*/
diff --git a/ldap/servers/slapd/value.c b/ldap/servers/slapd/value.c
index 92c69ea9..909881cf 100644
--- a/ldap/servers/slapd/value.c
+++ b/ldap/servers/slapd/value.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* value.c - routines for dealing with values */
#undef DEBUG /* disable counters */
diff --git a/ldap/servers/slapd/valueset.c b/ldap/servers/slapd/valueset.c
index 3ece2e95..1e6e70ed 100644
--- a/ldap/servers/slapd/valueset.c
+++ b/ldap/servers/slapd/valueset.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* valueset.c - routines for dealing with value sets */
#include "slap.h"
diff --git a/ldap/servers/slapd/vattr.c b/ldap/servers/slapd/vattr.c
index 82f6f48c..d18951f5 100644
--- a/ldap/servers/slapd/vattr.c
+++ b/ldap/servers/slapd/vattr.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
Virtual Attributes
diff --git a/ldap/servers/slapd/vattr_spi.h b/ldap/servers/slapd/vattr_spi.h
index dae329b4..50d75901 100644
--- a/ldap/servers/slapd/vattr_spi.h
+++ b/ldap/servers/slapd/vattr_spi.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* Defines the vattr SPI interface, used by COS and Roles at present */
/* Also needs to be included by any code which participates in the vattr
loop detection scheme (e.g. filter test code)
diff --git a/ldap/servers/slapd/views.h b/ldap/servers/slapd/views.h
index ab59a4c0..0ac971e3 100644
--- a/ldap/servers/slapd/views.h
+++ b/ldap/servers/slapd/views.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _VIEWS_H_
#define _VIEWS_H_
diff --git a/ldap/servers/snmp/ldap-agent.c b/ldap/servers/snmp/ldap-agent.c
index fddd41d6..fac31c63 100644
--- a/ldap/servers/snmp/ldap-agent.c
+++ b/ldap/servers/snmp/ldap-agent.c
@@ -35,6 +35,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <time.h>
#include "ldap-agent.h"
diff --git a/ldap/servers/snmp/ldap-agent.h b/ldap/servers/snmp/ldap-agent.h
index c827a74b..f6bddbd0 100644
--- a/ldap/servers/snmp/ldap-agent.h
+++ b/ldap/servers/snmp/ldap-agent.h
@@ -35,6 +35,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef DSOPSTABLE_H
#define DSOPSTABLE_H
diff --git a/ldap/servers/snmp/main.c b/ldap/servers/snmp/main.c
index 623a02b0..f978901a 100644
--- a/ldap/servers/snmp/main.c
+++ b/ldap/servers/snmp/main.c
@@ -35,6 +35,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <signal.h>
#include <string.h>
#include <stdio.h>
diff --git a/ldap/servers/snmp/ntagt/nslagtcom_nt.h b/ldap/servers/snmp/ntagt/nslagtcom_nt.h
index 314b8a6f..28dd59f4 100644
--- a/ldap/servers/snmp/ntagt/nslagtcom_nt.h
+++ b/ldap/servers/snmp/ntagt/nslagtcom_nt.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*-------------------------------------------------------------------------
*
* nslagtcom_nt.h - Common definitions for NS Directory Server's SNMP
diff --git a/ldap/servers/snmp/ntagt/nsldapagt_nt.c b/ldap/servers/snmp/ntagt/nsldapagt_nt.c
index bb73dbf6..42d668a6 100644
--- a/ldap/servers/snmp/ntagt/nsldapagt_nt.c
+++ b/ldap/servers/snmp/ntagt/nsldapagt_nt.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*-------------------------------------------------------------------------
*
* nsldapagt_nt.c - SNMP Extension Agent for Directory Server on NT.
diff --git a/ldap/servers/snmp/ntagt/nsldapagt_nt.h b/ldap/servers/snmp/ntagt/nsldapagt_nt.h
index 461ad8b2..abb430b3 100644
--- a/ldap/servers/snmp/ntagt/nsldapagt_nt.h
+++ b/ldap/servers/snmp/ntagt/nsldapagt_nt.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*-------------------------------------------------------------------------
*
* nsldapagt_nt.h - Definitions for NS Directory Server's SNMP subagent on
diff --git a/ldap/servers/snmp/ntagt/nsldapmib_nt.c b/ldap/servers/snmp/ntagt/nsldapmib_nt.c
index a4ea3ded..b3194571 100644
--- a/ldap/servers/snmp/ntagt/nsldapmib_nt.c
+++ b/ldap/servers/snmp/ntagt/nsldapmib_nt.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*-------------------------------------------------------------------------
*
* nsldapmib_nt.c - NS Directory Server's MIB for extended SNMP agent
diff --git a/ldap/servers/snmp/ntagt/nsldapmib_nt.h b/ldap/servers/snmp/ntagt/nsldapmib_nt.h
index c7dbce5a..f303e763 100644
--- a/ldap/servers/snmp/ntagt/nsldapmib_nt.h
+++ b/ldap/servers/snmp/ntagt/nsldapmib_nt.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*-------------------------------------------------------------------------
*
* nsldapmib_nt.h - Definitions for NS Directory Server's MIB on NT.
diff --git a/ldap/systools/hp_patches.c b/ldap/systools/hp_patches.c
index 70a2d6bd..f47637c7 100644
--- a/ldap/systools/hp_patches.c
+++ b/ldap/systools/hp_patches.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
{"PHSS_30966","1.0","ld(1) and linker tools cumulative patch",0,0,0},
{"PHSS_29486","1.0","KRB5-Client Version 1.0 cumulative patch",0,0,0},
{"PHSS_29487","1.0","GSS-API Version 1.0 Cumulative patch",0,0,0},
diff --git a/ldap/systools/idsktune.c b/ldap/systools/idsktune.c
index 8d90160f..160ac929 100644
--- a/ldap/systools/idsktune.c
+++ b/ldap/systools/idsktune.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* Don't forget to update build_date when the patch sets are updated.
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
diff --git a/ldap/systools/pio.c b/ldap/systools/pio.c
index 3c0b65b1..42e66fb1 100644
--- a/ldap/systools/pio.c
+++ b/ldap/systools/pio.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "pio.h"
#include <ctype.h>
#include <string.h>
diff --git a/ldap/systools/pio.h b/ldap/systools/pio.h
index 80d65d56..6cb05d55 100644
--- a/ldap/systools/pio.h
+++ b/ldap/systools/pio.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef _H_III_PIO_H
#define _H_III_PIO_H
diff --git a/ldap/systools/sol_patches.c b/ldap/systools/sol_patches.c
index 0b41091d..01d2f0b2 100644
--- a/ldap/systools/sol_patches.c
+++ b/ldap/systools/sol_patches.c
@@ -36,6 +36,11 @@
* All rights reserved.
* --- END COPYRIGHT BLOCK --- */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* This list was generated by /u/norikoyasuo/bin/getSolPatches.pl */
/* on droid.mcom.com */
/* at Thu Mar 18 18:34:27 2004 GMT */
diff --git a/ldap/systools/viewcore.c b/ldap/systools/viewcore.c
index adad4638..45e4cce5 100644
--- a/ldap/systools/viewcore.c
+++ b/ldap/systools/viewcore.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <fcntl.h>
#include <stdio.h>
#ifdef linux
diff --git a/lib/base/crit.cpp b/lib/base/crit.cpp
index b4495106..3e057494 100644
--- a/lib/base/crit.cpp
+++ b/lib/base/crit.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* crit.c: Critical section abstraction. Used in threaded servers to protect
* areas where two threads can interfere with each other.
diff --git a/lib/base/dns.cpp b/lib/base/dns.cpp
index f2e5454e..62d3e44b 100644
--- a/lib/base/dns.cpp
+++ b/lib/base/dns.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dns.c: DNS resolution routines
*
diff --git a/lib/base/dnsdmain.cpp b/lib/base/dnsdmain.cpp
index 6ed82428..7cbc0567 100644
--- a/lib/base/dnsdmain.cpp
+++ b/lib/base/dnsdmain.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* dnsdmain.c: DNS domain guessing stuff moved out of dns.c because of the
* string ball problems
diff --git a/lib/base/ereport.cpp b/lib/base/ereport.cpp
index d05a1b7e..ba3df4e5 100644
--- a/lib/base/ereport.cpp
+++ b/lib/base/ereport.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ereport.c: Records transactions, reports errors to administrators, etc.
*
diff --git a/lib/base/eventlog.cpp b/lib/base/eventlog.cpp
index b0be1ad0..7144edd6 100644
--- a/lib/base/eventlog.cpp
+++ b/lib/base/eventlog.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// //
// Name: EVENTLOG //
// Platforms: WIN32 //
diff --git a/lib/base/file.cpp b/lib/base/file.cpp
index 97e5fe85..0e9e87ec 100644
--- a/lib/base/file.cpp
+++ b/lib/base/file.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* file.c: system specific functions for reading/writing files
*
diff --git a/lib/base/fsmutex.cpp b/lib/base/fsmutex.cpp
index bd4f4357..f43f4c0f 100644
--- a/lib/base/fsmutex.cpp
+++ b/lib/base/fsmutex.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* fsmutex: Mutexes that are filesystem-based so they're available from more
* than one process and address space
diff --git a/lib/base/lexer.cpp b/lib/base/lexer.cpp
index d5292f0b..237edf0d 100644
--- a/lib/base/lexer.cpp
+++ b/lib/base/lexer.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (lexer.c)
*
diff --git a/lib/base/lexer_pvt.h b/lib/base/lexer_pvt.h
index 528144fd..45488e01 100644
--- a/lib/base/lexer_pvt.h
+++ b/lib/base/lexer_pvt.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef __LEXER_PVT_H
#define __LEXER_PVT_H
diff --git a/lib/base/net.cpp b/lib/base/net.cpp
index 5c31032b..53c79f3a 100644
--- a/lib/base/net.cpp
+++ b/lib/base/net.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* net.c: sockets abstraction and DNS related things
*
diff --git a/lib/base/nscperror.c b/lib/base/nscperror.c
index 8c30a4e0..e8881408 100644
--- a/lib/base/nscperror.c
+++ b/lib/base/nscperror.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* nscperrors.c
* Very crude error handling for nspr and libsec.
*/
diff --git a/lib/base/nterrors.cpp b/lib/base/nterrors.cpp
index 1104515a..68c31fed 100644
--- a/lib/base/nterrors.cpp
+++ b/lib/base/nterrors.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* nterrors.c: Conversion of error numbers to explanation strings
*
diff --git a/lib/base/plist.cpp b/lib/base/plist.cpp
index 6482cd05..3c3192d6 100644
--- a/lib/base/plist.cpp
+++ b/lib/base/plist.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* MODULE: plist.c
*
diff --git a/lib/base/plist_pvt.h b/lib/base/plist_pvt.h
index e007a7ce..c8668517 100644
--- a/lib/base/plist_pvt.h
+++ b/lib/base/plist_pvt.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PLIST_PVT_H
#define _PLIST_PVT_H
diff --git a/lib/base/pool.cpp b/lib/base/pool.cpp
index 8a379549..2299309b 100644
--- a/lib/base/pool.cpp
+++ b/lib/base/pool.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Generic pool handling routines.
*
diff --git a/lib/base/rwlock.cpp b/lib/base/rwlock.cpp
index af504a87..81d4e47a 100644
--- a/lib/base/rwlock.cpp
+++ b/lib/base/rwlock.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdlib.h>
#include "crit.h"
#include "rwlock.h"
diff --git a/lib/base/shexp.cpp b/lib/base/shexp.cpp
index 7b0b2652..11938cb4 100644
--- a/lib/base/shexp.cpp
+++ b/lib/base/shexp.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* shexp.c: shell-like wildcard match routines
*
diff --git a/lib/base/system.cpp b/lib/base/system.cpp
index 22da0991..287d5a84 100644
--- a/lib/base/system.cpp
+++ b/lib/base/system.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* system.c: A grab bag of system-level abstractions
*
diff --git a/lib/base/systhr.cpp b/lib/base/systhr.cpp
index 5742da2d..87d32522 100644
--- a/lib/base/systhr.cpp
+++ b/lib/base/systhr.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* systhr.c: Abstracted threading mechanisms
*
diff --git a/lib/base/util.cpp b/lib/base/util.cpp
index 3f4aa766..7e9bdbdf 100644
--- a/lib/base/util.cpp
+++ b/lib/base/util.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* util.c: A hodge podge of utility functions and standard functions which
* are unavailable on certain systems
diff --git a/lib/ldaputil/cert.c b/lib/ldaputil/cert.c
index b85f2eb7..20a2c2bd 100644
--- a/lib/ldaputil/cert.c
+++ b/lib/ldaputil/cert.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include <malloc.h>
diff --git a/lib/ldaputil/certmap.c b/lib/ldaputil/certmap.c
index 2828bb42..b0adf662 100644
--- a/lib/ldaputil/certmap.c
+++ b/lib/ldaputil/certmap.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/lib/ldaputil/dbconf.c b/lib/ldaputil/dbconf.c
index f507251a..cc152168 100644
--- a/lib/ldaputil/dbconf.c
+++ b/lib/ldaputil/dbconf.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include <malloc.h>
#include <ctype.h>
diff --git a/lib/ldaputil/encode.c b/lib/ldaputil/encode.c
index dfc80450..9f127cbf 100644
--- a/lib/ldaputil/encode.c
+++ b/lib/ldaputil/encode.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <malloc.h>
#include <string.h>
#include <ldaputil/certmap.h>
diff --git a/lib/ldaputil/errors.c b/lib/ldaputil/errors.c
index ef9ae840..23c56603 100644
--- a/lib/ldaputil/errors.c
+++ b/lib/ldaputil/errors.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <ldaputil/errors.h>
#include <ldaputil/certmap.h>
diff --git a/lib/ldaputil/examples/init.c b/lib/ldaputil/examples/init.c
index 4474d3dd..d58c70aa 100644
--- a/lib/ldaputil/examples/init.c
+++ b/lib/ldaputil/examples/init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/lib/ldaputil/examples/plugin.c b/lib/ldaputil/examples/plugin.c
index 8384d34b..21ea9d16 100644
--- a/lib/ldaputil/examples/plugin.c
+++ b/lib/ldaputil/examples/plugin.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/lib/ldaputil/examples/plugin.h b/lib/ldaputil/examples/plugin.h
index ca71595c..8ed78082 100644
--- a/lib/ldaputil/examples/plugin.h
+++ b/lib/ldaputil/examples/plugin.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _CERTMAP_PLUGIN_H
#define _CERTMAP_PLUGIN_H
diff --git a/lib/ldaputil/init.c b/lib/ldaputil/init.c
index c5a4698a..51a09600 100644
--- a/lib/ldaputil/init.c
+++ b/lib/ldaputil/init.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include <prlink.h>
#include <prio.h>
diff --git a/lib/ldaputil/ldapauth.c b/lib/ldaputil/ldapauth.c
index dd062be6..0039bae5 100644
--- a/lib/ldaputil/ldapauth.c
+++ b/lib/ldaputil/ldapauth.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ldapauth.cpp: Implements LDAP integration in the web server.
*
diff --git a/lib/ldaputil/ldapdb.c b/lib/ldaputil/ldapdb.c
index c268cca7..a126c169 100644
--- a/lib/ldaputil/ldapdb.c
+++ b/lib/ldaputil/ldapdb.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef DONT_USE_LDAP_SSL
#define USE_LDAP_SSL
#endif
diff --git a/lib/ldaputil/ldaputili.h b/lib/ldaputil/ldaputili.h
index 937d13c3..2891db8f 100644
--- a/lib/ldaputil/ldaputili.h
+++ b/lib/ldaputil/ldaputili.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _LDAPU_LDAPUTILI_H
#define _LDAPU_LDAPUTILI_H
diff --git a/lib/ldaputil/utest/auth.cpp b/lib/ldaputil/utest/auth.cpp
index 64972aa8..a5d78906 100644
--- a/lib/ldaputil/utest/auth.cpp
+++ b/lib/ldaputil/utest/auth.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/lib/ldaputil/utest/example.c b/lib/ldaputil/utest/example.c
index c1d5d6db..8fe65ffd 100644
--- a/lib/ldaputil/utest/example.c
+++ b/lib/ldaputil/utest/example.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <certmap.h>
diff --git a/lib/ldaputil/utest/plugin.c b/lib/ldaputil/utest/plugin.c
index d46d8118..9d0334ec 100644
--- a/lib/ldaputil/utest/plugin.c
+++ b/lib/ldaputil/utest/plugin.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/lib/ldaputil/utest/plugin.h b/lib/ldaputil/utest/plugin.h
index f2cf714e..fbb2650b 100644
--- a/lib/ldaputil/utest/plugin.h
+++ b/lib/ldaputil/utest/plugin.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _CERTMAP_PLUGIN_H
#define _CERTMAP_PLUGIN_H
diff --git a/lib/ldaputil/utest/stubs.c b/lib/ldaputil/utest/stubs.c
index a612c865..ec393139 100644
--- a/lib/ldaputil/utest/stubs.c
+++ b/lib/ldaputil/utest/stubs.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <ctype.h> /* isspace */
#include <string.h>
#include <stdio.h> /* sprintf */
diff --git a/lib/ldaputil/utest/stubs.cpp b/lib/ldaputil/utest/stubs.cpp
index 69dc2300..d9bafdf8 100644
--- a/lib/ldaputil/utest/stubs.cpp
+++ b/lib/ldaputil/utest/stubs.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <ctype.h> /* isspace */
#include <string.h>
#include <stdio.h> /* sprintf */
diff --git a/lib/ldaputil/vtable.c b/lib/ldaputil/vtable.c
index 3aaa7ec0..7ef13553 100644
--- a/lib/ldaputil/vtable.c
+++ b/lib/ldaputil/vtable.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "ldaputili.h"
#include <ldap.h>
#ifdef USE_LDAP_SSL
diff --git a/lib/libaccess/access_plhash.cpp b/lib/libaccess/access_plhash.cpp
index d767bf92..abb2e333 100644
--- a/lib/libaccess/access_plhash.cpp
+++ b/lib/libaccess/access_plhash.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
This file contains a function which augments the standard nspr PL_HashTable
api. The problem is that the hash table lookup function in the standard NSPR
diff --git a/lib/libaccess/access_plhash.h b/lib/libaccess/access_plhash.h
index 9712db78..56d4f0b5 100644
--- a/lib/libaccess/access_plhash.h
+++ b/lib/libaccess/access_plhash.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
NSPR_BEGIN_EXTERN_C
/*
* access_plhash.cpp - supplement to NSPR plhash
diff --git a/lib/libaccess/acl.tab.cpp b/lib/libaccess/acl.tab.cpp
index 9f66edcf..6cab7d97 100644
--- a/lib/libaccess/acl.tab.cpp
+++ b/lib/libaccess/acl.tab.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
# line 8 "acltext.y"
#include <string.h>
#include <netsite.h>
diff --git a/lib/libaccess/acl.tab.h b/lib/libaccess/acl.tab.h
index ba277c38..0bd090a5 100644
--- a/lib/libaccess/acl.tab.h
+++ b/lib/libaccess/acl.tab.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
typedef union
#ifdef __cplusplus
ACLSTYPE
diff --git a/lib/libaccess/acl.yy.cpp b/lib/libaccess/acl.yy.cpp
index e248cea5..ef88e039 100644
--- a/lib/libaccess/acl.yy.cpp
+++ b/lib/libaccess/acl.yy.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
diff --git a/lib/libaccess/aclcache.cpp b/lib/libaccess/aclcache.cpp
index da467cc7..aede1220 100644
--- a/lib/libaccess/aclcache.cpp
+++ b/lib/libaccess/aclcache.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <prlog.h>
#include <base/crit.h>
#include <base/ereport.h>
diff --git a/lib/libaccess/aclcache.h b/lib/libaccess/aclcache.h
index d4f73d24..8849cf63 100644
--- a/lib/libaccess/aclcache.h
+++ b/lib/libaccess/aclcache.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef CACHE_H
#define CACHE_H
diff --git a/lib/libaccess/aclerror.cpp b/lib/libaccess/aclerror.cpp
index 942f93e0..7c1d4a26 100644
--- a/lib/libaccess/aclerror.cpp
+++ b/lib/libaccess/aclerror.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (aclerror.c)
*
diff --git a/lib/libaccess/acleval.cpp b/lib/libaccess/acleval.cpp
index bc5ae71c..bf7a4736 100644
--- a/lib/libaccess/acleval.cpp
+++ b/lib/libaccess/acleval.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (acleval.c)
*
diff --git a/lib/libaccess/aclflush.cpp b/lib/libaccess/aclflush.cpp
index 7f34a307..8e5ce7c8 100644
--- a/lib/libaccess/aclflush.cpp
+++ b/lib/libaccess/aclflush.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Source file for the ACL_CacheFlush-related routines.
*/
diff --git a/lib/libaccess/aclpriv.h b/lib/libaccess/aclpriv.h
index f4e9b78a..a95b3637 100644
--- a/lib/libaccess/aclpriv.h
+++ b/lib/libaccess/aclpriv.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* ACL private data structure definitions
*/
diff --git a/lib/libaccess/aclscan.h b/lib/libaccess/aclscan.h
index e453a1a9..e2ab7196 100644
--- a/lib/libaccess/aclscan.h
+++ b/lib/libaccess/aclscan.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Internal functions for scanner.
*/
diff --git a/lib/libaccess/aclspace.cpp b/lib/libaccess/aclspace.cpp
index b7f05972..a33c8621 100644
--- a/lib/libaccess/aclspace.cpp
+++ b/lib/libaccess/aclspace.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <string.h>
#include <libaccess/acl.h>
#include "aclpriv.h"
diff --git a/lib/libaccess/acltools.cpp b/lib/libaccess/acltools.cpp
index 7f96bedf..7ce82659 100644
--- a/lib/libaccess/acltools.cpp
+++ b/lib/libaccess/acltools.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* Tools to build and maintain access control lists.
*/
diff --git a/lib/libaccess/aclutil.cpp b/lib/libaccess/aclutil.cpp
index 0d14f96e..77bdf60b 100644
--- a/lib/libaccess/aclutil.cpp
+++ b/lib/libaccess/aclutil.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Source file for the TimeOfDay and DayOfWeek LAS drivers
*/
diff --git a/lib/libaccess/aclutil.h b/lib/libaccess/aclutil.h
index 4dd0124b..f2585dc8 100644
--- a/lib/libaccess/aclutil.h
+++ b/lib/libaccess/aclutil.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef ACLUTIL_H
#define ACLUTIL_H
diff --git a/lib/libaccess/authdb.cpp b/lib/libaccess/authdb.cpp
index 5fec834b..da435c39 100644
--- a/lib/libaccess/authdb.cpp
+++ b/lib/libaccess/authdb.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
diff --git a/lib/libaccess/las.h b/lib/libaccess/las.h
index 94ceddfc..25090226 100644
--- a/lib/libaccess/las.h
+++ b/lib/libaccess/las.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef LAS_H
#define LAS_H
diff --git a/lib/libaccess/lasdns.cpp b/lib/libaccess/lasdns.cpp
index 904a15e4..0b3d3dcf 100644
--- a/lib/libaccess/lasdns.cpp
+++ b/lib/libaccess/lasdns.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* lasdns.c
* This file contains the DNS LAS code.
*/
diff --git a/lib/libaccess/lasdns.h b/lib/libaccess/lasdns.h
index 83967b75..89112445 100644
--- a/lib/libaccess/lasdns.h
+++ b/lib/libaccess/lasdns.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
typedef struct LASDnsContext {
PRHashTable *Table;
pool_handle_t *pool;
diff --git a/lib/libaccess/lasgroup.cpp b/lib/libaccess/lasgroup.cpp
index f5d7288f..6e6602a5 100644
--- a/lib/libaccess/lasgroup.cpp
+++ b/lib/libaccess/lasgroup.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* #define DBG_PRINT */
/* lasgroup.c
diff --git a/lib/libaccess/lasip.cpp b/lib/libaccess/lasip.cpp
index ed4761d9..aa698de6 100644
--- a/lib/libaccess/lasip.cpp
+++ b/lib/libaccess/lasip.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* aclip.c
* This file contains the IP LAS code.
*/
diff --git a/lib/libaccess/lasip.h b/lib/libaccess/lasip.h
index c3815794..c353d9d7 100644
--- a/lib/libaccess/lasip.h
+++ b/lib/libaccess/lasip.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
typedef struct LASIpTree {
struct LASIpTree *action[2];
} LASIpTree_t;
diff --git a/lib/libaccess/lastod.cpp b/lib/libaccess/lastod.cpp
index f167cfde..218ea547 100644
--- a/lib/libaccess/lastod.cpp
+++ b/lib/libaccess/lastod.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* Source file for the TimeOfDay and DayOfWeek LAS drivers
*/
#include <time.h>
diff --git a/lib/libaccess/lasuser.cpp b/lib/libaccess/lasuser.cpp
index eaff4810..ed9b8cdb 100644
--- a/lib/libaccess/lasuser.cpp
+++ b/lib/libaccess/lasuser.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* lasuser.c
* This file contains the User LAS code.
*/
diff --git a/lib/libaccess/ldapacl.cpp b/lib/libaccess/ldapacl.cpp
index bbff3f98..6be89b18 100644
--- a/lib/libaccess/ldapacl.cpp
+++ b/lib/libaccess/ldapacl.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* #define DBG_PRINT */
#include <netsite.h>
diff --git a/lib/libaccess/ldapauth.h b/lib/libaccess/ldapauth.h
index 62db6f73..172617d5 100644
--- a/lib/libaccess/ldapauth.h
+++ b/lib/libaccess/ldapauth.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#ifndef LDAP_AUTH_H
#define LDAP_AUTH_H
diff --git a/lib/libaccess/method.cpp b/lib/libaccess/method.cpp
index 64924847..11277b04 100644
--- a/lib/libaccess/method.cpp
+++ b/lib/libaccess/method.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <netsite.h>
#include <libaccess/las.h>
#include <libaccess/acl.h>
diff --git a/lib/libaccess/nsautherr.cpp b/lib/libaccess/nsautherr.cpp
index 1f491fdd..7cea84e8 100644
--- a/lib/libaccess/nsautherr.cpp
+++ b/lib/libaccess/nsautherr.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (nsautherr.c)
*
diff --git a/lib/libaccess/nseframe.cpp b/lib/libaccess/nseframe.cpp
index ee918b5c..b29e420f 100644
--- a/lib/libaccess/nseframe.cpp
+++ b/lib/libaccess/nseframe.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (nseframe.c)
*
diff --git a/lib/libaccess/oneeval.cpp b/lib/libaccess/oneeval.cpp
index 9f8cdaaa..d18fdcfa 100644
--- a/lib/libaccess/oneeval.cpp
+++ b/lib/libaccess/oneeval.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (acleval.c)
*
diff --git a/lib/libaccess/oneeval.h b/lib/libaccess/oneeval.h
index 9b433e20..18d4813b 100644
--- a/lib/libaccess/oneeval.h
+++ b/lib/libaccess/oneeval.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef LEVAL_H
#define LEVAL_H
diff --git a/lib/libaccess/parse.h b/lib/libaccess/parse.h
index e5b92b8f..413e271d 100644
--- a/lib/libaccess/parse.h
+++ b/lib/libaccess/parse.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* module private routines for handling the yacc based
* ACL Parser.
diff --git a/lib/libaccess/permhash.h b/lib/libaccess/permhash.h
index 0fa31885..f76ab4c6 100644
--- a/lib/libaccess/permhash.h
+++ b/lib/libaccess/permhash.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef _PERMHASH_H_
#define _PERMHASH_H_
diff --git a/lib/libaccess/register.cpp b/lib/libaccess/register.cpp
index aae5597c..beed23d9 100644
--- a/lib/libaccess/register.cpp
+++ b/lib/libaccess/register.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* LAS registration interface
*/
diff --git a/lib/libaccess/symbols.cpp b/lib/libaccess/symbols.cpp
index 09a3c6d8..b5d90020 100644
--- a/lib/libaccess/symbols.cpp
+++ b/lib/libaccess/symbols.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/*
* Description (symbols.c)
*
diff --git a/lib/libaccess/usi.cpp b/lib/libaccess/usi.cpp
index 361f20d3..1a8c0378 100644
--- a/lib/libaccess/usi.cpp
+++ b/lib/libaccess/usi.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include "base/systems.h"
#include "netsite.h"
#include "assert.h"
diff --git a/lib/libaccess/usrcache.cpp b/lib/libaccess/usrcache.cpp
index f6f337b8..b0ba35fd 100644
--- a/lib/libaccess/usrcache.cpp
+++ b/lib/libaccess/usrcache.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/* #define DBG_PRINT */
diff --git a/lib/libaccess/utest/acltest.cpp b/lib/libaccess/utest/acltest.cpp
index 6aafd87a..c05d6236 100644
--- a/lib/libaccess/utest/acltest.cpp
+++ b/lib/libaccess/utest/acltest.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <netsite.h>
#include <base/systhr.h>
diff --git a/lib/libaccess/utest/lasemail.cpp b/lib/libaccess/utest/lasemail.cpp
index 2fdde176..eed8d337 100644
--- a/lib/libaccess/utest/lasemail.cpp
+++ b/lib/libaccess/utest/lasemail.cpp
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
/* lasemail.cpp
* This file contains the Email LAS code.
*/
diff --git a/lib/libaccess/utest/onetest.cpp b/lib/libaccess/utest/onetest.cpp
index e052f3be..1c91d25f 100644
--- a/lib/libaccess/utest/onetest.cpp
+++ b/lib/libaccess/utest/onetest.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <netsite.h>
#include <libaccess/nserror.h>
diff --git a/lib/libaccess/utest/shexp.cpp b/lib/libaccess/utest/shexp.cpp
index 601ce41c..c118081b 100644
--- a/lib/libaccess/utest/shexp.cpp
+++ b/lib/libaccess/utest/shexp.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* shexp.c: shell-like wildcard match routines
*
diff --git a/lib/libaccess/utest/shexp.h b/lib/libaccess/utest/shexp.h
index 2cad1ca5..76d62ffc 100644
--- a/lib/libaccess/utest/shexp.h
+++ b/lib/libaccess/utest/shexp.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* shexp.h: Defines and prototypes for shell exp. match routines
*
diff --git a/lib/libaccess/utest/testmain.cpp b/lib/libaccess/utest/testmain.cpp
index e13efd9b..24b535a3 100644
--- a/lib/libaccess/utest/testmain.cpp
+++ b/lib/libaccess/utest/testmain.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* ACL parser unit test program
*/
diff --git a/lib/libaccess/utest/twotest.cpp b/lib/libaccess/utest/twotest.cpp
index 3247856f..25024d3a 100644
--- a/lib/libaccess/utest/twotest.cpp
+++ b/lib/libaccess/utest/twotest.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <netsite.h>
#include <base/plist.h>
diff --git a/lib/libaccess/utest/ustubs.cpp b/lib/libaccess/utest/ustubs.cpp
index 01c8b3f6..425bf11e 100644
--- a/lib/libaccess/utest/ustubs.cpp
+++ b/lib/libaccess/utest/ustubs.cpp
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <sys/types.h>
#include <malloc.h>
#include <string.h>
diff --git a/lib/libadmin/authdb.c b/lib/libadmin/authdb.c
index d42c6783..6ab86cdd 100644
--- a/lib/libadmin/authdb.c
+++ b/lib/libadmin/authdb.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* authdb.c: Functions to aid in user/group database admin
*
diff --git a/lib/libadmin/error.c b/lib/libadmin/error.c
index f6e0a3cd..dc726a7f 100644
--- a/lib/libadmin/error.c
+++ b/lib/libadmin/error.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* error.c - Handle error recovery
*
diff --git a/lib/libadmin/template.c b/lib/libadmin/template.c
index 630e41a9..247e801a 100644
--- a/lib/libadmin/template.c
+++ b/lib/libadmin/template.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* template.c: The actual HTML templates in a static variable
*
diff --git a/lib/libadmin/util.c b/lib/libadmin/util.c
index 28327d2d..1c6134d4 100644
--- a/lib/libadmin/util.c
+++ b/lib/libadmin/util.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/*
* util.c: Miscellaneous stuffs
*
diff --git a/lib/libnt/info.c b/lib/libnt/info.c
index a2fcfeb7..f0b333e1 100644
--- a/lib/libnt/info.c
+++ b/lib/libnt/info.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <windows.h>
#include "nt/ntos.h"
diff --git a/lib/libnt/path.c b/lib/libnt/path.c
index b2ba34c4..e623de9e 100644
--- a/lib/libnt/path.c
+++ b/lib/libnt/path.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/***********************************************************
* Path functions - removing ../ from path
**********************************************************/
diff --git a/lib/libnt/pmddeml.c b/lib/libnt/pmddeml.c
index aac29528..3a9ed1ba 100644
--- a/lib/libnt/pmddeml.c
+++ b/lib/libnt/pmddeml.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
/****************************************************************************
PROGRAM: pmddeml.c
diff --git a/lib/libnt/registry.c b/lib/libnt/registry.c
index 04b4ab6e..e3eddd0b 100644
--- a/lib/libnt/registry.c
+++ b/lib/libnt/registry.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
// ERROR.C
//
// This file contains the functions needed to install the httpd server.
diff --git a/lib/libnt/service.c b/lib/libnt/service.c
index f193c543..c4a20f4c 100644
--- a/lib/libnt/service.c
+++ b/lib/libnt/service.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <windows.h>
#include "nt/ntos.h"
diff --git a/lib/libnt/tcpip.c b/lib/libnt/tcpip.c
index 70cb8dd4..c54e86c3 100644
--- a/lib/libnt/tcpip.c
+++ b/lib/libnt/tcpip.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <windows.h>
#include "nt/ntos.h"
diff --git a/lib/libsi18n/acclanglist.c b/lib/libsi18n/acclanglist.c
index e66d6595..dc93b77f 100644
--- a/lib/libsi18n/acclanglist.c
+++ b/lib/libsi18n/acclanglist.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
diff --git a/lib/libsi18n/coreres.c b/lib/libsi18n/coreres.c
index 4a05c5f9..e20d07a6 100644
--- a/lib/libsi18n/coreres.c
+++ b/lib/libsi18n/coreres.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/libsi18n/coreres.h b/lib/libsi18n/coreres.h
index 1dbc02c2..8ad815a4 100644
--- a/lib/libsi18n/coreres.h
+++ b/lib/libsi18n/coreres.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef CORERES_H
#define CORERES_H
diff --git a/lib/libsi18n/getlang.c b/lib/libsi18n/getlang.c
index ff9ab5b1..f8cb649b 100644
--- a/lib/libsi18n/getlang.c
+++ b/lib/libsi18n/getlang.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/lib/libsi18n/getstrmem.c b/lib/libsi18n/getstrmem.c
index f1d52dd5..2beb3472 100644
--- a/lib/libsi18n/getstrmem.c
+++ b/lib/libsi18n/getstrmem.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
diff --git a/lib/libsi18n/getstrmem.h b/lib/libsi18n/getstrmem.h
index 5cfe9671..12f58caf 100644
--- a/lib/libsi18n/getstrmem.h
+++ b/lib/libsi18n/getstrmem.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#define BUCKET_MASK NUM_BUCKETS-1
typedef struct DATABIN {
char* pLibraryName;
diff --git a/lib/libsi18n/getstrprop.c b/lib/libsi18n/getstrprop.c
index 45870652..4a5ab04b 100644
--- a/lib/libsi18n/getstrprop.c
+++ b/lib/libsi18n/getstrprop.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/lib/libsi18n/gsslapd.h b/lib/libsi18n/gsslapd.h
index d6a0afbb..3497a52f 100644
--- a/lib/libsi18n/gsslapd.h
+++ b/lib/libsi18n/gsslapd.h
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#define DATABASE_NAME "ns-slapd"
#ifdef RESOURCE_STR
diff --git a/lib/libsi18n/makstrdb.c b/lib/libsi18n/makstrdb.c
index 176e95ea..c96c4d54 100644
--- a/lib/libsi18n/makstrdb.c
+++ b/lib/libsi18n/makstrdb.c
@@ -36,6 +36,11 @@
* All rights reserved.
* END COPYRIGHT BLOCK **/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/lib/libsi18n/propset.c b/lib/libsi18n/propset.c
index c8589d1e..87b98854 100644
--- a/lib/libsi18n/propset.c
+++ b/lib/libsi18n/propset.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/libsi18n/propset.h b/lib/libsi18n/propset.h
index 97421ec3..8ef0df96 100644
--- a/lib/libsi18n/propset.h
+++ b/lib/libsi18n/propset.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef PROPSET_H
#define PROPSET_H
diff --git a/lib/libsi18n/reshash.c b/lib/libsi18n/reshash.c
index eefb87b6..898d02f5 100644
--- a/lib/libsi18n/reshash.c
+++ b/lib/libsi18n/reshash.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lib/libsi18n/reshash.h b/lib/libsi18n/reshash.h
index 1edf4163..0e67fb49 100644
--- a/lib/libsi18n/reshash.h
+++ b/lib/libsi18n/reshash.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef RESHASH_H
#define RESHASH_H
/**********************************************************************
diff --git a/lib/libsi18n/txtfile.c b/lib/libsi18n/txtfile.c
index 79549a6e..b115e705 100644
--- a/lib/libsi18n/txtfile.c
+++ b/lib/libsi18n/txtfile.c
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/lib/libsi18n/txtfile.h b/lib/libsi18n/txtfile.h
index eac4f41f..fc96f318 100644
--- a/lib/libsi18n/txtfile.h
+++ b/lib/libsi18n/txtfile.h
@@ -35,6 +35,11 @@
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#ifndef TXTFILE_H
#define TXTFILE_H