1case $CONFIG in 2'') . ./config.sh ;; 3esac 4echo "Extracting config.h (with variable substitutions)" 5sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*\)/\*!/\*#define\1\*//\*!' 6/* 7 * This file was produced by running the config.h.SH script, which 8 * gets its values from config.sh, which is generally produced by 9 * running Configure. 10 * 11 * Feel free to modify any of this as the need arises. Note, however, 12 * that running config.h.SH again will wipe out any changes you've made. 13 * For a more permanent change edit config.sh and rerun config.h.SH. 14 * 15 * \$Id: Config_h.U,v 3.0.1.2 1993/08/24 12:13:20 ram Exp $ 16 */ 17 18/* Configuration time: $cf_time 19 * Configured by: $cf_by 20 * Target system: $myuname 21 */ 22 23#ifndef _config_h_ 24#define _config_h_ 25 26/* EUNICE: 27 * This symbol, if defined, indicates that the program is being compiled 28 * under the EUNICE package under VMS. The program will need to handle 29 * things like files that don't go away the first time you unlink them, 30 * due to version numbering. It will also need to compensate for lack 31 * of a respectable link() command. 32 */ 33/* VMS: 34 * This symbol, if defined, indicates that the program is running under 35 * VMS. It is currently only set in conjunction with the EUNICE symbol. 36 */ 37#$d_eunice EUNICE /**/ 38#$d_eunice VMS /**/ 39 40/* HAS_GETPWENT: 41 * This symbol, if defined, indicates that the getpwent() routine 42 * should be used instead of the getpw() routine. 43 */ 44#$d_getpwent HAS_GETPWENT /**/ 45 46/* HAS_TERMLIB: 47 * This symbol, when defined, indicates that termlib-style routines 48 * are available. There is nothing to include. 49 */ 50#$d_havetlib HAS_TERMLIB /**/ 51 52/* INTERNET: 53 * This symbol, if defined, indicates that there is a mailer available 54 * which supports internet-style addresses (user@site.domain). 55 */ 56#$d_internet INTERNET /**/ 57 58/* HAS_MEMCMP: 59 * This symbol, if defined, indicates that the memcmp routine is available 60 * to compare blocks of memory. 61 */ 62#$d_memcmp HAS_MEMCMP /**/ 63 64/* HAS_MEMCPY: 65 * This symbol, if defined, indicates that the memcpy routine is available 66 * to copy blocks of memory. 67 */ 68#$d_memcpy HAS_MEMCPY /**/ 69 70/* HAS_MEMSET: 71 * This symbol, if defined, indicates that the memset routine is available 72 * to set blocks of memory. 73 */ 74#$d_memset HAS_MEMSET /**/ 75 76/* NEWS_ADMIN: 77 * This symbol, if defined, contains the login name of the news 78 * administrator. 79 */ 80#$d_newsadm NEWS_ADMIN "$newsadmin" /**/ 81 82/* NOLINEBUF: 83 * This symbol, if defined, indicates that stdout is not buffered, so that 84 * the program can call setbuf() or setlinebuf() for efficiency. 85 */ 86#$d_nolnbuf NOLINEBUF /**/ 87 88/* NORMSIG: 89 * This symbol, if defined, indicates that normal signal handling routines 90 * should be used, as opposed to the ones in 4.1bsd (sigset, etc.). 91 */ 92#$d_normsig NORMSIG /**/ 93 94/* HAS_RDCHK: 95 * This symbol, if defined, indicates that the rdchk routine is available 96 * to find out if there is input pending on an IO channel. Generally 97 * the routine is used only if FIONREAD and O_NDELAY aren't available. 98 */ 99#$d_rdchk HAS_RDCHK /**/ 100 101/* HAS_RENAME: 102 * This symbol, if defined, indicates that the rename routine is available 103 * to rename files. Otherwise you should do the unlink(), link(), unlink() 104 * trick. 105 */ 106#$d_rename HAS_RENAME /**/ 107 108/* HAS_SIGBLOCK: 109 * This symbol, if defined, indicates that the sigblock routine is 110 * available to block signal reception. 111 */ 112#$d_sigblock HAS_SIGBLOCK /**/ 113 114/* HAS_SIGHOLD: 115 * This symbol, if defined, indicates that the sighold routine is 116 * available to hold signals. 117 */ 118#$d_sighold HAS_SIGHOLD /**/ 119 120/* HAS_STRCASECMP: 121 * This symbol, if defined, indicates that the strcasecmp() routine is 122 * available for case-insensitive string compares. 123 */ 124#$d_strccmp HAS_STRCASECMP /**/ 125 126/* HAS_VFORK: 127 * This symbol, if defined, indicates that vfork() exists. 128 */ 129#$d_vfork HAS_VFORK /**/ 130 131/* Signal_t: 132 * This symbol's value is either "void" or "int", corresponding to the 133 * appropriate return type of a signal handler. Thus, you can declare 134 * a signal handler using "Signal_t (*handler)()", and define the 135 * handler using "Signal_t handler(sig)". 136 */ 137#define Signal_t $signal_t /* Signal handler's return type */ 138 139/* DEFEDITOR: 140 * This symbol contains the full pathname of the default editor. 141 */ 142#define DEFEDITOR "$defeditor" /**/ 143 144/* I_DIRENT: 145 * This symbol, if defined, indicates to the C program that it should 146 * include <dirent.h>. Using this symbol also triggers the definition 147 * of the Direntry_t define which ends up being 'struct dirent' or 148 * 'struct direct' depending on the availability of <dirent.h>. 149 */ 150#$i_dirent I_DIRENT /**/ 151#ifdef I_DIRENT 152#define Direntry_t struct dirent 153#else 154#define Direntry_t struct direct 155#endif 156 157/* I_STDLIB: 158 * This symbol, if defined, indicates that <stdlib.h> exists and should 159 * be included. 160 */ 161#$i_stdlib I_STDLIB /**/ 162 163/* I_STRING: 164 * This symbol, if defined, indicates to the C program that it should 165 * include <string.h> (USG systems) instead of <strings.h> (BSD systems). 166 */ 167#$i_string I_STRING /**/ 168 169/* I_SYS_DIR: 170 * This symbol, if defined, indicates to the C program that it should 171 * include <sys/dir.h>. 172 */ 173#$i_sysdir I_SYS_DIR /**/ 174 175/* I_SYS_IOCTL: 176 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should 177 * be included. Otherwise, include <sgtty.h> or <termio.h>. 178 */ 179/* I_SYS_FILIO: 180 * This symbol, if defined, indicates that <sys/filio.h> exists and 181 * should be included instead of <sys/ioctl.h>. 182 */ 183#$i_sysioctl I_SYS_IOCTL /**/ 184#$i_sysfilio I_SYS_FILIO /**/ 185 186/* I_SYS_NDIR: 187 * This symbol, if defined, indicates to the C program that it should 188 * include <sys/ndir.h>. 189 */ 190#$i_sysndir I_SYS_NDIR /**/ 191 192/* I_TERMIO: 193 * This symbol, if defined, indicates that the program should include 194 * <termio.h> rather than <sgtty.h>. There are also differences in 195 * the ioctl() calls that depend on the value of this symbol. 196 */ 197/* I_TERMIOS: 198 * This symbol, if defined, indicates that the program should include 199 * the POSIX termios.h rather than sgtty.h or termio.h. 200 * There are also differences in the ioctl() calls that depend on the 201 * value of this symbol. 202 */ 203/* I_SGTTY: 204 * This symbol, if defined, indicates that the program should include 205 * <sgtty.h> rather than <termio.h>. There are also differences in 206 * the ioctl() calls that depend on the value of this symbol. 207 */ 208#$i_termio I_TERMIO /**/ 209#$i_termios I_TERMIOS /**/ 210#$i_sgtty I_SGTTY /**/ 211 212/* I_UNISTD: 213 * This symbol, if defined, indicates to the C program that it should 214 * include <unistd.h>. 215 */ 216#$i_unistd I_UNISTD /**/ 217 218/* I_VFORK: 219 * This symbol, if defined, indicates to the C program that it should 220 * include vfork.h. 221 */ 222#$i_vfork I_VFORK /**/ 223 224/* MAILFILE: 225 * This symbol contains the interpretable name of the mail spool file 226 * for the current user. The program must be prepared to substitute 227 * the HOME directory for %~, and the login id for %L. 228 */ 229#define MAILFILE "$mailfile" /**/ 230 231/* MBOXCHAR: 232 * This symbol contains a character which will match the beginning 233 * of a mailbox file. 234 */ 235#define MBOXCHAR '$mboxchar' /**/ 236 237/* PASSNAMES: 238 * This symbol, if defined, indicates that full names are stored in 239 * the /etc/passwd file. 240 */ 241/* BERKNAMES: 242 * This symbol, if defined, indicates that full names are stored in 243 * the /etc/passwd file in Berkeley format (name first thing, everything 244 * up to first comma, with & replaced by capitalized login id, yuck). 245 */ 246#$d_passnames PASSNAMES /* (undef to take name from ~/.fullname) */ 247#$d_berknames BERKNAMES /* (that is, ":name,stuff:") */ 248 249/* ORGNAME: 250 * This symbol contains either the organizaton name or the full pathname 251 * of a file containing the organization name, which the program must 252 * be prepared to open and substitute the contents of. 253 */ 254#define ORGNAME "$orgname" /**/ 255 256/* PREFSHELL: 257 * This symbol contains the full name of the preferred user shell on this 258 * system. Usual values are /bin/csh, /bin/ksh, /bin/sh. 259 */ 260#define PREFSHELL "$prefshell" /**/ 261 262/* ROOTID: 263 * This symbol contains the uid of root, normally 0. 264 */ 265#define ROOTID $rootid /**/ 266 267/* ACTIVE: 268 * The name of the active file for the news system. This file contains 269 * the list of active newsgroups. The name may have ~ on the front. 270 */ 271/* ACTIVE_TIMES: 272 * The name of the active.times file for the news system. 273 */ 274#define ACTIVE "$active" /**/ 275#$d_acttimes ACTIVE_TIMES "$acttimes" /**/ 276 277/* HAS_FTIME: 278 * This symbol, if defined, indicates that the ftime() routine exists. 279 * It is basically a sub-second accuracy clock, but is less accurate 280 * than gettimeofday(2) anyway. The type "Timeval" should be used to 281 * refer to "struct timeb". 282 */ 283#$d_ftime HAS_FTIME /**/ 284 285/* HAS_GETHOSTNAME: 286 * This symbol, if defined, indicates that the C program may use the 287 * gethostname() routine to derive the host name. See also HAS_UNAME 288 * and PHOSTCMD. 289 */ 290/* HAS_UNAME: 291 * This symbol, if defined, indicates that the C program may use the 292 * uname() routine to derive the host name. See also HAS_GETHOSTNAME 293 * and PHOSTCMD. 294 */ 295/* PHOSTCMD: 296 * This symbol, if defined, indicates that the C program may use the 297 * contents of PHOSTCMD as a command to feed to the popen() routine 298 * to derive the host name. See also HAS_GETHOSTNAME and HAS_UNAME. 299 * Note that the command uses a fully qualified path, so that it is safe 300 * even if used by a process with super-user privileges. 301 */ 302#$d_gethname HAS_GETHOSTNAME /**/ 303#$d_uname HAS_UNAME /**/ 304#$d_phostcmd PHOSTCMD "$aphostcmd" /* How to get the host name */ 305 306/* HAS_GETWD: 307 * This symbol, if defined, indicates that the getwd routine is 308 * available to get the working directory. 309 */ 310/* HAS_GETCWD: 311 * This symbol, if defined, indicates that the getcwd routine is 312 * available. This is never defined if getwd is found first. 313 */ 314#$d_getwd HAS_GETWD /**/ 315#$d_getcwd HAS_GETCWD /**/ 316 317/* IGNOREORG: 318 * This symbol, if defined, indicates that the ORGANIZATION environment 319 * variable does not contain an organization name. 320 */ 321#$d_ignoreorg IGNOREORG /**/ 322 323/* MIMESHOW: 324 * This symbol points to the program to run to show a mime article. 325 */ 326/* MIMESTORE: 327 * This symbol points to the program to run to store a mime article. 328 */ 329#$d_mimeshow MIMESHOW "$mimeshow" /**/ 330#$d_mimestore MIMESTORE "$mimestore" /**/ 331 332/* USE_NNTP: 333 * This symbol, if defined, indicates that NNTP should be used. 334 */ 335/* USE_GENAUTH: 336 * This symbol, if defined, indicates that authinfo generic 337 * authentication is to be supported. 338 */ 339/* SERVER_NAME: 340 * When using NNTP, this symbol indicates the server name or a 341 * file to open to read the server name. 342 */ 343/* USE_XTHREAD: 344 * This symbol, if defined, indicates that .thread files can be 345 * gotten via NNTP. It is never defined if USE_NNTP is undefined. 346 */ 347/* USE_XOVER: 348 * This symbol, if defined, indicates that .overview files can be 349 * gotten via NNTP. It is never defined if USE_NNTP is undefined. 350 */ 351#$d_nntp USE_NNTP /**/ 352#$d_genauth USE_GENAUTH /**/ 353#define SERVER_NAME "$servername" /**/ 354#$d_xdata USE_XTHREAD /**/ 355#$d_xdata USE_XOVER /**/ 356 357/* void: 358 * This symbol is used for void functions. On implementations which 359 * support void appropriately, its value is "void". Otherwise, its 360 * value should be set to "int". 361 */ 362#$d_novoid void int /**/ 363 364/* size_t: 365 * This symbol is defined as an int if no size_t definition exists. 366 */ 367#$d_sizet size_t int /**/ 368 369/* HAS_STRCHR: 370 * This symbol is defined to indicate that the strchr()/strrchr() 371 * functions are available for string searching. If not, try the 372 * index()/rindex() pair. 373 */ 374#$d_strchr HAS_STRCHR /**/ 375 376/* HAS_STRFTIME: 377 * This symbol, if defined, indicates that the strftime routine is 378 * available to format locale-specific times. 379 */ 380#$d_strftime HAS_STRFTIME /**/ 381 382/* EMULATE_NDIR: 383 * This symbol, if defined, indicates that the program should compile 384 * the ndir.c code provided with the package. 385 */ 386/* I_NDIR: 387 * This symbol, if defined, indicates that the program should include the 388 * system's version of ndir.h, rather than the one with this package. 389 */ 390#$d_usendir EMULATE_NDIR /**/ 391#$d_libndir I_NDIR /**/ 392 393/* I_PTEM: 394 * This symbol, if defined, indicates to the C program that it should 395 * include ptem.h. 396 */ 397#$i_ptem I_PTEM /**/ 398 399/* I_TIME: 400 * This symbol, if defined, indicates to the C program that it should 401 * include <time.h>. 402 */ 403/* I_SYS_TIME: 404 * This symbol, if defined, indicates to the C program that it should 405 * include <sys/time.h>. 406 */ 407#$i_time I_TIME /**/ 408#$i_systime I_SYS_TIME /**/ 409 410/* NEWSLIB: 411 * This symbol contains the name of the directory serving as the news 412 * library. The program must be prepared to do ~ expansion on it. 413 */ 414#define NEWSLIB "$newslib" /**/ 415 416/* NEWSSPOOL: 417 * This symbol contains the directory name where news articles are 418 * spooled. The program must be prepared to do ~ expansion on it. 419 */ 420#define NEWSSPOOL "$newsspool" /**/ 421 422/* PHOSTNAME: 423 * This symbol contains the posting host's name or a file from which 424 * to read its name. 425 */ 426#define PHOSTNAME "$phost" /**/ 427 428/* PRIVLIB: 429 * This symbol contains the name of the private library for this package. 430 * The library is private in the sense that it needn't be in anyone's 431 * execution path, but it should be accessible by the world. The program 432 * should be prepared to do ~ expansion. 433 */ 434#define PRIVLIB "$privlib" /**/ 435 436/* THREAD_DIR: 437 * This symbol indicates where the thread files go. 438 */ 439/* OVERVIEW_DIR: 440 * This symbol indicates where the overview files go. 441 */ 442/* USE_MT: 443 * This symbol indicates if thread file support is desired. 444 */ 445/* USE_OV: 446 * This symbol indicates if overview file support is desired. 447 */ 448#define THREAD_DIR "$threaddir" /**/ 449#define OVERVIEW_DIR "$overviewdir" /**/ 450#$d_usemt USE_MT /**/ 451#$d_useov USE_OV /**/ 452 453/* THREAD_INIT: 454 * This symbol indicates we act like trn no matter what our name is. 455 */ 456/* SELECT_INIT: 457 * This symbol indicates we default to the selector for group entry. 458 */ 459#define THREAD_INIT $trn_init 460#define SELECT_INIT $trn_select 461 462/*#define LONG_THREAD_NAMES *//**/ 463 464#define CANCEL "$inewsloc -h <%h" 465#define SPEED_OVER_MEM /* use more memory to run faster */ 466/*#define ANCIENT_NEWS *//* if your B news system is <= 2.10.1 */ 467 468#endif 469!GROK!THIS! 470