diff options
author | Andy Dougherty <doughera@lafayette.edu> | 1998-02-24 11:02:43 -0500 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1998-02-25 14:58:00 +0000 |
commit | dfe9444ca7881e716e9e8feaf20b55da491363ca (patch) | |
tree | 858ae366f65093b5a6cbd3e4e257b587547759ab /Porting | |
parent | eefabb09a1a549c1747d7c554d375ecb16cafff1 (diff) | |
download | perl-dfe9444ca7881e716e9e8feaf20b55da491363ca.tar.gz |
Re: ANNOUNCE: perl5.004_60 Configure patch is available
p4raw-id: //depot/perl@575
Diffstat (limited to 'Porting')
-rw-r--r-- | Porting/Glossary | 732 | ||||
-rw-r--r-- | Porting/config.sh | 525 | ||||
-rw-r--r-- | Porting/config_H | 1811 | ||||
-rw-r--r-- | Porting/pumpkin.pod | 25 |
4 files changed, 3008 insertions, 85 deletions
diff --git a/Porting/Glossary b/Porting/Glossary index c71c199ec4..88c12cd48a 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -2,13 +2,34 @@ This file contains a description of all the shell variables whose value is determined by the Configure script. Variables intended for use in C programs (e.g. I_UNISTD) are already described in config_h.SH. +_a (Unix.U): + This variable defines the extension used for ordinary libraries. + For unix, it is '.a'. The '.' is included. Other possible + values include '.lib'. + +_exe (Unix.U): + This variable defines the extension used for executable files. + For unix it is empty. Other possible values include '.exe'. + +_o (Unix.U): + This variable defines the extension used for object files. + For unix, it is '.o'. The '.' is included. Other possible + values include '.obj'. + +afs (afs.U): + This variable is set to 'true' if AFS (Andrew File System) is used + on the system, 'false' otherwise. It is possible to override this + with a hint value or command line option, but you'd better know + what you are doing. + alignbytes (alignbytes.U): This variable holds the number of bytes required to align a double. Usual values are 2, 4 and 8. -ar (Unix.U): - This variable defines the command to use to create an archive - library. For unix, it is 'ar'. +aphostname (d_gethname.U): + Thie variable contains the command which can be used to compute the + host name. The command is fully qualified by its absolute path, to make + it safe when used by a process with super-user privileges. archlib (archlib.U): This variable holds the name of the directory in which the user wants @@ -21,6 +42,10 @@ archlibexp (archlib.U): This variable is the same as the archlib variable, but is filename expanded at configuration time, for convenient use. +archname (archname.U): + This variable is a short name to characterize the current + architecture. It is used mainly to construct the default archlib. + archobjs (Unix.U): This variable defines any additional objects that must be linked in with the program on this architecture. On unix, it is usually @@ -28,6 +53,9 @@ archobjs (Unix.U): or other facilities. For perl on OS/2, for example, this would include os2/os2.obj. +baserev (baserev.U): + The base revision level of this package, from the .package file. + bin (bin.U): This variable holds the name of the directory in which the user wants to put publicly executable images for the package in question. It @@ -38,6 +66,10 @@ bincompat3 (bincompat3.U): This variable contains y if Perl 5.004 should be binary-compatible with Perl 5.003. +binexp (bin.U): + This is the same as the bin variable, but is filename expanded at + configuration time, for use in your makefiles. + byteorder (byteorder.U): This variable holds the byte order. In the following, larger digits indicate more significance. The variable byteorder is either 4321 @@ -82,10 +114,25 @@ cf_by (cf_who.U): Login name of the person who ran the Configure script and answered the questions. This is used to tag both config.sh and config_h.SH. +cf_email (cf_email.U): + Electronic mail address of the person who ran Configure. This can be + used by units that require the user's e-mail, like MailList.U. + cf_time (cf_who.U): Holds the output of the "date" command when the configuration file was produced. This is used to tag both config.sh and config_h.SH. +clocktype (d_times.U): + This variable holds the type returned by times(). It can be long, + or clock_t on BSD sites (in which case <sys/types.h> should be + included). + +contains (contains.U): + This variable holds the command to do a grep with a proper return + status. On most sane systems it is simply "grep". On insane systems + it is a grep followed by a cat followed by a test. This variable + is primarily for the use of other Configure units. + cpp_stuff (cpp_stuff.U): This variable contains an identification of the catenation mechanism used by the C preprocessor. @@ -94,12 +141,24 @@ cppflags (ccflags.U): This variable holds the flags that will be passed to the C pre- processor. It is up to the Makefile to use it. +cpplast (cppstdin.U): + This variable has the same functionality as cppminus, only it applies to + cpprun and not cppstdin. + cppminus (cppstdin.U): This variable contains the second part of the string which will invoke the C preprocessor on the standard input and produce to standard output. This variable will have the value "-" if cppstdin needs a minus to specify standard input, otherwise the value is "". +cpprun (cppstdin.U): + This variable contains the command which will invoke a C preprocessor + on standard input and put the output to stdout. It is guaranteed not + to be a wrapper and may be a null string if no preprocessor can be + made directly available. This preprocessor might be different from the + one used by the C compiler. Don't forget to append cpplast after the + preprocessor options. + cppstdin (cppstdin.U): This variable contains the command which will invoke the C preprocessor on standard input and put the output to stdout. @@ -140,22 +199,17 @@ d_bcopy (d_bcopy.U): d_bincompat3 (bincompat3.U): This variable conditionally defines BINCOMPAT3 so that embed.h can take special action if Perl 5.004 should be binary-compatible - with Perl 5.003. + with Perl 5.003. This is impossible for 5.004_50 and later, so + it is always $undef for those versions. + +d_bsd (Guess.U): + This symbol conditionally defines the symbol BSD when running on a + BSD system. d_bsdgetpgrp (d_getpgrp.U): This variable conditionally defines USE_BSD_GETPGRP if getpgrp needs one arguments whereas USG one needs none. -d_bsdpgrp (d_setpgrp.U): - This variable conditionally defines USE_BSDPGRP if the notion of - process group is the BSD one. This means setpgrp needs two arguments - whereas USG one needs none. - -d_bsdsetpgrp (d_setpgrp.U): - This variable conditionally defines USE_BSD_SETPGRP if - setpgrp needs two arguments whereas USG one needs none. - See also d_setpgid for a POSIX interface. - d_bzero (d_bzero.U): This variable conditionally defines the HAS_BZERO symbol if the bzero() routine is available to set memory to 0. @@ -186,6 +240,10 @@ d_chsize (d_chsize.U): indicates to the C program that the chsize() routine is available to truncate files. You might need a -lx to get this routine. +d_closedir (d_closedir.U): + This variable conditionally defines HAS_CLOSEDIR if closedir() is + available. + d_const (d_const.U): This variable conditionally defines the HASCONST symbol, which indicates to the C program that this C compiler knows about the @@ -223,6 +281,10 @@ d_dlerror (d_dlerror.U): This variable conditionally defines the HAS_DLERROR symbol, which indicates to the C program that the dlerror() routine is available. +d_dlopen (d_dlopen.U): + This variable conditionally defines the HAS_DLOPEN symbol, which + indicates to the C program that the dlopen() routine is available. + d_dlsymun (d_dlsymun.U): This variable conditionally defines DLSYM_NEEDS_UNDERSCORE, which indicates that we need to prepend an underscore to the symbol @@ -241,6 +303,10 @@ d_eofnblk (nblock_io.U): This variable conditionally defines EOF_NONBLOCK if EOF can be seen when reading from a non-blocking I/O source. +d_eunice (Guess.U): + This variable conditionally defines the symbols EUNICE and VAX, which + alerts the C program that it must deal with ideosyncracies of VMS. + d_fchmod (d_fchmod.U): This variable conditionally defines the HAS_FCHMOD symbol, which indicates to the C program that the fchmod() routine is available @@ -255,6 +321,22 @@ d_fcntl (d_fcntl.U): This variable conditionally defines the HAS_FCNTL symbol, and indicates whether the fcntl() function exists +d_fd_macros (d_fd_set.U): + This variable contains the eventual value of the HAS_FD_MACROS symbol, + which indicates if your C compiler knows about the macros which + manipulate an fd_set. + +d_fd_set (d_fd_set.U): + This variable contains the eventual value of the HAS_FD_SET symbol, + which indicates if your C compiler knows about the fd_set typedef. + +d_fds_bits (d_fd_set.U): + This variable contains the eventual value of the HAS_FDS_BITS symbol, + which indicates if your fd_set typedef contains the fds_bits member. + If you have an fd_set typedef, but the dweebs who installed it did + a half-fast job and neglected to provide the macros to manipulate + an fd_set, HAS_FDS_BITS will let us know how to fix the gaffe. + d_fgetpos (d_fgetpos.U): This variable conditionally defines HAS_FGETPOS if fgetpos() is available to get the file position indicator. @@ -282,38 +364,53 @@ d_fsetpos (d_fsetpos.U): available to set the file position indicator. d_ftime (d_ftime.U): - This variable conditionally defines the HAS_FTIME symbol, which - indicates that the ftime() routine exists. The ftime() routine is - basically a sub-second accuracy clock. + This variable conditionally defines the HAS_FTIME symbol, which indicates + that the ftime() routine exists. The ftime() routine is basically + a sub-second accuracy clock. + +d_getgrps (d_getgrps.U): + This variable conditionally defines the HAS_GETGROUPS symbol, which + indicates to the C program that the getgroups() routine is available + to get the list of process groups. + +d_gethbyaddr (d_gethbyad.U): + This variable conditionally defines the HAS_GETHOSTBYADDR symbol, which + indicates to the C program that the gethostbyaddr() routine is available + to look up hosts by their IP addresses. d_gethent (d_gethent.U): This variable conditionally defines HAS_GETHOSTENT if gethostent() is available to dup file descriptors. -d_gettimeod (d_ftime.U): - This variable conditionally defines the HAS_GETTIMEOFDAY symbol, which - indicates that the gettimeofday() system call exists (to obtain a - sub-second accuracy clock). +d_gethname (d_gethname.U): + This variable conditionally defines the HAS_GETHOSTNAME symbol, which + indicates to the C program that the gethostname() routine may be + used to derive the host name. d_getlogin (d_getlogin.U): This variable conditionally defines the HAS_GETLOGIN symbol, which indicates to the C program that the getlogin() routine is available to get the login name. +d_getnbyaddr (d_getnbyad.U): + This variable conditionally defines the HAS_GETNETBYADDR symbol, which + indicates to the C program that the getnetbyaddr() routine is available + to look up networks by their IP addresses. + d_getpgid (d_getpgid.U): This variable conditionally defines the HAS_GETPGID symbol, which indicates to the C program that the getpgid(pid) function is available to get the process group id. -d_getpgrp (d_getpgrp.U): - This variable conditionally defines HAS_GETPGRP if getpgrp() is - available to get the current process group. - d_getpgrp2 (d_getpgrp2.U): This variable conditionally defines the HAS_GETPGRP2 symbol, which indicates to the C program that the getpgrp2() (as in DG/UX) routine is available to get the current process group. +d_getpgrp (d_getpgrp.U): + This variable conditionally defines HAS_GETPGRP if getpgrp() is + available to get the current process group. + d_getppid (d_getppid.U): This variable conditionally defines the HAS_GETPPID symbol, which indicates to the C program that the getppid() routine is available @@ -323,6 +420,14 @@ d_getprior (d_getprior.U): This variable conditionally defines HAS_GETPRIORITY if getpriority() is available to get a process's priority. +d_gettimeod (d_ftime.U): + This variable conditionally defines the HAS_GETTIMEOFDAY symbol, which + indicates that the gettimeofday() system call exists (to obtain a + sub-second accuracy clock). You should probably include <sys/resource.h>. + +d_gnulibc (d_gnulibc.U): + Defined if we're dealing with the GNU C Library. + d_htonl (d_htonl.U): This variable conditionally defines HAS_HTONL if htonl() and its friends are available to do network order byte swapping. @@ -413,6 +518,22 @@ d_msg (d_msg.U): This variable conditionally defines the HAS_MSG symbol, which indicates that the entire msg*(2) library is present. +d_msgctl (d_msgctl.U): + This variable conditionally defines the HAS_MSGCTL symbol, which + indicates to the C program that the msgctl() routine is available. + +d_msgget (d_msgget.U): + This variable conditionally defines the HAS_MSGGET symbol, which + indicates to the C program that the msgget() routine is available. + +d_msgrcv (d_msgrcv.U): + This variable conditionally defines the HAS_MSGRCV symbol, which + indicates to the C program that the msgrcv() routine is available. + +d_msgsnd (d_msgsnd.U): + This variable conditionally defines the HAS_MSGSND symbol, which + indicates to the C program that the msgsnd() routine is available. + d_mymalloc (mallocsrc.U): This variable conditionally defines MYMALLOC in case other parts of the source want to take special action if MYMALLOC is used. @@ -422,10 +543,9 @@ d_nice (d_nice.U): This variable conditionally defines the HAS_NICE symbol, which indicates to the C program that the nice() routine is available. -d_oldarchlib (oldarchlib.U): - This variable conditionally defines OLDARCHLIB to hold the pathname - of architecture-dependent library files for a previous - version of $package. +d_oldsock (d_socket.U): + This variable conditionally defines the OLDSOCKET symbol, which + indicates that the BSD socket interface is based on 4.1c and not 4.2. d_open3 (d_open3.U): This variable conditionally defines the HAS_OPEN3 manifest constant, @@ -443,6 +563,11 @@ d_pause (d_pause.U): indicates to the C program that the pause() routine is available to suspend a process until a signal is received. +d_phostname (d_gethname.U): + This variable conditionally defines the PHOSTNAME symbol, which + contains the shell command which, when fed to popen(), may be + used to derive the host name. + d_pipe (d_pipe.U): This variable conditionally defines the HAS_PIPE symbol, which indicates to the C program that the pipe() routine is available @@ -453,6 +578,21 @@ d_poll (d_poll.U): indicates to the C program that the poll() routine is available to poll active file descriptors. +d_portable (d_portable.U): + This variable conditionally defines the PORTABLE symbol, which + indicates to the C program that it should not assume that it is + running on the machine it was compiled on. + +d_pthread_yield (d_pthread_y.U): + This variable conditionally defines the HAS_PTHREAD_YIELD + symbol if the pthread_yield routine is available to yield + the execution of the current thread. + +d_pthreads_created_joinable (d_pthreadj.U): + This variable conditionally defines the PTHREADS_CREATED_JOINABLE + symbol if pthreads are created in the joinable (aka undetached) + state. + d_pwage (i_pwd.U): This varaible conditionally defines PWAGE, which indicates that struct passwd contains pw_age. @@ -512,6 +652,11 @@ d_sanemcmp (d_sanemcmp.U): the memcpy() routine is available and can be used to compare relative magnitudes of chars with their high bits set. +d_sched_yield (d_pthread_y.U): + This variable conditionally defines the HAS_SCHED_YIELD + symbol if the sched_yield routine is available to yield + the execution of the current thread. + d_seekdir (d_readdir.U): This variable conditionally defines HAS_SEEKDIR if seekdir() is available. @@ -525,6 +670,18 @@ d_sem (d_sem.U): This variable conditionally defines the HAS_SEM symbol, which indicates that the entire sem*(2) library is present. +d_semctl (d_semctl.U): + This variable conditionally defines the HAS_SEMCTL symbol, which + indicates to the C program that the semctl() routine is available. + +d_semget (d_semget.U): + This variable conditionally defines the HAS_SEMGET symbol, which + indicates to the C program that the semget() routine is available. + +d_semop (d_semop.U): + This variable conditionally defines the HAS_SEMOP symbol, which + indicates to the C program that the semop() routine is available. + d_setegid (d_setegid.U): This variable conditionally defines the HAS_SETEGID symbol, which indicates to the C program that the setegid() routine is available @@ -535,6 +692,11 @@ d_seteuid (d_seteuid.U): indicates to the C program that the seteuid() routine is available to change the effective uid of the current program. +d_setgrps (d_setgrps.U): + This variable conditionally defines the HAS_SETGROUPS symbol, which + indicates to the C program that the setgroups() routine is available + to set the list of process groups. + d_setlinebuf (d_setlnbuf.U): This variable conditionally defines the HAS_SETLINEBUF symbol, which indicates to the C program that the setlinebuf() routine is available @@ -546,19 +708,18 @@ d_setlocale (d_setlocale.U): available to handle locale-specific ctype implementations. d_setpgid (d_setpgid.U): - This variable conditionally defines the HAS_SETPGID symbol, which - indicates to the C program that the setpgid(pid, gpid) function - is available to set the process group id. - -d_setpgrp (d_setpgrp.U): - This variable conditionally defines HAS_SETPGRP if setpgrp() is - available to set the current process group. + This variable conditionally defines the HAS_SETPGID symbol if the + setpgid(pid, gpid) function is available to set process group ID. d_setpgrp2 (d_setpgrp2.U): This variable conditionally defines the HAS_SETPGRP2 symbol, which indicates to the C program that the setpgrp2() (as in DG/UX) routine is available to set the current process group. +d_setpgrp (d_setpgrp.U): + This variable conditionally defines HAS_SETPGRP if setpgrp() is + available to set the current process group. + d_setprior (d_setprior.U): This variable conditionally defines HAS_SETPRIORITY if setpriority() is available to set a process's priority. @@ -605,11 +766,27 @@ d_shm (d_shm.U): This variable conditionally defines the HAS_SHM symbol, which indicates that the entire shm*(2) library is present. +d_shmat (d_shmat.U): + This variable conditionally defines the HAS_SHMAT symbol, which + indicates to the C program that the shmat() routine is available. + d_shmatprototype (d_shmat.U): This variable conditionally defines the HAS_SHMAT_PROTOTYPE symbol, which indicates that sys/shm.h has a prototype for shmat. +d_shmctl (d_shmctl.U): + This variable conditionally defines the HAS_SHMCTL symbol, which + indicates to the C program that the shmctl() routine is available. + +d_shmdt (d_shmdt.U): + This variable conditionally defines the HAS_SHMDT symbol, which + indicates to the C program that the shmdt() routine is available. + +d_shmget (d_shmget.U): + This variable conditionally defines the HAS_SHMGET symbol, which + indicates to the C program that the shmget() routine is available. + d_sigaction (d_sigaction.U): This variable conditionally defines the HAS_SIGACTION symbol, which indicates that the Vr4 sigaction() routine is available. @@ -709,6 +886,10 @@ d_sysconf (d_sysconf.U): indicates to the C program that the sysconf() routine is available to determine system related limits and options. +d_sysernlst (d_strerror.U): + This variable conditionally defines HAS_SYS_ERRNOLIST if sys_errnolist[] + is available to translate error numbers to the symbolic name. + d_syserrlst (d_strerror.U): This variable conditionally defines HAS_SYS_ERRLIST if sys_errlist[] is available to translate error numbers to strings. @@ -731,6 +912,11 @@ d_telldir (d_readdir.U): This variable conditionally defines HAS_TELLDIR if telldir() is available. +d_time (d_time.U): + This variable conditionally defines the HAS_TIME symbol, which indicates + that the time() routine exists. The time() routine is normaly + provided on UNIX systems. + d_times (d_times.U): This variable conditionally defines the HAS_TIMES symbol, which indicates that the times() routine exists. The times() routine is normaly @@ -762,6 +948,17 @@ d_void_closedir (d_closedir.U): This variable conditionally defines VOID_CLOSEDIR if closedir() does not return a value. +d_voidsig (d_voidsig.U): + This variable conditionally defines VOIDSIG if this system + declares "void (*signal(...))()" in signal.h. The old way was to + declare it as "int (*signal(...))()". + +d_voidtty (i_sysioctl.U): + This variable conditionally defines USE_IOCNOTTY to indicate that the + ioctl() call with TIOCNOTTY should be used to void tty association. + Otherwise (on USG probably), it is enough to close the standard file + decriptors and do a setpgrp(). + d_volatile (d_volatile.U): This variable conditionally defines the HASVOLATILE symbol, which indicates to the C program that this C compiler knows about the @@ -790,6 +987,10 @@ d_wctomb (d_wctomb.U): indicates to the C program that the wctomb() routine is available to convert a wide character to a multibyte. +d_xenix (Guess.U): + This variable conditionally defines the symbol XENIX, which alerts + the C program that it runs under Xenix. + db_hashtype (i_db.U): This variable contains the type of the hash structure element in the <db.h> header file. In older versions of DB, it was @@ -828,8 +1029,13 @@ eunicefix (Init.U): executable by the shell. On other systems it is a no-op. exe_ext (Unix.U): - This variable defines the extension used for executable files. - For unix it is empty. Other possible values include '.exe'. + This is an old synonym for _exe. + +extensions (Extensions.U): + This variable holds a list of all extension files + linked into the package. It is propagated to Config.pm + and is typically used to test whether a particular extesion + is available. firstmakefile (Unix.U): This variable defines the first file searched by make. On unix, @@ -859,21 +1065,68 @@ full_sed (Loc_sed.U): can share this executable will have the same full pathname to 'sed.' +gccversion (cc.U): + If GNU cc (gcc) is used, this variable holds '1' or '2' to + indicate whether the compiler is version 1 or 2. This is used in + setting some of the default cflags. It is set to '' if not gcc. + gidtype (gidtype.U): This variable defines Gid_t to be something like gid_t, int, ushort, or whatever type is used to declare the return type of getgid(). Typically, it is the type of group ids in the kernel. +groupcat (nis.U): + This variable contains a command that produces the text of the + /etc/group file. This is normally "cat /etc/group", but can be + "ypcat group" when NIS is used. + groupstype (groupstype.U): This variable defines Groups_t to be something like gid_t, int, ushort, or whatever type is used for the second argument to - getgroups(). Usually, this is the same of gidtype, but - sometimes it isn't. + getgroups() and setgroups(). Usually, this is the same as + gidtype (gid_t), but sometimes it isn't. + +h_fcntl (h_fcntl.U): + This is variable gets set in various places to tell i_fcntl that + <fcntl.h> should be included. + +h_sysfile (h_sysfile.U): + This is variable gets set in various places to tell i_sys_file that + <sys/file.h> should be included. + +hint (Oldconfig.U): + Gives the type of hints used for previous answers. May be one of + "default", "recommended" or "previous". + +hostcat (nis.U): + This variable contains a command that produces the text of the + /etc/hosts file. This is normally "cat /etc/hosts", but can be + "ypcat hosts" when NIS is used. + +huge (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a huge memory model. If the + huge model is not supported, contains the flag to produce large + model programs. It is up to the Makefile to use this. + +i_bsdioctl (i_sysioctl.U): + This variable conditionally defines the I_SYS_BSDIOCTL symbol, which + indicates to the C program that <sys/bsdioctl.h> exists and should + be included. + +i_db (i_db.U): + This variable conditionally defines the I_DB symbol, and indicates + whether a C program may include Berkeley's DB include file <db.h>. i_dirent (i_dirent.U): This variable conditionally defines I_DIRENT, which indicates to the C program that it should include <dirent.h>. +i_dld (i_dld.U): + This variable conditionally defines the I_DLD symbol, which + indicates to the C program that <dld.h> (GNU dynamic loading) + exists and should be included. + i_dlfcn (i_dlfcn.U): This variable conditionally defines the I_DLFCN symbol, which indicates to the C program that <dlfcn.h> exists and should @@ -901,6 +1154,10 @@ i_locale (i_locale.U): This variable conditionally defines the I_LOCALE symbol, and indicates whether a C program should include <locale.h>. +i_malloc (i_malloc.U): + This variable conditionally defines the I_MALLOC symbol, and indicates + whether a C program should include <malloc.h>. + i_math (i_math.U): This variable conditionally defines the I_MATH symbol, and indicates whether a C program may include <math.h>. @@ -909,6 +1166,10 @@ i_memory (i_memory.U): This variable conditionally defines the I_MEMORY symbol, and indicates whether a C program should include <memory.h>. +i_netdb (i_netdb.U): + This variable conditionally defines the I_NETDB symbol, and indicates + whether a C program should include <netdb.h>. + i_neterrno (i_neterrno.U): This variable conditionally defines the I_NET_ERRNO symbol, which indicates to the C program that <net/errno.h> exists and should @@ -964,6 +1225,16 @@ i_sysfile (i_sysfile.U): This variable conditionally defines the I_SYS_FILE symbol, and indicates whether a C program should include <sys/file.h> to get R_OK and friends. +i_sysfilio (i_sysioctl.U): + This variable conditionally defines the I_SYS_FILIO symbol, which + indicates to the C program that <sys/filio.h> exists and should + be included in preference to <sys/ioctl.h>. + +i_sysin (i_niin.U): + This variable conditionally defines I_SYS_IN, which indicates + to the C program that it should include <sys/in.h> instead of + <netinet/in.h>. + i_sysioctl (i_sysioctl.U): This variable conditionally defines the I_SYS_IOCTL symbol, which indicates to the C program that <sys/ioctl.h> exists and should @@ -986,6 +1257,11 @@ i_sysselct (i_sysselct.U): to the C program that it should include <sys/select.h> in order to get the definition of struct timeval. +i_syssockio (i_sysioctl.U): + This variable conditionally defines I_SYS_SOCKIO to indicate to the + C program that socket ioctl codes may be found in <sys/sockio.h> + instead of <sys/ioctl.h>. + i_sysstat (i_sysstat.U): This variable conditionally defines the I_SYS_STAT symbol, and indicates whether a C program should include <sys/stat.h>. @@ -1055,20 +1331,60 @@ i_vfork (i_vfork.U): This variable conditionally defines the I_VFORK symbol, and indicates whether a C program should include vfork.h. +incpath (usrinc.U): + This variable must preceed the normal include path to get hte + right one, as in "$incpath/usr/include" or "$incpath/usr/lib". + Value can be "" or "/bsd43" on mips. + +installarchlib (archlib.U): + This variable is really the same as archlibexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + installbin (bin.U): This variable is the same as binexp unless AFS is running in which case the user is explicitely prompted for it. This variable should always be used in your makefiles for maximum portability. +installman1dir (man1dir.U): + This variable is really the same as man1direxp, unless you are using + AFS in which case it points to the read/write location whereas + man1direxp only points to the read-only access location. For extra + portability, you should only use this variable within your makefiles. + +installman3dir (man3dir.U): + This variable is really the same as man3direxp, unless you are using + AFS in which case it points to the read/write location whereas + man3direxp only points to the read-only access location. For extra + portability, you should only use this variable within your makefiles. + installprivlib (privlib.U): This variable is really the same as privlibexp but may differ on those systems using AFS. For extra portability, only this variable should be used in makefiles. +installscript (scriptdir.U): + This variable is usually the same as scriptdirexp, unless you are on + a system running AFS, in which case they may differ slightly. You + should always use this variable within your makefiles for portability. + +installsitearch (sitearch.U): + This variable is really the same as sitearchexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + +installsitelib (sitelib.U): + This variable is really the same as sitelibexp but may differ on + those systems using AFS. For extra portability, only this variable + should be used in makefiles. + intsize (intsize.U): - This variable contains the value of the INTSIZE symbol, - which indicates to the C program how many bytes there are - in an integer. + This variable contains the value of the INTSIZE symbol, which + indicates to the C program how many bytes there are in an int. + +known_extensions (Extensions.U): + This variable holds a list of all extensions included in + the package. large (models.U): This variable contains a flag which will tell the C compiler and loader @@ -1092,9 +1408,10 @@ ldflags (ccflags.U): the user. It is up to the Makefile to use this. lib_ext (Unix.U): - This variable defines the extension used for ordinary libraries. - For unix, it is '.a'. The '.' is included. Other possible - values include '.lib'. + This is an old synonym for _a. + +libc (libc.U): + This variable contains the location of the C library. libperl (libperl.U): The perl executable is obtained by linking perlmain.c with @@ -1104,37 +1421,56 @@ libperl (libperl.U): the user wishes to build a perl executable with a shared library. +libpth (libpth.U): + This variable holds the general path used to find libraries. It is + intended to be used by other units. + libs (libs.U): This variable holds the additional libraries we want to use. It is up to the Makefile to deal with it. +libswanted (Myinit.U): + This variable holds a list of all the libraries we want to + search. The order is chosen to pick up the c library + ahead of ucb or bsd libraries for SVR4. + +lkflags (ccflags.U): + This variable contains any additional C partial linker flags desired by + the user. It is up to the Makefile to use this. + lns (lns.U): This variable holds the name of the command to make symbolic links (if they are supported). It can be used in the Makefile. It is either 'ln -s' or 'ln' +locincpth (ccflags.U): + This variable contains a list of additional directories to be + searched by the compiler. The appropriate -I directives will + be added to ccflags. This is intended to simplify setting + local directories from the Configure command line. + It's not much, but it parallels the loclibpth stuff in libpth.U. + +loclibpth (libpth.U): + This variable holds the paths used to find local libraries. It is + prepended to libpth, and is intended to be easily set from the + command line. + longsize (intsize.U): - This variable contains the value of the LONGSIZE symbol, - which indicates to the C program how many bytes there are - in a long integer. + This variable contains the value of the LONGSIZE symbol, which + indicates to the C program how many bytes there are in a long. lseektype (lseektype.U): This variable defines lseektype to be something like off_t, long, or whatever type is used to declare lseek offset's type in the kernel (which also appears to be lseek's return type). -make (make.U): - This variable sets the path to the 'make' command. It is - here rather than in Loc.U so that users can override it - with Configure -Dmake=pmake, or equivalent. - make_set_make (make.U): Some versions of 'make' set the variable MAKE. Others do not. This variable contains the string to be included in Makefile.SH so that MAKE is set if needed, and not if not needed. Possible values are: - make_set_make='#' # If your make program handles this for you, - make_set_make=$make # if it doesn't. + make_set_make='#' # If your make program handles this for you, + make_set_make="MAKE=$make" # if it doesn't. I used a comment character so that we can distinguish a 'set' value (from a previous config.sh or Configure -D option) from an uncomputed value. @@ -1160,6 +1496,10 @@ man1dir (man1dir.U): Makefile.SH to get the value of this into the proper command. You must be prepared to do the ~name expansion yourself. +man1direxp (man1dir.U): + This variable is the same as the man1dir variable, but is filename + expanded at configuration time, for convenient use in makefiles. + man1ext (man1dir.U): This variable contains the extension that the manual page should have: one of 'n', 'l', or '1'. The Makefile must supply the '.'. @@ -1171,55 +1511,142 @@ man3dir (man3dir.U): Makefile.SH to get the value of this into the proper command. You must be prepared to do the ~name expansion yourself. +man3direxp (man3dir.U): + This variable is the same as the man3dir variable, but is filename + expanded at configuration time, for convenient use in makefiles. + man3ext (man3dir.U): This variable contains the extension that the manual page should have: one of 'n', 'l', or '3'. The Makefile must supply the '.'. See man3dir. +medium (models.U): + This variable contains a flag which will tell the C compiler and loader + to produce a program running with a medium memory model. If the + medium model is not supported, contains the flag to produce large + model programs. It is up to the Makefile to use this. + +mips_type (usrinc.U): + This variable holds the environment type for the mips system. + Possible values are "BSD 4.3" and "System V". + +models (models.U): + This variable contains the list of memory models supported by this + system. Possible component values are none, split, unsplit, small, + medium, large, and huge. The component values are space separated. + modetype (modetype.U): This variable defines modetype to be something like mode_t, int, unsigned short, or whatever type is used to declare file modes for system calls. +myarchname (archname.U): + This variable holds the architecture name computed by Configure in + a previous run. It is not intended to be perused by any user and + should never be set in a hint file. + +mydomain (myhostname.U): + This variable contains the eventual value of the MYDOMAIN symbol, + which is the domain of the host the program is going to run on. + The domain must be appended to myhostname to form a complete host name. + The dot comes with mydomain, and need not be supplied by the program. + +myuname (Oldconfig.U): + The output of 'uname -a' if available, otherwise the hostname. On Xenix, + pseudo variables assignments in the output are stripped, thank you. The + whole thing is then lower-cased. + n (n.U): This variable contains the -n flag if that is what causes the echo command to suppress newline. Otherwise it is null. Correct usage is $echo $n "prompt for a question: $c". +netdb_hlen_type (netdbtype.U): + This variable holds the type used for the 2nd argument to + gethostbyaddr(). Usually, this is int or size_t or unsigned. + This is only useful if you have gethostbyaddr(), naturally. + +netdb_host_type (netdbtype.U): + This variable holds the type used for the 1st argument to + gethostbyaddr(). Usually, this is char * or void *, possibly + with or without a const prefix. + This is only useful if you have gethostbyaddr(), naturally. + +netdb_name_type (netdbtype.U): + This variable holds the type used for the argument to + gethostbyname(). Usually, this is char * or const char *. + This is only useful if you have gethostbyname(), naturally. + +netdb_net_type (netdbtype.U): + This variable holds the type used for the 1st argument to + getnetbyaddr(). Usually, this is int or long. + This is only useful if you have getnetbyaddr(), naturally. + +nm_opt (usenm.U): + This variable holds the options that may be necessary for nm. + +nm_so_opt (usenm.U): + This variable holds the options that may be necessary for nm + to work on a shared library but that can not be used on an + archive library. Currently, this is only used by Linux, where + nm --dynamic is *required* to get symbols from an ELF library which + has been stripped, but nm --dynamic is *fatal* on an archive library. + Maybe Linux should just always set usenm=false. + o_nonblock (nblock_io.U): This variable bears the symbol value to be used during open() or fcntl() to turn on non-blocking I/O for a file descriptor. If you wish to switch between blocking and non-blocking, you may try ioctl(FIOSNBIO) instead, but that is only supported by some devices. -oldarchlib (oldarchlib.U): - This variable holds the name of the directory in which perl5.000 - and perl5.001 stored - architecture-dependent public library files. - -oldarchlibexp (oldarchlib.U): - This variable is the same as the oldarchlib variable, but is - filename expanded at configuration time, for convenient use. +obj_ext (Unix.U): + This is an old synonym for _o. optimize (ccflags.U): This variable contains any optimizer/debugger flag that should be used. It is up to the Makefile to use it. +orderlib (orderlib.U): + This variable is "true" if the components of libraries must be ordered + (with `lorder $* | tsort`) before placing them in an archive. Set to + "false" if ranlib or ar can generate random libraries. + osname (Oldconfig.U): This variable contains the operating system name (e.g. sunos, solaris, hpux, etc.). It can be useful later on for setting defaults. Any spaces are replaced with underscores. It is set to a null string if we can't figure it out. +osvers (Oldconfig.U): + This variable contains the operating system version (e.g. + 4.1.3, 5.2, etc.). It is primarily used for helping select + an appropriate hints file, but might be useful elsewhere for + setting defaults. It is set to '' if we can't figure it out. + We try to be flexible about how much of the version number + to keep, e.g. if 4.1.1, 4.1.2, and 4.1.3 are essentially the + same for this package, hints files might just be os_4.0 or + os_4.1, etc., not keeping separate files for each little release. + +package (package.U): + This variable contains the name of the package being constructed. + It is primarily intended for the use of later Configure units. + pager (pager.U): This variable contains the name of the preferred pager on the system. Usual values are (the full pathnames of) more, less, pg, or cat. +passcat (nis.U): + This variable contains a command that produces the text of the + /etc/passwd file. This is normally "cat /etc/passwd", but can be + "ypcat passwd" when NIS is used. + +patchlevel (patchlevel.U): + The patchlevel level of this package. + The value of patchlevel comes from the patchlevel.h file. + path_sep (Unix.U): - This variable defines the character used to separate elements in - the shell's PATH environment variable. On Unix, it is ':'. - This is probably identical to Head.U's p_ variable and can - probably be dropped. + This is an old synonym for p_ in Head.U, the character + used to separate elements in the command shell search PATH. perladmin (perladmin.U): Electronic mail address of the perl5 administrator. @@ -1229,6 +1656,21 @@ perlpath (perlpath.U): which contains the name of the perl interpreter to be used in shell scripts and in the "eval 'exec'" idiom. +phostname (myhostname.U): + This variable contains the eventual value of the PHOSTNAME symbol, + which is a command that can be fed to popen() to get the host name. + The program should probably not presume that the domain is or isn't + there already. + +pidtype (pidtype.U): + This variable defines PIDTYPE to be something like pid_t, int, + ushort, or whatever type is used to declare process ids in the kernel. + +plibpth (libpth.U): + Holds the private path used by Configure to find out the libraries. + Its value is prepend to libpth. This variable takes care of special + machines, like the mips. Usually, it should be empty. + prefix (prefix.U): This variable holds the name of the directory below which the user will install the package. Usually, this is /usr/local, and @@ -1236,6 +1678,10 @@ prefix (prefix.U): man pages in /usr/local/man, etc. It is only used to set defaults for things in bin.U, mansrc.U, privlib.U, or scriptdir.U. +prefixexp (prefix.U): + This variable holds the full absolute path of the directory below + which the user will install the package. Derived from prefix. + privlib (privlib.U): This variable contains the eventual value of the PRIVLIB symbol, which is the name of the private library for this package. It may @@ -1266,6 +1712,11 @@ rd_nodata (nblock_io.U): used, which is a shame because you cannot make the difference between no data and an EOF.. Sigh! +runnm (usenm.U): + This variable contains 'true' or 'false' depending whether the + nm extraction should be performed or not, according to the value + of usenm and the flags on the Configure command line. + scriptdir (scriptdir.U): This variable holds the name of the directory in which the user wants to put publicly scripts for the package in question. It is either @@ -1273,6 +1724,10 @@ scriptdir (scriptdir.U): mounted across different architectures, like /usr/share. Programs must be prepared to deal with ~name expansion. +scriptdirexp (scriptdir.U): + This variable is the same as scriptdir, but is filename expanded + at configuration time, for programs not wanting to bother with it. + selecttype (selecttype.U): This variable holds the type used for the 2nd, 3rd, and 4th arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET @@ -1289,14 +1744,17 @@ sh (sh.U): option, though you can override this (and startsh) with -O -Dsh=/bin/whatever -Dstartsh=whatever +sharpbang (spitshell.U): + This variable contains the string #! if this system supports that + construct. + shmattype (d_shmat.U): This symbol contains the type of pointer returned by shmat(). It can be 'void *' or 'char *'. shortsize (intsize.U): - This variable contains the value of the SHORTSIZE symbol, - which indicates to the C program how many bytes there are - in a short integer. + This variable contains the value of the SHORTSIZE symbol which + indicates to the C program how many bytes there are in a short. shrpenv (libperl.U): If the user builds a shared libperl.so, then we need to tell the @@ -1314,14 +1772,28 @@ shrpenv (libperl.U): as -R $archlibexp/CORE (Solaris, NetBSD) or -Wl,-rpath $archlibexp/CORE (Linux). +shsharp (spitshell.U): + This variable tells further Configure units whether your sh can + handle # comments. + sig_name (sig_name.U): This variable holds the signal names, space separated. The leading - SIG in signals name is removed. See sig_num. + SIG in signal name is removed. A ZERO is prepended to the + list. This is currently not used. + +sig_name_init (sig_name.U): + This variable holds the signal names, enclosed in double quotes and + separated by commas, suitable for use in the SIG_NAME definition + below. A "ZERO" is prepended to the list, and the list is + terminated with a plain 0. The leading SIG in signal names + is removed. See sig_num. sig_num (sig_name.U): - This variable holds the signal numbers, space separated. Those numbers - correspond to the value of the signal listed in the same place within - the sig_name list. + This variable holds the signal numbers, comma separated. A 0 is + prepended to the list (corresponding to the fake SIGZERO), and + the list is terminated with a 0. Those numbers correspond to + the value of the signal listed in the same place within the + sig_name list. signal_t (d_voidsig.U): This variable holds the type of the signal handler (void or int). @@ -1356,6 +1828,21 @@ small (models.U): to produce a program running with a small memory model. It is up to the Makefile to use this. +so (so.U): + This variable holds the extension used to identify shared libraries + (also known as shared objects) on the system. Usually set to 'so'. + +sockethdr (d_socket.U): + This variable has any cpp -I flags needed for socket support. + +socketlib (d_socket.U): + This variable has the names of any libraries needed for socket support. + +spackage (package.U): + This variable contains the name of the package being constructed, + with the first letter uppercased, i.e. suitable for starting + sentences. + spitshell (spitshell.U): This variable contains the command necessary to spit out a runnable shell on this system. It is either cat or a grep -v for # comments. @@ -1377,7 +1864,7 @@ startperl (startperl.U): script to make sure (hopefully) that it runs with perl and not some shell. Of course, that leading line must be followed by the classical perl idiom: - eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' + eval 'exec perl -S $0 ${1+"$@"}' if $running_under_some_shell; to guarantee perl startup should the shell execute the script. Note that this magic incatation is not understood by csh. @@ -1395,6 +1882,50 @@ stdchar (stdchar.U): This variable conditionally defines STDCHAR to be the type of char used in stdio.h. It has the values "unsigned char" or "char". +stdio_base (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _base field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_base(fp). + +stdio_bufsiz (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to determine + the number of bytes store in the I/O buffer pointer to by the + _base field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_bufsiz(fp). + +stdio_cnt (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _cnt field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_cnt(fp). + +stdio_filbuf (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to tell + stdio to refill it's internal buffers (?). This will + be used to define the macro FILE_filbuf(fp). + +stdio_ptr (d_stdstdio.U): + This variable defines how, given a FILE pointer, fp, to access the + _ptr field (or equivalent) of stdio.h's FILE structure. This will + be used to define the macro FILE_ptr(fp). + +strings (i_string.U): + This variable holds the full path of the string header that will be + used. Typically /usr/include/string.h or /usr/include/strings.h. + +subversion (patchlevel.U): + The subversion level of this package. + The value of subversion comes from the patchlevel.h file. + This is unique to perl. + +sysman (sysman.U): + This variable holds the place where the manual is located on this + system. It is not the place where the user wants to put his manual + pages. Rather it is the place where Configure may look to find manual + for unix commands (section 1 of the manual usually). See mansrc. + +timeincl (i_time.U): + This variable holds the full path of the included time header(s). + timetype (d_time.U): This variable holds the type returned by time(). It can be long, or time_t on BSD sites (in which case <sys/types.h> should be @@ -1404,15 +1935,64 @@ uidtype (uidtype.U): This variable defines Uid_t to be something like uid_t, int, ushort, or whatever type is used to declare user ids in the kernel. +usedl (dlsrc.U): + This variable indicates if the the system supports dynamic + loading of some sort. See also dlsrc and dlobj. + +usemymalloc (mallocsrc.U): + This variable contains y if the malloc that comes with this package + is desired over the system's version of malloc. People often include + special versions of malloc for effiency, but such versions are often + less portable. See also mallocsrc and mallocobj. + If this is 'y', then -lmalloc is removed from $libs. + +usenm (usenm.U): + This variable contains 'true' or 'false' depending whether the + nm extraction is wanted or not. + +useopcode (Extensions.U): + This variable holds either 'true' or 'false' to indicate + whether the Opcode extension should be used. The sole + use for this currently is to allow an easy mechanism + for users to skip the Opcode extension from the Configure + command line. + useperlio (useperlio.U): This variable conditionally defines the USE_PERLIO symbol, and indicates that the PerlIO abstraction should be used throughout. +useposix (Extensions.U): + This variable holds either 'true' or 'false' to indicate + whether the POSIX extension should be used. The sole + use for this currently is to allow an easy mechanism + for hints files to indicate that POSIX will not compile + on a particular system. + +usesfio (d_sfio.U): + This variable is set to true when the user agrees to use sfio. + It is set to false when sfio is not available or when the user + explicitely requests not to use sfio. It is here primarily so + that command-line settings can override the auto-detection of + d_sfio without running into a "WHOA THERE". + useshrplib (libperl.U): This variable is set to 'yes' if the user wishes to build a shared libperl, and 'no' otherwise. +usethreads (usethreads.U): + This variable conditionally defines the USE_THREADS symbol, + and indicates that Perl should be built to use threads. + +usevfork (d_vfork.U): + This variable is set to true when the user accepts to use vfork. + It is set to false when no vfork is available or when the user + explicitely requests not to use vfork. + +usrinc (usrinc.U): + This variable holds the path of the include files, which is + usually /usr/include. It is mainly used by other Configure units. + voidflags (voidflags.U): This variable contains the eventual value of the VOIDFLAGS symbol, which indicates how much support of the void type is given by this diff --git a/Porting/config.sh b/Porting/config.sh new file mode 100644 index 0000000000..59663d958f --- /dev/null +++ b/Porting/config.sh @@ -0,0 +1,525 @@ +#!/bin/sh +# +# This file was produced by running the Configure script. It holds all the +# definitions figured out by Configure. Should you modify one of these values, +# do not forget to propagate your changes by running "Configure -der". You may +# instead choose to run each of the .SH files by yourself, or "Configure -S". +# + +# Package name : perl5 +# Source directory : . +# Configuration time: Tue Feb 24 12:39:16 EST 1998 +# Configured by : doughera +# Target system : linux fractal 2.0.33 #1 tue feb 3 10:11:46 est 1998 i686 unknown + +Author='' +Date='$Date' +Header='' +Id='$Id' +Locker='' +Log='$Log' +Mcc='Mcc' +RCSfile='$RCSfile' +Revision='$Revision' +Source='' +State='' +_a='.a' +_exe='' +_o='.o' +afs='false' +alignbytes='4' +aphostname='' +ar='ar' +archlib='/opt/perl/lib/i686-linux-thread/5.00460' +archlibexp='/opt/perl/lib/i686-linux-thread/5.00460' +archname='i686-linux-thread' +archobjs='' +awk='awk' +baserev='5.0' +bash='' +bin='/opt/perl/bin' +bincompat3='n' +binexp='/opt/perl/bin' +bison='' +byacc='byacc' +byteorder='1234' +c='' +castflags='1' +cat='cat' +cc='cc' +cccdlflags='-fpic' +ccdlflags='-rdynamic' +ccflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include' +cf_by='doughera' +cf_email='yourname@yourhost.yourplace.com' +cf_time='Tue Feb 24 12:39:16 EST 1998' +chgrp='' +chmod='' +chown='' +clocktype='clock_t' +comm='comm' +compress='' +contains='grep' +cp='cp' +cpio='' +cpp='cpp' +cpp_stuff='42' +cppflags='-D_REENTRANT -Dbool=char -DHAS_BOOL -I/usr/local/include' +cpplast='-' +cppminus='-' +cpprun='cc -E' +cppstdin='cc -E' +cryptlib='' +csh='csh' +d_Gconvert='gcvt((x),(n),(b))' +d_access='define' +d_alarm='define' +d_archlib='define' +d_attribut='define' +d_bcmp='define' +d_bcopy='define' +d_bincompat3='undef' +d_bsd='undef' +d_bsdgetpgrp='undef' +d_bsdsetpgrp='undef' +d_bzero='define' +d_casti32='define' +d_castneg='undef' +d_charvspr='undef' +d_chown='define' +d_chroot='define' +d_chsize='undef' +d_closedir='define' +d_const='define' +d_crypt='define' +d_csh='define' +d_cuserid='define' +d_dbl_dig='define' +d_difftime='define' +d_dirnamlen='undef' +d_dlerror='define' +d_dlopen='define' +d_dlsymun='undef' +d_dosuid='undef' +d_dup2='define' +d_eofnblk='define' +d_eunice='undef' +d_fchmod='define' +d_fchown='define' +d_fcntl='define' +d_fd_macros='define' +d_fd_set='define' +d_fds_bits='define' +d_fgetpos='define' +d_flexfnam='define' +d_flock='define' +d_fork='define' +d_fpathconf='define' +d_fsetpos='define' +d_ftime='undef' +d_getgrps='define' +d_gethbyaddr='define' +d_gethbyname='define' +d_gethent='define' +d_gethname='undef' +d_getlogin='define' +d_getnbyaddr='define' +d_getpgid='define' +d_getpgrp2='undef' +d_getpgrp='define' +d_getppid='define' +d_getprior='define' +d_gettimeod='define' +d_gnulibc='define' +d_htonl='define' +d_index='undef' +d_inetaton='define' +d_isascii='define' +d_killpg='define' +d_link='define' +d_locconv='define' +d_lockf='define' +d_lstat='define' +d_mblen='define' +d_mbstowcs='define' +d_mbtowc='define' +d_memcmp='define' +d_memcpy='define' +d_memmove='define' +d_memset='define' +d_mkdir='define' +d_mkfifo='define' +d_mktime='define' +d_msg='define' +d_msgctl='define' +d_msgget='define' +d_msgrcv='define' +d_msgsnd='define' +d_mymalloc='undef' +d_nice='define' +d_oldsock='undef' +d_open3='define' +d_pathconf='define' +d_pause='define' +d_phostname='undef' +d_pipe='define' +d_poll='define' +d_portable='define' +d_pthread_yield='undef' +d_pthreads_created_joinable='define' +d_pwage='undef' +d_pwchange='undef' +d_pwclass='undef' +d_pwcomment='undef' +d_pwexpire='undef' +d_pwquota='undef' +d_readdir='define' +d_readlink='define' +d_rename='define' +d_rewinddir='define' +d_rmdir='define' +d_safebcpy='define' +d_safemcpy='undef' +d_sanemcmp='define' +d_sched_yield='define' +d_seekdir='define' +d_select='define' +d_sem='define' +d_semctl='define' +d_semget='define' +d_semop='define' +d_setegid='define' +d_seteuid='define' +d_setgrps='define' +d_setlinebuf='define' +d_setlocale='define' +d_setpgid='define' +d_setpgrp2='undef' +d_setpgrp='define' +d_setprior='define' +d_setregid='define' +d_setresgid='undef' +d_setresuid='undef' +d_setreuid='define' +d_setrgid='undef' +d_setruid='undef' +d_setsid='define' +d_sfio='undef' +d_shm='define' +d_shmat='define' +d_shmatprototype='define' +d_shmctl='define' +d_shmdt='define' +d_shmget='define' +d_sigaction='define' +d_sigsetjmp='define' +d_socket='define' +d_sockpair='define' +d_statblks='undef' +d_stdio_cnt_lval='undef' +d_stdio_ptr_lval='define' +d_stdiobase='define' +d_stdstdio='define' +d_strchr='define' +d_strcoll='define' +d_strctcpy='define' +d_strerrm='strerror(e)' +d_strerror='define' +d_strtod='define' +d_strtol='define' +d_strtoul='define' +d_strxfrm='define' +d_suidsafe='undef' +d_symlink='define' +d_syscall='define' +d_sysconf='define' +d_sysernlst='' +d_syserrlst='define' +d_system='define' +d_tcgetpgrp='define' +d_tcsetpgrp='define' +d_telldir='define' +d_time='define' +d_times='define' +d_truncate='define' +d_tzname='define' +d_umask='define' +d_uname='define' +d_vfork='undef' +d_void_closedir='undef' +d_voidsig='define' +d_voidtty='' +d_volatile='define' +d_vprintf='define' +d_wait4='define' +d_waitpid='define' +d_wcstombs='define' +d_wctomb='define' +d_xenix='undef' +date='date' +db_hashtype='u_int32_t' +db_prefixtype='size_t' +defvoidused='15' +direntrytype='struct dirent' +dlext='so' +dlsrc='dl_dlopen.xs' +dynamic_ext='B DB_File Fcntl GDBM_File IO NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs' +eagain='EAGAIN' +echo='echo' +egrep='egrep' +emacs='' +eunicefix=':' +exe_ext='' +expr='expr' +extensions='B DB_File Fcntl GDBM_File IO NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs' +find='find' +firstmakefile='makefile' +flex='' +fpostype='fpos_t' +freetype='void' +full_csh='/bin/csh' +full_sed='/bin/sed' +gcc='' +gccversion='2.7.2.3' +gidtype='gid_t' +glibpth='/usr/shlib /shlib /lib/pa1.1 /usr/lib/large /lib /usr/lib /usr/lib/386 /lib/386 /lib/large /usr/lib/small /lib/small /usr/ccs/lib /usr/ucblib /usr/local/lib ' +grep='grep' +groupcat='cat /etc/group' +groupstype='gid_t' +gzip='gzip' +h_fcntl='false' +h_sysfile='true' +hint='recommended' +hostcat='cat /etc/hosts' +huge='' +i_bsdioctl='' +i_db='define' +i_dbm='define' +i_dirent='define' +i_dld='undef' +i_dlfcn='define' +i_fcntl='undef' +i_float='define' +i_gdbm='define' +i_grp='define' +i_limits='define' +i_locale='define' +i_malloc='define' +i_math='define' +i_memory='undef' +i_ndbm='define' +i_netdb='define' +i_neterrno='undef' +i_niin='define' +i_pwd='define' +i_rpcsvcdbm='undef' +i_sfio='undef' +i_sgtty='undef' +i_stdarg='define' +i_stddef='define' +i_stdlib='define' +i_string='define' +i_sysdir='define' +i_sysfile='define' +i_sysfilio='undef' +i_sysin='undef' +i_sysioctl='define' +i_sysndir='undef' +i_sysparam='define' +i_sysresrc='define' +i_sysselct='define' +i_syssockio='' +i_sysstat='define' +i_systime='define' +i_systimek='undef' +i_systimes='define' +i_systypes='define' +i_sysun='define' +i_syswait='define' +i_termio='undef' +i_termios='define' +i_time='undef' +i_unistd='define' +i_utime='define' +i_values='define' +i_varargs='undef' +i_varhdr='stdarg.h' +i_vfork='undef' +incpath='' +inews='' +installarchlib='/opt/perl/lib/i686-linux-thread/5.00460' +installbin='/opt/perl/bin' +installman1dir='/opt/perl/man/man1' +installman3dir='/opt/perl/man/man3' +installprivlib='/opt/perl/lib' +installscript='/opt/perl/script' +installsitearch='/opt/perl/lib/site_perl/i686-linux-thread' +installsitelib='/opt/perl/lib/site_perl' +intsize='4' +known_extensions='B DB_File Fcntl GDBM_File IO NDBM_File ODBM_File Opcode POSIX SDBM_File Socket Thread attrs' +ksh='' +large='' +ld='cc' +lddlflags='-shared -L/usr/local/lib' +ldflags=' -L/usr/local/lib' +less='less' +lib_ext='.a' +libc='' +libperl='libperl.a' +libpth='/usr/local/lib /lib /usr/lib' +libs='-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt' +libswanted='sfio net socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m pthread c cposix posix ndir dir crypt ucb BSD PW x' +line='line' +lint='' +lkflags='' +ln='ln' +lns='/bin/ln -s' +locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt/gnu/include /usr/GNU/include /opt/GNU/include' +loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib' +longsize='4' +lp='' +lpr='' +ls='ls' +lseektype='off_t' +mail='' +mailx='' +make='make' +make_set_make='#' +mallocobj='' +mallocsrc='' +malloctype='void *' +man1dir='/opt/perl/man/man1' +man1direxp='/opt/perl/man/man1' +man1ext='1' +man3dir='/opt/perl/man/man3' +man3direxp='/opt/perl/man/man3' +man3ext='3' +medium='' +mips='' +mips_type='' +mkdir='mkdir' +models='none' +modetype='mode_t' +more='more' +mv='' +myarchname='i686-linux' +mydomain='.yourplace.com' +myhostname='yourhost' +myuname='linux fractal 2.0.33 #1 tue feb 3 10:11:46 est 1998 i686 unknown ' +n='-n' +netdb_hlen_type='int' +netdb_host_type='const char *' +netdb_name_type='const char *' +netdb_net_type='unsigned long' +nm_opt='' +nm_so_opt='--dynamic' +nroff='nroff' +o_nonblock='O_NONBLOCK' +obj_ext='.o' +optimize='-O' +orderlib='false' +osname='linux' +osvers='2.0.33' +package='perl5' +pager='/usr/bin/less' +passcat='cat /etc/passwd' +patchlevel='4' +path_sep=':' +perl='perl' +perladmin='yourname@yourhost.yourplace.com' +perlpath='/opt/perl/bin/perl' +pg='pg' +phostname='' +pidtype='pid_t' +plibpth='' +pmake='' +pr='' +prefix='/opt/perl' +prefixexp='/opt/perl' +privlib='/opt/perl/lib' +privlibexp='/opt/perl/lib' +prototype='define' +randbits='31' +ranlib=':' +rd_nodata='-1' +rm='rm' +rmail='' +runnm='false' +scriptdir='/opt/perl/script' +scriptdirexp='/opt/perl/script' +sed='sed' +selecttype='fd_set *' +sendmail='sendmail' +sh='/bin/sh' +shar='' +sharpbang='#!' +shmattype='void *' +shortsize='2' +shrpenv='' +shsharp='true' +sig_name='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR UNUSED IOT CLD POLL ' +sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "UNUSED", "IOT", "CLD", "POLL", 0' +sig_num='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 6, 17, 29, 0' +signal_t='void' +sitearch='/opt/perl/lib/site_perl/i686-linux-thread' +sitearchexp='/opt/perl/lib/site_perl/i686-linux-thread' +sitelib='/opt/perl/lib/site_perl' +sitelibexp='/opt/perl/lib/site_perl' +sizetype='size_t' +sleep='' +smail='' +small='' +so='so' +sockethdr='' +socketlib='' +sort='sort' +spackage='Perl5' +spitshell='cat' +split='' +src='.' +ssizetype='ssize_t' +startperl='#!/opt/perl/bin/perl' +startsh='#!/bin/sh' +static_ext=' ' +stdchar='char' +stdio_base='((fp)->_IO_read_base)' +stdio_bufsiz='((fp)->_IO_read_end - (fp)->_IO_read_base)' +stdio_cnt='((fp)->_IO_read_end - (fp)->_IO_read_ptr)' +stdio_filbuf='' +stdio_ptr='((fp)->_IO_read_ptr)' +strings='/usr/include/string.h' +submit='' +subversion='60' +sysman='/usr/man/man1' +tail='' +tar='' +tbl='' +test='test' +timeincl='/usr/include/sys/time.h ' +timetype='time_t' +touch='touch' +tr='tr' +troff='' +uidtype='uid_t' +uname='uname' +uniq='uniq' +usedl='define' +usemymalloc='n' +usenm='false' +useopcode='true' +useperlio='undef' +useposix='true' +usesfio='false' +useshrplib='false' +usethreads='define' +usevfork='false' +usrinc='/usr/include' +uuname='' +vi='' +voidflags='15' +xlibpth='/usr/lib/386 /lib/386' +zcat='' +zip='zip' +PATCHLEVEL=4 +SUBVERSION=60 +CONFIG=true diff --git a/Porting/config_H b/Porting/config_H new file mode 100644 index 0000000000..ec3fbdba18 --- /dev/null +++ b/Porting/config_H @@ -0,0 +1,1811 @@ +/* This file (config_H) is a sample config.h file. If you are unable + to successfully run Configure, copy this file to config.h and + edit it to suit your system. +*/ +/* + * This file was produced by running the config_h.SH script, which + * gets its values from config.sh, which is generally produced by + * running Configure. + * + * Feel free to modify any of this as the need arises. Note, however, + * that running config_h.SH again will wipe out any changes you've made. + * For a more permanent change edit config.sh and rerun config_h.SH. + * + * $Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ + */ + +/* + * Package name : perl5 + * Source directory : . + * Configuration time: Tue Feb 24 12:39:16 EST 1998 + * Configured by : doughera + * Target system : linux fractal 2.0.33 #1 tue feb 3 10:11:46 est 1998 i686 unknown + */ + +#ifndef _config_h_ +#define _config_h_ + +/* LOC_SED: + * This symbol holds the complete pathname to the sed program. + */ +#define LOC_SED "/bin/sed" /**/ + +/* BIN: + * This symbol holds the path of the bin directory where the package will + * be installed. Program must be prepared to deal with ~name substitution. + */ +/* BIN_EXP: + * This symbol is the filename expanded version of the BIN symbol, for + * programs that do not want to deal with that at run-time. + */ +#define BIN "/opt/perl/bin" /**/ +#define BIN_EXP "/opt/perl/bin" /**/ + +/* CPPSTDIN: + * This symbol contains the first part of the string which will invoke + * the C preprocessor on the standard input and produce to standard + * output. Typical value of "cc -E" or "/lib/cpp", but it can also + * call a wrapper. See CPPRUN. + */ +/* CPPMINUS: + * This symbol contains the second part of the string which will invoke + * the C preprocessor on the standard input and produce to standard + * output. This symbol will have the value "-" if CPPSTDIN needs a minus + * to specify standard input, otherwise the value is "". + */ +#define CPPSTDIN "cc -E" +#define CPPMINUS "-" + +/* HAS_ALARM: + * This symbol, if defined, indicates that the alarm routine is + * available. + */ +#define HAS_ALARM /**/ + +/* HASATTRIBUTE: + * This symbol indicates the C compiler can check for function attributes, + * such as printf formats. This is normally only supported by GNU cc. + */ +#define HASATTRIBUTE /**/ +#ifndef HASATTRIBUTE +#define __attribute__(_arg_) +#endif + +/* HAS_BCMP: + * This symbol is defined if the bcmp() routine is available to + * compare blocks of memory. + */ +#define HAS_BCMP /**/ + +/* HAS_BCOPY: + * This symbol is defined if the bcopy() routine is available to + * copy blocks of memory. + */ +#define HAS_BCOPY /**/ + +/* HAS_BZERO: + * This symbol is defined if the bzero() routine is available to + * set a memory block to 0. + */ +#define HAS_BZERO /**/ + +/* HAS_CHOWN: + * This symbol, if defined, indicates that the chown routine is + * available. + */ +#define HAS_CHOWN /**/ + +/* HAS_CHROOT: + * This symbol, if defined, indicates that the chroot routine is + * available. + */ +#define HAS_CHROOT /**/ + +/* HAS_CHSIZE: + * This symbol, if defined, indicates that the chsize routine is available + * to truncate files. You might need a -lx to get this routine. + */ +/*#define HAS_CHSIZE / **/ + +/* HASCONST: + * This symbol, if defined, indicates that this C compiler knows about + * the const type. There is no need to actually test for that symbol + * within your programs. The mere use of the "const" keyword will + * trigger the necessary tests. + */ +#define HASCONST /**/ +#ifndef HASCONST +#define const +#endif + +/* HAS_CRYPT: + * This symbol, if defined, indicates that the crypt routine is available + * to encrypt passwords and the like. + */ +#define HAS_CRYPT /**/ + +/* HAS_CUSERID: + * This symbol, if defined, indicates that the cuserid routine is + * available to get character login names. + */ +#define HAS_CUSERID /**/ + +/* HAS_DBL_DIG: + * This symbol, if defined, indicates that this system's <float.h> + * or <limits.h> defines the symbol DBL_DIG, which is the number + * of significant digits in a double precision number. If this + * symbol is not defined, a guess of 15 is usually pretty good. + */ +#define HAS_DBL_DIG /* */ + +/* HAS_DIFFTIME: + * This symbol, if defined, indicates that the difftime routine is + * available. + */ +#define HAS_DIFFTIME /**/ + +/* HAS_DLERROR: + * This symbol, if defined, indicates that the dlerror routine is + * available to return a string describing the last error that + * occurred from a call to dlopen(), dlclose() or dlsym(). + */ +#define HAS_DLERROR /**/ + +/* SETUID_SCRIPTS_ARE_SECURE_NOW: + * This symbol, if defined, indicates that the bug that prevents + * setuid scripts from being secure is not present in this kernel. + */ +/* DOSUID: + * This symbol, if defined, indicates that the C program should + * check the script that it is executing for setuid/setgid bits, and + * attempt to emulate setuid/setgid on systems that have disabled + * setuid #! scripts because the kernel can't do it securely. + * It is up to the package designer to make sure that this emulation + * is done securely. Among other things, it should do an fstat on + * the script it just opened to make sure it really is a setuid/setgid + * script, it should make sure the arguments passed correspond exactly + * to the argument on the #! line, and it should not trust any + * subprocesses to which it must pass the filename rather than the + * file descriptor of the script to be executed. + */ +/*#define SETUID_SCRIPTS_ARE_SECURE_NOW / **/ +/*#define DOSUID / **/ + +/* HAS_DUP2: + * This symbol, if defined, indicates that the dup2 routine is + * available to duplicate file descriptors. + */ +#define HAS_DUP2 /**/ + +/* HAS_FCHMOD: + * This symbol, if defined, indicates that the fchmod routine is available + * to change mode of opened files. If unavailable, use chmod(). + */ +#define HAS_FCHMOD /**/ + +/* HAS_FCHOWN: + * This symbol, if defined, indicates that the fchown routine is available + * to change ownership of opened files. If unavailable, use chown(). + */ +#define HAS_FCHOWN /**/ + +/* HAS_FCNTL: + * This symbol, if defined, indicates to the C program that + * the fcntl() function exists. + */ +#define HAS_FCNTL /**/ + +/* HAS_FGETPOS: + * This symbol, if defined, indicates that the fgetpos routine is + * available to get the file position indicator, similar to ftell(). + */ +#define HAS_FGETPOS /**/ + +/* FLEXFILENAMES: + * This symbol, if defined, indicates that the system supports filenames + * longer than 14 characters. + */ +#define FLEXFILENAMES /**/ + +/* HAS_FLOCK: + * This symbol, if defined, indicates that the flock routine is + * available to do file locking. + */ +#define HAS_FLOCK /**/ + +/* HAS_FORK: + * This symbol, if defined, indicates that the fork routine is + * available. + */ +#define HAS_FORK /**/ + +/* HAS_FSETPOS: + * This symbol, if defined, indicates that the fsetpos routine is + * available to set the file position indicator, similar to fseek(). + */ +#define HAS_FSETPOS /**/ + +/* HAS_GETTIMEOFDAY: + * This symbol, if defined, indicates that the gettimeofday() system + * call is available for a sub-second accuracy clock. Usually, the file + * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). + * The type "Timeval" should be used to refer to "struct timeval". + */ +#define HAS_GETTIMEOFDAY /**/ +#ifdef HAS_GETTIMEOFDAY +#define Timeval struct timeval /* Structure used by gettimeofday() */ +#endif + +/* HAS_GETGROUPS: + * This symbol, if defined, indicates that the getgroups() routine is + * available to get the list of process groups. If unavailable, multiple + * groups are probably not supported. + */ +#define HAS_GETGROUPS /**/ + +/* HAS_GETHOSTENT: + * This symbol, if defined, indicates that the gethostent routine is + * available to lookup host names in some data base or other. + */ +#define HAS_GETHOSTENT /**/ + +/* HAS_UNAME: + * This symbol, if defined, indicates that the C program may use the + * uname() routine to derive the host name. See also HAS_GETHOSTNAME + * and PHOSTNAME. + */ +#define HAS_UNAME /**/ + +/* HAS_GETLOGIN: + * This symbol, if defined, indicates that the getlogin routine is + * available to get the login name. + */ +#define HAS_GETLOGIN /**/ + +/* HAS_GETPGID: + * This symbol, if defined, indicates to the C program that + * the getpgid(pid) function is available to get the + * process group id. + */ +#define HAS_GETPGID /**/ + +/* HAS_GETPGRP: + * This symbol, if defined, indicates that the getpgrp routine is + * available to get the current process group. + */ +/* USE_BSD_GETPGRP: + * This symbol, if defined, indicates that getpgrp needs one + * arguments whereas USG one needs none. + */ +#define HAS_GETPGRP /**/ +/*#define USE_BSD_GETPGRP / **/ + +/* HAS_GETPGRP2: + * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) + * routine is available to get the current process group. + */ +/*#define HAS_GETPGRP2 / **/ + +/* HAS_GETPPID: + * This symbol, if defined, indicates that the getppid routine is + * available to get the parent process ID. + */ +#define HAS_GETPPID /**/ + +/* HAS_GETPRIORITY: + * This symbol, if defined, indicates that the getpriority routine is + * available to get a process's priority. + */ +#define HAS_GETPRIORITY /**/ + +/* HAS_HTONL: + * This symbol, if defined, indicates that the htonl() routine (and + * friends htons() ntohl() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_HTONS: + * This symbol, if defined, indicates that the htons() routine (and + * friends htonl() ntohl() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_NTOHL: + * This symbol, if defined, indicates that the ntohl() routine (and + * friends htonl() htons() ntohs()) are available to do network + * order byte swapping. + */ +/* HAS_NTOHS: + * This symbol, if defined, indicates that the ntohs() routine (and + * friends htonl() htons() ntohl()) are available to do network + * order byte swapping. + */ +#define HAS_HTONL /**/ +#define HAS_HTONS /**/ +#define HAS_NTOHL /**/ +#define HAS_NTOHS /**/ + +/* HAS_INET_ATON: + * This symbol, if defined, indicates to the C program that the + * inet_aton() function is available to parse IP address "dotted-quad" + * strings. + */ +#define HAS_INET_ATON /**/ + +/* HAS_KILLPG: + * This symbol, if defined, indicates that the killpg routine is available + * to kill process groups. If unavailable, you probably should use kill + * with a negative process number. + */ +#define HAS_KILLPG /**/ + +/* HAS_LINK: + * This symbol, if defined, indicates that the link routine is + * available to create hard links. + */ +#define HAS_LINK /**/ + +/* HAS_LOCALECONV: + * This symbol, if defined, indicates that the localeconv routine is + * available for numeric and monetary formatting conventions. + */ +#define HAS_LOCALECONV /**/ + +/* HAS_LOCKF: + * This symbol, if defined, indicates that the lockf routine is + * available to do file locking. + */ +#define HAS_LOCKF /**/ + +/* HAS_LSTAT: + * This symbol, if defined, indicates that the lstat routine is + * available to do file stats on symbolic links. + */ +#define HAS_LSTAT /**/ + +/* HAS_MBLEN: + * This symbol, if defined, indicates that the mblen routine is available + * to find the number of bytes in a multibye character. + */ +#define HAS_MBLEN /**/ + +/* HAS_MBSTOWCS: + * This symbol, if defined, indicates that the mbstowcs routine is + * available to covert a multibyte string into a wide character string. + */ +#define HAS_MBSTOWCS /**/ + +/* HAS_MBTOWC: + * This symbol, if defined, indicates that the mbtowc routine is available + * to covert a multibyte to a wide character. + */ +#define HAS_MBTOWC /**/ + +/* HAS_MEMCMP: + * This symbol, if defined, indicates that the memcmp routine is available + * to compare blocks of memory. + */ +#define HAS_MEMCMP /**/ + +/* HAS_MEMCPY: + * This symbol, if defined, indicates that the memcpy routine is available + * to copy blocks of memory. + */ +#define HAS_MEMCPY /**/ + +/* HAS_MEMMOVE: + * This symbol, if defined, indicates that the memmove routine is available + * to copy potentially overlapping blocks of memory. This should be used + * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your + * own version. + */ +#define HAS_MEMMOVE /**/ + +/* HAS_MEMSET: + * This symbol, if defined, indicates that the memset routine is available + * to set blocks of memory. + */ +#define HAS_MEMSET /**/ + +/* HAS_MKDIR: + * This symbol, if defined, indicates that the mkdir routine is available + * to create directories. Otherwise you should fork off a new process to + * exec /bin/mkdir. + */ +#define HAS_MKDIR /**/ + +/* HAS_MKFIFO: + * This symbol, if defined, indicates that the mkfifo routine is + * available to create FIFOs. Otherwise, mknod should be able to + * do it for you. However, if mkfifo is there, mknod might require + * super-user privileges which mkfifo will not. + */ +#define HAS_MKFIFO /**/ + +/* HAS_MKTIME: + * This symbol, if defined, indicates that the mktime routine is + * available. + */ +#define HAS_MKTIME /**/ + +/* HAS_MSG: + * This symbol, if defined, indicates that the entire msg*(2) library is + * supported (IPC mechanism based on message queues). + */ +#define HAS_MSG /**/ + +/* HAS_NICE: + * This symbol, if defined, indicates that the nice routine is + * available. + */ +#define HAS_NICE /**/ + +/* HAS_PATHCONF: + * This symbol, if defined, indicates that pathconf() is available + * to determine file-system related limits and options associated + * with a given filename. + */ +/* HAS_FPATHCONF: + * This symbol, if defined, indicates that pathconf() is available + * to determine file-system related limits and options associated + * with a given open file descriptor. + */ +#define HAS_PATHCONF /**/ +#define HAS_FPATHCONF /**/ + +/* HAS_PAUSE: + * This symbol, if defined, indicates that the pause routine is + * available to suspend a process until a signal is received. + */ +#define HAS_PAUSE /**/ + +/* HAS_PIPE: + * This symbol, if defined, indicates that the pipe routine is + * available to create an inter-process channel. + */ +#define HAS_PIPE /**/ + +/* HAS_POLL: + * This symbol, if defined, indicates that the poll routine is + * available to poll active file descriptors. You may safely + * include <poll.h> when this symbol is defined. + */ +#define HAS_POLL /**/ + +/* HAS_READDIR: + * This symbol, if defined, indicates that the readdir routine is + * available to read directory entries. You may have to include + * <dirent.h>. See I_DIRENT. + */ +#define HAS_READDIR /**/ + +/* HAS_SEEKDIR: + * This symbol, if defined, indicates that the seekdir routine is + * available. You may have to include <dirent.h>. See I_DIRENT. + */ +#define HAS_SEEKDIR /**/ + +/* HAS_TELLDIR: + * This symbol, if defined, indicates that the telldir routine is + * available. You may have to include <dirent.h>. See I_DIRENT. + */ +#define HAS_TELLDIR /**/ + +/* HAS_REWINDDIR: + * This symbol, if defined, indicates that the rewinddir routine is + * available. You may have to include <dirent.h>. See I_DIRENT. + */ +#define HAS_REWINDDIR /**/ + +/* HAS_READLINK: + * This symbol, if defined, indicates that the readlink routine is + * available to read the value of a symbolic link. + */ +#define HAS_READLINK /**/ + +/* HAS_RENAME: + * This symbol, if defined, indicates that the rename routine is available + * to rename files. Otherwise you should do the unlink(), link(), unlink() + * trick. + */ +#define HAS_RENAME /**/ + +/* HAS_RMDIR: + * This symbol, if defined, indicates that the rmdir routine is + * available to remove directories. Otherwise you should fork off a + * new process to exec /bin/rmdir. + */ +#define HAS_RMDIR /**/ + +/* HAS_SELECT: + * This symbol, if defined, indicates that the select routine is + * available to select active file descriptors. If the timeout field + * is used, <sys/time.h> may need to be included. + */ +#define HAS_SELECT /**/ + +/* HAS_SEM: + * This symbol, if defined, indicates that the entire sem*(2) library is + * supported. + */ +#define HAS_SEM /**/ + +/* HAS_SETEGID: + * This symbol, if defined, indicates that the setegid routine is available + * to change the effective gid of the current program. + */ +#define HAS_SETEGID /**/ + +/* HAS_SETEUID: + * This symbol, if defined, indicates that the seteuid routine is available + * to change the effective uid of the current program. + */ +#define HAS_SETEUID /**/ + +/* HAS_SETLINEBUF: + * This symbol, if defined, indicates that the setlinebuf routine is + * available to change stderr or stdout from block-buffered or unbuffered + * to a line-buffered mode. + */ +#define HAS_SETLINEBUF /**/ + +/* HAS_SETLOCALE: + * This symbol, if defined, indicates that the setlocale routine is + * available to handle locale-specific ctype implementations. + */ +#define HAS_SETLOCALE /**/ + +/* HAS_SETPGID: + * This symbol, if defined, indicates that the setpgid(pid, gpid) + * routine is available to set process group ID. + */ +#define HAS_SETPGID /**/ + +/* HAS_SETPGRP: + * This symbol, if defined, indicates that the setpgrp routine is + * available to set the current process group. + */ +/* USE_BSD_SETPGRP: + * This symbol, if defined, indicates that setpgrp needs two + * arguments whereas USG one needs none. See also HAS_SETPGID + * for a POSIX interface. + */ +#define HAS_SETPGRP /**/ +/*#define USE_BSD_SETPGRP / **/ + +/* HAS_SETPGRP2: + * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) + * routine is available to set the current process group. + */ +/*#define HAS_SETPGRP2 / **/ + +/* HAS_SETPRIORITY: + * This symbol, if defined, indicates that the setpriority routine is + * available to set a process's priority. + */ +#define HAS_SETPRIORITY /**/ + +/* HAS_SETREGID: + * This symbol, if defined, indicates that the setregid routine is + * available to change the real and effective gid of the current + * process. + */ +/* HAS_SETRESGID: + * This symbol, if defined, indicates that the setresgid routine is + * available to change the real, effective and saved gid of the current + * process. + */ +#define HAS_SETREGID /**/ +/*#define HAS_SETRESGID / **/ + +/* HAS_SETREUID: + * This symbol, if defined, indicates that the setreuid routine is + * available to change the real and effective uid of the current + * process. + */ +/* HAS_SETRESUID: + * This symbol, if defined, indicates that the setresuid routine is + * available to change the real, effective and saved uid of the current + * process. + */ +#define HAS_SETREUID /**/ +/*#define HAS_SETRESUID / **/ + +/* HAS_SETRGID: + * This symbol, if defined, indicates that the setrgid routine is available + * to change the real gid of the current program. + */ +/*#define HAS_SETRGID / **/ + +/* HAS_SETRUID: + * This symbol, if defined, indicates that the setruid routine is available + * to change the real uid of the current program. + */ +/*#define HAS_SETRUID / **/ + +/* HAS_SETSID: + * This symbol, if defined, indicates that the setsid routine is + * available to set the process group ID. + */ +#define HAS_SETSID /**/ + +/* HAS_SHM: + * This symbol, if defined, indicates that the entire shm*(2) library is + * supported. + */ +#define HAS_SHM /**/ + +/* Shmat_t: + * This symbol holds the return type of the shmat() system call. + * Usually set to 'void *' or 'char *'. + */ +/* HAS_SHMAT_PROTOTYPE: + * This symbol, if defined, indicates that the sys/shm.h includes + * a prototype for shmat(). Otherwise, it is up to the program to + * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, + * but not always right so it should be emitted by the program only + * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. + */ +#define Shmat_t void * /**/ +#define HAS_SHMAT_PROTOTYPE /**/ + +/* HAS_SOCKET: + * This symbol, if defined, indicates that the BSD socket interface is + * supported. + */ +/* HAS_SOCKETPAIR: + * This symbol, if defined, indicates that the BSD socketpair() call is + * supported. + */ +#define HAS_SOCKET /**/ +#define HAS_SOCKETPAIR /**/ + +/* USE_STAT_BLOCKS: + * This symbol is defined if this system has a stat structure declaring + * st_blksize and st_blocks. + */ +/*#define USE_STAT_BLOCKS / **/ + +/* HAS_STRCHR: + * This symbol is defined to indicate that the strchr()/strrchr() + * functions are available for string searching. If not, try the + * index()/rindex() pair. + */ +/* HAS_INDEX: + * This symbol is defined to indicate that the index()/rindex() + * functions are available for string searching. + */ +#define HAS_STRCHR /**/ +/*#define HAS_INDEX / **/ + +/* HAS_STRCOLL: + * This symbol, if defined, indicates that the strcoll routine is + * available to compare strings using collating information. + */ +#define HAS_STRCOLL /**/ + +/* USE_STRUCT_COPY: + * This symbol, if defined, indicates that this C compiler knows how + * to copy structures. If undefined, you'll need to use a block copy + * routine of some sort instead. + */ +#define USE_STRUCT_COPY /**/ + +/* HAS_STRERROR: + * This symbol, if defined, indicates that the strerror routine is + * available to translate error numbers to strings. See the writeup + * of Strerror() in this file before you try to define your own. + */ +/* HAS_SYS_ERRLIST: + * This symbol, if defined, indicates that the sys_errlist array is + * available to translate error numbers to strings. The extern int + * sys_nerr gives the size of that table. + */ +/* Strerror: + * This preprocessor symbol is defined as a macro if strerror() is + * not available to translate error numbers to strings but sys_errlist[] + * array is there. + */ +#define HAS_STRERROR /**/ +#define HAS_SYS_ERRLIST /**/ +#define Strerror(e) strerror(e) + +/* HAS_STRTOD: + * This symbol, if defined, indicates that the strtod routine is + * available to provide better numeric string conversion than atof(). + */ +#define HAS_STRTOD /**/ + +/* HAS_STRTOL: + * This symbol, if defined, indicates that the strtol routine is available + * to provide better numeric string conversion than atoi() and friends. + */ +#define HAS_STRTOL /**/ + +/* HAS_STRTOUL: + * This symbol, if defined, indicates that the strtoul routine is + * available to provide conversion of strings to unsigned long. + */ +#define HAS_STRTOUL /**/ + +/* HAS_STRXFRM: + * This symbol, if defined, indicates that the strxfrm() routine is + * available to transform strings. + */ +#define HAS_STRXFRM /**/ + +/* HAS_SYMLINK: + * This symbol, if defined, indicates that the symlink routine is available + * to create symbolic links. + */ +#define HAS_SYMLINK /**/ + +/* HAS_SYSCALL: + * This symbol, if defined, indicates that the syscall routine is + * available to call arbitrary system calls. If undefined, that's tough. + */ +#define HAS_SYSCALL /**/ + +/* HAS_SYSCONF: + * This symbol, if defined, indicates that sysconf() is available + * to determine system related limits and options. + */ +#define HAS_SYSCONF /**/ + +/* HAS_SYSTEM: + * This symbol, if defined, indicates that the system routine is + * available to issue a shell command. + */ +#define HAS_SYSTEM /**/ + +/* HAS_TCGETPGRP: + * This symbol, if defined, indicates that the tcgetpgrp routine is + * available to get foreground process group ID. + */ +#define HAS_TCGETPGRP /**/ + +/* HAS_TCSETPGRP: + * This symbol, if defined, indicates that the tcsetpgrp routine is + * available to set foreground process group ID. + */ +#define HAS_TCSETPGRP /**/ + +/* Time_t: + * This symbol holds the type returned by time(). It can be long, + * or time_t on BSD sites (in which case <sys/types.h> should be + * included). + */ +#define Time_t time_t /* Time type */ + +/* HAS_TIMES: + * This symbol, if defined, indicates that the times() routine exists. + * Note that this became obsolete on some systems (SUNOS), which now + * use getrusage(). It may be necessary to include <sys/times.h>. + */ +#define HAS_TIMES /**/ + +/* HAS_TRUNCATE: + * This symbol, if defined, indicates that the truncate routine is + * available to truncate files. + */ +#define HAS_TRUNCATE /**/ + +/* HAS_TZNAME: + * This symbol, if defined, indicates that the tzname[] array is + * available to access timezone names. + */ +#define HAS_TZNAME /**/ + +/* HAS_UMASK: + * This symbol, if defined, indicates that the umask routine is + * available to set and get the value of the file creation mask. + */ +#define HAS_UMASK /**/ + +/* HAS_VFORK: + * This symbol, if defined, indicates that vfork() exists. + */ +/*#define HAS_VFORK / **/ + +/* HASVOLATILE: + * This symbol, if defined, indicates that this C compiler knows about + * the volatile declaration. + */ +#define HASVOLATILE /**/ +#ifndef HASVOLATILE +#define volatile +#endif + +/* HAS_WAIT4: + * This symbol, if defined, indicates that wait4() exists. + */ +#define HAS_WAIT4 /**/ + +/* HAS_WAITPID: + * This symbol, if defined, indicates that the waitpid routine is + * available to wait for child process. + */ +#define HAS_WAITPID /**/ + +/* HAS_WCSTOMBS: + * This symbol, if defined, indicates that the wcstombs routine is + * available to convert wide character strings to multibyte strings. + */ +#define HAS_WCSTOMBS /**/ + +/* HAS_WCTOMB: + * This symbol, if defined, indicates that the wctomb routine is available + * to covert a wide character to a multibyte. + */ +#define HAS_WCTOMB /**/ + +/* Fpos_t: + * This symbol holds the type used to declare file positions in libc. + * It can be fpos_t, long, uint, etc... It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Fpos_t fpos_t /* File position type */ + +/* Gid_t: + * This symbol holds the return type of getgid() and the type of + * argument to setrgid() and related functions. Typically, + * it is the type of group ids in the kernel. It can be int, ushort, + * uid_t, etc... It may be necessary to include <sys/types.h> to get + * any typedef'ed information. + */ +#define Gid_t gid_t /* Type for getgid(), etc... */ + +/* I_DBM: + * This symbol, if defined, indicates that <dbm.h> exists and should + * be included. + */ +/* I_RPCSVC_DBM: + * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and + * should be included. + */ +#define I_DBM /**/ +/*#define I_RPCSVC_DBM / **/ + +/* I_DIRENT: + * This symbol, if defined, indicates to the C program that it should + * include <dirent.h>. Using this symbol also triggers the definition + * of the Direntry_t define which ends up being 'struct dirent' or + * 'struct direct' depending on the availability of <dirent.h>. + */ +/* DIRNAMLEN: + * This symbol, if defined, indicates to the C program that the length + * of directory entry names is provided by a d_namlen field. Otherwise + * you need to do strlen() on the d_name field. + */ +/* Direntry_t: + * This symbol is set to 'struct direct' or 'struct dirent' depending on + * whether dirent is available or not. You should use this pseudo type to + * portably declare your directory entries. + */ +#define I_DIRENT /**/ +/*#define DIRNAMLEN / **/ +#define Direntry_t struct dirent + +/* I_DLFCN: + * This symbol, if defined, indicates that <dlfcn.h> exists and should + * be included. + */ +#define I_DLFCN /**/ + +/* I_FCNTL: + * This manifest constant tells the C program to include <fcntl.h>. + */ +/*#define I_FCNTL / **/ + +/* I_FLOAT: + * This symbol, if defined, indicates to the C program that it should + * include <float.h> to get definition of symbols like DBL_MAX or + * DBL_MIN, i.e. machine dependent floating point values. + */ +#define I_FLOAT /**/ + +/* I_GRP: + * This symbol, if defined, indicates to the C program that it should + * include <grp.h>. + */ +#define I_GRP /**/ + +/* I_LIMITS: + * This symbol, if defined, indicates to the C program that it should + * include <limits.h> to get definition of symbols like WORD_BIT or + * LONG_MAX, i.e. machine dependant limitations. + */ +#define I_LIMITS /**/ + +/* I_LOCALE: + * This symbol, if defined, indicates to the C program that it should + * include <locale.h>. + */ +#define I_LOCALE /**/ + +/* I_MATH: + * This symbol, if defined, indicates to the C program that it should + * include <math.h>. + */ +#define I_MATH /**/ + +/* I_MEMORY: + * This symbol, if defined, indicates to the C program that it should + * include <memory.h>. + */ +/*#define I_MEMORY / **/ + +/* I_NDBM: + * This symbol, if defined, indicates that <ndbm.h> exists and should + * be included. + */ +#define I_NDBM /**/ + +/* I_NET_ERRNO: + * This symbol, if defined, indicates that <net/errno.h> exists and + * should be included. + */ +/*#define I_NET_ERRNO / **/ + +/* I_NETINET_IN: + * This symbol, if defined, indicates to the C program that it should + * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. + */ +#define I_NETINET_IN /**/ + +/* I_PWD: + * This symbol, if defined, indicates to the C program that it should + * include <pwd.h>. + */ +/* PWQUOTA: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_quota. + */ +/* PWAGE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_age. + */ +/* PWCHANGE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_change. + */ +/* PWCLASS: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_class. + */ +/* PWEXPIRE: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_expire. + */ +/* PWCOMMENT: + * This symbol, if defined, indicates to the C program that struct passwd + * contains pw_comment. + */ +#define I_PWD /**/ +/*#define PWQUOTA / **/ +/*#define PWAGE / **/ +/*#define PWCHANGE / **/ +/*#define PWCLASS / **/ +/*#define PWEXPIRE / **/ +/*#define PWCOMMENT / **/ + +/* I_SFIO: + * This symbol, if defined, indicates to the C program that it should + * include <sfio.h>. + */ +/*#define I_SFIO / **/ + +/* I_STDDEF: + * This symbol, if defined, indicates that <stddef.h> exists and should + * be included. + */ +#define I_STDDEF /**/ + +/* I_STDLIB: + * This symbol, if defined, indicates that <stdlib.h> exists and should + * be included. + */ +#define I_STDLIB /**/ + +/* I_STRING: + * This symbol, if defined, indicates to the C program that it should + * include <string.h> (USG systems) instead of <strings.h> (BSD systems). + */ +#define I_STRING /**/ + +/* I_SYS_DIR: + * This symbol, if defined, indicates to the C program that it should + * include <sys/dir.h>. + */ +#define I_SYS_DIR /**/ + +/* I_SYS_FILE: + * This symbol, if defined, indicates to the C program that it should + * include <sys/file.h> to get definition of R_OK and friends. + */ +#define I_SYS_FILE /**/ + +/* I_SYS_IOCTL: + * This symbol, if defined, indicates that <sys/ioctl.h> exists and should + * be included. Otherwise, include <sgtty.h> or <termio.h>. + */ +#define I_SYS_IOCTL /**/ + +/* I_SYS_NDIR: + * This symbol, if defined, indicates to the C program that it should + * include <sys/ndir.h>. + */ +/*#define I_SYS_NDIR / **/ + +/* I_SYS_PARAM: + * This symbol, if defined, indicates to the C program that it should + * include <sys/param.h>. + */ +#define I_SYS_PARAM /**/ + +/* I_SYS_RESOURCE: + * This symbol, if defined, indicates to the C program that it should + * include <sys/resource.h>. + */ +#define I_SYS_RESOURCE /**/ + +/* I_SYS_SELECT: + * This symbol, if defined, indicates to the C program that it should + * include <sys/select.h> in order to get definition of struct timeval. + */ +#define I_SYS_SELECT /**/ + +/* I_SYS_STAT: + * This symbol, if defined, indicates to the C program that it should + * include <sys/stat.h>. + */ +#define I_SYS_STAT /**/ + +/* I_SYS_TIMES: + * This symbol, if defined, indicates to the C program that it should + * include <sys/times.h>. + */ +#define I_SYS_TIMES /**/ + +/* I_SYS_TYPES: + * This symbol, if defined, indicates to the C program that it should + * include <sys/types.h>. + */ +#define I_SYS_TYPES /**/ + +/* I_SYS_UN: + * This symbol, if defined, indicates to the C program that it should + * include <sys/un.h> to get UNIX domain socket definitions. + */ +#define I_SYS_UN /**/ + +/* I_SYS_WAIT: + * This symbol, if defined, indicates to the C program that it should + * include <sys/wait.h>. + */ +#define I_SYS_WAIT /**/ + +/* I_TERMIO: + * This symbol, if defined, indicates that the program should include + * <termio.h> rather than <sgtty.h>. There are also differences in + * the ioctl() calls that depend on the value of this symbol. + */ +/* I_TERMIOS: + * This symbol, if defined, indicates that the program should include + * the POSIX termios.h rather than sgtty.h or termio.h. + * There are also differences in the ioctl() calls that depend on the + * value of this symbol. + */ +/* I_SGTTY: + * This symbol, if defined, indicates that the program should include + * <sgtty.h> rather than <termio.h>. There are also differences in + * the ioctl() calls that depend on the value of this symbol. + */ +/*#define I_TERMIO / **/ +#define I_TERMIOS /**/ +/*#define I_SGTTY / **/ + +/* I_UNISTD: + * This symbol, if defined, indicates to the C program that it should + * include <unistd.h>. + */ +#define I_UNISTD /**/ + +/* I_UTIME: + * This symbol, if defined, indicates to the C program that it should + * include <utime.h>. + */ +#define I_UTIME /**/ + +/* I_VALUES: + * This symbol, if defined, indicates to the C program that it should + * include <values.h> to get definition of symbols like MINFLOAT or + * MAXLONG, i.e. machine dependant limitations. Probably, you + * should use <limits.h> instead, if it is available. + */ +#define I_VALUES /**/ + +/* I_STDARG: + * This symbol, if defined, indicates that <stdarg.h> exists and should + * be included. + */ +/* I_VARARGS: + * This symbol, if defined, indicates to the C program that it should + * include <varargs.h>. + */ +#define I_STDARG /**/ +/*#define I_VARARGS / **/ + +/* I_VFORK: + * This symbol, if defined, indicates to the C program that it should + * include vfork.h. + */ +/*#define I_VFORK / **/ + +/* Off_t: + * This symbol holds the type used to declare offsets in the kernel. + * It can be int, long, off_t, etc... It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Off_t off_t /* <offset> type */ + +/* Free_t: + * This variable contains the return type of free(). It is usually + * void, but occasionally int. + */ +/* Malloc_t: + * This symbol is the type of pointer returned by malloc and realloc. + */ +#define Malloc_t void * /**/ +#define Free_t void /**/ + +/* MYMALLOC: + * This symbol, if defined, indicates that we're using our own malloc. + */ +/*#define MYMALLOC / **/ + +/* Mode_t: + * This symbol holds the type used to declare file modes + * for systems calls. It is usually mode_t, but may be + * int or unsigned short. It may be necessary to include <sys/types.h> + * to get any typedef'ed information. + */ +#define Mode_t mode_t /* file mode parameter for system calls */ + +/* Pid_t: + * This symbol holds the type used to declare process ids in the kernel. + * It can be int, uint, pid_t, etc... It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Pid_t pid_t /* PID type */ + +/* CAN_PROTOTYPE: + * If defined, this macro indicates that the C compiler can handle + * function prototypes. + */ +/* _: + * This macro is used to declare function parameters for folks who want + * to make declarations with prototypes using a different style than + * the above macros. Use double parentheses. For example: + * + * int main _((int argc, char *argv[])); + */ +#define CAN_PROTOTYPE /**/ +#ifdef CAN_PROTOTYPE +#define _(args) args +#else +#define _(args) () +#endif + +/* SH_PATH: + * This symbol contains the full pathname to the shell used on this + * on this system to execute Bourne shell scripts. Usually, this will be + * /bin/sh, though it's possible that some systems will have /bin/ksh, + * /bin/pdksh, /bin/ash, /bin/bash, or even something such as + * D:/bin/sh.exe. + */ +#define SH_PATH "/bin/sh" /**/ + +/* Size_t: + * This symbol holds the type used to declare length parameters + * for string functions. It is usually size_t, but may be + * unsigned long, int, etc. It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Size_t size_t /* length paramater for string functions */ + +/* STDCHAR: + * This symbol is defined to be the type of char used in stdio.h. + * It has the values "unsigned char" or "char". + */ +#define STDCHAR char /**/ + +/* Uid_t: + * This symbol holds the type used to declare user ids in the kernel. + * It can be int, ushort, uid_t, etc... It may be necessary to include + * <sys/types.h> to get any typedef'ed information. + */ +#define Uid_t uid_t /* UID type */ + +/* VOIDFLAGS: + * This symbol indicates how much support of the void type is given by this + * compiler. What various bits mean: + * + * 1 = supports declaration of void + * 2 = supports arrays of pointers to functions returning void + * 4 = supports comparisons between pointers to void functions and + * addresses of void functions + * 8 = suports declaration of generic void pointers + * + * The package designer should define VOIDUSED to indicate the requirements + * of the package. This can be done either by #defining VOIDUSED before + * including config.h, or by defining defvoidused in Myinit.U. If the + * latter approach is taken, only those flags will be tested. If the + * level of void support necessary is not present, defines void to int. + */ +#ifndef VOIDUSED +#define VOIDUSED 15 +#endif +#define VOIDFLAGS 15 +#if (VOIDFLAGS & VOIDUSED) != VOIDUSED +#define void int /* is void to be avoided? */ +#define M_VOID /* Xenix strikes again */ +#endif + +/* MEM_ALIGNBYTES: + * This symbol contains the number of bytes required to align a + * double. Usual values are 2, 4 and 8. + * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture + * Binaries (MAB) for targets with varying alignment. This only matters + * for perl, where the config.h can be generated and installed on one + * system, and used by a different architecture to build an extension. + * The default is eight, for safety. + */ +#define MEM_ALIGNBYTES 4 /**/ + +/* BYTEORDER: + * This symbol holds the hexadecimal constant defined in byteorder, + * i.e. 0x1234 or 0x4321, etc... + * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture + * Binaries (MAB) on either big endian or little endian machines. + * The endian-ness is available at compile-time. This only matters + * for perl, where the config.h can be generated and installed on + * one system, and used by a different architecture to build an + * extension. Older versions of NeXT that might not have + * defined either *_ENDIAN__ were all on Motorola 680x0 series, + * so the default case (for NeXT) is big endian to catch them. + * This might matter for NeXT 3.0. + */ +#ifndef NeXT +#define BYTEORDER 0x1234 /* large digits for MSB */ +#else /* NeXT */ +#ifdef __LITTLE_ENDIAN__ +#define BYTEORDER 0x1234 +#else /* __BIG_ENDIAN__ */ +#define BYTEORDER 0x4321 +#endif /* ENDIAN CHECK */ +#endif /* NeXT */ + +/* CASTI32: + * This symbol is defined if the C compiler can cast negative + * or large floating point numbers to 32-bit ints. + */ +#define CASTI32 /**/ + +/* CASTNEGFLOAT: + * This symbol is defined if the C compiler can cast negative + * numbers to unsigned longs, ints and shorts. + */ +/* CASTFLAGS: + * This symbol contains flags that say what difficulties the compiler + * has casting odd floating values to unsigned long: + * 0 = ok + * 1 = couldn't cast < 0 + * 2 = couldn't cast >= 0x80000000 + * 4 = couldn't cast in argument expression list + */ +/*#define CASTNEGFLOAT / **/ +#define CASTFLAGS 1 /**/ + +/* VOID_CLOSEDIR: + * This symbol, if defined, indicates that the closedir() routine + * does not return a value. + */ +/*#define VOID_CLOSEDIR / **/ + +/* Gconvert: + * This preprocessor macro is defined to convert a floating point + * number to a string without a trailing decimal point. This + * emulates the behavior of sprintf("%g"), but is sometimes much more + * efficient. If gconvert() is not available, but gcvt() drops the + * trailing decimal point, then gcvt() is used. If all else fails, + * a macro using sprintf("%g") is used. Arguments for the Gconvert + * macro are: value, number of digits, whether trailing zeros should + * be retained, and the output buffer. + * Possible values are: + * d_Gconvert='gconvert((x),(n),(t),(b))' + * d_Gconvert='gcvt((x),(n),(b))' + * d_Gconvert='sprintf((b),"%.*g",(n),(x))' + * The last two assume trailing zeros should not be kept. + */ +#define Gconvert(x,n,t,b) gcvt((x),(n),(b)) + +/* HAS_GNULIBC: + * This symbol, if defined, indicates to the C program that + * the GNU C library is being used. + */ +#define HAS_GNULIBC /**/ +/* HAS_ISASCII: + * This manifest constant lets the C program know that isascii + * is available. + */ +#define HAS_ISASCII /**/ + +/* HAS_OPEN3: + * This manifest constant lets the C program know that the three + * argument form of open(2) is available. + */ +#define HAS_OPEN3 /**/ + +/* HAS_SAFE_BCOPY: + * This symbol, if defined, indicates that the bcopy routine is available + * to copy potentially overlapping memory blocks. Otherwise you should + * probably use memmove() or memcpy(). If neither is defined, roll your + * own version. + */ +#define HAS_SAFE_BCOPY /**/ + +/* HAS_SAFE_MEMCPY: + * This symbol, if defined, indicates that the memcpy routine is available + * to copy potentially overlapping memory blocks. Otherwise you should + * probably use memmove() or memcpy(). If neither is defined, roll your + * own version. + */ +/*#define HAS_SAFE_MEMCPY / **/ + +/* HAS_SANE_MEMCMP: + * This symbol, if defined, indicates that the memcmp routine is available + * and can be used to compare relative magnitudes of chars with their high + * bits set. If it is not defined, roll your own version. + */ +#define HAS_SANE_MEMCMP /**/ + +/* HAS_SIGACTION: + * This symbol, if defined, indicates that Vr4's sigaction() routine + * is available. + */ +#define HAS_SIGACTION /**/ + +/* Sigjmp_buf: + * This is the buffer type to be used with Sigsetjmp and Siglongjmp. + */ +/* Sigsetjmp: + * This macro is used in the same way as sigsetjmp(), but will invoke + * traditional setjmp() if sigsetjmp isn't available. + * See HAS_SIGSETJMP. + */ +/* Siglongjmp: + * This macro is used in the same way as siglongjmp(), but will invoke + * traditional longjmp() if siglongjmp isn't available. + * See HAS_SIGSETJMP. + */ +#define HAS_SIGSETJMP /**/ +#ifdef HAS_SIGSETJMP +#define Sigjmp_buf sigjmp_buf +#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) +#define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) +#else +#define Sigjmp_buf jmp_buf +#define Sigsetjmp(buf,save_mask) setjmp((buf)) +#define Siglongjmp(buf,retval) longjmp((buf),(retval)) +#endif + +/* USE_STDIO_PTR: + * This symbol is defined if the _ptr and _cnt fields (or similar) + * of the stdio FILE structure can be used to access the stdio buffer + * for a file handle. If this is defined, then the FILE_ptr(fp) + * and FILE_cnt(fp) macros will also be defined and should be used + * to access these fields. + */ +/* FILE_ptr: + * This macro is used to access the _ptr field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_PTR is defined. + */ +/* STDIO_PTR_LVALUE: + * This symbol is defined if the FILE_ptr macro can be used as an + * lvalue. + */ +/* FILE_cnt: + * This macro is used to access the _cnt field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_PTR is defined. + */ +/* STDIO_CNT_LVALUE: + * This symbol is defined if the FILE_cnt macro can be used as an + * lvalue. + */ +#define USE_STDIO_PTR /**/ +#ifdef USE_STDIO_PTR +#define FILE_ptr(fp) ((fp)->_IO_read_ptr) +#define STDIO_PTR_LVALUE /**/ +#define FILE_cnt(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr) +/*#define STDIO_CNT_LVALUE / **/ +#endif + +/* USE_STDIO_BASE: + * This symbol is defined if the _base field (or similar) of the + * stdio FILE structure can be used to access the stdio buffer for + * a file handle. If this is defined, then the FILE_base(fp) macro + * will also be defined and should be used to access this field. + * Also, the FILE_bufsiz(fp) macro will be defined and should be used + * to determine the number of bytes in the buffer. USE_STDIO_BASE + * will never be defined unless USE_STDIO_PTR is. + */ +/* FILE_base: + * This macro is used to access the _base field (or equivalent) of the + * FILE structure pointed to by its argument. This macro will always be + * defined if USE_STDIO_BASE is defined. + */ +/* FILE_bufsiz: + * This macro is used to determine the number of bytes in the I/O + * buffer pointed to by _base field (or equivalent) of the FILE + * structure pointed to its argument. This macro will always be defined + * if USE_STDIO_BASE is defined. + */ +#define USE_STDIO_BASE /**/ +#ifdef USE_STDIO_BASE +#define FILE_base(fp) ((fp)->_IO_read_base) +#define FILE_bufsiz(fp) ((fp)->_IO_read_end - (fp)->_IO_read_base) +#endif + +/* HAS_VPRINTF: + * This symbol, if defined, indicates that the vprintf routine is available + * to printf with a pointer to an argument list. If unavailable, you + * may need to write your own, probably in terms of _doprnt(). + */ +/* USE_CHAR_VSPRINTF: + * This symbol is defined if this system has vsprintf() returning type + * (char*). The trend seems to be to declare it as "int vsprintf()". It + * is up to the package author to declare vsprintf correctly based on the + * symbol. + */ +#define HAS_VPRINTF /**/ +/*#define USE_CHAR_VSPRINTF / **/ + +/* I_TIME: + * This symbol, if defined, indicates to the C program that it should + * include <time.h>. + */ +/* I_SYS_TIME: + * This symbol, if defined, indicates to the C program that it should + * include <sys/time.h>. + */ +/* I_SYS_TIME_KERNEL: + * This symbol, if defined, indicates to the C program that it should + * include <sys/time.h> with KERNEL defined. + */ +/*#define I_TIME / **/ +#define I_SYS_TIME /**/ +/*#define I_SYS_TIME_KERNEL / **/ + +/* INTSIZE: + * This symbol contains the value of sizeof(int) so that the C + * preprocessor can make decisions based on it. + */ +/* LONGSIZE: + * This symbol contains the value of sizeof(long) so that the C + * preprocessor can make decisions based on it. + */ +/* SHORTSIZE: + * This symbol contains the value of sizeof(short) so that the C + * preprocessor can make decisions based on it. + */ +#define INTSIZE 4 /**/ +#define LONGSIZE 4 /**/ +#define SHORTSIZE 2 /**/ + +/* VAL_O_NONBLOCK: + * This symbol is to be used during open() or fcntl(F_SETFL) to turn on + * non-blocking I/O for the file descriptor. Note that there is no way + * back, i.e. you cannot turn it blocking again this way. If you wish to + * alternatively switch between blocking and non-blocking, use the + * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. + */ +/* VAL_EAGAIN: + * This symbol holds the errno error code set by read() when no data was + * present on the non-blocking file descriptor. + */ +/* RD_NODATA: + * This symbol holds the return code from read() when no data is present + * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is + * not defined, then you can't distinguish between no data and EOF by + * issuing a read(). You'll have to find another way to tell for sure! + */ +/* EOF_NONBLOCK: + * This symbol, if defined, indicates to the C program that a read() on + * a non-blocking file descriptor will return 0 on EOF, and not the value + * held in RD_NODATA (-1 usually, in that case!). + */ +#define VAL_O_NONBLOCK O_NONBLOCK +#define VAL_EAGAIN EAGAIN +#define RD_NODATA -1 +#define EOF_NONBLOCK + +/* RANDBITS: + * This symbol contains the number of bits of random number the rand() + * function produces. Usual values are 15, 16, and 31. + */ +#define RANDBITS 31 /**/ + +/* SSize_t: + * This symbol holds the type used by functions that return + * a count of bytes or an error condition. It must be a signed type. + * It is usually ssize_t, but may be long or int, etc. + * It may be necessary to include <sys/types.h> or <unistd.h> + * to get any typedef'ed information. + * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). + */ +#define SSize_t ssize_t /* signed count of bytes */ + +/* OSNAME: + * This symbol contains the name of the operating system, as determined + * by Configure. You shouldn't rely on it too much; the specific + * feature tests from Configure are generally more reliable. + */ +#define OSNAME "linux" /**/ + +/* ARCHLIB: + * This variable, if defined, holds the name of the directory in + * which the user wants to put architecture-dependent public + * library files for perl5. It is most often a local directory + * such as /usr/local/lib. Programs using this variable must be + * prepared to deal with filename expansion. If ARCHLIB is the + * same as PRIVLIB, it is not defined, since presumably the + * program already searches PRIVLIB. + */ +/* ARCHLIB_EXP: + * This symbol contains the ~name expanded version of ARCHLIB, to be used + * in programs that are not prepared to deal with ~ expansion at run-time. + */ +#define ARCHLIB "/opt/perl/lib/i686-linux-thread/5.00460" /**/ +#define ARCHLIB_EXP "/opt/perl/lib/i686-linux-thread/5.00460" /**/ + +/* CAT2: + * This macro catenates 2 tokens together. + */ +/* STRINGIFY: + * This macro surrounds its token with double quotes. + */ +#if 42 == 1 +#define CAT2(a,b)a/**/b +#define STRINGIFY(a)"a" + /* If you can get stringification with catify, tell me how! */ +#endif +#if 42 == 42 +#define CAT2(a,b)a ## b +#define StGiFy(a)# a +#define STRINGIFY(a)StGiFy(a) +#endif +#if 42 != 1 && 42 != 42 +#include "Bletch: How does this C preprocessor catenate tokens?" +#endif + +/* CSH: + * This symbol, if defined, indicates that the C-shell exists. + * If defined, contains the full pathname of csh. + */ +#define CSH "/bin/csh" /**/ + +/* HAS_SETGROUPS: + * This symbol, if defined, indicates that the setgroups() routine is + * available to set the list of process groups. If unavailable, multiple + * groups are probably not supported. + */ +#define HAS_SETGROUPS /**/ + +/* Signal_t: + * This symbol's value is either "void" or "int", corresponding to the + * appropriate return type of a signal handler. Thus, you can declare + * a signal handler using "Signal_t (*handler)()", and define the + * handler using "Signal_t handler(sig)". + */ +#define Signal_t void /* Signal handler's return type */ + +/* Groups_t: + * This symbol holds the type used for the second argument to + * getgroups() and setgropus(). Usually, this is the same as + * gidtype (gid_t) , but sometimes it isn't. + * It can be int, ushort, uid_t, etc... + * It may be necessary to include <sys/types.h> to get any + * typedef'ed information. This is only required if you have + * getgroups() or setgropus().. + */ +#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) +#define Groups_t gid_t /* Type for 2nd arg to [sg]etgroups() */ +#endif + +/* I_NETDB: + * This symbol, if defined, indicates that <netdb.h> exists and + * should be included. + */ +#define I_NETDB /**/ + +/* PRIVLIB: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + */ +/* PRIVLIB_EXP: + * This symbol contains the ~name expanded version of PRIVLIB, to be used + * in programs that are not prepared to deal with ~ expansion at run-time. + */ +#define PRIVLIB "/opt/perl/lib" /**/ +#define PRIVLIB_EXP "/opt/perl/lib" /**/ + +/* SIG_NAME: + * This symbol contains a list of signal names in order of + * signal number. This is intended + * to be used as a static array initialization, like this: + * char *sig_name[] = { SIG_NAME }; + * The signals in the list are separated with commas, and each signal + * is surrounded by double quotes. There is no leading SIG in the signal + * name, i.e. SIGQUIT is known as "QUIT". + * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, + * etc., where nn is the actual signal number (e.g. NUM37). + * The signal number for sig_name[i] is stored in sig_num[i]. + * The last element is 0 to terminate the list with a NULL. This + * corresponds to the 0 at the end of the sig_num list. + */ +/* SIG_NUM: + * This symbol contains a list of signal numbers, in the same order as the + * SIG_NAME list. It is suitable for static array initialization, as in: + * int sig_num[] = { SIG_NUM }; + * The signals in the list are separated with commas, and the indices + * within that list and the SIG_NAME list match, so it's easy to compute + * the signal name from a number or vice versa at the price of a small + * dynamic linear lookup. + * Duplicates are allowed, but are moved to the end of the list. + * The signal number corresponding to sig_name[i] is sig_number[i]. + * if (i < NSIG) then sig_number[i] == i. + * The last element is 0, corresponding to the 0 at the end of + * the sig_name list. + */ +#define SIG_NAME "ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "UNUSED", "IOT", "CLD", "POLL", 0 /**/ +#define SIG_NUM 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 6, 17, 29, 0 /**/ + +/* SITEARCH: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + * The standard distribution will put nothing in this directory. + * Individual sites may place their own extensions and modules in + * this directory. + */ +/* SITEARCH_EXP: + * This symbol contains the ~name expanded version of SITEARCH, to be used + * in programs that are not prepared to deal with ~ expansion at run-time. + */ +#define SITEARCH "/opt/perl/lib/site_perl/i686-linux-thread" /**/ +#define SITEARCH_EXP "/opt/perl/lib/site_perl/i686-linux-thread" /**/ + +/* SITELIB: + * This symbol contains the name of the private library for this package. + * The library is private in the sense that it needn't be in anyone's + * execution path, but it should be accessible by the world. The program + * should be prepared to do ~ expansion. + * The standard distribution will put nothing in this directory. + * Individual sites may place their own extensions and modules in + * this directory. + */ +/* SITELIB_EXP: + * This symbol contains the ~name expanded version of SITELIB, to be used + * in programs that are not prepared to deal with ~ expansion at run-time. + */ +#define SITELIB "/opt/perl/lib/site_perl" /**/ +#define SITELIB_EXP "/opt/perl/lib/site_perl" /**/ + +/* DLSYM_NEEDS_UNDERSCORE: + * This symbol, if defined, indicates that we need to prepend an + * underscore to the symbol name before calling dlsym(). This only + * makes sense if you *have* dlsym, which we will presume is the + * case if you're using dl_dlopen.xs. + */ +/*#define DLSYM_NEEDS_UNDERSCORE / **/ + +/* USE_SFIO: + * This symbol, if defined, indicates that sfio should + * be used. + */ +/*#define USE_SFIO / **/ + +/* USE_DYNAMIC_LOADING: + * This symbol, if defined, indicates that dynamic loading of + * some sort is available. + */ +#define USE_DYNAMIC_LOADING /**/ + +/* DB_Prefix_t: + * This symbol contains the type of the prefix structure element + * in the <db.h> header file. In older versions of DB, it was + * int, while in newer ones it is u_int32_t. + */ +/* DB_Hash_t: + * This symbol contains the type of the prefix structure element + * in the <db.h> header file. In older versions of DB, it was + * int, while in newer ones it is size_t. + */ +#define DB_Hash_t u_int32_t /**/ +#define DB_Prefix_t size_t /**/ + +/* STARTPERL: + * This variable contains the string to put in front of a perl + * script to make sure (one hopes) that it runs with perl and not + * some shell. + */ +#define STARTPERL "#!/opt/perl/bin/perl" /**/ + +/* USE_PERLIO: + * This symbol, if defined, indicates that the PerlIO abstraction should + * be used throughout. If not defined, stdio should be + * used in a fully backward compatible manner. + */ +/*#define USE_PERLIO / **/ + +/* Netdb_host_t: + * This symbol holds the type used for the 1st argument + * to gethostbyaddr(). + */ +/* Netdb_hlen_t: + * This symbol holds the type used for the 2nd argument + * to gethostbyaddr(). + */ +/* Netdb_name_t: + * This symbol holds the type used for the argument to + * gethostbyname(). + */ +/* Netdb_net_t: + * This symbol holds the type used for the 1st argument to + * getnetbyaddr(). + */ +#define Netdb_host_t const char * /**/ +#define Netdb_hlen_t int /**/ +#define Netdb_name_t const char * /**/ +#define Netdb_net_t unsigned long /**/ + +/* Select_fd_set_t: + * This symbol holds the type used for the 2nd, 3rd, and 4th + * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET + * is defined, and 'int *' otherwise. This is only useful if you + * have select(), of course. + */ +#define Select_fd_set_t fd_set * /**/ + +/* ARCHNAME: + * This symbol holds a string representing the architecture name. + * It may be used to construct an architecture-dependant pathname + * where library files may be held under a private library, for + * instance. + */ +#define ARCHNAME "i686-linux-thread" /**/ + +/* HAS_PTHREAD_YIELD: + * This symbol, if defined, indicates that the pthread_yield + * routine is available to yield the execution of the current + * thread. + */ +/*#define HAS_PTHREAD_YIELD / **/ + +/* PTHREADS_CREATED_JOINABLE: + * This symbol, if defined, indicates that pthreads are created + * in the joinable (aka undetached) state. + */ +#define PTHREADS_CREATED_JOINABLE /**/ + +/* USE_THREADS: + * This symbol, if defined, indicates that Perl should + * be built to use threads. + */ +#define USE_THREADS /**/ + +#endif diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 6706c6c3c4..885c813dfa 100644 --- a/Porting/pumpkin.pod +++ b/Porting/pumpkin.pod @@ -217,9 +217,11 @@ patch these directly; patch the data files instead. F<Configure> and F<config_h.SH> are also automatically generated by B<metaconfig>. In general, you should patch the metaconfig units -instead of patching these files directly. However, minor changes to +instead of patching these files directly. However, very minor changes to F<Configure> may be made in between major sync-ups with the metaconfig -units, which tends to be complicated operations. +units, which tends to be complicated operations. But be careful, this +can quickly spiral out of control. Running metaconfig is not really +hard. =head1 How to Make a Distribution @@ -357,14 +359,19 @@ permissions for system files; something like that might be appropriate. This will build a config.sh and config.h. You can skip this if you haven't changed Configure or config_h.SH at all. -=head2 Update config_H +=head2 Update Porting/config_H -The config_H file is provided to help those folks who can't run Configure. -It is important to keep it up-to-date. If you have changed config_h.SH, -those changes must be reflected in config_H as well. (The name config_H was -chosen to distinguish the file from config.h even on case-insensitive file -systems.) Simply edit the existing config_H file; keep the first few -explanatory lines and then copy your new config.h below. +[This section needs revision. We're currently working on easing +the task of keeping the vms, win32, and plan9 config.sh info +up-to-date.] + +The Porting/config_H file is provided to help those folks who can't +run Configure. It is important to keep it up-to-date. If you have +changed config_h.SH, those changes must be reflected in config_H as well. +(The name config_H was chosen to distinguish the file from config.h even +on case-insensitive file systems.) Simply edit the existing config_H +file; keep the first few explanatory lines and then copy your new +config.h below. It may also be necessary to update vms/config.vms and plan9/config.plan9, though you should be quite careful in doing so if |