From 52ebc531ce68b369594267a716e93f53720c8f1b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 9 May 2007 02:01:53 +0000 Subject: Fix Savannah bug #19656: rationalize our use of case-insensitive string comparison functions to always use POSIX strcasecmp(). For non-POSIX systems that use other functions (strcmpi or stricmp) use a macro to alias strcasecmp to those. If we can't find any of them (VMS, plus whatever UNIX doesn't have them) then define our own version in misc.c. --- config.h-vms.template | 164 ++++++++++++++++++++++++++------------------------ 1 file changed, 85 insertions(+), 79 deletions(-) (limited to 'config.h-vms.template') diff --git a/config.h-vms.template b/config.h-vms.template index 00e4e69..de892ec 100644 --- a/config.h-vms.template +++ b/config.h-vms.template @@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ -/* Define if on AIX 3. +/* Define to 1 if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE @@ -35,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Define as 1 if you have gettext and don't want to use GNU gettext. */ /* #undef HAVE_GETTEXT */ -/* Define if your locale.h file contains LC_MESSAGES. */ +/* Define to 1 if your locale.h file contains LC_MESSAGES. */ /* #undef HAVE_LC_MESSAGES */ /* Define to the installation directory for locales. */ @@ -44,7 +44,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Define as 1 if you have the stpcpy function. */ /* #undef HAVE_STPCPY */ -/* Define if the closedir function returns void instead of int. */ +/* Define to 1 if the closedir function returns void instead of int. */ /* #undef CLOSEDIR_VOID */ /* Define to empty if the keyword does not work. */ @@ -57,7 +57,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Define for DGUX with . */ /* #undef DGUX */ -/* Define if the `getloadavg' function needs to be run setuid or setgid. */ +/* Define to 1 if the `getloadavg' function needs to be run setuid or setgid. */ /* #undef GETLOADAVG_PRIVILEGED */ /* Define to `unsigned long' or `unsigned long long' @@ -67,89 +67,89 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Define to `int' if doesn't define. */ /* #undef gid_t */ -/* Define if you have alloca, as a function or macro. */ +/* Define to 1 if you have alloca, as a function or macro. */ #define HAVE_ALLOCA 1 -/* Define if you have and it should be used (not on Ultrix). */ +/* Define to 1 if you have and it should be used (not on Ultrix). */ /* #undef HAVE_ALLOCA_H */ -/* Define if you don't have vprintf but do have _doprnt. */ +/* Define to 1 if you don't have vprintf but do have _doprnt. */ /* #undef HAVE_DOPRNT */ -/* Define if your system has a working fnmatch function. */ +/* Define to 1 if your system has a working fnmatch function. */ /* #undef HAVE_FNMATCH */ -/* Define if your system has its own `getloadavg' function. */ +/* Define to 1 if your system has its own `getloadavg' function. */ /* #undef HAVE_GETLOADAVG */ -/* Define if you have the getmntent function. */ +/* Define to 1 if you have the getmntent function. */ /* #undef HAVE_GETMNTENT */ -/* Define if the `long double' type works. */ +/* Define to 1 if the `long double' type works. */ /* #undef HAVE_LONG_DOUBLE */ -/* Define if you support file names longer than 14 characters. */ +/* Define to 1 if you support file names longer than 14 characters. */ #define HAVE_LONG_FILE_NAMES 1 -/* Define if you have a working `mmap' system call. */ +/* Define to 1 if you have a working `mmap' system call. */ /* #undef HAVE_MMAP */ -/* Define if system calls automatically restart after interruption +/* Define to 1 if system calls automatically restart after interruption by a signal. */ /* #undef HAVE_RESTARTABLE_SYSCALLS */ -/* Define if your struct stat has st_blksize. */ +/* Define to 1 if your struct stat has st_blksize. */ /* #undef HAVE_ST_BLKSIZE */ -/* Define if your struct stat has st_blocks. */ +/* Define to 1 if your struct stat has st_blocks. */ /* #undef HAVE_ST_BLOCKS */ -/* Define if you have the strcoll function and it is properly defined. */ +/* Define to 1 if you have the strcoll function and it is properly defined. */ /* #undef HAVE_STRCOLL */ -/* Define if your struct stat has st_rdev. */ +/* Define to 1 if your struct stat has st_rdev. */ /* #undef HAVE_ST_RDEV */ -/* Define if you have the strftime function. */ +/* Define to 1 if you have the strftime function. */ /* #undef HAVE_STRFTIME */ -/* Define if you have that is POSIX.1 compatible. */ +/* Define to 1 if you have that is POSIX.1 compatible. */ /* #undef HAVE_SYS_WAIT_H */ -/* Define if your struct tm has tm_zone. */ +/* Define to 1 if your struct tm has tm_zone. */ /* #undef HAVE_TM_ZONE */ -/* Define if you don't have tm_zone but do have the external array +/* Define to 1 if you don't have tm_zone but do have the external array tzname. */ /* #undef HAVE_TZNAME */ -/* Define if you have . */ +/* Define to 1 if you have . */ #ifdef __DECC #define HAVE_UNISTD_H 1 #endif -/* Define if utime(file, NULL) sets file's timestamp to the present. */ +/* Define to 1 if utime(file, NULL) sets file's timestamp to the present. */ /* #undef HAVE_UTIME_NULL */ -/* Define if you have . */ +/* Define to 1 if you have . */ /* #undef HAVE_VFORK_H */ -/* Define if you have the vprintf function. */ +/* Define to 1 if you have the vprintf function. */ #define HAVE_VPRINTF 1 -/* Define if you have the wait3 system call. */ +/* Define to 1 if you have the wait3 system call. */ /* #undef HAVE_WAIT3 */ -/* Define if on MINIX. */ +/* Define to 1 if on MINIX. */ /* #undef _MINIX */ -/* Define if your struct nlist has an n_un member. */ +/* Define to 1 if your struct nlist has an n_un member. */ /* #undef NLIST_NAME_UNION */ -/* Define if you have . */ +/* Define to 1 if you have . */ /* #undef NLIST_STRUCT */ -/* Define if your C compiler doesn't accept -c and -o together. */ +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* Define to `int' if doesn't define. */ @@ -158,17 +158,17 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #define pid_t int #endif -/* Define if the system does not provide POSIX.1 features except +/* Define to 1 if the system does not provide POSIX.1 features except with this defined. */ /* #undef _POSIX_1_SOURCE */ -/* Define if you need to in order for stat and other things to work. */ +/* Define to 1 if you need to in order for stat and other things to work. */ /* #undef _POSIX_SOURCE */ /* Define as the return type of signal handlers (int or void). */ #define RETSIGTYPE void -/* Define if the setvbuf function takes the buffering type as its second +/* Define to 1 if the setvbuf function takes the buffering type as its second argument and the buffer pointer as the third, as on System V before release 3. */ /* #undef SETVBUF_REVERSED */ @@ -182,16 +182,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ */ /* #undef STACK_DIRECTION */ -/* Define if the `S_IS*' macros in do not work properly. */ +/* Define to 1 if the `S_IS*' macros in do not work properly. */ /* #undef STAT_MACROS_BROKEN */ -/* Define if you have the ANSI C header files. */ +/* Define to 1 if you have the ANSI C header files. */ /* #undef STDC_HEADERS */ /* Define on System V Release 4. */ /* #undef SVR4 */ -/* Define if `sys_siglist' is declared by . */ +/* Define to 1 if `sys_siglist' is declared by . */ /* #undef SYS_SIGLIST_DECLARED */ /* Define to `int' if doesn't define. */ @@ -228,137 +228,143 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ if it exists. */ /* #undef ST_MTIM_NSEC */ -/* Define this if the C library defines the variable `sys_siglist'. */ +/* Define to 1 if the C library defines the variable `sys_siglist'. */ /* #undefine HAVE_SYS_SIGLIST */ -/* Define this if the C library defines the variable `_sys_siglist'. */ +/* Define to 1 if the C library defines the variable `_sys_siglist'. */ /* #undef HAVE__SYS_SIGLIST */ -/* Define this if you have the `union wait' type in . */ +/* Define to 1 if you have the `union wait' type in . */ /* #undef HAVE_UNION_WAIT */ -/* Define if you have the dup2 function. */ +/* Define to 1 if you have the dup2 function. */ #define HAVE_DUP2 1 -/* Define if you have the getcwd function. */ +/* Define to 1 if you have the getcwd function. */ #define HAVE_GETCWD 1 -/* Define if you have the getgroups function. */ +/* Define to 1 if you have the getgroups function. */ /* #undef HAVE_GETGROUPS */ -/* Define if you have the gethostbyname function. */ +/* Define to 1 if you have the gethostbyname function. */ /* #undef HAVE_GETHOSTBYNAME */ -/* Define if you have the gethostname function. */ +/* Define to 1 if you have the gethostname function. */ /* #undef HAVE_GETHOSTNAME */ -/* Define if you have the getloadavg function. */ +/* Define to 1 if you have the getloadavg function. */ /* #undef HAVE_GETLOADAVG */ -/* Define if you have the memmove function. */ +/* Define to 1 if you have the memmove function. */ #define HAVE_MEMMOVE 1 -/* Define if you have the mktemp function. */ +/* Define to 1 if you have the mktemp function. */ #define HAVE_MKTEMP 1 -/* Define if you have the psignal function. */ +/* Define to 1 if you have the psignal function. */ /* #undef HAVE_PSIGNAL */ -/* Define if you have the pstat_getdynamic function. */ +/* Define to 1 if you have the pstat_getdynamic function. */ /* #undef HAVE_PSTAT_GETDYNAMIC */ -/* Define if you have the setegid function. */ +/* Define to 1 if you have the setegid function. */ /* #undef HAVE_SETEGID */ -/* Define if you have the seteuid function. */ +/* Define to 1 if you have the seteuid function. */ /* #undef HAVE_SETEUID */ -/* Define if you have the setlinebuf function. */ +/* Define to 1 if you have the setlinebuf function. */ /* #undef HAVE_SETLINEBUF */ -/* Define if you have the setregid function. */ +/* Define to 1 if you have the setregid function. */ /* #undefine HAVE_SETREGID */ -/* Define if you have the setreuid function. */ +/* Define to 1 if you have the setreuid function. */ /* #define HAVE_SETREUID */ -/* Define if you have the sigsetmask function. */ +/* Define to 1 if you have the sigsetmask function. */ #define HAVE_SIGSETMASK 1 -/* Define if you have the socket function. */ +/* Define to 1 if you have the socket function. */ /* #undef HAVE_SOCKET */ -/* Define if you have the strcasecmp function. */ +/* Define to 1 if you have the strcasecmp function. */ /* #undef HAVE_STRCASECMP */ -/* Define if you have the strerror function. */ +/* Define to 1 if you have the strcmpi function. */ +/* #undef HAVE_STRCMPI */ + +/* Define to 1 if you have the stricmp function. */ +/* #undef HAVE_STRICMP */ + +/* Define to 1 if you have the strerror function. */ #define HAVE_STRERROR 1 -/* Define if you have the strsignal function. */ +/* Define to 1 if you have the strsignal function. */ /* #undef HAVE_STRSIGNAL */ -/* Define if you have the wait3 function. */ +/* Define to 1 if you have the wait3 function. */ /* #undef HAVE_WAIT3 */ -/* Define if you have the waitpid function. */ +/* Define to 1 if you have the waitpid function. */ /* #undef HAVE_WAITPID */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_DIRENT_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #ifdef __DECC #define HAVE_FCNTL_H 1 #endif -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_MACH_MACH_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_MEMORY_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_NDIR_H */ -/* Define if your compiler conforms to the ANSI C standard. */ +/* Define to 1 if your compiler conforms to the ANSI C standard. */ #define HAVE_ANSI_COMPILER 1 /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_DIR_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_NDIR_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PARAM_H */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #ifndef __GNUC__ #define HAVE_SYS_TIMEB_H 1 #endif -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_WAIT_H */ -/* Define if you have the dgc library (-ldgc). */ +/* Define to 1 if you have the dgc library (-ldgc). */ /* #undef HAVE_LIBDGC */ -/* Define if you have the kstat library (-lkstat). */ +/* Define to 1 if you have the kstat library (-lkstat). */ /* #undef HAVE_LIBKSTAT * -/* Define if you have the sun library (-lsun). */ +/* Define to 1 if you have the sun library (-lsun). */ /* #undef HAVE_LIBSUN */ /* Use high resolution file timestamps if nonzero. */ -- cgit v1.2.3