diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-04-18 19:04:40 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-04-18 19:04:40 +0000 |
commit | 43dddb5979cb03af335f65a6070fe864ce8afd7e (patch) | |
tree | 2b83f16c2a716c69211a1ea3942a5a8c378f2f6b /config_h.SH | |
parent | b84cdbe2ce63ed4f4e041a1277f4da249e158af9 (diff) | |
download | perl-43dddb5979cb03af335f65a6070fe864ce8afd7e.tar.gz |
1. Move #30327 to the generation location
2. Regen after backports
3. Include Jarkko's $run and \n patch
p4raw-id: //depot/perl@30977
Diffstat (limited to 'config_h.SH')
-rw-r--r-- | config_h.SH | 83 |
1 files changed, 44 insertions, 39 deletions
diff --git a/config_h.SH b/config_h.SH index e9c9d6df9d..91b4fcbfdd 100644 --- a/config_h.SH +++ b/config_h.SH @@ -1,3 +1,8 @@ +# THIS IS A GENERATED FILE +# DO NOT HAND-EDIT +# +# See Porting/config_h.pl + case "$CONFIG_SH" in '') CONFIG_SH=config.sh ;; esac @@ -23,8 +28,8 @@ esac case "$CONFIG_H" in already-done) echo "Not re-extracting config.h" ;; *) - echo "Extracting $CONFIG_H (with variable substitutions)" - sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' +echo "Extracting $CONFIG_H (with variable substitutions)" +sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' /* * This file was produced by running the config_h.SH script, which * gets its values from $CONFIG_SH, which is generally produced by @@ -528,13 +533,6 @@ already-done) echo "Not re-extracting config.h" ;; */ #$d_strcoll 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. - */ -#$d_strctcpy USE_STRUCT_COPY /**/ - /* HAS_STRTOD: * This symbol, if defined, indicates that the strtod routine is * available to provide better numeric string conversion than atof(). @@ -613,15 +611,6 @@ already-done) echo "Not re-extracting config.h" ;; */ #$d_usleep HAS_USLEEP /**/ -/* HASVOLATILE: - * This symbol, if defined, indicates that this C compiler knows about - * the volatile declaration. - */ -#$d_volatile HASVOLATILE /**/ -#ifndef HASVOLATILE -#define volatile -#endif - /* HAS_WAIT4: * This symbol, if defined, indicates that wait4() exists. */ @@ -662,26 +651,6 @@ already-done) echo "Not re-extracting config.h" ;; #$i_dbm I_DBM /**/ #$i_rpcsvcdbm 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. - */ -#$i_dirent I_DIRENT /**/ -#$d_dirnamlen DIRNAMLEN /**/ -#define Direntry_t $direntrytype - /* I_DLFCN: * This symbol, if defined, indicates that <dlfcn.h> exists and should * be included. @@ -2217,6 +2186,13 @@ already-done) echo "Not re-extracting config.h" ;; #$d_statblks USE_STAT_BLOCKS /**/ #endif +/* 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. + */ +#$d_strctcpy 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 @@ -2340,6 +2316,15 @@ already-done) echo "Not re-extracting config.h" ;; */ #define Signal_t $signal_t /* Signal handler's return type */ +/* HASVOLATILE: + * This symbol, if defined, indicates that this C compiler knows about + * the volatile declaration. + */ +#$d_volatile HASVOLATILE /**/ +#ifndef HASVOLATILE +#define volatile +#endif + /* 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 @@ -2385,6 +2370,26 @@ already-done) echo "Not re-extracting config.h" ;; #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ #endif +/* 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. + */ +#$i_dirent I_DIRENT /**/ +#$d_dirnamlen DIRNAMLEN /**/ +#define Direntry_t $direntrytype + /* I_GRP: * This symbol, if defined, indicates to the C program that it should * include <grp.h>. @@ -4488,5 +4493,5 @@ already-done) echo "Not re-extracting config.h" ;; #endif !GROK!THIS! - ;; +;; esac |