00001 /* 00002 Unix SMB/CIFS implementation. 00003 Copyright (C) 2001 by Martin Pool <mbp@samba.org> 00004 Copyright (C) 2003 by Jim McDonough <jmcd@us.ibm.com> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #include "includes.h" 00022 00023 /** 00024 * @file dynconfig.c 00025 * 00026 * @brief Global configurations, initialized to configured defaults. 00027 * 00028 * This file should be the only file that depends on path 00029 * configuration (--prefix, etc), so that if ./configure is re-run, 00030 * all programs will be appropriately updated. Everything else in 00031 * Samba should import extern variables from here, rather than relying 00032 * on preprocessor macros. 00033 * 00034 * Eventually some of these may become even more variable, so that 00035 * they can for example consistently be set across the whole of Samba 00036 * by command-line parameters, config file entries, or environment 00037 * variables. 00038 * 00039 * @todo Perhaps eventually these should be merged into the parameter 00040 * table? There's kind of a chicken-and-egg situation there... 00041 **/ 00042 00043 char const *dyn_SBINDIR = SBINDIR, 00044 *dyn_BINDIR = BINDIR, 00045 *dyn_SWATDIR = SWATDIR; 00046 00047 pstring dyn_CONFIGFILE = CONFIGFILE; /**< Location of smb.conf file. **/ 00048 00049 /** Log file directory. **/ 00050 pstring dyn_LOGFILEBASE = LOGFILEBASE; 00051 00052 /** Statically configured LanMan hosts. **/ 00053 pstring dyn_LMHOSTSFILE = LMHOSTSFILE; 00054 00055 /** 00056 * @brief Samba library directory. 00057 * 00058 * @sa lib_path() to get the path to a file inside the LIBDIR. 00059 **/ 00060 pstring dyn_LIBDIR = LIBDIR; 00061 fstring dyn_SHLIBEXT = SHLIBEXT; 00062 00063 /** 00064 * @brief Directory holding lock files. 00065 * 00066 * Not writable, but used to set a default in the parameter table. 00067 **/ 00068 pstring dyn_LOCKDIR = LOCKDIR; 00069 pstring dyn_PIDDIR = PIDDIR; 00070 00071 pstring dyn_SMB_PASSWD_FILE = SMB_PASSWD_FILE; 00072 pstring dyn_PRIVATE_DIR = PRIVATE_DIR;