diff -Nru smake-1.2a41/AN-1.2a42 smake-1.2a49/AN-1.2a42 --- smake-1.2a41/AN-1.2a42 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a42 2007-12-02 11:34:20.000000000 +0000 @@ -0,0 +1,81 @@ +NEW features of smake-1.2a42: + +- Fixed a typo that could cause smake to dump core in some cases + when evaluating "$O/$@" + +- Schily makefilesystem enhanced to check for extended + fields in struct utsname as seen e.g. in MS SFU (Interix). + +- New predefined macro OSVERSION in the makefilesystem is needed + for SCO OpenServer 6.x support (because this uses a UnixWare + kernel + +- Trying to support Compilation on SCO OpenServer 6.x + +- Pass $(OSDEFS) to "configure" to allow correct autoconfiguration + with MS SFU (Interix) and cl.exe. + +- $(OSDEFS) is now set from e.g. smake or the os-xxx.id rule file + and all further macros use OSDEFS += + +- New macro $(CC_OUTPUT_FILTER) allows to filter away the + unwanted file name echo from cl.exe. + +- New autoconf test for $(_XEXEEXT) to check for the need to + call cl.exe as "cl.exe". + +- FOr compiling with cl.exe, smake now checks for presence off + SIGKILL + +- New make target "shell" allows to get a $(SHELL) with the + same environment as used for the compiler. + +- New and better autoconf handling of struct timeval in schily/time.h + +- Support for x86 Darwin (intel Mac os x) in config.guess added + +- Interix now uses uname -m instead of uname -p for $(OARCH) + +- New shell script to support to create dependencies with + cl.exe on Interix (SFU) + +- smake has been enhanced to support the extended uname fields + in SFU. The following fields are new: + + MAKE_HOST_OS = windows (uname -Hs) + MAKE_HOST_OSREL = 5.1 (uname -Hr) + MAKE_HOST_OSVERSION = sp2 (uname -Hv) + + and + + MAKE_ARCH = intel_x86_family15_model4_stepping1 + + is now used for uname -p + +- Support for compiling with Sun Studio on Linux has been added + +- Trying to support mingw32 + +- smake is now able to search for the file "defaults.smk" + using getexecname() or $PATH + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a43 smake-1.2a49/AN-1.2a43 --- smake-1.2a41/AN-1.2a43 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a43 2008-08-13 20:40:08.000000000 +0100 @@ -0,0 +1,64 @@ +NEW features of smake-1.2a43: + +- smake now supports parsing pattern matching default rules with no dependencies. + + +- New smake special macros MAKE_SHELL_FLAG and MAKE_SHELL_IFLAG + allow to control the shell flags that are used to call commands from + smake. The default is MAKE_SHELL_IFLAG=-c for "smake -i" and + MAKE_SHELL_FLAG=-ce for all other calls. If the special target .POSIX: + is present in a makefile or if smake is called with -posix, + the default is MAKE_SHELL_FLAG=-c + +- Several fixes for the Blastwave compile (smake -f Mcsw): + + - smake now compiles without /opt/csw/ string in the binary + this makes smake100% relocatable. + +- Try to avoid a core dump with smake with percent default rules like: + + foo%: + cmd + + +- Added a workaround for the GNU make workaround into smake. + The GNU make workaround requires to create an otherwise useless + dependency from one include file to another previously included file + to make GNU make believe that a rule to make the file exists at all. + As smake resets the state of all included targets after including them, + in order to force the re-evaluation of the complete rule set after + all makefiles have been read, smake believed that the second file + did not exist because it depends on a "non-existent" file and called + the .INCLUDE_FILED: rule. + + Smake now checks the file for existence before deciding whether to call + the .INCLUDE_FILED: rule. + +- psmake/ scripts now auto-create the symlinks or copies to the original + source files. + +- psmake/MAKE-sh now aborts before compilation if "configure" does + not create xconfig.h (e.g. because the installed compiler is defective). + + + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a44 smake-1.2a49/AN-1.2a44 --- smake-1.2a41/AN-1.2a44 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a44 2009-08-06 09:34:24.000000000 +0100 @@ -0,0 +1,48 @@ +NEW features of smake-1.2a44: + +- Many new makefile rules in RULES/ (e.g. for supporting the + ATARI ST - freemint, Haiku and Syllable). + +- Make smake/archconf.c immune against sysctl() from Linux that + does not deliver useful information for us. + +- New option "smake -C dir" for gmake compatibility, although this + does not introduce a needed feature. "cd dir && $(MAKE)" is not + worse. + +- Allow smake to use "bosh" our portable Bourne Shell. This + helps to work around "bash" bugs in systems where /bin/sh is bash. + +- New function put_env() excludes the SHELL= environment from the + environment variables that are imported as make macros. + +- Some problems related to grant_gbuf()/growgbuf() have been fixed. + There have been a few cases where growgbuf() did relocate the growable + global general purpose buffer but the caller did not update the related + pointers. + + + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a45 smake-1.2a49/AN-1.2a45 --- smake-1.2a41/AN-1.2a45 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a45 2009-08-18 09:12:04.000000000 +0100 @@ -0,0 +1,41 @@ +NEW features of smake-1.2a45: + +This is the release candidate for smake-1.2-final + +- The schily makefilesystem now by default sets all locale related envronment + variables to "C" in order to avoid problems. + +- Fixed a typo in include/schily/archdefs.h + +- cpfiles, lnfiles and rmfiles now includes the files + include/schily/systeminfo.h and + include/schily/utsname.h + +- Added GMAKE_NOWARN=true to allow to disable the gmake warning + +- make smake a bit more robust in order to grant that + SHELL= is always defined inside smake + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a46 smake-1.2a49/AN-1.2a46 --- smake-1.2a41/AN-1.2a46 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a46 2009-11-08 13:45:38.000000000 +0000 @@ -0,0 +1,72 @@ +NEW features of smake-1.2a46: + +This is the release candidate for smake-1.2-final + +- Replaced calls to tr(1) that are made by SunPro make and + gmake by calls to different tr(1) calls that cause less problems. + tr(1) oddities. + +- Try to make libschily::fconv.c work on newer AIX releases + +- Added support for 64 bit compilation on HP-UX. + +- Added some files to start a make based compilation on VMS + +- Added support for OpenVMS to config.guess + +- Better autoconf test for bash also works for bash-1.x (used on VMS). + +- Assed support for DragonFly BSD to config.sub + +- New config test for long double + +- Better floatingpoint support for HP-UX and AIX + We now include own macros for isinf()/isnan() for IEEE platforms that + do not support these functions in libc. + +- The *bytes() functions are now 64 bit aware as they now habe a ssize_t + parameter instead of int. + +- psmake/MAKE-all now works on VMS + +- psmake/MAKE-sh now works on VMS + +- psmake/{cpfiles,lnfiles,rmlinks} now work on VMS + +- smake now supports uname -p via utsname.arch on VMS. + +- smake now uses vfork() to support VMS + +- The autoconf test for vfork() was changed to no longer hang on VMS + + +- Some internal smake variable names have been changed to deal with + the problems that arise from the fact that VMS has a non- case sensitive + linker. + +- The smake makefile parser no longer causes a core dumps with some + specific situations with backslashes in Makefiles. + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a47 smake-1.2a49/AN-1.2a47 --- smake-1.2a41/AN-1.2a47 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a47 2009-11-18 23:43:11.000000000 +0000 @@ -0,0 +1,33 @@ +NEW features of smake-1.2a47: + +This is the release candidate for smake-1.2-final + +- Changed psmake/cpfiles!lnfiles!rmlinks to include schily/vfork.h + +- smake now also supports the "unexport" directive. + +- Man page enhanced. + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a48 smake-1.2a49/AN-1.2a48 --- smake-1.2a41/AN-1.2a48 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a48 2009-11-27 11:40:42.000000000 +0000 @@ -0,0 +1,55 @@ +NEW features of smake-1.2a48: + +This is the release candidate for smake-1.2-final + +- POSIX.1-2008 is UNIX compliant again and allows to call + commands via "sh -ce command". Smake honors this if in POSIX + mode. Note that this was already the default smake behavior in + Non-POSIX mode. + +- Smake now treats "../name" as a valid default target name. + +- The .IGNORE and .SILENT special targets now work in a POSIX compliant + way. + +- A new special target ".SSUFFIX_RULES" allows to disable Simple Suffix + Rules. + +- smake -p now gives more fine grained results and separates + Suffix rules from target rules and special targets. + +- Man page enhanced, it is now complete enough for a final release. + +- The makefile system no longer defines Simple Suffix Rules for smake. + +- Smake now searches "makefile", "Makefile", "SMakefile" if in -posix mode, + smake's default is "SMakefile", "Makefile", "makefile. + +- If .PRECIOUS: was specified without dependency list, all targets are + handled as "PRECIOUS". This was recently added by POSIX. + +- The -posix option is now propageted to sub makes via MAKEFLAGS= + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/AN-1.2a49 smake-1.2a49/AN-1.2a49 --- smake-1.2a41/AN-1.2a49 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/AN-1.2a49 2009-12-06 16:57:44.000000000 +0000 @@ -0,0 +1,47 @@ +NEW features of smake-1.2a49: + +This is the release candidate for smake-1.2-final + +- Smake now supports to be compiled in 64 bit Mode in SGI IRIX + using both the SGI compiler and GCC: + +- The common code for Suffix macro substitution and + Pattern macro substitution has been fixed to correctly distibguish between + both methods and to no longer try to expand % in suffix macro substitutions. + This allows to use things like: + + smake COPTX=-errwarn=%all + + to work as expected. + +- Smake now includes a predefined macro called "NUMBER_SIGN" that + is initialized with "#" to allow to use the comment character + inside makefiles. + +- The man page has been enhanced again. + +- Avoid a GCC warning with getargs.c + +TODO: + Smake would need to implement an undocumented feature from + historical UNIX make implementations that is used by Xorg + at one place: + + target: *.o + do-something-with *.o + + Which expands *.o from the filesystem. Meanwhile, use + smake -N to compile Xorg. + +After pattern expansion has been implemented, smake-1.2 final +will be released. + +P.P.S.: As Xorg changed it's build system, we may delay this +feature to something past 1.2-final. + + + +WARNING: Do not use 'winzip' to extract the tar file! + Winzip cannot extract symbolic links correctly. + +Joerg diff -Nru smake-1.2a41/autoconf/acgeneral.m4 smake-1.2a49/autoconf/acgeneral.m4 --- smake-1.2a41/autoconf/acgeneral.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/acgeneral.m4 2009-11-05 00:32:01.000000000 +0000 @@ -0,0 +1,2667 @@ +dnl @(#)acgeneral.m4 1.11 09/11/05 Copyright 1998-2009 J. Schilling +dnl +dnl Parameterized macros. +dnl Requires GNU m4. +dnl This file is part of Autoconf. +dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl As a special exception, the Free Software Foundation gives unlimited +dnl permission to copy, distribute and modify the configure scripts that +dnl are the output of Autoconf. You need not follow the terms of the GNU +dnl General Public License when using or distributing such scripts, even +dnl though portions of the text of Autoconf appear in them. The GNU +dnl General Public License (GPL) does govern all other use of the material +dnl that constitutes the Autoconf program. +dnl +dnl Certain portions of the Autoconf source text are designed to be copied +dnl (in certain cases, depending on the input) into the output of +dnl Autoconf. We call these the "data" portions. The rest of the Autoconf +dnl source text consists of comments plus executable code that decides which +dnl of the data portions to output in any given case. We call these +dnl comments and executable code the "non-data" portions. Autoconf never +dnl copies any of the non-data portions into its output. +dnl +dnl This special exception to the GPL applies to versions of Autoconf +dnl released by the Free Software Foundation. When you make and +dnl distribute a modified version of Autoconf, you may extend this special +dnl exception to the GPL to apply to your modified version as well, *unless* +dnl your modified version has the potential to copy into its output some +dnl of the text that was the non-data portion of the version that you started +dnl with. (In other words, unless your change moves or copies text from +dnl the non-data portions to the data portions.) If your modification has +dnl such potential, you must delete any notice of this special exception +dnl to the GPL from your modified version. +dnl +dnl Written by David MacKenzie, with help from +dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, +dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. +dnl +divert(-1)dnl Throw away output until AC_INIT is called. +changequote([, ]) + +define(AC_ACVERSION, 2.13) + +dnl Some old m4's don't support m4exit. But they provide +dnl equivalent functionality by core dumping because of the +dnl long macros we define. +ifdef([__gnu__], , [errprint(Autoconf requires GNU m4. +Install it before installing Autoconf or set the +M4 environment variable to its path name. +)m4exit(2)]) + +undefine([eval]) +undefine([include]) +undefine([shift]) +undefine([format]) + + +dnl ### Defining macros + + +dnl m4 output diversions. We let m4 output them all in order at the end, +dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS, +dnl and AC_DIVERSION_ICMDS. + +dnl AC_DIVERSION_NOTICE - 1 (= 0) AC_REQUIRE'd #! /bin/sh line +define(AC_DIVERSION_NOTICE, 1)dnl copyright notice & option help strings +define(AC_DIVERSION_INIT, 2)dnl initialization code +define(AC_DIVERSION_NORMAL_4, 3)dnl AC_REQUIRE'd code, 4 level deep +define(AC_DIVERSION_NORMAL_3, 4)dnl AC_REQUIRE'd code, 3 level deep +define(AC_DIVERSION_NORMAL_2, 5)dnl AC_REQUIRE'd code, 2 level deep +define(AC_DIVERSION_NORMAL_1, 6)dnl AC_REQUIRE'd code, 1 level deep +define(AC_DIVERSION_NORMAL, 7)dnl the tests and output code +define(AC_DIVERSION_SED, 8)dnl variable substitutions in config.status +define(AC_DIVERSION_CMDS, 9)dnl extra shell commands in config.status +define(AC_DIVERSION_ICMDS, 10)dnl extra initialization in config.status + +dnl Change the diversion stream to STREAM, while stacking old values. +dnl AC_DIVERT_PUSH(STREAM) +define(AC_DIVERT_PUSH, +[pushdef([AC_DIVERSION_CURRENT], $1)dnl +divert(AC_DIVERSION_CURRENT)dnl +]) + +dnl Change the diversion stream to its previous value, unstacking it. +dnl AC_DIVERT_POP() +define(AC_DIVERT_POP, +[popdef([AC_DIVERSION_CURRENT])dnl +divert(AC_DIVERSION_CURRENT)dnl +]) + +dnl Initialize the diversion setup. +define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL) +dnl This will be popped by AC_REQUIRE in AC_INIT. +pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE) + +dnl The prologue for Autoconf macros. +dnl AC_PRO(MACRO-NAME) +define(AC_PRO, +[define([AC_PROVIDE_$1], )dnl +ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, +[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))], +[pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl +]) + +dnl The Epilogue for Autoconf macros. +dnl AC_EPI() +define(AC_EPI, +[AC_DIVERT_POP()dnl +ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, +[undivert(AC_DIVERSION_NORMAL_4)dnl +undivert(AC_DIVERSION_NORMAL_3)dnl +undivert(AC_DIVERSION_NORMAL_2)dnl +undivert(AC_DIVERSION_NORMAL_1)dnl +])dnl +]) + +dnl Define a macro which automatically provides itself. Add machinery +dnl so the macro automatically switches expansion to the diversion +dnl stack if it is not already using it. In this case, once finished, +dnl it will bring back all the code accumulated in the diversion stack. +dnl This, combined with AC_REQUIRE, achieves the topological ordering of +dnl macros. We don't use this macro to define some frequently called +dnl macros that are not involved in ordering constraints, to save m4 +dnl processing. +dnl AC_DEFUN(NAME, EXPANSION) +define([AC_DEFUN], +[define($1, [AC_PRO([$1])$2[]AC_EPI()])]) + + +dnl ### Initialization + + +dnl AC_INIT_NOTICE() +AC_DEFUN(AC_INIT_NOTICE, +[# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version] AC_ACVERSION [ +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +[#] Any additions from configure.in:]) + +dnl AC_PREFIX_DEFAULT(PREFIX) +AC_DEFUN(AC_PREFIX_DEFAULT, +[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +ac_default_prefix=$1 +AC_DIVERT_POP()]) + +dnl AC_INIT_PARSE_ARGS() +AC_DEFUN(AC_INIT_PARSE_ARGS, +[ +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +dnl Installation directory options. +dnl These are left unexpanded so users can "make install exec_prefix=/foo" +dnl and all the variables that are supposed to be based on exec_prefix +dnl by default will actually change. +dnl Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in +changequote(, )dnl + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; +changequote([, ])dnl + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -cc=* | --cc=* ) + CC="$ac_optarg" ; echo using $CC as compiler ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_feature: invalid feature name) + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_feature: invalid feature name) + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +changequote(, )dnl +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +changequote([, ])dnl +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir="$ac_optarg" ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir="$ac_optarg" ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir="$ac_optarg" ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version AC_ACVERSION" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_package: invalid package name) + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_package: invalid package name) + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) AC_MSG_ERROR([$ac_option: invalid option; use --help to show usage]) + ;; + + *) +changequote(, )dnl + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then +changequote([, ])dnl + AC_MSG_WARN($ac_option: invalid host type) + fi + if test "x$nonopt" != xNONE; then + AC_MSG_ERROR(can only configure for one host and one target at a time) + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + AC_MSG_ERROR(missing argument to --`echo $ac_prev | sed 's/_/-/g'`) +fi +]) + +dnl Try to have only one #! line, so the script doesn't look funny +dnl for users of AC_REVISION. +dnl AC_INIT_BINSH() +AC_DEFUN(AC_INIT_BINSH, +[#! /bin/sh +]) + +dnl AC_INIT(UNIQUE-FILE-IN-SOURCE-DIR) +AC_DEFUN(AC_INIT, +[sinclude(acsite.m4)dnl +sinclude(./aclocal.m4)dnl +AC_REQUIRE([AC_INIT_BINSH])dnl +AC_INIT_NOTICE +AC_DIVERT_POP()dnl to NORMAL +AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl +AC_INIT_PARSE_ARGS +AC_INIT_PREPARE($1)dnl +AC_DIVERT_POP()dnl to NORMAL +]) + +dnl AC_INIT_PREPARE(UNIQUE-FILE-IN-SOURCE-DIR) +AC_DEFUN(AC_INIT_PREPARE, +[trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +define(AC_FD_MSG, 6)dnl +[#] AC_FD_MSG checking for... messages and results +define(AC_FD_CC, 5)dnl +[#] AC_FD_CC compiler messages saved in config.log +if test "$silent" = yes; then + exec AC_FD_MSG>/dev/null +else + exec AC_FD_MSG>&1 +fi +exec AC_FD_CC>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&AC_FD_CC + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; +changequote(<<, >>)dnl +dnl If you change this globbing pattern, test it on an old shell -- +dnl it's sensitive. Putting any kind of quote in it causes syntax errors. + *" "*|*" "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; +changequote([, ])dnl + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=$1 + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=[$]0 +changequote(, )dnl + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` +changequote([, ])dnl + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + AC_MSG_ERROR(can not find sources in $ac_confdir or ..) + else + AC_MSG_ERROR(can not find sources in $srcdir) + fi +fi +dnl Double slashes in pathnames in object file debugging info +dnl mess up M-x gdb in Emacs. +changequote(, )dnl +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +changequote([, ])dnl + +dnl Let the site file select an alternate cache file if it wants to. +AC_SITE_LOAD +AC_CACHE_LOAD +AC_LANG_C +dnl By default always use an empty string as the executable +dnl extension. Only change it if the script calls AC_EXEEXT. +ac_exeext= +ac_xexeext= +dnl By default assume that objects files use an extension of .o. Only +dnl change it if the script calls AC_OBJEXT. +ac_objext=o +AC_PROG_ECHO_N +dnl Substitute for predefined variables. +AC_SUBST(SHELL)dnl +AC_SUBST(CFLAGS)dnl +AC_SUBST(CPPFLAGS)dnl +AC_SUBST(CXXFLAGS)dnl +AC_SUBST(FFLAGS)dnl +AC_SUBST(DEFS)dnl +AC_SUBST(LDFLAGS)dnl +AC_SUBST(LIBS)dnl +AC_SUBST(exec_prefix)dnl +AC_SUBST(prefix)dnl +AC_SUBST(program_transform_name)dnl +dnl Installation directory options. +AC_SUBST(bindir)dnl +AC_SUBST(sbindir)dnl +AC_SUBST(libexecdir)dnl +AC_SUBST(datadir)dnl +AC_SUBST(sysconfdir)dnl +AC_SUBST(sharedstatedir)dnl +AC_SUBST(localstatedir)dnl +AC_SUBST(libdir)dnl +AC_SUBST(includedir)dnl +AC_SUBST(oldincludedir)dnl +AC_SUBST(infodir)dnl +AC_SUBST(mandir)dnl +]) + + +dnl ### Selecting optional features + + +dnl AC_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) +AC_DEFUN(AC_ARG_ENABLE, +[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +ac_help="$ac_help +[$2]" +AC_DIVERT_POP()dnl +[#] Check whether --enable-[$1] or --disable-[$1] was given. +if test "[${enable_]patsubst([$1], -, _)+set}" = set; then + enableval="[$enable_]patsubst([$1], -, _)" + ifelse([$3], , :, [$3]) +ifelse([$4], , , [else + $4 +])dnl +fi +]) + +AC_DEFUN(AC_ENABLE, +[AC_OBSOLETE([$0], [; instead use AC_ARG_ENABLE])dnl +AC_ARG_ENABLE([$1], [ --enable-$1], [$2], [$3])dnl +]) + + +dnl ### Working with optional software + + +dnl AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) +AC_DEFUN(AC_ARG_WITH, +[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +ac_help="$ac_help +[$2]" +AC_DIVERT_POP()dnl +[#] Check whether --with-[$1] or --without-[$1] was given. +if test "[${with_]patsubst([$1], -, _)+set}" = set; then + withval="[$with_]patsubst([$1], -, _)" + ifelse([$3], , :, [$3]) +ifelse([$4], , , [else + $4 +])dnl +fi +]) + +AC_DEFUN(AC_WITH, +[AC_OBSOLETE([$0], [; instead use AC_ARG_WITH])dnl +AC_ARG_WITH([$1], [ --with-$1], [$2], [$3])dnl +]) + + +dnl ### Transforming program names. + + +dnl AC_ARG_PROGRAM() +AC_DEFUN(AC_ARG_PROGRAM, +[if test "$program_transform_name" = s,x,x,; then + program_transform_name= +else + # Double any \ or $. echo might interpret backslashes. + cat <<\EOF_SED > conftestsed +s,\\,\\\\,g; s,\$,$$,g +EOF_SED + program_transform_name="`echo $program_transform_name|sed -f conftestsed`" + rm -f conftestsed +fi +test "$program_prefix" != NONE && + program_transform_name="s,^,${program_prefix},; $program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" + +# sed with no file args requires a program. +test "$program_transform_name" = "" && program_transform_name="s,x,x," +]) + + +dnl ### Version numbers + + +dnl AC_REVISION(REVISION-INFO) +AC_DEFUN(AC_REVISION, +[AC_REQUIRE([AC_INIT_BINSH])dnl +[# From configure.in] translit([$1], $")]) + +dnl Subroutines of AC_PREREQ. + +dnl Change the dots in NUMBER into commas. +dnl AC_PREREQ_SPLIT(NUMBER) +define(AC_PREREQ_SPLIT, +[translit($1, ., [, ])]) + +dnl Default the ternary version number to 0 (e.g., 1, 7 -> 1, 7, 0). +dnl AC_PREREQ_CANON(MAJOR, MINOR [,TERNARY]) +define(AC_PREREQ_CANON, +[$1, $2, ifelse([$3], , 0, [$3])]) + +dnl Complain and exit if version number 1 is less than version number 2. +dnl PRINTABLE2 is the printable version of version number 2. +dnl AC_PREREQ_COMPARE(MAJOR1, MINOR1, TERNARY1, MAJOR2, MINOR2, TERNARY2, +dnl PRINTABLE2) +define(AC_PREREQ_COMPARE, +[ifelse(builtin([eval], +[$3 + $2 * 1000 + $1 * 1000000 < $6 + $5 * 1000 + $4 * 1000000]), 1, +[errprint(dnl +FATAL ERROR: Autoconf version $7 or higher is required for this script +)m4exit(3)])]) + +dnl Complain and exit if the Autoconf version is less than VERSION. +dnl AC_PREREQ(VERSION) +define(AC_PREREQ, +[AC_PREREQ_COMPARE(AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)), +AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), [$1])]) + + +dnl ### Getting the canonical system type + + +dnl Find install-sh, config.sub, config.guess, and Cygnus configure +dnl in directory DIR. These are auxiliary files used in configuration. +dnl DIR can be either absolute or relative to $srcdir. +dnl AC_CONFIG_AUX_DIR(DIR) +AC_DEFUN(AC_CONFIG_AUX_DIR, +[AC_CONFIG_AUX_DIRS($1 $srcdir/$1)]) + +dnl The default is `$srcdir' or `$srcdir/..' or `$srcdir/../..'. +dnl There's no need to call this macro explicitly; just AC_REQUIRE it. +AC_DEFUN(AC_CONFIG_AUX_DIR_DEFAULT, +[AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)]) + +dnl Internal subroutine. +dnl Search for the configuration auxiliary files in directory list $1. +dnl We look only for install-sh, so users of AC_PROG_INSTALL +dnl do not automatically need to distribute the other auxiliary files. +dnl AC_CONFIG_AUX_DIRS(DIR ...) +AC_DEFUN(AC_CONFIG_AUX_DIRS, +[ac_aux_dir= +for ac_dir in $1; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + AC_MSG_ERROR([can not find install-sh or install.sh in $1]) +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. +AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +]) + +dnl Canonicalize the host, target, and build system types. +AC_DEFUN(AC_CANONICAL_SYSTEM, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [AC_ARG_PROGRAM]) +# Do some error checking and defaulting for the host and target type. +# The inputs are: +# configure --host=HOST --target=TARGET --build=BUILD NONOPT +# +# The rules are: +# 1. You are not allowed to specify --host, --target, and nonopt at the +# same time. +# 2. Host defaults to nonopt. +# 3. If nonopt is not specified, then host defaults to the current host, +# as determined by config.guess. +# 4. Target and build default to nonopt. +# 5. If nonopt is not specified, then target and build default to host. + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +case $host---$target---$nonopt in +NONE---*---* | *---NONE---* | *---*---NONE) ;; +*) AC_MSG_ERROR(can only configure for one host and one target at a time) ;; +esac + +AC_CANONICAL_HOST +AC_CANONICAL_TARGET +AC_CANONICAL_BUILD +test "$host_alias" != "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- +]) + +dnl Subroutines of AC_CANONICAL_SYSTEM. + +AC_DEFUN(AC_CANONICAL_HOST, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else AC_MSG_ERROR(can not run $ac_config_sub) +fi + +AC_MSG_CHECKING(host system type) + +dnl Set host_alias. +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else AC_MSG_ERROR(can not guess host type; you must specify one) + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +dnl Set the other host vars. +changequote(<<, >>)dnl +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +changequote([, ])dnl +AC_MSG_RESULT($host) +AC_SUBST(host)dnl +AC_SUBST(host_alias)dnl +AC_SUBST(host_cpu)dnl +AC_SUBST(host_vendor)dnl +AC_SUBST(host_os)dnl +]) + +dnl Internal use only. +AC_DEFUN(AC_CANONICAL_TARGET, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(target system type) + +dnl Set target_alias. +target_alias=$target +case "$target_alias" in +NONE) + case $nonopt in + NONE) target_alias=$host_alias ;; + *) target_alias=$nonopt ;; + esac ;; +esac + +dnl Set the other target vars. +changequote(<<, >>)dnl +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +changequote([, ])dnl +AC_MSG_RESULT($target) +AC_SUBST(target)dnl +AC_SUBST(target_alias)dnl +AC_SUBST(target_cpu)dnl +AC_SUBST(target_vendor)dnl +AC_SUBST(target_os)dnl +]) + +dnl Internal use only. +AC_DEFUN(AC_CANONICAL_BUILD, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(build system type) + +dnl Set build_alias. +build_alias=$build +case "$build_alias" in +NONE) + case $nonopt in + NONE) build_alias=$host_alias ;; + *) build_alias=$nonopt ;; + esac ;; +esac + +dnl Set the other build vars. +changequote(<<, >>)dnl +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +changequote([, ])dnl +AC_MSG_RESULT($build) +AC_SUBST(build)dnl +AC_SUBST(build_alias)dnl +AC_SUBST(build_cpu)dnl +AC_SUBST(build_vendor)dnl +AC_SUBST(build_os)dnl +]) + + +dnl AC_VALIDATE_CACHED_SYSTEM_TUPLE[(cmd)] +dnl if the cache file is inconsistent with the current host, +dnl target and build system types, execute CMD or print a default +dnl error message. +AC_DEFUN(AC_VALIDATE_CACHED_SYSTEM_TUPLE, [ + AC_REQUIRE([AC_CANONICAL_SYSTEM]) + AC_MSG_CHECKING([cached system tuple]) + if { test x"${ac_cv_host_system_type+set}" = x"set" && + test x"$ac_cv_host_system_type" != x"$host"; } || + { test x"${ac_cv_build_system_type+set}" = x"set" && + test x"$ac_cv_build_system_type" != x"$build"; } || + { test x"${ac_cv_target_system_type+set}" = x"set" && + test x"$ac_cv_target_system_type" != x"$target"; }; then + AC_MSG_RESULT([different]) + ifelse($#, 1, [$1], + [AC_MSG_ERROR([remove config.cache and re-run configure])]) + else + AC_MSG_RESULT(ok) + fi + ac_cv_host_system_type="$host" + ac_cv_build_system_type="$build" + ac_cv_target_system_type="$target" +]) + + +dnl ### Caching test results + + +dnl Look for site or system specific initialization scripts. +dnl AC_SITE_LOAD() +define(AC_SITE_LOAD, +[# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done +]) + +dnl AC_CACHE_LOAD() +define(AC_CACHE_LOAD, +[if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi +]) + +dnl AC_CACHE_SAVE() +define(AC_CACHE_SAVE, +[cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +dnl Allow a site initialization script to override cache values. +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +changequote(, )dnl +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +changequote([, ])dnl +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache +]) + +dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved. +dnl AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT) +define(AC_CACHE_VAL, +[dnl We used to use the below line, but it fails if the 1st arg is a +dnl shell variable, so we need the eval. +dnl if test "${$1+set}" = set; then +dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion"). +if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG +else + $2 +fi +]) + +dnl AC_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS) +define(AC_CACHE_CHECK, +[AC_MSG_CHECKING([$1]) +AC_CACHE_VAL([$2], [$3]) +AC_MSG_RESULT([$]$2)]) + + +dnl ### Defining symbols + + +dnl Set VARIABLE to VALUE, verbatim, or 1. +dnl AC_DEFINE(VARIABLE [, VALUE]) +define(AC_DEFINE, +[cat >> confdefs.h <<\EOF +[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) +EOF +]) + +dnl Similar, but perform shell substitutions $ ` \ once on VALUE. +define(AC_DEFINE_UNQUOTED, +[cat >> confdefs.h <&AC_FD_MSG +echo "configure:__oline__: checking $1" >&AC_FD_CC]) + +dnl AC_CHECKING(FEATURE-DESCRIPTION) +define(AC_CHECKING, +[echo "checking $1" 1>&AC_FD_MSG +echo "configure:__oline__: checking $1" >&AC_FD_CC]) + +dnl AC_MSG_RESULT(RESULT-DESCRIPTION) +define(AC_MSG_RESULT, +[echo "$ac_t""$1" 1>&AC_FD_MSG]) + +dnl AC_VERBOSE(RESULT-DESCRIPTION) +define(AC_VERBOSE, +[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl +echo " $1" 1>&AC_FD_MSG]) + +dnl AC_MSG_WARN(PROBLEM-DESCRIPTION) +define(AC_MSG_WARN, +[echo "configure: warning: $1" 1>&2]) + +dnl AC_MSG_ERROR(ERROR-DESCRIPTION) +define(AC_MSG_ERROR, +[{ echo "configure: error: $1" 1>&2; exit 1; }]) + + +dnl ### Selecting which language to use for testing + + +dnl AC_LANG_C() +AC_DEFUN(AC_LANG_C, +[define([AC_LANG], [C])dnl +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&AC_FD_CC' +cross_compiling=$ac_cv_prog_cc_cross +]) + +dnl AC_LANG_CPLUSPLUS() +AC_DEFUN(AC_LANG_CPLUSPLUS, +[define([AC_LANG], [CPLUSPLUS])dnl +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&AC_FD_CC' +cross_compiling=$ac_cv_prog_cxx_cross +]) + +dnl AC_LANG_FORTRAN77() +AC_DEFUN(AC_LANG_FORTRAN77, +[define([AC_LANG], [FORTRAN77])dnl +ac_ext=f +ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC' +ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&AC_FD_CC' +cross_compiling=$ac_cv_prog_f77_cross +]) + +dnl Push the current language on a stack. +dnl AC_LANG_SAVE() +define(AC_LANG_SAVE, +[pushdef([AC_LANG_STACK], AC_LANG)]) + +dnl Restore the current language from the stack. +dnl AC_LANG_RESTORE() +pushdef([AC_LANG_RESTORE], +[ifelse(AC_LANG_STACK, [C], [AC_LANG_C],dnl +AC_LANG_STACK, [CPLUSPLUS], [AC_LANG_CPLUSPLUS],dnl +AC_LANG_STACK, [FORTRAN77], [AC_LANG_FORTRAN77])[]popdef([AC_LANG_STACK])]) + + +dnl ### Compiler-running mechanics + + +dnl The purpose of this macro is to "configure:123: command line" +dnl written into config.log for every test run. +dnl AC_TRY_EVAL(VARIABLE) +AC_DEFUN(AC_TRY_EVAL, +[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl +(eval [$]$1) 2>&AC_FD_CC; }]) + +dnl AC_TRY_COMMAND(COMMAND) +AC_DEFUN(AC_TRY_COMMAND, +[{ ac_try='$1'; AC_TRY_EVAL(ac_try); }]) + + +dnl ### Dependencies between macros + + +dnl AC_BEFORE(THIS-MACRO-NAME, CALLED-MACRO-NAME) +define(AC_BEFORE, +[ifdef([AC_PROVIDE_$2], [errprint(__file__:__line__: [$2 was called before $1 +])])]) + +dnl AC_REQUIRE(MACRO-NAME) +define(AC_REQUIRE, +[ifdef([AC_PROVIDE_$1], , +[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))dnl +indir([$1]) +AC_DIVERT_POP()dnl +])]) + +dnl AC_PROVIDE(MACRO-NAME) +define(AC_PROVIDE, +[define([AC_PROVIDE_$1], )]) + +dnl AC_OBSOLETE(THIS-MACRO-NAME [, SUGGESTION]) +define(AC_OBSOLETE, +[errprint(__file__:__line__: warning: [$1] is obsolete[$2] +)]) + + +dnl ### Checking for programs + + +dnl AC_CHECK_PROG(VARIABLE, PROG-TO-CHECK-FOR, VALUE-IF-FOUND +dnl [, [VALUE-IF-NOT-FOUND] [, [PATH] [, [REJECT]]]]) +AC_DEFUN(AC_CHECK_PROG, +[# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_prog_$1, +[if test -n "[$]$1"; then + ac_cv_prog_$1="[$]$1" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +ifelse([$6], , , [ ac_prog_rejected=no +])dnl +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$5], , $PATH, [$5])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then +ifelse([$6], , , dnl +[ if test "[$ac_dir/$ac_word]" = "$6"; then + ac_prog_rejected=yes + continue + fi +])dnl + ac_cv_prog_$1="$3" + break + fi + done + IFS="$ac_save_ifs" +ifelse([$6], , , [if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy [$]ac_cv_prog_$1 + shift + if test [$]# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set $1 to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "[$]@" + shift + ac_cv_prog_$1="[$]@" +ifelse([$2], [$4], dnl +[ else + # Default is a loser. + AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl +ifelse([$5], , [\$]PATH, [$5])]) +])dnl + fi +fi +])dnl +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_CHECK_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_prog_$1" && ac_cv_prog_$1="$4" +])dnl +fi])dnl +$1="$ac_cv_prog_$1" +if test -n "[$]$1"; then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) + +dnl AC_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN(AC_PATH_PROG, +[# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + /*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$4], , $PATH, [$4])" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_$1="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" +dnl If no 3rd arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$3], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$3" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test -n "[$]$1"; then + AC_MSG_RESULT([$]$1) +else + AC_MSG_RESULT(no) +fi +AC_SUBST($1)dnl +]) + +dnl AC_CHECK_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND +dnl [, PATH]]) +AC_DEFUN(AC_CHECK_PROGS, +[for ac_prog in $2 +do +AC_CHECK_PROG($1, [$]ac_prog, [$]ac_prog, , $4) +test -n "[$]$1" && break +done +ifelse([$3], , , [test -n "[$]$1" || $1="$3" +])]) + +dnl AC_PATH_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND +dnl [, PATH]]) +AC_DEFUN(AC_PATH_PROGS, +[for ac_prog in $2 +do +AC_PATH_PROG($1, [$]ac_prog, , $4) +test -n "[$]$1" && break +done +ifelse([$3], , , [test -n "[$]$1" || $1="$3" +])]) + +dnl Internal subroutine. +AC_DEFUN(AC_CHECK_TOOL_PREFIX, +[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl +if test $host != $build; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi +]) + +dnl AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN(AC_CHECK_TOOL, +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl +AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2, + ifelse([$3], , [$2], ), $4) +ifelse([$3], , , [ +if test -z "$ac_cv_prog_$1"; then +if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG($1, $2, $2, $3) +else + $1="$3" +fi +fi]) +]) + +dnl Guess the value for the `prefix' variable by looking for +dnl the argument program along PATH and taking its parent. +dnl Example: if the argument is `gcc' and we find /usr/local/gnu/bin/gcc, +dnl set `prefix' to /usr/local/gnu. +dnl This comes too late to find a site file based on the prefix, +dnl and it might use a cached value for the path. +dnl No big loss, I think, since most configures don't use this macro anyway. +dnl AC_PREFIX_PROGRAM(PROGRAM) +AC_DEFUN(AC_PREFIX_PROGRAM, +[if test "x$prefix" = xNONE; then +changequote(<<, >>)dnl +define(<>, translit($1, [a-z], [A-Z]))dnl +changequote([, ])dnl +dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. +echo $ac_n "checking for prefix by $ac_c" 1>&AC_FD_MSG +AC_PATH_PROG(AC_VAR_NAME, $1) +changequote(<<, >>)dnl + if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then + prefix=`echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` +changequote([, ])dnl + fi +fi +undefine([AC_VAR_NAME])dnl +]) + +dnl Try to compile, link and execute TEST-PROGRAM. Set WORKING-VAR to +dnl `yes' if the current compiler works, otherwise set it ti `no'. Set +dnl CROSS-VAR to `yes' if the compiler and linker produce non-native +dnl executables, otherwise set it to `no'. Before calling +dnl `AC_TRY_COMPILER()', call `AC_LANG_*' to set-up for the right +dnl language. +dnl +dnl AC_TRY_COMPILER(TEST-PROGRAM, WORKING-VAR, CROSS-VAR) +AC_DEFUN(AC_TRY_COMPILER, +[cat > conftest.$ac_ext << EOF +ifelse(AC_LANG, [FORTRAN77], , +[ +[#]line __oline__ "configure" +#include "confdefs.h" +]) +[$1] +EOF +if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + [$2]=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest${ac_xexeext}; exit) 2>/dev/null; then + [$3]=no + else + [$3]=yes + fi +else + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC + [$2]=no +fi +rm -fr conftest*]) + + +dnl ### Checking for libraries + + +dnl AC_TRY_LINK_FUNC(func, action-if-found, action-if-not-found) +dnl Try to link a program that calls FUNC, handling GCC builtins. If +dnl the link succeeds, execute ACTION-IF-FOUND; otherwise, execute +dnl ACTION-IF-NOT-FOUND. + +AC_DEFUN(AC_TRY_LINK_FUNC, +AC_TRY_LINK(dnl +ifelse([$1], [main], , dnl Avoid conflicting decl of main. +[/* Override any gcc2 internal prototype to avoid an error. */ +]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif +])dnl +[/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $1(); +]), +[$1()], +[$2], +[$3])) + + +dnl AC_SEARCH_LIBS(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND +dnl [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]]) +dnl Search for a library defining FUNC, if it's not already available. + +AC_DEFUN(AC_SEARCH_LIBS, +[AC_PREREQ([2.13]) +AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1], +[ac_func_search_save_LIBS="$LIBS" +ac_cv_search_$1="no" +AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"]) +test "$ac_cv_search_$1" = "no" && for i in $2; do +LIBS="-l$i $5 $ac_func_search_save_LIBS" +AC_TRY_LINK_FUNC([$1], +[ac_cv_search_$1="-l$i" +break]) +done +LIBS="$ac_func_search_save_LIBS"]) +if test "$ac_cv_search_$1" != "no"; then + test "$ac_cv_search_$1" = "none required" || LIBS="$ac_cv_search_$1 $LIBS" + $3 +else : + $4 +fi]) + + + +dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND +dnl [, OTHER-LIBRARIES]]]) +AC_DEFUN(AC_CHECK_LIB, +[AC_MSG_CHECKING([for $2 in -l$1]) +dnl Use a cache variable name containing both the library and function name, +dnl because the test really is for library $1 defining function $2, not +dnl just for library $1. Separate tests with the same $1 and different $2s +dnl may have different results. +ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` +AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, +[ac_save_LIBS="$LIBS" +LIBS=`echo "-l$1 $5 $LIBS" | sed -e 's/-lc //'` +AC_TRY_LINK(dnl +ifelse(AC_LANG, [FORTRAN77], , +ifelse([$2], [main], , dnl Avoid conflicting decl of main. +[/* Override any gcc2 internal prototype to avoid an error. */ +]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif +])dnl +[/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $2(); +])), + [$2()], + eval "ac_cv_lib_$ac_lib_var=yes", + eval "ac_cv_lib_$ac_lib_var=no") +LIBS="$ac_save_LIBS" +])dnl +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$3], , +[changequote(, )dnl + ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_lib) + LIBS="-l$1 $LIBS" +], [$3]) +else + AC_MSG_RESULT(no) +ifelse([$4], , , [$4 +])dnl +fi +]) + +dnl AC_HAVE_LIBRARY(LIBRARY, [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND +dnl [, OTHER-LIBRARIES]]]) +AC_DEFUN(AC_HAVE_LIBRARY, +[AC_OBSOLETE([$0], [; instead use AC_CHECK_LIB])dnl +changequote(<<, >>)dnl +define(<>, dnl +patsubst(patsubst($1, <>, <<\1>>), <<-l>>, <<>>))dnl +define(<>, ac_cv_lib_<<>>AC_LIB_NAME)dnl +changequote([, ])dnl +AC_MSG_CHECKING([for -l[]AC_LIB_NAME]) +AC_CACHE_VAL(AC_CV_NAME, +[ac_save_LIBS="$LIBS" +LIBS="-l[]AC_LIB_NAME[] $4 $LIBS" +AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no) +LIBS="$ac_save_LIBS" +])dnl +AC_MSG_RESULT($AC_CV_NAME) +if test "$AC_CV_NAME" = yes; then + ifelse([$2], , +[AC_DEFINE([HAVE_LIB]translit(AC_LIB_NAME, [a-z], [A-Z])) + LIBS="-l[]AC_LIB_NAME[] $LIBS" +], [$2]) +ifelse([$3], , , [else + $3 +])dnl +fi +undefine([AC_LIB_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + + +dnl ### Examining declarations + + +dnl AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) +AC_DEFUN(AC_TRY_CPP, +[AC_REQUIRE_CPP()dnl +cat > conftest.$ac_ext <&AC_FD_CC + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC +ifelse([$3], , , [ rm -rf conftest* + $3 +])dnl +fi +rm -f conftest*]) + +dnl AC_EGREP_HEADER(PATTERN, HEADER-FILE, ACTION-IF-FOUND [, +dnl ACTION-IF-NOT-FOUND]) +AC_DEFUN(AC_EGREP_HEADER, +[AC_EGREP_CPP([$1], [#include <$2>], [$3], [$4])]) + +dnl Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must +dnl come early, it is not included in AC_BEFORE checks. +dnl AC_EGREP_CPP(PATTERN, PROGRAM, [ACTION-IF-FOUND [, +dnl ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_EGREP_CPP, +[AC_REQUIRE_CPP()dnl +cat > conftest.$ac_ext <&AC_FD_CC | +dnl Prevent m4 from eating character classes: +changequote(, )dnl + egrep "$1" >/dev/null 2>&1; then +changequote([, ])dnl + ifelse([$3], , :, [rm -rf conftest* + $3]) +ifelse([$4], , , [else + rm -rf conftest* + $4 +])dnl +fi +rm -f conftest* +]) + + +dnl ### Examining syntax + + +dnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_TRY_COMPILE, +[cat > conftest.$ac_ext <&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC +ifelse([$4], , , [ rm -rf conftest* + $4 +])dnl +fi +rm -f conftest*]) + + +dnl ### Examining libraries + + +dnl AC_COMPILE_CHECK(ECHO-TEXT, INCLUDES, FUNCTION-BODY, +dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) +AC_DEFUN(AC_COMPILE_CHECK, +[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl +ifelse([$1], , , [AC_CHECKING([for $1]) +])dnl +AC_TRY_LINK([$2], [$3], [$4], [$5]) +]) + +dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_TRY_LINK, +[cat > conftest.$ac_ext <&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC +ifelse([$4], , , [ rm -rf conftest* + $4 +])dnl +fi +rm -f conftest*]) + + +dnl ### Checking for run-time features + + +dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE +dnl [, ACTION-IF-CROSS-COMPILING]]]) +AC_DEFUN(AC_TRY_RUN, +[if test "$cross_compiling" = yes; then + ifelse([$4], , + [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling +)dnl + AC_MSG_ERROR(can not run test program while cross compiling)], + [$4]) +else + AC_TRY_RUN_NATIVE([$1], [$2], [$3]) +fi +]) + +dnl Like AC_TRY_RUN but assumes a native-environment (non-cross) compiler. +dnl AC_TRY_RUN_NATIVE(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) +AC_DEFUN(AC_TRY_RUN_NATIVE, +[cat > conftest.$ac_ext </dev/null +then +dnl Don't remove the temporary files here, so they can be examined. + ifelse([$2], , :, [$2]) +else + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.$ac_ext >&AC_FD_CC +ifelse([$3], , , [ rm -fr conftest* + $3 +])dnl +fi +rm -fr conftest*]) + + +dnl ### Checking for header files + + +dnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_HEADER, +[dnl Do the transliteration at runtime so arg 1 can be a shell variable. +ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(ac_cv_header_$ac_safe, +[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes", + eval "ac_cv_header_$ac_safe=no")])dnl +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) +else + AC_MSG_RESULT(no) +ifelse([$3], , , [$3 +])dnl +fi +]) + +dnl AC_CHECK_HEADERS(HEADER-FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_HEADERS, +[for ac_hdr in $1 +do +AC_CHECK_HEADER($ac_hdr, +[changequote(, )dnl + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_hdr) $2], $3)dnl +done +]) + + +dnl ### Checking for the existence of files + +dnl AC_CHECK_FILE(FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_FILE, +[AC_REQUIRE([AC_PROG_CC]) +dnl Do the transliteration at runtime so arg 1 can be a shell variable. +ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(ac_cv_file_$ac_safe, +[if test "$cross_compiling" = yes; then + errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling +)dnl + AC_MSG_ERROR(Cannot check for file existence when cross compiling) +else + if test -r $1; then + eval "ac_cv_file_$ac_safe=yes" + else + eval "ac_cv_file_$ac_safe=no" + fi +fi])dnl +if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) +else + AC_MSG_RESULT(no) +ifelse([$3], , , [$3]) +fi +]) + +dnl AC_CHECK_FILES(FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_FILES, +[for ac_file in $1 +do +AC_CHECK_FILE($ac_file, +[changequote(, )dnl + ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_file) $2], $3)dnl +done +]) + + +dnl ### Checking for library functions + + +dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_FUNC, +[AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(ac_cv_func_$1, +[AC_TRY_LINK( +dnl Don't include because on OSF/1 3.0 it includes +dnl which includes which contains a prototype for +dnl select. Similarly for bzero. +[/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $1(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif +])dnl +[/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $1(); +], [ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$1) || defined (__stub___$1) +choke me +#else +$1(); +#endif +], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")]) +if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) +else + AC_MSG_RESULT(no) +ifelse([$3], , , [$3 +])dnl +fi +]) + +dnl AC_CHECK_FUNCS(FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_CHECK_FUNCS, +[for ac_func in $1 +do +AC_CHECK_FUNC($ac_func, +[changequote(, )dnl + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnl +done +]) + +dnl AC_REPLACE_FUNCS(FUNCTION...) +AC_DEFUN(AC_REPLACE_FUNCS, +[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"]) +AC_SUBST(LIBOBJS)dnl +]) + + +dnl ### Raw Checking for the pure existence of library functions + + +dnl AC_RCHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_RCHECK_FUNC, +[AC_MSG_CHECKING([for raw availability of $1]) +AC_CACHE_VAL(ac_cv_rfunc_$1, +[AC_TRY_LINK( +dnl Don't include because on OSF/1 3.0 it includes +dnl which includes which contains a prototype for +dnl select. Similarly for bzero. +[/* Override any gcc2 internal prototype to avoid an error. */ +]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif +])dnl +[/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $1(); +], [ +$1(); +], eval "ac_cv_rfunc_$1=yes", eval "ac_cv_rfunc_$1=no")]) +if eval "test \"`echo '$ac_cv_rfunc_'$1`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) +else + AC_MSG_RESULT(no) +ifelse([$3], , , [$3 +])dnl +fi +]) + +dnl AC_RCHECK_FUNCS(FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(AC_RCHECK_FUNCS, +[for ac_func in $1 +do +AC_RCHECK_FUNC($ac_func, +[changequote(, )dnl + ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnl +done +]) + + +dnl ### Checking compiler characteristics + + +dnl AC_CHECK_SIZEOF(TYPE [, CROSS-SIZE]) +AC_DEFUN(AC_CHECK_SIZEOF, +[changequote(<<, >>)dnl +dnl The name to #define. +define(<>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl +dnl The cache variable name. +define(<>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl +changequote([, ])dnl +AC_MSG_CHECKING(size of $1) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof($1)); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) +undefine([AC_TYPE_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + + +dnl ### Checking for typedefs + + +dnl AC_CHECK_TYPE(TYPE, DEFAULT) +AC_DEFUN(AC_CHECK_TYPE, +[AC_REQUIRE([AC_HEADER_STDC])dnl +AC_MSG_CHECKING(for $1) +AC_CACHE_VAL(ac_cv_type_$1, +[AC_EGREP_CPP(dnl +changequote(<<,>>)dnl +<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = no; then + AC_DEFINE($1, $2) +fi +]) + + +dnl ### Creating output files + + +dnl AC_CONFIG_HEADER(HEADER-TO-CREATE ...) +AC_DEFUN(AC_CONFIG_HEADER, +[define(AC_LIST_HEADER, $1)]) + +dnl Link each of the existing files SOURCE... to the corresponding +dnl link name in DEST... +dnl AC_LINK_FILES(SOURCE..., DEST...) +AC_DEFUN(AC_LINK_FILES, +[dnl +define([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnl +define([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])]) + +dnl Add additional commands for AC_OUTPUT to put into config.status. +dnl Use diversions instead of macros so we can be robust in the +dnl presence of commas in $1 and/or $2. +dnl AC_OUTPUT_COMMANDS(EXTRA-CMDS, INIT-CMDS) +AC_DEFUN(AC_OUTPUT_COMMANDS, +[AC_DIVERT_PUSH(AC_DIVERSION_CMDS)dnl +[$1] +AC_DIVERT_POP()dnl +AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)dnl +[$2] +AC_DIVERT_POP()]) + +dnl AC_CONFIG_SUBDIRS(DIR ...) +AC_DEFUN(AC_CONFIG_SUBDIRS, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +define([AC_LIST_SUBDIRS], ifdef([AC_LIST_SUBDIRS], [AC_LIST_SUBDIRS ],)[$1])dnl +subdirs="AC_LIST_SUBDIRS" +AC_SUBST(subdirs)dnl +]) + +dnl The big finish. +dnl Produce config.status, config.h, and links; and configure subdirs. +dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS]) +define(AC_OUTPUT, +[trap '' 1 2 15 +AC_CACHE_SAVE +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then +changequote(, )dnl + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +changequote([, ])dnl +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +ifdef([AC_LIST_HEADER], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()]) + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +[#] [$]0 [$]ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +changequote(, )dnl +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +changequote([, ])dnl +for ac_option +do + case "[\$]ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion" + exec [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version AC_ACVERSION" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "[\$]ac_cs_usage"; exit 0 ;; + *) echo "[\$]ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL" +])dnl + +changequote(<<, >>)dnl +ifdef(<>, +<>, +<>) +changequote([, ])dnl +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +undivert(AC_DIVERSION_CMDS)dnl +$2 +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 +dnl config.status should not do recursion. +ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl +])dnl + +dnl Set the DEFS variable to the -D options determined earlier. +dnl This is a subroutine of AC_OUTPUT. +dnl It is called inside configure, outside of config.status. +dnl AC_OUTPUT_MAKE_DEFS() +define(AC_OUTPUT_MAKE_DEFS, +[# Transform confdefs.h into DEFS. +dnl Using a here document instead of a string reduces the quoting nightmare. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +changequote(<<, >>)dnl +s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +changequote([, ])dnl +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs +]) + +dnl Do the variable substitutions to create the Makefiles or whatever. +dnl This is a subroutine of AC_OUTPUT. It is called inside an unquoted +dnl here document whose contents are going into config.status, but +dnl upon returning, the here document is being quoted. +dnl AC_OUTPUT_FILES(FILE...) +define(AC_OUTPUT_FILES, +[# Protect against being on the right side of a sed subst in config.status. +changequote(, )dnl +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF +changequote([, ])dnl +dnl These here document variables are unquoted when configure runs +dnl but quoted when config.status runs, so variables are expanded once. +$ac_vpsub +dnl Shell code in configure.in might set extrasub. +$extrasub +dnl Insert the sed substitutions of variables. +undivert(AC_DIVERSION_SED) +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then +changequote(, )dnl + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` +changequote([, ])dnl + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. +changequote(, )dnl + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` +changequote([, ])dnl + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + +ifdef([AC_PROVIDE_AC_PROG_INSTALL], +[ case "$ac_given_INSTALL" in +changequote(, )dnl + [/$]*) INSTALL="$ac_given_INSTALL" ;; +changequote([, ])dnl + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac +])dnl + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g +])dnl +dnl The parens around the eval prevent an "illegal io" in Ultrix sh. +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +dnl This would break Makefile dependencies. +dnl if cmp -s $ac_file conftest.out 2>/dev/null; then +dnl echo "$ac_file is unchanged" +dnl rm -f conftest.out +dnl else +dnl rm -f $ac_file +dnl mv conftest.out $ac_file +dnl fi +fi; done +rm -f conftest.s* +]) + +dnl Create the config.h files from the config.h.in files. +dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted +dnl here document whose contents are going into config.status. +dnl AC_OUTPUT_HEADER(HEADER-FILE...) +define(AC_OUTPUT_HEADER, +[changequote(<<, >>)dnl +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' +ac_dC='\3' +ac_dD='%g' +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". +ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='\([ ]\)%\1#\2define\3' +ac_uC=' ' +ac_uD='\4%g' +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_eB='<<$>>%\1#\2define\3' +ac_eC=' ' +ac_eD='%g' +changequote([, ])dnl + +if test "${CONFIG_HEADERS+set}" != set; then +EOF +dnl Support passing AC_CONFIG_HEADER a value containing shell variables. +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +fi +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then +changequote(, )dnl + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac +changequote([, ])dnl + + echo creating $ac_file + + rm -f conftest.frag conftest.in conftest.out + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + cat $ac_file_inputs > conftest.in + +EOF + +# Transform confdefs.h into a sed script conftest.vals that substitutes +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. +rm -f conftest.vals +dnl Using a here document instead of a string reduces the quoting nightmare. +dnl Putting comments in sed scripts is not portable. +cat > conftest.hdr <<\EOF +changequote(<<, >>)dnl +s/[\\&%]/\\&/g +s%[\\$`]%\\&%g +s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%ac_d%ac_u%gp +s%ac_u%ac_e%gp +changequote([, ])dnl +EOF +sed -n -f conftest.hdr confdefs.h > conftest.vals +rm -f conftest.hdr + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >> conftest.vals <<\EOF +changequote(, )dnl +s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +changequote([, ])dnl +EOF + +# Break up conftest.vals because some shells have a limit on +# the size of here documents, and old seds have small limits too. + +rm -f conftest.tail +while : +do + ac_lines=`grep -c . conftest.vals` + # grep -c gives empty output for an empty file on some AIX systems. + if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi + # Write a limited-size here document to conftest.frag. + echo ' cat > conftest.frag <> $CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + echo 'CEOF + sed -f conftest.frag conftest.in > conftest.out + rm -f conftest.in + mv conftest.out conftest.in +' >> $CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail + rm -f conftest.vals + mv conftest.tail conftest.vals +done +rm -f conftest.vals + +dnl Now back to your regularly scheduled config.status. +cat >> $CONFIG_STATUS <<\EOF + rm -f conftest.frag conftest.h + echo "/* $ac_file. Generated automatically by configure. */" > conftest.h + cat conftest.in >> conftest.h + rm -f conftest.in + if cmp -s $ac_file conftest.h 2>/dev/null; then + echo "$ac_file is unchanged" + rm -f conftest.h + else + # Remove last slash and all that follows it. Not all systems have dirname. + changequote(, )dnl + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + changequote([, ])dnl + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + fi + rm -f $ac_file + mv conftest.h $ac_file + fi +fi; done + +]) + +dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted +dnl here document whose contents are going into config.status. +dnl AC_OUTPUT_LINKS(SOURCE..., DEST...) +define(AC_OUTPUT_LINKS, +[EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +srcdir=$ac_given_srcdir +while test -n "$ac_sources"; do + set $ac_dests; ac_dest=[$]1; shift; ac_dests=[$]* + set $ac_sources; ac_source=[$]1; shift; ac_sources=[$]* + + echo "linking $srcdir/$ac_source to $ac_dest" + + if test ! -r $srcdir/$ac_source; then + AC_MSG_ERROR($srcdir/$ac_source: File not found) + fi + rm -f $ac_dest + + # Make relative symlinks. + # Remove last slash and all that follows it. Not all systems have dirname. +changequote(, )dnl + ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` +changequote([, ])dnl + if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then + # The dest file is in a subdirectory. + test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" + ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dest_dir_suffix. +changequote(, )dnl + ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` +changequote([, ])dnl + else + ac_dest_dir_suffix= ac_dots= + fi + + case "$srcdir" in +changequote(, )dnl + [/$]*) ac_rel_source="$srcdir/$ac_source" ;; +changequote([, ])dnl + *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; + esac + + # Make a symlink if possible; otherwise try a hard link. + if ln -s $ac_rel_source $ac_dest 2>/dev/null || + ln $srcdir/$ac_source $ac_dest; then : + else + AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source) + fi +done +]) + +dnl This is a subroutine of AC_OUTPUT. +dnl It is called after running config.status. +dnl AC_OUTPUT_SUBDIRS(DIRECTORY...) +define(AC_OUTPUT_SUBDIRS, +[ +if test "$no_recursion" != yes; then + + # Remove --cache-file and --srcdir arguments so they do not pile up. + ac_sub_configure_args= + ac_prev= + for ac_arg in $ac_configure_args; do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case "$ac_arg" in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; + esac + done + + for ac_config_dir in $1; do + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + if test ! -d $srcdir/$ac_config_dir; then + continue + fi + + echo configuring in $ac_config_dir + + case "$srcdir" in + .) ;; + *) + if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; + else + AC_MSG_ERROR(can not create `pwd`/$ac_config_dir) + fi + ;; + esac + + ac_popdir=`pwd` + cd $ac_config_dir + +changequote(, )dnl + # A "../" for each directory in /$ac_config_dir. + ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` +changequote([, ])dnl + + case "$srcdir" in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + /*) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_config_dir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure; then + ac_sub_configure=$ac_sub_srcdir/configure + elif test -f $ac_sub_srcdir/configure.in; then + ac_sub_configure=$ac_configure + else + AC_MSG_WARN(no configuration information is in $ac_config_dir) + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + + # Make the cache file name correct relative to the subdirectory. + case "$cache_file" in + /*) ac_sub_cache_file=$cache_file ;; + *) # Relative path. + ac_sub_cache_file="$ac_dots$cache_file" ;; + esac +ifdef([AC_PROVIDE_AC_PROG_INSTALL], + [ case "$ac_given_INSTALL" in +changequote(, )dnl + [/$]*) INSTALL="$ac_given_INSTALL" ;; +changequote([, ])dnl + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac +])dnl + + echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir" + # The eval makes quoting arguments work. + if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir + then : + else + AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir) + fi + fi + + cd $ac_popdir + done +fi +]) diff -Nru smake-1.2a41/autoconf/aclocal.m4 smake-1.2a49/autoconf/aclocal.m4 --- smake-1.2a41/autoconf/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/aclocal.m4 2009-11-29 14:35:28.000000000 +0000 @@ -0,0 +1,2983 @@ +dnl @(#)aclocal.m4 1.86 09/11/29 Copyright 1998-2009 J. Schilling + +dnl Set VARIABLE to VALUE in C-string form, verbatim, or 1. +dnl AC_DEFINE_STRING(VARIABLE [, VALUE]) +define(AC_DEFINE_STRING, +[cat >> confdefs.h <<\EOF +[#define] $1 ifelse($#, 2, "[$2]", $#, 3, "[$2]", 1) +EOF +]) + +dnl Similar, but perform shell substitutions $ ` \ once on VALUE. +define(AC_DEFINE_UNQUOTED_STRING, +[cat >> confdefs.h <>)dnl +<<(^|[^a-zA-Z_0-9])$2[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +$1], ac_cv_have_type_$2=yes, ac_cv_have_type_$2=no)])dnl +AC_MSG_RESULT($ac_cv_have_type_$2) +changequote(, )dnl + ac_tr_type=HAVE_TYPE_`echo $2 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl +if test $ac_cv_have_type_$2 = yes; then + AC_DEFINE_UNQUOTED($ac_tr_type) +fi +]) + +AC_DEFUN(AC_ICONV_CONST, +[AC_CACHE_CHECK(whether iconv() uses const char **, ac_cv_iconv_const, +[cat > conftest.c < +EOF +if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | grep 'size_t.*iconv.*iconv_t.*const' >/dev/null 2>&1; then + ac_cv_iconv_const=yes +else + ac_cv_iconv_const=no +fi]) +if test $ac_cv_iconv_const = yes; then + AC_DEFINE(HAVE_ICONV_CONST) +fi]) + +dnl Checks if /bin/sh is bash +dnl Defines BIN_SHELL_IS_BASH on success. +AC_DEFUN([AC_BIN_SHELL_BASH], +[AC_CACHE_CHECK([if /bin/sh is bash], ac_cv_bin_shell_is_bash, + [ +ac_err=`< /dev/null /bin/sh --version 2> /dev/null | egrep 'GNU sh|bash'` +if test -n "$ac_err"; then + ac_cv_bin_shell_is_bash=yes +else + ac_cv_bin_shell_is_bash=no +fi +]) +if test $ac_cv_bin_shell_is_bash = yes; then + AC_DEFINE(BIN_SHELL_IS_BASH) +fi]) + +dnl Checks if sh is bash +dnl Defines SHELL_IS_BASH on success. +AC_DEFUN([AC_SHELL_BASH], +[AC_CACHE_CHECK([if sh is bash], ac_cv_shell_is_bash, + [ +ac_err=`< /dev/null sh --version 2> /dev/null | egrep 'GNU sh|bash'` +if test -n "$ac_err"; then + ac_cv_shell_is_bash=yes +else + ac_cv_shell_is_bash=no +fi +]) +if test $ac_cv_shell_is_bash = yes; then + AC_DEFINE(SHELL_IS_BASH) +fi]) + +dnl Checks if /bin/sh -ce is broken +dnl Defines BIN_SHELL_CE_IS_BROKEN on success. +AC_DEFUN([AC_BIN_SHELL_CE_BROKEN], +[AC_CACHE_CHECK([whether /bin/sh -ce is broken], ac_cv_bin_shell_ce_is_broken, + [ +ac_err=`/bin/sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` +if test -n "$ac_err"; then + ac_cv_bin_shell_ce_is_broken=yes +else + ac_cv_bin_shell_ce_is_broken=no +fi +]) +if test $ac_cv_bin_shell_ce_is_broken = yes; then + AC_DEFINE(BIN_SHELL_CE_IS_BROKEN) +fi]) + +dnl Checks if /bin/bosh is a working shell +dnl Defines BIN_SHELL_BOSH on success. +AC_DEFUN([AC_BIN_SHELL_BOSH], +[AC_CACHE_CHECK([whether /bin/bosh is a working shell], ac_cv_bin_shell_bosh, + [ +ac_err=`< /dev/null /bin/bosh -c 'echo abc' 2> /dev/null | grep abc` +if test "$ac_err" != "abc"; then + ac_cv_bin_shell_bosh=no +else + ac_err=`/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` + if test -z "$ac_err"; then + ac_cv_bin_shell_bosh=yes + else + ac_cv_bin_shell_bosh=no + fi +fi +]) +if test $ac_cv_bin_shell_bosh = yes; then + AC_DEFINE(BIN_SHELL_BOSH) +fi]) + +dnl Checks if /opt/schily/bin/bosh is a working shell +dnl Defines OPT_SCHILY_BIN_SHELL_BOSH on success. +AC_DEFUN([AC_OPT_SCHILY_BIN_SHELL_BOSH], +[AC_CACHE_CHECK([whether /opt/schily/bin/bosh is a working shell], ac_cv_opt_schily_bin_shell_bosh, + [ +ac_err=`< /dev/null /opt/schily/bin/bosh -c 'echo abc' 2> /dev/null | grep abc` +if test "$ac_err" != "abc"; then + ac_cv_opt_schily_bin_shell_bosh=no +else + ac_err=`/opt/schily/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` + if test -z "$ac_err"; then + ac_cv_opt_schily_bin_shell_bosh=yes + else + ac_cv_opt_schily_bin_shell_bosh=no + fi +fi +]) +if test $ac_cv_opt_schily_bin_shell_bosh = yes; then + AC_DEFINE(OPT_SCHILY_BIN_SHELL_BOSH) +fi]) + +dnl Checks if sh -ce is broken +dnl Defines SHELL_CE_IS_BROKEN on success. +AC_DEFUN([AC_SHELL_CE_BROKEN], +[AC_CACHE_CHECK([whether sh -ce is broken], ac_cv_shell_ce_is_broken, + [ +ac_err=`sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` +if test -n "$ac_err"; then + ac_cv_shell_ce_is_broken=yes +else + ac_cv_shell_ce_is_broken=no +fi +]) +if test $ac_cv_shell_ce_is_broken = yes; then + AC_DEFINE(SHELL_CE_IS_BROKEN) +fi]) + +dnl Checks if Sun cc supports -m64 +dnl Defines sun_cc64_opt on success. +AC_DEFUN([AC_SUN_CC64_OPT], +[AC_CACHE_CHECK([if suncc/cc supports -m64], ac_cv_sun_cc64_opt, + [ +sun_cc64=cc +sun_cc64_opt='' +ac_cv_sun_cc64_opt=no +if test "$GCC" != yes; then + if test "$CC" = suncc; then + sun_cc64=suncc + fi + ac_err=`< /dev/null eval $sun_cc64 -m64 -c 2>&1 | grep illegal` + if test -n "$ac_err"; then + ac_cv_sun_cc64_opt=no + else + ac_cv_sun_cc64_opt=yes + fi +fi +]) +if test $ac_cv_sun_cc64_opt = yes; then + sun_cc64_opt='-m64' +fi]) + +dnl Checks if HP cc supports -Ae +dnl Defines hp_cc_ansi_opt on success. +AC_DEFUN([AC_HP_CC_ANSI_OPT], +[AC_CACHE_CHECK([if HP cc supports -Ae], ac_cv_hp_cc_ansi_opt, + [ +hp_cc=cc +hp_cc_ansi_opt='' +ac_cv_hp_cc_ansi_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -Ae -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_ansi_opt=no + else + ac_cv_hp_cc_ansi_opt=yes + fi + fi +fi +]) +if test $ac_cv_hp_cc_ansi_opt = yes; then + hp_cc_ansi_opt='-Ae' +fi]) + +dnl Checks if HP cc supports -O +dnl Defines hp_cc_opt_opt on success. +AC_DEFUN([AC_HP_CC_OPT_OPT], +[AC_CACHE_CHECK([if HP cc supports -O], ac_cv_hp_cc_opt_opt, + [ +hp_cc=cc +hp_cc_opt_opt='' +ac_cv_hp_cc_opt_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -O -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_opt_opt=no + else + ac_cv_hp_cc_opt_opt=yes + fi + fi +fi +]) +if test $ac_cv_hp_cc_opt_opt = yes; then + hp_cc_opt_opt='-O' +fi]) + +dnl Checks if HP cc supports -G +dnl Defines hp_cc_gprof_opt on success. +AC_DEFUN([AC_HP_CC_GPROF_OPT], +[AC_CACHE_CHECK([if HP cc supports -G], ac_cv_hp_cc_gprof_opt, + [ +hp_cc=cc +hp_cc_gprof_opt='' +ac_cv_hp_cc_gprof_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -O -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_gprof_opt=no + else + ac_cv_hp_cc_gprof_opt=yes + fi + fi +fi +]) +if test $ac_cv_hp_cc_gprof_opt = yes; then + hp_cc_gprof_opt='-G' +fi]) + +dnl XXX this used to be: +dnl #ifndef $2 +dnl char *p = (char *) $2; +dnl #endif +dnl but we use this test un order to check whether we are able to get the +dnl address of a function from this name, so we did replace this by: +dnl char *p = (char *) $2; +dnl +dnl AC_CHECK_DECLARE(INCLUDES, SYMBOL) +dnl Checks if symbol is declared +dnl Defines HAVE_DECL_SYMBOL on success. +AC_DEFUN([AC_CHECK_DECLARE], +[AC_CACHE_CHECK([if $2 is declared], ac_cv_have_decl_$2, + [AC_TRY_COMPILE([$1], +[ char *p = (char *) $2; ], + [ac_cv_have_decl_$2=yes], + [ac_cv_have_decl_$2=no])]) +changequote(, )dnl + ac_tr_decl=HAVE_DECL_`echo $2 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl +if test $ac_cv_have_decl_$2 = yes; then + AC_DEFINE_UNQUOTED($ac_tr_decl) +fi]) + +dnl AC_CHECK_DFUNC(INCLUDES, SYMBOL) +dnl Checks if symbol is defined or a function +dnl Defines HAVE_SYMBOL on success. +AC_DEFUN([AC_CHECK_DFUNC], +[AC_CACHE_CHECK([if $2 is defined or function], ac_cv_have_$2, + [AC_TRY_LINK([$1], +[ +#ifndef $2 + char *p = (char *) $2; +#endif], + [ac_cv_have_$2=yes], + [ac_cv_have_$2=no])]) +changequote(, )dnl + ac_tr_dfunc=HAVE_`echo $2 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl +if test $ac_cv_have_$2 = yes; then + AC_DEFINE_UNQUOTED($ac_tr_dfunc) +fi]) + +dnl Checks whether symbol is defined or a function in a lib +dnl AC_CHECK_DLIB(INCLUDES, LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND +dnl [, OTHER-LIBRARIES]]]) +AC_DEFUN(AC_CHECK_DLIB, +[AC_MSG_CHECKING([for $3 in -l$2]) +dnl Use a cache variable name containing both the library and function name, +dnl because the test really is for library $2 defining function $3, not +dnl just for library $2. Separate tests with the same $2 and different $3s +dnl may have different results. +ac_lib_var=`echo $2['_']$3 | sed 'y%./+-%__p_%'` +AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, +[ac_save_LIBS="$LIBS" +LIBS="-l$2 $6 $LIBS" +AC_TRY_LINK([$1], +[ +#ifndef $3 + char *p = (char *) $3; +#endif], + eval "ac_cv_lib_$ac_lib_var=yes", + eval "ac_cv_lib_$ac_lib_var=no") +LIBS="$ac_save_LIBS" +])dnl +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$4], , +[changequote(, )dnl + ac_tr_lib=HAVE_LIB`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_lib) + LIBS="-l$2 $LIBS" +], [$4]) +else + AC_MSG_RESULT(no) +ifelse([$5], , , [$5 +])dnl +fi +]) + +dnl Checks whether symbol is in a lib +dnl this does not work for void func() +dnl AC_CHECK_ILIB(INCLUDES, LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND +dnl [, OTHER-LIBRARIES]]]) +AC_DEFUN(AC_CHECK_ILIB, +[AC_MSG_CHECKING([for $3 in -l$2]) +dnl Use a cache variable name containing both the library and function name, +dnl because the test really is for library $2 defining function $3, not +dnl just for library $2. Separate tests with the same $2 and different $3s +dnl may have different results. +ac_lib_var=`echo $2['_']$3 | sed 'y%./+-%__p_%'` +AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, +[ac_save_LIBS="$LIBS" +LIBS="-l$2 $6 $LIBS" +AC_TRY_LINK([$1], +[ + char *p = (char *) $3; + + return ((int)p); +], + eval "ac_cv_lib_$ac_lib_var=yes", + eval "ac_cv_lib_$ac_lib_var=no") +LIBS="$ac_save_LIBS" +])dnl +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + AC_MSG_RESULT(yes) + ifelse([$4], , +[changequote(, )dnl + ac_tr_lib=HAVE_LIB`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_lib) + LIBS="-l$2 $LIBS" +], [$4]) +else + AC_MSG_RESULT(no) +ifelse([$5], , , [$5 +])dnl +fi +]) + + +dnl Checks if structure 'stat' have field 'st_spare1'. +dnl Defines HAVE_ST_SPARE1 on success. +AC_DEFUN([AC_STRUCT_ST_SPARE1], +[AC_CACHE_CHECK([if struct stat contains st_spare1], ac_cv_struct_st_spare1, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_spare1 = 0;], + [ac_cv_struct_st_spare1=yes], + [ac_cv_struct_st_spare1=no])]) +if test $ac_cv_struct_st_spare1 = yes; then + AC_DEFINE(HAVE_ST_SPARE1) +fi]) + +dnl Checks if structure 'stat' have field 'st_atimensec'. +dnl Defines HAVE_ST_ATIMENSEC on success. +AC_DEFUN([AC_STRUCT_ST_ATIMENSEC], +[AC_CACHE_CHECK([if struct stat contains st_atimensec], ac_cv_struct_st_atimensec, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_atimensec = 0;], + [ac_cv_struct_st_atimensec=yes], + [ac_cv_struct_st_atimensec=no])]) +if test $ac_cv_struct_st_atimensec = yes; then + AC_DEFINE(HAVE_ST_ATIMENSEC) +fi]) + +dnl Checks if structure 'stat' have field 'st_atim.tv_nsec'. +dnl Defines HAVE_ST_NSEC on success. +AC_DEFUN([AC_STRUCT_ST_NSEC], +[AC_CACHE_CHECK([if struct stat contains st_atim.tv_nsec], ac_cv_struct_st_nsec, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_atim.tv_nsec = 0;], + [ac_cv_struct_st_nsec=yes], + [ac_cv_struct_st_nsec=no])]) +if test $ac_cv_struct_st_nsec = yes; then + AC_DEFINE(HAVE_ST_NSEC) +fi]) + +dnl Checks if structure 'stat' have field 'st_atim.st__tim.tv_nsec'. +dnl Defines HAVE_ST__TIM on success. +AC_DEFUN([AC_STRUCT_ST__TIM], +[AC_CACHE_CHECK([if struct stat contains st_atim.st__tim.tv_nsec], ac_cv_struct_st__tim, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_atim.st__tim.tv_nsec = 0;], + [ac_cv_struct_st__tim=yes], + [ac_cv_struct_st__tim=no])]) +if test $ac_cv_struct_st__tim = yes; then + AC_DEFINE(HAVE_ST__TIM) +fi]) + +dnl Checks if structure 'stat' have field 'st_atimspec.tv_nsec'. +dnl Defines HAVE_ST_ATIMESPEC on success. +AC_DEFUN([AC_STRUCT_ST_ATIMESPEC], +[AC_CACHE_CHECK([if struct stat contains st_atimespec.tv_nsec], ac_cv_struct_st_atimespec, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_atimespec.tv_nsec = 0;], + [ac_cv_struct_st_atimespec=yes], + [ac_cv_struct_st_atimespec=no])]) +if test $ac_cv_struct_st_atimespec = yes; then + AC_DEFINE(HAVE_ST_ATIMESPEC) +fi]) + +dnl Checks if structure 'stat' have field 'st_flags'. +dnl Defines HAVE_ST_FLAGS on success. +AC_DEFUN([AC_STRUCT_ST_FLAGS], +[AC_CACHE_CHECK([if struct stat contains st_flags], ac_cv_struct_st_flags, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_flags = 0;], + [ac_cv_struct_st_flags=yes], + [ac_cv_struct_st_flags=no])]) +if test $ac_cv_struct_st_flags = yes; then + AC_DEFINE(HAVE_ST_FLAGS) +fi]) + +dnl Checks if structure 'stat' have field 'st_fstype'. +dnl Defines HAVE_ST_FSTYPE on success. +AC_DEFUN([AC_STRUCT_ST_FSTYPE], +[AC_CACHE_CHECK([if struct stat contains st_fstype], ac_cv_struct_st_fstype, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_fstype[0] = 0;], + [ac_cv_struct_st_fstype=yes], + [ac_cv_struct_st_fstype=no])]) +if test $ac_cv_struct_st_fstype = yes; then + AC_DEFINE(HAVE_ST_FSTYPE) +fi]) + +dnl Checks if structure 'stat' have field 'st_aclcnt'. +dnl Defines HAVE_ST_ACLCNT on success. +AC_DEFUN([AC_STRUCT_ST_ACLCNT], +[AC_CACHE_CHECK([if struct stat contains st_aclcnt], ac_cv_struct_st_aclcnt, + [AC_TRY_COMPILE([#include +#include ], + [struct stat s; s.st_aclcnt = 0;], + [ac_cv_struct_st_aclcnt=yes], + [ac_cv_struct_st_aclcnt=no])]) +if test $ac_cv_struct_st_aclcnt = yes; then + AC_DEFINE(HAVE_ST_ACLCNT) +fi]) + +dnl Checks if structure 'utsname' have field 'arch'. +dnl Defines HAVE_UTSNAME_ARCH on success. +AC_DEFUN([AC_STRUCT_UTSNAME_ARCH], +[AC_CACHE_CHECK([if struct utsname contains arch], ac_cv_struct_utsname_arch, + [AC_TRY_COMPILE([#include ], + [struct utsname u; u.arch[0] = 0;], + [ac_cv_struct_utsname_arch=yes], + [ac_cv_struct_utsname_arch=no])]) +if test $ac_cv_struct_utsname_arch = yes; then + AC_DEFINE(HAVE_UTSNAME_ARCH) +fi]) + +dnl Checks if structure 'utsname' have field 'processor'. +dnl Defines HAVE_UTSNAME_PROCESSOR on success. +AC_DEFUN([AC_STRUCT_UTSNAME_PROCESSOR], +[AC_CACHE_CHECK([if struct utsname contains processor], ac_cv_struct_utsname_processor, + [AC_TRY_COMPILE([#include ], + [struct utsname u; u.processor[0] = 0;], + [ac_cv_struct_utsname_processor=yes], + [ac_cv_struct_utsname_processor=no])]) +if test $ac_cv_struct_utsname_processor = yes; then + AC_DEFINE(HAVE_UTSNAME_PROCESSOR) +fi]) + +dnl Checks if structure 'utsname' have field 'sysname_host'. +dnl Defines HAVE_UTSNAME_SYSNAME_HOST on success. +AC_DEFUN([AC_STRUCT_UTSNAME_SYSNAME_HOST], +[AC_CACHE_CHECK([if struct utsname contains sysname_host], ac_cv_struct_utsname_sysname_host, + [AC_TRY_COMPILE([#include ], + [struct utsname u; u.sysname_host[0] = 0;], + [ac_cv_struct_utsname_sysname_host=yes], + [ac_cv_struct_utsname_sysname_host=no])]) +if test $ac_cv_struct_utsname_sysname_host = yes; then + AC_DEFINE(HAVE_UTSNAME_SYSNAME_HOST) +fi]) + +dnl Checks if structure 'utsname' have field 'release_host'. +dnl Defines HAVE_UTSNAME_RELEASE_HOST on success. +AC_DEFUN([AC_STRUCT_UTSNAME_RELEASE_HOST], +[AC_CACHE_CHECK([if struct utsname contains release_host], ac_cv_struct_utsname_release_host, + [AC_TRY_COMPILE([#include ], + [struct utsname u; u.release_host[0] = 0;], + [ac_cv_struct_utsname_release_host=yes], + [ac_cv_struct_utsname_release_host=no])]) +if test $ac_cv_struct_utsname_release_host = yes; then + AC_DEFINE(HAVE_UTSNAME_RELEASE_HOST) +fi]) + +dnl Checks if structure 'utsname' have field 'version_host'. +dnl Defines HAVE_UTSNAME_VERSION_HOST on success. +AC_DEFUN([AC_STRUCT_UTSNAME_VERSION_HOST], +[AC_CACHE_CHECK([if struct utsname contains version_host], ac_cv_struct_utsname_version_host, + [AC_TRY_COMPILE([#include ], + [struct utsname u; u.version_host[0] = 0;], + [ac_cv_struct_utsname_version_host=yes], + [ac_cv_struct_utsname_version_host=no])]) +if test $ac_cv_struct_utsname_version_host = yes; then + AC_DEFINE(HAVE_UTSNAME_VERSION_HOST) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_type'. +dnl Defines HAVE_MTGET_TYPE on success. +AC_DEFUN([AC_STRUCT_MTGET_TYPE], +[AC_CACHE_CHECK([if struct mtget contains mt_type], ac_cv_struct_mtget_type, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_type = 0;], + [ac_cv_struct_mtget_type=yes], + [ac_cv_struct_mtget_type=no])]) +if test $ac_cv_struct_mtget_type = yes; then + AC_DEFINE(HAVE_MTGET_TYPE) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_model'. +dnl Defines HAVE_MTGET_MODEL on success. +AC_DEFUN([AC_STRUCT_MTGET_MODEL], +[AC_CACHE_CHECK([if struct mtget contains mt_model], ac_cv_struct_mtget_model, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_model = 0;], + [ac_cv_struct_mtget_model=yes], + [ac_cv_struct_mtget_model=no])]) +if test $ac_cv_struct_mtget_model = yes; then + AC_DEFINE(HAVE_MTGET_MODEL) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_dsreg'. +dnl Defines HAVE_MTGET_DSREG on success. +AC_DEFUN([AC_STRUCT_MTGET_DSREG], +[AC_CACHE_CHECK([if struct mtget contains mt_dsreg], ac_cv_struct_mtget_dsreg, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_dsreg = 0;], + [ac_cv_struct_mtget_dsreg=yes], + [ac_cv_struct_mtget_dsreg=no])]) +if test $ac_cv_struct_mtget_dsreg = yes; then + AC_DEFINE(HAVE_MTGET_DSREG) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_dsreg1'. +dnl Defines HAVE_MTGET_DSREG on success. +AC_DEFUN([AC_STRUCT_MTGET_DSREG1], +[AC_CACHE_CHECK([if struct mtget contains mt_dsreg1], ac_cv_struct_mtget_dsreg1, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_dsreg1 = 0;], + [ac_cv_struct_mtget_dsreg1=yes], + [ac_cv_struct_mtget_dsreg1=no])]) +if test $ac_cv_struct_mtget_dsreg1 = yes; then + AC_DEFINE(HAVE_MTGET_DSREG1) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_dsreg2'. +dnl Defines HAVE_MTGET_DSREG2 on success. +AC_DEFUN([AC_STRUCT_MTGET_DSREG2], +[AC_CACHE_CHECK([if struct mtget contains mt_dsreg2], ac_cv_struct_mtget_dsreg2, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_dsreg2 = 0;], + [ac_cv_struct_mtget_dsreg2=yes], + [ac_cv_struct_mtget_dsreg2=no])]) +if test $ac_cv_struct_mtget_dsreg2 = yes; then + AC_DEFINE(HAVE_MTGET_DSREG2) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_gstat'. +dnl Defines HAVE_MTGET_GSTAT on success. +AC_DEFUN([AC_STRUCT_MTGET_GSTAT], +[AC_CACHE_CHECK([if struct mtget contains mt_gstat], ac_cv_struct_mtget_gstat, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_gstat = 0;], + [ac_cv_struct_mtget_gstat=yes], + [ac_cv_struct_mtget_gstat=no])]) +if test $ac_cv_struct_mtget_gstat = yes; then + AC_DEFINE(HAVE_MTGET_GSTAT) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_erreg'. +dnl Defines HAVE_MTGET_ERREG on success. +AC_DEFUN([AC_STRUCT_MTGET_ERREG], +[AC_CACHE_CHECK([if struct mtget contains mt_erreg], ac_cv_struct_mtget_erreg, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_erreg = 0;], + [ac_cv_struct_mtget_erreg=yes], + [ac_cv_struct_mtget_erreg=no])]) +if test $ac_cv_struct_mtget_erreg = yes; then + AC_DEFINE(HAVE_MTGET_ERREG) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_resid'. +dnl Defines HAVE_MTGET_RESID on success. +AC_DEFUN([AC_STRUCT_MTGET_RESID], +[AC_CACHE_CHECK([if struct mtget contains mt_resid], ac_cv_struct_mtget_resid, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_resid = 0;], + [ac_cv_struct_mtget_resid=yes], + [ac_cv_struct_mtget_resid=no])]) +if test $ac_cv_struct_mtget_resid = yes; then + AC_DEFINE(HAVE_MTGET_RESID) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_fileno'. +dnl Defines HAVE_MTGET_FILENO on success. +AC_DEFUN([AC_STRUCT_MTGET_FILENO], +[AC_CACHE_CHECK([if struct mtget contains mt_fileno], + ac_cv_struct_mtget_fileno, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_fileno = 0;], + [ac_cv_struct_mtget_fileno=yes], + [ac_cv_struct_mtget_fileno=no])]) +if test $ac_cv_struct_mtget_fileno = yes; then + AC_DEFINE(HAVE_MTGET_FILENO) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_blkno'. +dnl Defines HAVE_MTGET_BLKNO on success. +AC_DEFUN([AC_STRUCT_MTGET_BLKNO], +[AC_CACHE_CHECK([if struct mtget contains mt_blkno], ac_cv_struct_mtget_blkno, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_blkno = 0;], + [ac_cv_struct_mtget_blkno=yes], + [ac_cv_struct_mtget_blkno=no])]) +if test $ac_cv_struct_mtget_blkno = yes; then + AC_DEFINE(HAVE_MTGET_BLKNO) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_flags'. +dnl Defines HAVE_MTGET_FLAGS on success. +AC_DEFUN([AC_STRUCT_MTGET_FLAGS], +[AC_CACHE_CHECK([if struct mtget contains mt_flags], ac_cv_struct_mtget_flags, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_flags = 0;], + [ac_cv_struct_mtget_flags=yes], + [ac_cv_struct_mtget_flags=no])]) +if test $ac_cv_struct_mtget_flags = yes; then + AC_DEFINE(HAVE_MTGET_FLAGS) +fi]) + +dnl Checks if structure 'mtget' have field 'mt_bf'. +dnl Defines HAVE_MTGET_BF on success. +AC_DEFUN([AC_STRUCT_MTGET_BF], +[AC_CACHE_CHECK([if struct mtget contains mt_bf], ac_cv_struct_mtget_bf, + [AC_TRY_COMPILE([#include +#include ], + [struct mtget t; t.mt_bf = 0;], + [ac_cv_struct_mtget_bf=yes], + [ac_cv_struct_mtget_bf=no])]) +if test $ac_cv_struct_mtget_bf = yes; then + AC_DEFINE(HAVE_MTGET_BF) +fi]) + +dnl Checks for illegal declaration of 'union semun' in sys/sem.h. +dnl Defines HAVE_UNION_SEMUN on success. +AC_DEFUN([AC_STRUCT_UNION_SEMUN], +[AC_CACHE_CHECK([if an illegal declaration for union semun in sys/sem.h exists], ac_cv_struct_union_semun, + [AC_TRY_COMPILE([#include +#include +#include ], [union semun s;], + [ac_cv_struct_union_semun=yes], + [ac_cv_struct_union_semun=no])]) +if test $ac_cv_struct_union_semun = yes; then + AC_DEFINE(HAVE_UNION_SEMUN) +fi]) + +dnl Checks if 'union wait' is declared in 'wait.h' or 'sys/wait.h'. +dnl Defines HAVE_UNION_WAIT on success. +AC_DEFUN([AC_STRUCT_UNION_WAIT], +[AC_CACHE_CHECK([if union wait is declared in wait.h or sys/wait.h], ac_cv_struct_union_wait, + [AC_TRY_COMPILE([#include +#if defined(HAVE_WAIT_H) +# include +#else +#include +#endif], [union wait w;], + [ac_cv_struct_union_wait=yes], + [ac_cv_struct_union_wait=no])]) +if test $ac_cv_struct_union_wait = yes; then + AC_DEFINE(HAVE_UNION_WAIT) +fi]) + +dnl Checks if union wait is used by default +dnl Defines USE_UNION_WAIT to int on failure. +AC_DEFUN([AC_USE_STRUCT_UNION_WAIT], +[AC_REQUIRE([AC_HEADER_STDC])dnl +AC_MSG_CHECKING(if union wait is used by default) +AC_CACHE_VAL(ac_cv_use_union_wait, +[AC_EGREP_CPP(dnl +changequote(<<,>>)dnl +<>dnl +changequote([,]), [#include +#if defined(HAVE_WAIT_H) +# include +#else +#include +#endif +xxzzy WTERMSIG(status) +xxzzy WCOREDUMP(status) +xxzzy WEXITSTATUS(status) +xxzzy WSTOPSIG(status) +xxzzy WIFSTOPPED(status) +xxzzy WIFSIGNALED(status) +xxzzy WIFEXITED(status)], ac_cv_use_union_wait=yes, ac_cv_use_union_wait=no)])dnl +AC_MSG_RESULT($ac_cv_use_union_wait) +if test $ac_cv_use_union_wait = yes; then + AC_DEFINE(USE_UNION_WAIT) +fi]) + +dnl Checks if 'struct rusage' is declared in sys/resource.h. +dnl Defines HAVE_STRUCT_RUSAGE on success. +AC_DEFUN([AC_STRUCT_RUSAGE], +[AC_CACHE_CHECK([if struct rusage is declared in sys/resource.h], ac_cv_struct_rusage, + [AC_TRY_COMPILE([#include +#include ], [struct rusage r;], + [ac_cv_struct_rusage=yes], + [ac_cv_struct_rusage=no])]) +if test $ac_cv_struct_rusage = yes; then + AC_DEFINE(HAVE_STRUCT_RUSAGE) +fi]) + +dnl Checks if structure 'siginfo' have field 'si_utime'. +dnl Defines HAVE_SI_UTIME on success. +AC_DEFUN([AC_STRUCT_SI_UTIME], +[AC_CACHE_CHECK([if struct siginfo contains si_utime], ac_cv_struct_si_utime, + [AC_TRY_COMPILE([#include +#include ], + [struct siginfo si; si.si_utime = 0;], + [ac_cv_struct_si_utime=yes], + [ac_cv_struct_si_utime=no])]) +if test $ac_cv_struct_si_utime = yes; then + AC_DEFINE(HAVE_SI_UTIME) +fi]) + + +dnl Checks if structure 'dirent' have field 'd_ino'. +dnl Defines HAVE_DIRENT_D_INO on success. +AC_DEFUN([AC_STRUCT_DIRENT_D_INO], +[AC_CACHE_CHECK([if struct dirent contains d_ino], ac_cv_struct_dirent_d_ino, + [AC_TRY_COMPILE([ +/* + * This must be kept in sync with schily/dirdesf.h + */ +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ +# include +# define _FOUND_DIR_ +# else /* This is a Pre POSIX system */ + +# define dirent direct + +# if defined(HAVE_SYS_DIR_H) +# include +# define _FOUND_DIR_ +# endif + +# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) +# include +# define _FOUND_DIR_ +# endif + +# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) +# include +# define _FOUND_DIR_ +# endif +# endif /* HAVE_DIRENT_H */ + ], + [struct dirent d; d.d_ino = 0;], + [ac_cv_struct_dirent_d_ino=yes], + [ac_cv_struct_dirent_d_ino=no])]) +if test $ac_cv_struct_dirent_d_ino = yes; then + AC_DEFINE(HAVE_DIRENT_D_INO) +fi]) + +dnl Checks if structure 'DIR' have field 'dd_fd'. +dnl Defines HAVE_DIR_DD_FD on success. +AC_DEFUN([AC_STRUCT_DIR_DD_FD], +[AC_CACHE_CHECK([if DIR * contains dd_fd], ac_cv_struct_dir_dd_fd, + [AC_TRY_COMPILE([#include ], + [DIR d; d.dd_fd = 0;], + [ac_cv_struct_dir_dd_fd=yes], + [ac_cv_struct_dir_dd_fd=no])]) +if test $ac_cv_struct_dir_dd_fd = yes; then + AC_DEFINE(HAVE_DIR_DD_FD) +fi]) + +dnl Checks wether major(), minor() and makedev() are defined in +dnl 'sys/mkdev.h' or in 'sys/sysmacros.h. Defines MAJOR_IN_MKDEV or +dnl MAJOR_IN_SYSMACROS or nothing. +AC_DEFUN([AC_HEADER_MAKEDEV], +[AC_CACHE_CHECK([for header file containing major(), minor() and makedev()], + ac_cv_header_makedev, +[ac_cv_header_makedev=none +AC_TRY_COMPILE([#include +#include ], + [int i = major(0); i = minor(0); i = makedev(0,0);], + [ac_cv_header_makedev=sys/mkdev.h]) +if test $ac_cv_header_makedev = none; then + AC_TRY_COMPILE([#include +#include ], + [int i = major(0); i = minor(0); i = makedev(0,0);], + [ac_cv_header_makedev=sys/sysmacros.h]) +fi]) +if test $ac_cv_header_makedev = sys/mkdev.h; then + AC_DEFINE(MAJOR_IN_MKDEV) +fi +if test $ac_cv_header_makedev = sys/sysmacros.h; then + AC_DEFINE(MAJOR_IN_SYSMACROS) +fi]) + +dnl Checks for USG derived STDIO that uses _filbuf() +dnl Defines HAVE__FILBUF on success. +AC_DEFUN([AC_HEADER__FILBUF], +[AC_CACHE_CHECK([for _filbuf()], ac_cv_func__filbuf, + [AC_TRY_LINK([#include ], +[FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +_filbuf(f); +_flsbuf(c, f); +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f);], + [ac_cv_func__filbuf=yes], + [ac_cv_func__filbuf=no])]) +if test $ac_cv_func__filbuf = yes; then + AC_DEFINE(HAVE__FILBUF) +fi]) + +dnl Checks for USG derived STDIO that uses __filbuf() +dnl Defines HAVE___FILBUF on success. +AC_DEFUN([AC_HEADER___FILBUF], +[AC_CACHE_CHECK([for __filbuf()], ac_cv_func___filbuf, + [AC_TRY_LINK([#include ], +[FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +__filbuf(f); +__flsbuf(c, f); +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f);], + [ac_cv_func___filbuf=yes], + [ac_cv_func___filbuf=no])]) +if test $ac_cv_func___filbuf = yes; then + AC_DEFINE(HAVE___FILBUF) +fi]) + +dnl Checks for USG derived STDIO +dnl Defines HAVE_USG_STDIO on success. +AC_DEFUN([AC_HEADER_USG_STDIO], +[AC_REQUIRE([AC_HEADER__FILBUF])AC_REQUIRE([AC_HEADER___FILBUF])dnl +AC_CACHE_CHECK([for USG derived STDIO], ac_cv_header_usg_stdio, + [AC_TRY_LINK([#include ], +[FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +#ifdef HAVE___FILBUF +__filbuf(f); +__flsbuf(c, f); +#else +# ifdef HAVE__FILBUF +_filbuf(f); +_flsbuf(c, f); +# else +no filbuf() +# endif +#endif +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f);], + [ac_cv_header_usg_stdio=yes], + [ac_cv_header_usg_stdio=no])]) +if test $ac_cv_header_usg_stdio = yes; then + AC_DEFINE(HAVE_USG_STDIO) +fi]) + +dnl Checks for errno definition in +dnl Defines HAVE_ERRNO_DEF on success. +AC_DEFUN([AC_HEADER_ERRNO_DEF], +[AC_CACHE_CHECK([for errno definition in errno.h], ac_cv_header_errno_def, + [AC_TRY_COMPILE([#include ], +[errno = 0;], + [ac_cv_header_errno_def=yes], + [ac_cv_header_errno_def=no])]) +if test $ac_cv_header_errno_def = yes; then + AC_DEFINE(HAVE_ERRNO_DEF) +fi]) + +dnl Checks for environ definition in +dnl Defines HAVE_ENVIRON_DEF on success. +AC_DEFUN([AC_HEADER_ENVIRON_DEF], +[AC_CACHE_CHECK([for environ definition in unistd.h/stdlib.h], ac_cv_header_environ_def, + [AC_TRY_COMPILE([ +#ifdef HAVE_UNISTD_H +#include +#else +#ifdef HAVE_STDLIB_H +#include /* MSC no unistd.h but environ in stdlib.h */ +#endif +#endif +], +[environ = 0;], + [ac_cv_header_environ_def=yes], + [ac_cv_header_environ_def=no])]) +if test $ac_cv_header_environ_def = yes; then + AC_DEFINE(HAVE_ENVIRON_DEF) +fi]) + +dnl Checks for sys_siglist definition in +dnl Defines HAVE_SYS_SIGLIST_DEF on success. +AC_DEFUN([AC_HEADER_SYS_SIGLIST_DEF], +[AC_CACHE_CHECK([for sys_siglist definition in signal.h], ac_cv_header_sys_siglist_def, + [AC_TRY_COMPILE([#include ], +[char *cp = (char *)sys_siglist[0];], + [ac_cv_header_sys_siglist_def=yes], + [ac_cv_header_sys_siglist_def=no])]) +if test $ac_cv_header_sys_siglist_def = yes; then + AC_DEFINE(HAVE_SYS_SIGLIST_DEF) +fi]) + +dnl Checks for extern timezone in time.h or sys/time.h +dnl Defines HAVE_VAR_TIMEZONE_DEF on success. +AC_DEFUN([AC_VAR_TIMEZONE_DEF], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CACHE_CHECK([for extern timezone in time.h or sys/time.h], ac_cv_var_timezone_def, + [AC_TRY_COMPILE([ +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif], [timezone = 1;], + [ac_cv_var_timezone_def=yes], + [ac_cv_var_timezone_def=no])]) +if test $ac_cv_var_timezone_def = yes; then + AC_DEFINE(HAVE_VAR_TIMEZONE_DEF) +fi]) + +dnl Checks if extern long timezone exists in libc +dnl Defines HAVE_VAR_TIMEZONE on success. +AC_DEFUN([AC_VAR_TIMEZONE], +[AC_CACHE_CHECK([for working extern long timezone ], ac_cv_var_timezone, + [AC_TRY_RUN([ +extern long timezone; + +int +main() +{ + exit(timezone != 0); +}], + [ac_cv_var_timezone=yes], + [ac_cv_var_timezone=no])]) +if test $ac_cv_var_timezone = yes; then + AC_DEFINE(HAVE_VAR_TIMEZONE) +fi]) + +dnl Checks for UNIX-98 compliant +dnl Defines HAVE_INTTYPES_H on success. +AC_DEFUN([AC_HEADER_INTTYPES], +[AC_CACHE_CHECK([for UNIX-98 compliant inttypes.h], ac_cv_header_inttypes, + [AC_TRY_COMPILE([#include ], +[int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; +int64_t ll; uint64_t ull; +intptr_t ip; uintptr_t uip;], + [ac_cv_header_inttypes=yes], + [ac_cv_header_inttypes=no])]) +if test $ac_cv_header_inttypes = yes; then + AC_DEFINE(HAVE_INTTYPES_H) +fi]) + +dnl Checks for SUSv3 compliant +dnl Defines HAVE_STDINT_H and HAVE_TYPE_INTMAX_T/HAVE_TYPE_UINTMAX_T on success. +AC_DEFUN([AC_HEADER_STDINT], +[AC_CACHE_CHECK([for SUSv3 compliant stdint.h], ac_cv_header_stdint, + [AC_TRY_COMPILE([#include ], +[int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; +int64_t ll; uint64_t ull; +intptr_t ip; uintptr_t uip; +intmax_t im; uintmax_t uim;], + [ac_cv_header_stdint=yes], + [ac_cv_header_stdint=no])]) +if test $ac_cv_header_stdint = yes; then + AC_DEFINE(HAVE_STDINT_H) + AC_DEFINE(HAVE_TYPE_INTMAX_T) + AC_DEFINE(HAVE_TYPE_UINTMAX_T) +fi]) + +dnl Checks for struct timeval in time.h or sys/time.h +dnl Defines HAVE_STRUCT_TIMEVAL on success. +AC_DEFUN([AC_STRUCT_TIMEVAL], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CACHE_CHECK([for struct timeval in time.h or sys/time.h], ac_cv_struct_timeval, + [AC_TRY_COMPILE([ +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif], [struct timeval tv;], + [ac_cv_struct_timeval=yes], + [ac_cv_struct_timeval=no])]) +if test $ac_cv_struct_timeval = yes; then + AC_DEFINE(HAVE_STRUCT_TIMEVAL) +fi]) + +dnl Checks for struct timezone in time.h or sys/time.h +dnl Defines HAVE_STRUCT_TIMEZONE on success. +AC_DEFUN([AC_STRUCT_TIMEZONE], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CACHE_CHECK([for struct timezone in time.h or sys/time.h], ac_cv_struct_timezone, + [AC_TRY_COMPILE([ +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif], [struct timezone tz;], + [ac_cv_struct_timezone=yes], + [ac_cv_struct_timezone=no])]) +if test $ac_cv_struct_timezone = yes; then + AC_DEFINE(HAVE_STRUCT_TIMEZONE) +fi]) + +dnl Checks for type time_t +dnl Defines time_t to long on failure. +AC_DEFUN([AC_TYPE_TIME_T], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CACHE_CHECK([for time_t], ac_cv_type_time_t, + [AC_TRY_COMPILE([ +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif], [time_t t;], + [ac_cv_type_time_t=yes], + [ac_cv_type_time_t=no])]) +if test $ac_cv_type_time_t = no; then + AC_DEFINE(time_t, long) +fi]) + +dnl AC_CHECK_SIZE_TIME([CROSS-SIZE]) +dnl This must be called past AC_CHECK_SIZEOF(long int) +AC_DEFUN(AC_CHECK_SIZE_TIME_T, +[changequote(<<, >>)dnl +dnl The name to #define. +define(<>, translit(sizeof_time_t, [a-z *], [A-Z_P]))dnl +dnl The cache variable name. +define(<>, translit(ac_cv_sizeof_time_t, [ *], [_p]))dnl +changequote([, ])dnl +AC_MSG_CHECKING(size of time_t) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(time_t)); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=SIZEOF_LONG_INT, ifelse([$1], , , AC_CV_NAME=$1))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) +undefine([AC_TYPE_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + +dnl AC_CHECK_SIZE_WCHAR([CROSS-SIZE]) +AC_DEFUN(AC_CHECK_SIZE_WCHAR, +[changequote(<<, >>)dnl +dnl The name to #define. +define(<>, translit(sizeof_wchar, [a-z *], [A-Z_P]))dnl +dnl The cache variable name. +define(<>, translit(ac_cv_sizeof_wchar, [ *], [_p]))dnl +changequote([, ])dnl +AC_MSG_CHECKING(size of wchar) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(L'a')); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$1], , , AC_CV_NAME=$1))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) +undefine([AC_TYPE_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + +dnl AC_CHECK_SIZE_WCHAR([CROSS-SIZE]) +AC_DEFUN(AC_CHECK_SIZE_WCHAR_T, +[changequote(<<, >>)dnl +dnl The name to #define. +define(<>, translit(sizeof_wchar_t, [a-z *], [A-Z_P]))dnl +dnl The cache variable name. +define(<>, translit(ac_cv_sizeof_wchar_t, [ *], [_p]))dnl +changequote([, ])dnl +AC_MSG_CHECKING(size of wchar_t) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#ifdef HAVE_WCHAR_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(wchar_t)); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=SIZEOF_CHAR, ifelse([$1], , , AC_CV_NAME=$1))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) +undefine([AC_TYPE_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + + +dnl Checks for type clock_t +dnl Defines clock_t to long on failure. +dnl XXX we cannot check for AC_CHECK_HEADERS(sys/times.h) +AC_DEFUN([AC_TYPE_CLOCK_T], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CACHE_CHECK([for clock_t], ac_cv_type_clock_t, + [AC_TRY_COMPILE([ +#include +/* + * time.h is needed because of a bug in Next Step. + * Next Step needs time.h for clock_t + */ +#ifdef TIME_WITH_SYS_TIME +# ifndef _INCL_SYS_TIME_H +# include +# define _INCL_SYS_TIME_H +# endif +# ifndef _INCL_TIME_H +# include +# define _INCL_TIME_H +# endif +#else +#ifdef HAVE_SYS_TIME_H +# ifndef _INCL_SYS_TIME_H +# include +# define _INCL_SYS_TIME_H +# endif +#else +# ifndef _INCL_TIME_H +# include +# define _INCL_TIME_H +# endif +#endif +#endif +#ifdef HAVE_SYS_TIMES_H +#include +#endif + ], [clock_t t;], + [ac_cv_type_clock_t=yes], + [ac_cv_type_clock_t=no])]) +if test $ac_cv_type_clock_t = no; then + AC_DEFINE(clock_t, long) +fi]) + +dnl Checks for type socklen_t +dnl Defines socklen_t to int on failure. +AC_DEFUN([AC_TYPE_SOCKLEN_T], +[AC_REQUIRE([AC_HEADER_STDC])dnl +AC_MSG_CHECKING(for socklen_t) +AC_CACHE_VAL(ac_cv_type_socklen_t, +[AC_EGREP_CPP(dnl +changequote(<<,>>)dnl +<<(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]>>dnl +changequote([,]), [#include +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +#include ], ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)])dnl +AC_MSG_RESULT($ac_cv_type_socklen_t) +if test $ac_cv_type_socklen_t = no; then + AC_DEFINE(socklen_t, int) +fi]) + +dnl Checks for type stack_t +dnl Defines HAVE_STACK_T on success. +AC_DEFUN([AC_TYPE_STACK_T], +[AC_CACHE_CHECK([if stack_t is declared in signal.h], ac_cv_stack_t, + [AC_TRY_COMPILE([#include ], + [stack_t ss; ss.ss_size = 0;], + [ac_cv_stack_t=yes], + [ac_cv_stack_t=no])]) +if test $ac_cv_stack_t = yes; then + AC_DEFINE(HAVE_STACK_T) +fi]) + +dnl Checks for type siginfo_t +dnl Defines HAVE_SIGINFO_T on success. +AC_DEFUN([AC_TYPE_SIGINFO_T], +[AC_CACHE_CHECK([if siginfo_t is declared in signal.h], ac_cv_siginfo_t, + [AC_TRY_COMPILE([#include +#ifdef HAVE_SIGINFO_H +#include +#else +#ifdef HAVE_SYS_SIGINFO_H +#include +#endif +#endif], + [siginfo_t si; si.si_signo = 0;], + [ac_cv_siginfo_t=yes], + [ac_cv_siginfo_t=no])]) +if test $ac_cv_siginfo_t = yes; then + AC_DEFINE(HAVE_SIGINFO_T) +fi]) + +dnl Checks for type struct sockaddr_storage +dnl Defines HAVE_SOCKADDR_STORAGE on success. +AC_DEFUN([AC_STRUCT_SOCKADDR_STORAGE], +[AC_CACHE_CHECK([if struct sockaddr_storage is declared in socket.h], ac_cv_struct_sockaddr_storage, + [AC_TRY_COMPILE([#include ], + [struct sockaddr_storage ss; ss.ss_family = 0;], + [ac_cv_struct_sockaddr_storage=yes], + [ac_cv_struct_sockaddr_storage=no])]) +if test $ac_cv_struct_sockaddr_storage = yes; then + AC_DEFINE(HAVE_SOCKADDR_STORAGE) +fi]) + +dnl Checks for type long long +dnl Defines HAVE_LONGLONG on success. +AC_DEFUN([AC_TYPE_LONGLONG], +[AC_CACHE_CHECK([for type long long], ac_cv_type_longlong, + [AC_TRY_COMPILE([], [long long i;], + [ac_cv_type_longlong=yes], + [ac_cv_type_longlong=no])]) +if test $ac_cv_type_longlong = yes; then + AC_DEFINE(HAVE_LONGLONG) +fi]) + +dnl Checks for type __int64 +dnl Defines HAVE___INT64 on success. +AC_DEFUN([AC_TYPE___INT64], +[AC_CACHE_CHECK([for type __int64], ac_cv_type___int64, + [AC_TRY_COMPILE([], [__int64 i;], + [ac_cv_type___int64=yes], + [ac_cv_type___int64=no])]) +if test $ac_cv_type___int64 = yes; then + AC_DEFINE(HAVE___INT64) +fi]) + +dnl Checks for type long double +dnl Defines HAVE_LONGDOUBLE on success. +AC_DEFUN([AC_TYPE_LONGDOUBLE], +[AC_CACHE_CHECK([for type long double], ac_cv_type_longdouble, + [AC_TRY_COMPILE([], [long double ld;], + [ac_cv_type_longdouble=yes], + [ac_cv_type_longdouble=no])]) +if test $ac_cv_type_longdouble = yes; then + AC_DEFINE(HAVE_LONGDOUBLE) +fi]) + +dnl Checks if C-compiler orders bitfields htol +dnl Defines BITFIELDS_HTOL on success. +AC_DEFUN([AC_C_BITFIELDS], +[AC_CACHE_CHECK([whether bitorder in bitfields is htol], ac_cv_c_bitfields_htol, + [AC_TRY_RUN([ +struct { + unsigned char x1:4; + unsigned char x2:4; +} a; +int +main() +{ +char *cp; + +cp = (char *)&a; +*cp = 0x12; +exit(a.x1 == 2);}], + [ac_cv_c_bitfields_htol=yes], + [ac_cv_c_bitfields_htol=no])]) +if test $ac_cv_c_bitfields_htol = yes; then + AC_DEFINE(BITFIELDS_HTOL) +fi]) + +dnl Checks if C-compiler understands prototypes +dnl Defines PROTOTYPES on success. +AC_DEFUN([AC_TYPE_PROTOTYPES], +[AC_CACHE_CHECK([for prototypes], ac_cv_type_prototypes, + [AC_TRY_RUN([ +doit(int i, ...) +{return 0;} +int +main(int ac, char *av[]) +{ doit(1, 2, 3); +exit(0);}], + [ac_cv_type_prototypes=yes], + [ac_cv_type_prototypes=no])]) +if test $ac_cv_type_prototypes = yes; then + AC_DEFINE(PROTOTYPES) +fi]) + +dnl Checks for type size_t +dnl Defines HAVE_SIZE_T_ on success. +AC_DEFUN([AC_TYPE_SIZE_T_], +[AC_CACHE_CHECK([for type size_t], ac_cv_type_size_t_, + [AC_TRY_COMPILE([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#ifdef HAVE_STDDEF_H +#include +#endif +#ifdef HAVE_STDIO_H +#include +#endif + ], [size_t s;], + [ac_cv_type_size_t_=yes], + [ac_cv_type_size_t_=no])]) +if test $ac_cv_type_size_t_ = yes; then + AC_DEFINE(HAVE_SIZE_T) +else + AC_DEFINE(NO_SIZE_T) +fi]) + +dnl Checks if type char is unsigned +dnl Defines CHAR_IS_UNSIGNED on success. +AC_DEFUN([AC_TYPE_CHAR], +[AC_CACHE_CHECK([if char is unsigned], ac_cv_type_char_unsigned, + [AC_TRY_RUN([ +int +main() +{ + char c; + + c = -1; + exit(c < 0);}], + [ac_cv_type_char_unsigned=yes], + [ac_cv_type_char_unsigned=no], + [ac_cv_type_char_unsigned=no])]) +if test $ac_cv_type_char_unsigned = yes; then + AC_DEFINE(CHAR_IS_UNSIGNED) +fi]) + +dnl Checks if function/macro va_copy() is available +dnl Defines HAVE_VA_COPY on success. +AC_DEFUN([AC_FUNC_VA_COPY], +[AC_CACHE_CHECK([for va_copy], ac_cv_func_va_copy, + [AC_TRY_LINK([ +#ifdef HAVE_STDARG_H +# include +#else +# include +#endif], + [ +va_list a, b; + +va_copy(a, b);], + [ac_cv_func_va_copy=yes], + [ac_cv_func_va_copy=no])]) +if test $ac_cv_func_va_copy = yes; then + AC_DEFINE(HAVE_VA_COPY) +fi]) + +dnl Checks if function/macro __va_copy() is available +dnl Defines HAVE__VA_COPY on success. +AC_DEFUN([AC_FUNC__VA_COPY], +[AC_CACHE_CHECK([for __va_copy], ac_cv_func__va_copy, + [AC_TRY_LINK([ +#ifdef HAVE_STDARG_H +# include +#else +# include +#endif], + [ +va_list a, b; + +__va_copy(a, b);], + + [ac_cv_func__va_copy=yes], + [ac_cv_func__va_copy=no])]) +if test $ac_cv_func__va_copy = yes; then + AC_DEFINE(HAVE__VA_COPY) +fi]) + +dnl Checks if va_list is an array +dnl Defines VA_LIST_IS_ARRAY on success. +AC_DEFUN([AC_TYPE_VA_LIST], +[AC_CACHE_CHECK([if va_list is an array], ac_cv_type_va_list_array, + [AC_TRY_LINK([ +#ifdef HAVE_STDARG_H +# include +#else +# include +#endif +], + [ +va_list a, b; + +a = b;], + [ac_cv_type_va_list_array=no], + [ac_cv_type_va_list_array=yes])]) +if test $ac_cv_type_va_list_array = yes; then + AC_DEFINE(VA_LIST_IS_ARRAY) +fi]) + +dnl Checks if quotactl is present as ioctl +dnl Defines HAVE_QUOTAIOCTL on success. +AC_DEFUN([AC_FUNC_QUOTAIOCTL], +[AC_CACHE_CHECK([if quotactl is an ioctl], ac_cv_func_quotaioctl, + [AC_TRY_LINK([#include +#include ], + [struct quotctl q; ioctl(0, Q_QUOTACTL, &q)], + [ac_cv_func_quotaioctl=yes], + [ac_cv_func_quotaioctl=no])]) +if test $ac_cv_func_quotaioctl = yes; then + AC_DEFINE(HAVE_QUOTAIOCTL) +fi]) + +dnl Checks if function __dtoa() is available +dnl Defines HAVE_DTOA on success. +AC_DEFUN([AC_FUNC_DTOA], +[AC_CACHE_CHECK([for __dtoa], ac_cv_func_dtoa, + [AC_TRY_LINK([extern char *__dtoa();], +[int decpt; int sign; char *ep; char *bp; +bp = __dtoa(0.0, 2, 6, &decpt, &sign, &ep);], + [ac_cv_func_dtoa=yes], + [ac_cv_func_dtoa=no])]) +if test $ac_cv_func_dtoa = yes; then + AC_DEFINE(HAVE_DTOA) +fi]) + +dnl Checks if reentrant __dtoa() exists (needs a result prt) +dnl Defines HAVE_DTOA_R on success. +AC_DEFUN([AC_FUNC_DTOA_R], +[AC_REQUIRE([AC_FUNC_DTOA])dnl +AC_CACHE_CHECK([for __dtoa that needs result ptr], ac_cv_func_dtoa_r, + [AC_TRY_RUN([ +extern char *__dtoa(); +int +main() +{ +#ifdef HAVE_DTOA + int decpt, sign; + char *bp; + char *ep; + char *result; + + result = 0; + bp = __dtoa(1.9, 2, 5, &decpt, &sign, &ep, &result); + exit(result == 0); +#else + exit(1); +#endif +}], + [ac_cv_func_dtoa_r=yes], + [ac_cv_func_dtoa_r=no])]) +if test $ac_cv_func_dtoa_r = yes; then + AC_DEFINE(HAVE_DTOA_R) +fi]) + +dnl Checks if working ecvt() exists +dnl Defines HAVE_ECVT on success. +AC_DEFUN([AC_FUNC_ECVT], +[AC_CACHE_CHECK([for working ecvt() ], ac_cv_func_ecvt, + [AC_TRY_RUN([ +extern char *ecvt(); + +sprintf(s) + char *s; +{ + strcpy(s, "DEAD"); +} + +int +main() +{ + int a, b; + +/* exit (strcmp("DEAD", ecvt(1.9, 2, &a, &b)) == 0);*/ + exit (strcmp("19", ecvt(1.9, 2, &a, &b)) != 0); +}], + [ac_cv_func_ecvt=yes], + [ac_cv_func_ecvt=no])]) +if test $ac_cv_func_ecvt = yes; then + AC_DEFINE(HAVE_ECVT) +fi]) + +dnl Checks if working fcvt() exists +dnl Defines HAVE_FCVT on success. +AC_DEFUN([AC_FUNC_FCVT], +[AC_CACHE_CHECK([for working fcvt() ], ac_cv_func_fcvt, + [AC_TRY_RUN([ +extern char *fcvt(); + +sprintf(s) + char *s; +{ + strcpy(s, "DEAD"); +} + +int +main() +{ + int a, b; + +/* exit (strcmp("DEAD", fcvt(1.9, 2, &a, &b)) == 0);*/ + exit (strcmp("190", fcvt(1.9, 2, &a, &b)) != 0); +}], + [ac_cv_func_fcvt=yes], + [ac_cv_func_fcvt=no])]) +if test $ac_cv_func_fcvt = yes; then + AC_DEFINE(HAVE_FCVT) +fi]) + +dnl Checks if working gcvt() exists +dnl Defines HAVE_GCVT on success. +AC_DEFUN([AC_FUNC_GCVT], +[AC_CACHE_CHECK([for working gcvt() ], ac_cv_func_gcvt, + [AC_TRY_RUN([ +extern char *gcvt(); + +sprintf(s) + char *s; +{ + strcpy(s, "DEAD"); +} + +int +main() +{ + char buf[32]; + +/* exit (strcmp("DEAD", gcvt(1.9, 10, buf)) == 0);*/ + exit (strcmp("1.9", gcvt(1.9, 10, buf)) != 0); +}], + [ac_cv_func_gcvt=yes], + [ac_cv_func_gcvt=no])]) +if test $ac_cv_func_gcvt = yes; then + AC_DEFINE(HAVE_GCVT) +fi]) + +dnl Checks if function uname() is available +dnl Defines HAVE_UNAME on success. +AC_DEFUN([AC_FUNC_UNAME], +[AC_CACHE_CHECK([for uname], ac_cv_func_uname, + [AC_TRY_LINK([#include ], +[struct utsname un; +uname(&un);], + [ac_cv_func_uname=yes], + [ac_cv_func_uname=no])]) +if test $ac_cv_func_uname = yes; then + AC_DEFINE(HAVE_UNAME) +fi]) + +dnl Checks if function mlock() is available +dnl beware HP-UX 10.x it contains a bad mlock() in libc +dnl Defines HAVE_MLOCK on success. +AC_DEFUN([AC_FUNC_MLOCK], +[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl +AC_CACHE_CHECK([for mlock], ac_cv_func_mlock, + [AC_TRY_RUN([ +#include +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +main() +{ + if (mlock(0, 0) < 0) { + if (errno == EINVAL || errno == ENOMEM || + errno == EPERM || errno == EACCES) + exit(0); + exit(-1); + } + exit(0); +}], + [ac_cv_func_mlock=yes], + [ac_cv_func_mlock=no]) +rm -f core core.* *.core]) +if test $ac_cv_func_mlock = yes; then + AC_DEFINE(HAVE_MLOCK) +fi]) + +dnl Checks if function mlockall() is available +dnl beware HP-UX 10.x it contains a bad mlockall() in libc +dnl Defines HAVE_MLOCKALL on success. +AC_DEFUN([AC_FUNC_MLOCKALL], +[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl +AC_CACHE_CHECK([for mlockall], ac_cv_func_mlockall, + [AC_TRY_RUN([ +#include +#include +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +int +main() +{ + if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { + if (errno == EINVAL || errno == ENOMEM || + errno == EPERM || errno == EACCES) + exit(0); + exit(-1); + } + exit(0); +} +], + [ac_cv_func_mlockall=yes], + [ac_cv_func_mlockall=no]) +rm -f core core.* *.core]) +if test $ac_cv_func_mlockall = yes; then + AC_DEFINE(HAVE_MLOCKALL) +fi]) + +AC_DEFUN([jsAC_FUNC_MMAP], +[AC_REQUIRE([AC_MMAP_SIZEP])dnl +AC_CHECK_HEADERS(unistd.h) +AC_CHECK_FUNCS(getpagesize) +AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, +[AC_TRY_RUN([ +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the filesystem buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propogated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ +#include +#include +#include + +/* + * Needed for Apollo Domain/OS and may be for others? + */ +#ifdef _MMAP_WITH_SIZEP +# define mmap_sizeparm(s) (&(s)) +#else +# define mmap_sizeparm(s) (s) +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +int +main() +{ + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + data2 = malloc(2 * pagesize); + if (!data2) + exit(1); + data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); + if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + /* + * Finally, make sure that changes to the mapped area + * do not percolate back to the file as seen by read(). + * (This is a bug on some variants of i386 svr4.0.) + */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = malloc(pagesize); + if (!data3) + exit(1); + if (read(fd, data3, pagesize) != pagesize) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + exit(1); + close(fd); + unlink("conftestmmap"); + exit(0); +} +], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no, +ac_cv_func_mmap_fixed_mapped=no)]) +if test $ac_cv_func_mmap_fixed_mapped = yes; then + AC_DEFINE(HAVE_MMAP) +fi +]) + +AC_DEFUN([AC_MMAP_SIZEP], +[AC_CHECK_HEADERS(unistd.h) +AC_CHECK_FUNCS(getpagesize) +AC_CACHE_CHECK(for mmap that needs ptr to size, ac_cv_func_mmap_sizep, +[AC_TRY_RUN([ +#include +#include +#include +#include +#include + +#ifndef MAP_FILE +#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +jmp_buf jenv; + +int +intr() +{ + signal(SIGSEGV, intr); + longjmp(jenv, 1); +} + +int +main() +{ + char *data, *data2; + int i, pagesize, ps; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + + /* + * Keep a copy, Apollo modifies the value... + */ + ps = pagesize; + + /* + * Apollo mmap() is not a syscall but a library function and fails + * if it tries to dereference 'ps'. We must use setjmp in order to + * catch the failure. + */ + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 != (char *)-1) + exit(1); + + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 == (char *)-1) + exit(1); + + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + close(fd); + unlink("conftestmmap"); + exit(0); +} +], ac_cv_func_mmap_sizep=yes, ac_cv_func_mmap_sizep=no, +ac_cv_func_mmap_sizep=no)]) +if test $ac_cv_func_mmap_sizep = yes; then + AC_DEFINE(_MMAP_WITH_SIZEP) +fi +]) + +dnl Checks if mmap() works to get shared memory +dnl Defines HAVE_SMMAP on success. +AC_DEFUN([AC_FUNC_SMMAP], +[AC_CACHE_CHECK([if mmap works to get shared memory], ac_cv_func_smmap, + [AC_TRY_RUN([ +#include +#include + +#ifndef MAP_ANONYMOUS +# ifdef MAP_ANON +# define MAP_ANONYMOUS MAP_ANON +# endif +#endif + +/* + * Needed for Apollo Domain/OS and may be for others? + */ +#ifdef _MMAP_WITH_SIZEP +# define mmap_sizeparm(s) (&(s)) +#else +# define mmap_sizeparm(s) (s) +#endif + +char * +mkshare() +{ + int size = 8192; + int f; + char *addr; + +#ifdef MAP_ANONYMOUS /* HP/UX */ + f = -1; + addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); +#else + if ((f = open("/dev/zero", 2)) < 0) + exit(1); + addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); +#endif + if (addr == (char *)-1) + exit(1); + close(f); + + return (addr); +} + +int +main() +{ + char *addr; + + addr = mkshare(); + *addr = 'I'; + + switch (fork()) { + + case -1: + printf("help\n"); exit(1); + + case 0: /* child */ + *addr = 'N'; + _exit(0); + break; + default: /* parent */ + wait(0); + sleep(1); + break; + } + + if (*addr != 'N') + exit(1); + exit(0); +} +], + [ac_cv_func_smmap=yes], + [ac_cv_func_smmap=no], + [ac_cv_func_smmap=no])]) +if test $ac_cv_func_smmap = yes; then + AC_DEFINE(HAVE_SMMAP) +fi]) + +dnl Checks if shmget() works to get shared memory +dnl Defines HAVE_SHMGET on success. +AC_DEFUN([AC_FUNC_SHMGET], +[AC_CACHE_CHECK([if shmget works to get shared memory], ac_cv_func_shmget, + [AC_TRY_RUN([ +#include +#include +#include +int +main() +{ + int id; + + id = shmget(IPC_PRIVATE, 0x1, IPC_CREAT|0600); + if (id == -1) + exit(1); + shmctl(id, IPC_RMID, 0); + exit(0); +} +], + [ac_cv_func_shmget=yes], + [ac_cv_func_shmget=no], + [ac_cv_func_shmget=no])]) +if test $ac_cv_func_shmget = yes; then + AC_DEFINE(HAVE_SHMGET) +fi]) + +dnl Checks if sys_siglist[] exists +dnl Defines HAVE_SYS_SIGLIST on success. +AC_DEFUN([AC_FUNC_SYS_SIGLIST], +[AC_CACHE_CHECK([for sys_siglist], ac_cv_func_sys_siglist, + [AC_TRY_RUN([ +int +main() +{ extern char *sys_siglist[]; +if (sys_siglist[1] == 0) + exit(1); +exit(0);}], + [ac_cv_func_sys_siglist=yes], + [ac_cv_func_sys_siglist=no])]) +if test $ac_cv_func_sys_siglist = yes; then + AC_DEFINE(HAVE_SYS_SIGLIST) +fi]) + +dnl Checks for maximum number of bits in minor device number +AC_DEFUN([AC_CHECK_MINOR_BITS], +[AC_REQUIRE([AC_HEADER_MAKEDEV])dnl +changequote(<<, >>)dnl +define(<>, DEV_MINOR_BITS)dnl +dnl The cache variable name. +define(<>, ac_cv_dev_minor_bits)dnl +changequote([, ])dnl +AC_MSG_CHECKING(bits in minor device number) +AC_CACHE_VAL(AC_CV_NAME, +[AC_TRY_RUN([#include +#include +#ifdef major +# define _FOUND_MAJOR_ +#endif + +#ifdef MAJOR_IN_MKDEV +# include +# define _FOUND_MAJOR_ +#endif + +#ifndef _FOUND_MAJOR_ +# ifdef MAJOR_IN_SYSMACROS +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# if defined(hpux) || defined(__hpux__) || defined(__hpux) +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# define major(dev) (((dev) >> 8) & 0xFF) +# define minor(dev) ((dev) & 0xFF) +# define makedev(majo, mino) (((majo) << 8) | (mino)) +#endif +int +main() +{ + long l = 1; + int i; + int m; + int c = 0; + FILE *f=fopen("conftestval", "w"); + int maxloop = 32; + + if (sizeof (long) > 4) + maxloop = 64; + + if (!f) exit(1); + + for (i=1, m=0; i <= maxloop; i++, l<<=1) { + if (minor(l) == 0 && c == 0) + c = m; + if (minor(l) != 0) + m = i; + } + fprintf(f, "%d\n", m); + exit(0); +}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl +AC_MSG_RESULT($AC_CV_NAME) +AC_DEFINE_UNQUOTED(AC_MACRO_NAME, $AC_CV_NAME) +undefine([AC_MACRO_NAME])dnl +undefine([AC_CV_NAME])dnl +]) + +dnl Checks for maximum number of bits in minor device numbers are non contiguous +dnl Defines DEV_MINOR_NONCONTIG on success. +AC_DEFUN([AC_CHECK_MINOR_NONCONTIG], +[AC_REQUIRE([AC_HEADER_MAKEDEV])dnl +AC_CACHE_CHECK([whether bits in minor device numbers are non contiguous], ac_cv_dev_minor_noncontig, + [AC_TRY_RUN([ +#include +#ifdef major +# define _FOUND_MAJOR_ +#endif + +#ifdef MAJOR_IN_MKDEV +# include +# define _FOUND_MAJOR_ +#endif + +#ifndef _FOUND_MAJOR_ +# ifdef MAJOR_IN_SYSMACROS +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# if defined(hpux) || defined(__hpux__) || defined(__hpux) +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# define major(dev) (((dev) >> 8) & 0xFF) +# define minor(dev) ((dev) & 0xFF) +# define makedev(majo, mino) (((majo) << 8) | (mino)) +#endif +int +main() +{ + long l = 1; + int i; + int m; + int c = 0; + int maxloop = 32; + + if (sizeof (long) > 4) + maxloop = 64; + + for (i=1, m=0; i <= maxloop; i++, l<<=1) { + if (minor(l) == 0 && c == 0) + c = m; + if (minor(l) != 0) + m = i; + } +exit (m == c);}], + [ac_cv_dev_minor_noncontig=yes], + [ac_cv_dev_minor_noncontig=no])]) +if test $ac_cv_dev_minor_noncontig = yes; then + AC_DEFINE(DEV_MINOR_NONCONTIG) +fi]) + +dnl Checks if we may not define our own malloc() +dnl Defines NO_USER_MALLOC if we cannot. +AC_DEFUN([AC_USER_MALLOC], +[AC_CACHE_CHECK([if we may not define our own malloc()], ac_cv_no_user_malloc, + [AC_TRY_RUN([ +static int mcalled; +char * +malloc(s) + int s; +{ + extern char *sbrk(); + + /* + * Don't ask me why, but with Cygwin on 64 Bit Vista this hangs + * infinitely and is undebuggable unless we call write() here... + */ + write(2, "", 0); + mcalled++; + _exit(0); + return (sbrk(s)); +} + +free(p) char *p;{} + +main() +{ +#ifdef HAVE_STRDUP + strdup("aaa"); +#else + exit(0); +#endif + exit(1);}], + [ac_cv_no_user_malloc=no], + [ac_cv_no_user_malloc=yes])]) +if test $ac_cv_no_user_malloc = yes; then + AC_DEFINE(NO_USER_MALLOC) +fi]) + +dnl Checks if ecvt()/fcvt()/gcvt() may be replaced by local implementations +dnl There are known problems on ATARI MINT and older Linux version and statical linking +dnl Defines NO_USER_XCVT on failure. +AC_DEFUN([AC_USER_XCVT], +[AC_CACHE_CHECK([if we may not define our own ecvt()/fcvt()/gcvt()], ac_cv_no_user_xcvt, + [AC_TRY_LINK([ +#include + +char * +ecvt(value, ndig, decpt, sign) + double value; + int ndig; + int *decpt; + int *sign; +{ + return ("ecvt-test"); +} + +char * +fcvt(value, ndig, decpt, sign) + double value; + int ndig; + int *decpt; + int *sign; +{ + return ("fcvt-test"); +} + +char * +gcvt(value, ndig, bp) + double value; + int ndig; + char *bp; +{ + return ("gcvt-test"); +} +], + [ + char buf[64]; + + printf("E: %e F: %f G: %g local gcvt: %s\n", 1.234, 1.234, 1.234, gcvt(1.234, 4, buf)); +], + [ac_cv_no_user_xcvt=no], + [ac_cv_no_user_xcvt=yes])]) +if test $ac_cv_no_user_xcvt = yes; then + AC_DEFINE(NO_USER_XCVT) +fi]) + +dnl Checks if BSD-4.2 compliant getpgrp() exists +dnl Defines HAVE_BSD_GETPGRP on success. +AC_DEFUN([AC_FUNC_BSD_GETPGRP], +[AC_CACHE_CHECK([for BSD compliant getpgrp], ac_cv_func_bsd_getpgrp, + [AC_TRY_RUN([ +int +main() +{ long p; +/* + * POSIX getpgrp() has void parameter... + */ + p = getpgrp(-1); + if (p == getpgrp(1) && p == getpgrp(getpid())) + exit(1); +exit(0);}], + [ac_cv_func_bsd_getpgrp=yes], + [ac_cv_func_bsd_getpgrp=no])]) +if test $ac_cv_func_bsd_getpgrp = yes; then + AC_DEFINE(HAVE_BSD_GETPGRP) +fi]) + +dnl Checks if BSD-4.2 compliant setpgrp() exists +dnl Defines HAVE_BSD_SETPGRP on success. +AC_DEFUN([AC_FUNC_BSD_SETPGRP], +[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl +AC_CACHE_CHECK([for BSD compliant setpgrp], ac_cv_func_bsd_setpgrp, + [AC_TRY_RUN([ +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif +int +main() +{ errno = 0; +/* + * Force illegal pid on BSD + */ +if (setpgrp(-1, 100) < 0 && errno == ESRCH) + exit(0); +exit(1);}], + [ac_cv_func_bsd_setpgrp=yes], + [ac_cv_func_bsd_setpgrp=no])]) +if test $ac_cv_func_bsd_setpgrp = yes; then + AC_DEFINE(HAVE_BSD_SETPGRP) +fi]) + +dnl Checks if C99 compliant isinf() exists +dnl Defines HAVE_C99_ISINF on success. +AC_DEFUN([AC_FUNC_C99_ISINF], +[AC_CACHE_CHECK([for C99 compliant isinf], ac_cv_func_c99_isinf, + [AC_TRY_LINK([#include ], [ double d; +#ifndef isinf +The isinf macro is not defined +#endif +return (isinf(d)); +], + [ac_cv_func_c99_isinf=yes], + [ac_cv_func_c99_isinf=no])]) +if test $ac_cv_func_c99_isinf = yes; then + AC_DEFINE(HAVE_C99_ISINF) +fi]) + +dnl Checks if C99 compliant isnan() exists +dnl Defines HAVE_C99_ISNAN on success. +AC_DEFUN([AC_FUNC_C99_ISNAN], +[AC_CACHE_CHECK([for C99 compliant isnan], ac_cv_func_c99_isnan, + [AC_TRY_LINK([#include ], [ double d; +#ifndef isnan +The isnan macro is not defined +#endif +return (isnan(d)); +], + [ac_cv_func_c99_isnan=yes], + [ac_cv_func_c99_isnan=no])]) +if test $ac_cv_func_c99_isnan = yes; then + AC_DEFINE(HAVE_C99_ISNAN) +fi]) + +dnl Checks if select() needs more than sys/time.h & sys/types.h +dnl Defines SELECT_NONSTD_HDR on success. +AC_DEFUN([AC_HEADER_SELECT_NONSTD], +[AC_CACHE_CHECK([if select needs nonstd include files], ac_cv_header_slect_nonstd_hdr, + [AC_TRY_COMPILE([#include +#include ], + [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], + [ac_cv_header_slect_nonstd_hdr=no], + [ac_cv_header_slect_nonstd_hdr=yes])]) +if test $ac_cv_header_slect_nonstd_hdr = yes; then + AC_DEFINE(SELECT_NONSTD_HDR) +fi]) + +dnl Checks if select() needs sys/select.h +dnl Defines NEED_SYS_SELECT_H on success. +AC_DEFUN([AC_HEADER_SYS_SELECT], +[AC_REQUIRE([AC_HEADER_SELECT_NONSTD])dnl +AC_CACHE_CHECK([if sys/select.h is needed for select], ac_cv_header_need_sys_select_h, + [AC_TRY_COMPILE([#include +#include +#include +#ifndef SELECT_NONSTD_HDR +do not compile if we do not need nonstandard headers +#endif], + [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], + [ac_cv_header_need_sys_select_h=yes], + [ac_cv_header_need_sys_select_h=no])]) +if test $ac_cv_header_need_sys_select_h = yes; then + AC_DEFINE(NEED_SYS_SELECT_H) +fi]) + +dnl Checks if select() needs sys/socket.h +dnl Defines NEED_SYS_SOCKET_H on success. +AC_DEFUN([AC_HEADER_SELECT2], +[AC_REQUIRE([AC_HEADER_SELECT_NONSTD])dnl +AC_CACHE_CHECK([if sys/socket.h is needed for select], ac_cv_header_need_sys_socket_h, + [AC_TRY_COMPILE([#include +#include +#include +#ifndef SELECT_NONSTD_HDR +do not compile if we do not need nonstandard headers +#endif], + [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], + [ac_cv_header_need_sys_socket_h=yes], + [ac_cv_header_need_sys_socket_h=no])]) +if test $ac_cv_header_need_sys_socket_h = yes; then + AC_DEFINE(NEED_SYS_SOCKET_H) +fi]) + +dnl Checks if file locking via fcntl() is available +dnl Defines HAVE_FCNTL_LOCKF on success. +AC_DEFUN([AC_FUNC_FCNTL_LOCKF], +[AC_CACHE_CHECK([for file locking via fcntl], ac_cv_func_fcntl_lock, + [AC_TRY_LINK([ +#include +#include ], + [ +struct flock fl; +fcntl(0, F_SETLK, &fl);], + [ac_cv_func_fcntl_lock=yes], + [ac_cv_func_fcntl_lock=no])]) +if test $ac_cv_func_fcntl_lock = yes; then + AC_DEFINE(HAVE_FCNTL_LOCKF) +fi]) + + +dnl Checks if sigsetjmp() is available +dnl Defines HAVE_SIGSETJMP on success. +AC_DEFUN([AC_FUNC_SIGSETJMP], +[AC_CACHE_CHECK([for sigsetjmp], ac_cv_func_sigsetjmp, + [AC_TRY_LINK([ +#include ], + [ +sigjmp_buf jb; +sigsetjmp(jb, 1);], + [ac_cv_func_sigsetjmp=yes], + [ac_cv_func_sigsetjmp=no])]) +if test $ac_cv_func_sigsetjmp = yes; then + AC_DEFINE(HAVE_SIGSETJMP) +fi]) + +dnl Checks if siglongjmp() is available +dnl Defines HAVE_SIGLONGJMP on success. +AC_DEFUN([AC_FUNC_SIGLONGJMP], +[AC_CACHE_CHECK([for siglongjmp], ac_cv_func_siglongjmp, + [AC_TRY_LINK([ +#include ], + [ +sigjmp_buf jb; +sigsetjmp(jb, 1); +siglongjmp(jb, 1);], + [ac_cv_func_siglongjmp=yes], + [ac_cv_func_siglongjmp=no])]) +if test $ac_cv_func_siglongjmp = yes; then + AC_DEFINE(HAVE_SIGLONGJMP) +fi]) + + +dnl Checks if link() allows hard links on symlinks +dnl Defines HAVE_HARD_SYMLINKS on success. +AC_DEFUN([AC_HARD_SYMLINKS], +[AC_CACHE_CHECK([if link() allows hard links on symlinks], ac_cv_hard_symlinks, + [AC_TRY_RUN([ +main() +{ + int ret = 0; + + unlink("confdefs.f1"); + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + if (symlink("confdefs.f1", "confdefs.l1") < 0) + ret = 1; + if (link("confdefs.l1", "confdefs.h1") < 0) + ret = 1; + + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + exit(ret); +}], + [ac_cv_hard_symlinks=yes], + [ac_cv_hard_symlinks=no])]) +if test $ac_cv_hard_symlinks = yes; then + AC_DEFINE(HAVE_HARD_SYMLINKS) +fi]) + + +dnl Checks if link() does not follow symlinks +dnl Defines HAVE_LINK_NOFOLLOW on success. +AC_DEFUN([AC_LINK_NOFOLLOW], +[AC_CACHE_CHECK([if link() does not folow symlinks], ac_cv_link_nofollow, + [AC_TRY_RUN([ +#include +#include + +main() +{ + int ret = 0; + int f; + struct stat sb; + + unlink("confdefs.f1"); + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + f = creat("confdefs.f1", 0666); + close(f); + if (symlink("confdefs.f1", "confdefs.l1") < 0) + ret = 1; + if (link("confdefs.l1", "confdefs.h1") < 0) + ret = 1; + + stat("confdefs.f1", &sb); + if (sb.st_nlink == 2) + ret = 1; + + unlink("confdefs.f1"); + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + exit(ret); +}], + [ac_cv_link_nofollow=yes], + [ac_cv_link_nofollow=no])]) +if test $ac_cv_link_nofollow = yes; then + AC_DEFINE(HAVE_LINK_NOFOLLOW) +fi]) + +dnl Checks if access() does implement E_OK (010) for effective UIDs +dnl Defines HAVE_ACCESS_E_OK on success. +AC_DEFUN([AC_ACCESS_E_OK], +[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl +AC_CHECK_HEADERS(unistd.h) +AC_CACHE_CHECK([if access() does implement E_OK], ac_cv_access_e_ok, + [AC_TRY_RUN([ +# ifdef HAVE_UNISTD_H +# include +# endif +#ifndef R_OK +#define R_OK 4 /* Test for Read permission */ +#define W_OK 2 /* Test for Write permission */ +#define X_OK 1 /* Test for eXecute permission */ +#define F_OK 0 /* Test for existence of File */ +#endif + +#ifndef E_OK +#ifdef EFF_ONLY_OK +#define E_OK EFF_ONLY_OK /* Irix */ +#else +#ifdef EUID_OK +#define E_OK EUID_OK /* UNICOS (0400) */ +#else +#define E_OK 010 /* Test effective uids */ +#endif +#endif +#endif + +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +main() +{ +#ifdef _MSC_VER +/* + * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will + * cause an exception that results in a popup window. For this reason, the test + * is disabled for "cl", it would not work anyway. + */ + int ret = 1; +#else + int ret = 0; + + if (access(".", F_OK) != 0) + ret = 1; + else if (access(".", E_OK|F_OK) != 0) + ret = 1; + else if (access(".", (R_OK<<4)|F_OK) == 0) + ret = 1; +#endif + + exit(ret); +}], + [ac_cv_access_e_ok=yes], + [ac_cv_access_e_ok=no])]) +if test $ac_cv_access_e_ok = yes; then + AC_DEFINE(HAVE_ACCESS_E_OK) +fi]) + + +dnl XXXXXXXXXXXXXXXXXX Begin Stolen (but modified) from GNU tar XXXXXXXXXXXXXXXXXXXXXXXXXXX +dnl Changes: + +dnl One line has been changed to: [ac_save_CC="${CC-cc}" to default to "'cc" + +dnl AC_SYS_LARGEFILE_MACRO_VALUE test moved from AC_FUNC_FSEEKO into AC_SYS_LARGEFILE +dnl Do not call AC_FUNC_FSEEKO because it does not check whether fseeko() is +dnl available on non Large File mode. There are additionoal tests for fseeko()/ftello() +dnl inside the AC_HAVE_LARGEFILES test. + +dnl largefile_cc_opt definition added + +#serial 18 + +dnl By default, many hosts won't let programs access large files; +dnl one must use special compiler options to get large-file access to work. +dnl For more details about this brain damage please see: +dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html + +dnl Written by Paul Eggert . + +dnl Internal subroutine of AC_SYS_LARGEFILE. +dnl AC_SYS_LARGEFILE_TEST_INCLUDES +AC_DEFUN([AC_SYS_LARGEFILE_TEST_INCLUDES], + [[#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + ]]) + +dnl Internal subroutine of AC_SYS_LARGEFILE. +dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY) +AC_DEFUN([AC_SYS_LARGEFILE_MACRO_VALUE], + [AC_CACHE_CHECK([for $1 value needed for large files], $3, + [$3=no + AC_TRY_COMPILE([$5], + [$6], + , + [AC_TRY_COMPILE([#define $1 $2] +[$5] + , + [$6], + [$3=$2])])]) + if test "[$]$3" != no; then + AC_DEFINE_UNQUOTED([$1], [$]$3, [$4]) + fi]) + +AC_DEFUN([AC_SYS_LARGEFILE], + [AC_ARG_ENABLE(largefile, + [ --disable-largefile omit support for large files]) + if test "$enable_largefile" != no; then + + AC_CACHE_CHECK([for special C compiler options needed for large files], + ac_cv_sys_largefile_CC, + [ac_cv_sys_largefile_CC=no + largefile_cc_opt="" + if test "$GCC" != yes; then + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , , + [ac_save_CC="${CC-cc}" + CC="$CC -n32" + AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , + ac_cv_sys_largefile_CC=' -n32') + CC="$ac_save_CC"]) + fi]) + if test "$ac_cv_sys_largefile_CC" != no; then + CC="$CC$ac_cv_sys_largefile_CC" + largefile_cc_opt="$ac_cv_sys_largefile_CC" + fi + + AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64, + ac_cv_sys_file_offset_bits, + [Number of bits in a file offset, on hosts where this is settable.], + AC_SYS_LARGEFILE_TEST_INCLUDES) + AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1, + ac_cv_sys_large_files, + [Define for large files, on AIX-style hosts.], + AC_SYS_LARGEFILE_TEST_INCLUDES) + AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, + ac_cv_sys_largefile_source, + [Define to make fseeko visible on some hosts (e.g. glibc 2.2).], + [#include ], [return !fseeko;]) + fi + ]) + + +AC_DEFUN([AC_FUNC_FSEEKO], + [AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, + ac_cv_sys_largefile_source, + [Define to make fseeko visible on some hosts (e.g. glibc 2.2).], + [#include ], [return !fseeko;]) + # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug + # in glibc 2.1.3, but that breaks too many other things. + # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. + + AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko, + [ac_cv_func_fseeko=no + AC_TRY_LINK([#include ], + [return fseeko && fseeko (stdin, 0, 0);], + [ac_cv_func_fseeko=yes])]) + if test $ac_cv_func_fseeko != no; then + AC_DEFINE(HAVE_FSEEKO, 1, + [Define if fseeko (and presumably ftello) exists and is declared.]) + fi]) + + +dnl XXXXXXXXXXXXXXXXXX End Stolen (but modified) from GNU tar XXXXXXXXXXXXXXXXXXXXXXXXXXXXX + +AC_DEFUN([AC_HAVE_LARGEFILES], +[AC_CACHE_CHECK([if system supports Large Files at all], ac_cv_largefiles, + [AC_TRY_COMPILE([#include +#include ], + [ +/* + * Check that off_t can represent 2**63 - 1 correctly. + * We can't simply "#define LARGE_OFF_T 9223372036854775807", + * since some C++ compilers masquerading as C compilers + * incorrectly reject 9223372036854775807. + */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +return !fseeko; +return !ftello;], + [ac_cv_largefiles=yes], + [ac_cv_largefiles=no])]) + if test $ac_cv_largefiles = yes; then + AC_DEFINE(HAVE_LARGEFILES) + fi]) + +dnl Checks for whether fseeko() is available in non large file mode +dnl and whether there is a prototype for fseeko() +dnl Defines HAVE_FSEEKO on success. +AC_DEFUN([AC_SMALL_FSEEKO], +[AC_CACHE_CHECK([for fseeko()], ac_cv_func_fseeko, + [AC_TRY_LINK([#include ], +[return !fseeko;], + [ac_cv_func_fseeko=yes], + [ac_cv_func_fseeko=no])]) +if test $ac_cv_func_fseeko = yes; then + AC_DEFINE(HAVE_FSEEKO) +fi]) + +dnl Checks for whether ftello() is available in non large file mode +dnl and whether there is a prototype for ftello() +dnl Defines HAVE_FTELLO on success. +AC_DEFUN([AC_SMALL_FTELLO], +[AC_CACHE_CHECK([for ftello()], ac_cv_func_ftello, + [AC_TRY_LINK([#include ], +[return !ftello;], + [ac_cv_func_ftello=yes], + [ac_cv_func_ftello=no])]) +if test $ac_cv_func_ftello = yes; then + AC_DEFINE(HAVE_FTELLO) +fi]) + +dnl Checks if compiler allows dynamic arrays. +dnl Defines HAVE_DYN_ARRAYS on success. +AC_DEFUN([AC_DYN_ARRAYS], +[AC_CACHE_CHECK([if compiler allows dynamic arrays], ac_cv_dyn_arrays, + [AC_TRY_COMPILE([], + [extern int __aa(); int len = __aa(); char some_array[len];], + [ac_cv_dyn_arrays=yes], + [ac_cv_dyn_arrays=no])]) +if test $ac_cv_dyn_arrays = yes; then + AC_DEFINE(HAVE_DYN_ARRAYS) +fi]) + +dnl Checks if the compiler allows #pragma weak +dnl Defines HAVE_PRAGMA_WEAK on success. +AC_DEFUN([AC_PRAGMA_WEAK], +[AC_CACHE_CHECK([if compiler allows pragma weak], ac_cv_pragma_weak, + [AC_TRY_LINK([#pragma weak test2 = test1 +int test1() {return 0;}], +[return test2();], + [ac_cv_pragma_weak=yes], + [ac_cv_pragma_weak=no])]) +if test $ac_cv_pragma_weak = yes; then + AC_DEFINE(HAVE_PRAGMA_WEAK) +fi]) + +dnl Checks if Linux include file linux/ext2_fs.h is broken +dnl Defines HAVE_BROKEN_LINUX_EXT2_FS_H on success. +AC_DEFUN([AC_BROKEN_LINUX_EXT2_FS_H], +[AC_CACHE_CHECK([if Linux include file linux/ext2_fs.h is broken], ac_cv_broken_linux_ext2_fs_h, + [AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#endif], + [], + [ac_cv_broken_linux_ext2_fs_h=no], + [ac_cv_broken_linux_ext2_fs_h=yes])]) +if test $ac_cv_broken_linux_ext2_fs_h = yes; then + AC_DEFINE(HAVE_BROKEN_LINUX_EXT2_FS_H) +fi]) + +dnl Checks if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken +dnl Defines HAVE_BROKEN_SRC_LINUX_EXT2_FS_H on success. +AC_DEFUN([AC_BROKEN_SRC_LINUX_EXT2_FS_H], +[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken], ac_cv_broken_src_linux_ext2_fs_h, + [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#endif], + [], + [ac_cv_broken_src_linux_ext2_fs_h=no], + [ac_cv_broken_src_linux_ext2_fs_h=yes])]) +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then + AC_DEFINE(HAVE_BROKEN_SRC_LINUX_EXT2_FS_H) +fi]) + +dnl Checks if Linux include file scsi/scsi.h is broken +dnl Defines HAVE_BROKEN_SCSI_SCSI_H on success. +AC_DEFUN([AC_BROKEN_SCSI_SCSI_H], +[AC_CACHE_CHECK([if Linux include file scsi/scsi.h is broken], ac_cv_broken_scsi_scsi_h, + [AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#endif], + [], + [ac_cv_broken_scsi_scsi_h=no], + [ac_cv_broken_scsi_scsi_h=yes])]) +if test $ac_cv_broken_scsi_scsi_h = yes; then + AC_DEFINE(HAVE_BROKEN_SCSI_SCSI_H) +fi]) + +dnl Checks if Linux include file /usr/src/linux/include/scsi/scsi.h is broken +dnl Defines HAVE_BROKEN_SRC_SCSI_SCSI_H on success. +AC_DEFUN([AC_BROKEN_SRC_SCSI_SCSI_H], +[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/scsi/scsi.h is broken], ac_cv_broken_src_scsi_scsi_h, + [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#endif], + [], + [ac_cv_broken_src_scsi_scsi_h=no], + [ac_cv_broken_src_scsi_scsi_h=yes])]) +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_scsi_scsi_h = yes; then + AC_DEFINE(HAVE_BROKEN_SRC_SCSI_SCSI_H) +fi]) + +dnl Checks if Linux include file scsi/sg.h is broken +dnl Defines HAVE_BROKEN_SCSI_SG_H on success. +AC_DEFUN([AC_BROKEN_SCSI_SG_H], +[AC_CACHE_CHECK([if Linux include file scsi/sg.h is broken], ac_cv_broken_scsi_sg_h, + [AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#include +#endif], + [], + [ac_cv_broken_scsi_sg_h=no], + [ac_cv_broken_scsi_sg_h=yes])]) +if test $ac_cv_broken_scsi_sg_h = yes; then + AC_DEFINE(HAVE_BROKEN_SCSI_SG_H) +fi]) + +dnl Checks if Linux include file /usr/src/linux/include/scsi/sg.h is broken +dnl Defines HAVE_BROKEN_SRC_SCSI_SG_H on success. +AC_DEFUN([AC_BROKEN_SRC_SCSI_SG_H], +[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/scsi/sg.h is broken], ac_cv_broken_src_scsi_sg_h, + [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + AC_TRY_COMPILE([ +#if defined(__linux__) || defined(__linux) || defined(linux) +#include +#include +#endif], + [], + [ac_cv_broken_src_scsi_sg_h=no], + [ac_cv_broken_src_scsi_sg_h=yes])]) +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_scsi_sg_h = yes; then + AC_DEFINE(HAVE_BROKEN_SRC_SCSI_SG_H) +fi]) + +AC_DEFUN(AC_PROG_SHELL_BROKEN_E, +[AC_CACHE_CHECK(whether handling of /bin/sh -ce 'command' is broken, ac_cv_prog_shell_broken_e, +[if AC_TRY_COMMAND(/bin/sh -ce 'if false; true; then echo yes; else echo no; fi') | egrep yes >/dev/null 2>&1; then + ac_cv_prog_shell_broken_e=no +else + ac_cv_prog_shell_broken_e=yes +fi +if test $ac_cv_prog_shell_broken_e = yes; then + AC_DEFINE(HAVE_PROG_SHELL_BROKEN_E) +fi])]) diff -Nru smake-1.2a41/autoconf/acoldnames.m4 smake-1.2a49/autoconf/acoldnames.m4 --- smake-1.2a41/autoconf/acoldnames.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/acoldnames.m4 2009-08-12 22:13:33.000000000 +0100 @@ -0,0 +1,82 @@ +dnl @(#)acoldnames.m4 1.3 08/08/01 Copyright 1998-2008 J. Schilling +dnl +dnl Map old names of Autoconf macros to new regularized names. +dnl This file is part of Autoconf. +dnl Copyright (C) 1994 Free Software Foundation, Inc. +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl General macros. +dnl +define(AC_WARN, [indir([AC_MSG_WARN], $@)])dnl +define(AC_ERROR, [indir([AC_MSG_ERROR], $@)])dnl +AC_DEFUN(AC_PROGRAM_CHECK, [indir([AC_CHECK_PROG], $@)])dnl +AC_DEFUN(AC_PROGRAM_PATH, [indir([AC_PATH_PROG], $@)])dnl +AC_DEFUN(AC_PROGRAMS_CHECK, [indir([AC_CHECK_PROGS], $@)])dnl +AC_DEFUN(AC_PROGRAMS_PATH, [indir([AC_PATH_PROGS], $@)])dnl +AC_DEFUN(AC_PREFIX, [indir([AC_PREFIX_PROGRAM], $@)])dnl +AC_DEFUN(AC_HEADER_EGREP, [indir([AC_EGREP_HEADER], $@)])dnl +AC_DEFUN(AC_PROGRAM_EGREP, [indir([AC_EGREP_CPP], $@)])dnl +AC_DEFUN(AC_TEST_PROGRAM, [indir([AC_TRY_RUN], $@)])dnl +AC_DEFUN(AC_TEST_CPP, [indir([AC_TRY_CPP], $@)])dnl +AC_DEFUN(AC_HEADER_CHECK, [indir([AC_CHECK_HEADER], $@)])dnl +AC_DEFUN(AC_FUNC_CHECK, [indir([AC_CHECK_FUNC], $@)])dnl +AC_DEFUN(AC_HAVE_FUNCS, [indir([AC_CHECK_FUNCS], $@)])dnl +AC_DEFUN(AC_HAVE_HEADERS, [indir([AC_CHECK_HEADERS], $@)])dnl +AC_DEFUN(AC_SIZEOF_TYPE, [indir([AC_CHECK_SIZEOF], $@)])dnl +dnl +dnl Specific macros. +dnl +AC_DEFUN(AC_GCC_TRADITIONAL, [indir([AC_PROG_GCC_TRADITIONAL])])dnl +AC_DEFUN(AC_MINUS_C_MINUS_O, [indir([AC_PROG_CC_C_O])])dnl +AC_DEFUN(AC_SET_MAKE, [indir([AC_PROG_MAKE_SET])])dnl +AC_DEFUN(AC_YYTEXT_POINTER, [indir([AC_DECL_YYTEXT])])dnl +AC_DEFUN(AC_LN_S, [indir([AC_PROG_LN_S])])dnl +AC_DEFUN(AC_STDC_HEADERS, [indir([AC_HEADER_STDC])])dnl +AC_DEFUN(AC_MAJOR_HEADER, [indir([AC_HEADER_MAJOR])])dnl +AC_DEFUN(AC_STAT_MACROS_BROKEN, [indir([AC_HEADER_STAT])])dnl +AC_DEFUN(AC_SYS_SIGLIST_DECLARED, [indir([AC_DECL_SYS_SIGLIST])])dnl +AC_DEFUN(AC_GETGROUPS_T, [indir([AC_TYPE_GETGROUPS])])dnl +AC_DEFUN(AC_UID_T, [indir([AC_TYPE_UID_T])])dnl +AC_DEFUN(AC_SIZE_T, [indir([AC_TYPE_SIZE_T])])dnl +AC_DEFUN(AC_PID_T, [indir([AC_TYPE_PID_T])])dnl +AC_DEFUN(AC_OFF_T, [indir([AC_TYPE_OFF_T])])dnl +AC_DEFUN(AC_MODE_T, [indir([AC_TYPE_MODE_T])])dnl +AC_DEFUN(AC_RETSIGTYPE, [indir([AC_TYPE_SIGNAL])])dnl +AC_DEFUN(AC_MMAP, [indir([AC_FUNC_MMAP])])dnl +AC_DEFUN(AC_VPRINTF, [indir([AC_FUNC_VPRINTF])])dnl +AC_DEFUN(AC_VFORK, [indir([AC_FUNC_VFORK])])dnl +AC_DEFUN(AC_WAIT3, [indir([AC_FUNC_WAIT3])])dnl +AC_DEFUN(AC_ALLOCA, [indir([AC_FUNC_ALLOCA])])dnl +AC_DEFUN(AC_GETLOADAVG, [indir([AC_FUNC_GETLOADAVG])])dnl +AC_DEFUN(AC_UTIME_NULL, [indir([AC_FUNC_UTIME_NULL])])dnl +AC_DEFUN(AC_STRCOLL, [indir([AC_FUNC_STRCOLL])])dnl +AC_DEFUN(AC_SETVBUF_REVERSED, [indir([AC_FUNC_SETVBUF_REVERSED])])dnl +AC_DEFUN(AC_TIME_WITH_SYS_TIME, [indir([AC_HEADER_TIME])])dnl +AC_DEFUN(AC_TIMEZONE, [indir([AC_STRUCT_TM_ZONE])])dnl +AC_DEFUN(AC_ST_BLOCKS, [indir([AC_STRUCT_ST_BLOCKS])])dnl +AC_DEFUN(AC_ST_BLKSIZE, [indir([AC_STRUCT_ST_BLKSIZE])])dnl +AC_DEFUN(AC_ST_RDEV, [indir([AC_STRUCT_ST_RDEV])])dnl +AC_DEFUN(AC_CROSS_CHECK, [indir([AC_C_CROSS])])dnl +AC_DEFUN(AC_CHAR_UNSIGNED, [indir([AC_C_CHAR_UNSIGNED])])dnl +AC_DEFUN(AC_LONG_DOUBLE, [indir([AC_C_LONG_DOUBLE])])dnl +AC_DEFUN(AC_WORDS_BIGENDIAN, [indir([AC_C_BIGENDIAN])])dnl +AC_DEFUN(AC_INLINE, [indir([AC_C_INLINE])])dnl +AC_DEFUN(AC_CONST, [indir([AC_C_CONST])])dnl +AC_DEFUN(AC_LONG_FILE_NAMES, [indir([AC_SYS_LONG_FILE_NAMES])])dnl +AC_DEFUN(AC_RESTARTABLE_SYSCALLS, [indir([AC_SYS_RESTARTABLE_SYSCALLS])])dnl +AC_DEFUN(AC_FIND_X, [indir([AC_PATH_X])])dnl +AC_DEFUN(AC_FIND_XTRA, [indir([AC_PATH_XTRA])])dnl diff -Nru smake-1.2a41/autoconf/acspecific.m4 smake-1.2a49/autoconf/acspecific.m4 --- smake-1.2a41/autoconf/acspecific.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/acspecific.m4 2009-11-06 21:17:52.000000000 +0000 @@ -0,0 +1,2846 @@ +dnl @(#)acspecific.m4 1.12 09/11/06 Copyright 1998-2009 J. Schilling +dnl +dnl Macros that test for specific features. +dnl This file is part of Autoconf. +dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl As a special exception, the Free Software Foundation gives unlimited +dnl permission to copy, distribute and modify the configure scripts that +dnl are the output of Autoconf. You need not follow the terms of the GNU +dnl General Public License when using or distributing such scripts, even +dnl though portions of the text of Autoconf appear in them. The GNU +dnl General Public License (GPL) does govern all other use of the material +dnl that constitutes the Autoconf program. +dnl +dnl Certain portions of the Autoconf source text are designed to be copied +dnl (in certain cases, depending on the input) into the output of +dnl Autoconf. We call these the "data" portions. The rest of the Autoconf +dnl source text consists of comments plus executable code that decides which +dnl of the data portions to output in any given case. We call these +dnl comments and executable code the "non-data" portions. Autoconf never +dnl copies any of the non-data portions into its output. +dnl +dnl This special exception to the GPL applies to versions of Autoconf +dnl released by the Free Software Foundation. When you make and +dnl distribute a modified version of Autoconf, you may extend this special +dnl exception to the GPL to apply to your modified version as well, *unless* +dnl your modified version has the potential to copy into its output some +dnl of the text that was the non-data portion of the version that you started +dnl with. (In other words, unless your change moves or copies text from +dnl the non-data portions to the data portions.) If your modification has +dnl such potential, you must delete any notice of this special exception +dnl to the GPL from your modified version. +dnl +dnl Written by David MacKenzie, with help from +dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, +dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. + + +dnl ### Checks for programs + + +dnl Check whether to use -n, \c, or newline-tab to separate +dnl checking messages from result messages. +dnl Idea borrowed from dist 3.0. +dnl Internal use only. +AC_DEFUN(AC_PROG_ECHO_N, +[if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi +]) + +AC_DEFUN(AC_PROG_CC, +[AC_BEFORE([$0], [AC_PROG_CPP])dnl +AC_CHECK_PROG(CC, gcc, gcc) +if test -z "$CC"; then + AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + AC_CHECK_PROG(CC, cl, cl) ;; + esac + fi + test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) +fi + +AC_PROG_CC_WORKS +AC_PROG_CC_GNU + +if test $ac_cv_prog_gcc = yes; then + GCC=yes +else + GCC= +fi + +dnl Check whether -g works, even if CFLAGS is set, in case the package +dnl plays around with CFLAGS (such as to build both debugging and +dnl normal versions of a library), tasteless as that idea is. +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +AC_PROG_CC_G +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +]) + +AC_DEFUN(AC_PROG_CXX, +[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl +AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, gcc) + +AC_PROG_CXX_WORKS +AC_PROG_CXX_GNU + +if test $ac_cv_prog_gxx = yes; then + GXX=yes +else + GXX= +fi + +dnl Check whether -g works, even if CXXFLAGS is set, in case the package +dnl plays around with CXXFLAGS (such as to build both debugging and +dnl normal versions of a library), tasteless as that idea is. +ac_test_CXXFLAGS="${CXXFLAGS+set}" +ac_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS= +AC_PROG_CXX_G +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +]) + +dnl Determine a Fortran 77 compiler to use. If `F77' is not already set +dnl in the environment, check for `g77', `f77' and `f2c', in that order. +dnl Set the output variable `F77' to the name of the compiler found. +dnl +dnl If using `g77' (the GNU Fortran 77 compiler), then `AC_PROG_F77' +dnl will set the shell variable `G77' to `yes', and empty otherwise. If +dnl the output variable `FFLAGS' was not already set in the environment, +dnl then set it to `-g -02' for `g77' (or `-O2' where `g77' does not +dnl accept `-g'). Otherwise, set `FFLAGS' to `-g' for all other Fortran +dnl 77 compilers. +dnl +dnl AC_PROG_F77() +AC_DEFUN(AC_PROG_F77, +[AC_BEFORE([$0], [AC_PROG_CPP])dnl +if test -z "$F77"; then + AC_CHECK_PROGS(F77, g77 f77 f2c) + test -z "$F77" && AC_MSG_ERROR([no acceptable Fortran 77 compiler found in \$PATH]) +fi + +AC_PROG_F77_WORKS +AC_PROG_F77_GNU + +if test $ac_cv_prog_g77 = yes; then + G77=yes +dnl Check whether -g works, even if FFLAGS is set, in case the package +dnl plays around with FFLAGS (such as to build both debugging and +dnl normal versions of a library), tasteless as that idea is. + ac_test_FFLAGS="${FFLAGS+set}" + ac_save_FFLAGS="$FFLAGS" + FFLAGS= + AC_PROG_F77_G + if test "$ac_test_FFLAGS" = set; then + FFLAGS="$ac_save_FFLAGS" + elif test $ac_cv_prog_f77_g = yes; then + FFLAGS="-g -O2" + else + FFLAGS="-O2" + fi +else + G77= + test "${FFLAGS+set}" = set || FFLAGS="-g" +fi +]) + +AC_DEFUN(AC_PROG_CC_WORKS, +[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) +AC_LANG_SAVE +AC_LANG_C +AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) +AC_LANG_RESTORE +AC_MSG_RESULT($ac_cv_prog_cc_works) +if test $ac_cv_prog_cc_works = no; then + AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.]) +fi +AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler]) +AC_MSG_RESULT($ac_cv_prog_cc_cross) +cross_compiling=$ac_cv_prog_cc_cross +]) + +AC_DEFUN(AC_PROG_CXX_WORKS, +[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) +AC_LANG_RESTORE +AC_MSG_RESULT($ac_cv_prog_cxx_works) +if test $ac_cv_prog_cxx_works = no; then + AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.]) +fi +AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler]) +AC_MSG_RESULT($ac_cv_prog_cxx_cross) +cross_compiling=$ac_cv_prog_cxx_cross +]) + +dnl Test whether the Fortran 77 compiler can compile and link a trivial +dnl Fortran program. Also, test whether the Fortran 77 compiler is a +dnl cross-compiler (which may realistically be the case if the Fortran +dnl compiler is `g77'). +dnl +dnl AC_PROG_F77_WORKS() +AC_DEFUN(AC_PROG_F77_WORKS, +[AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works]) +AC_LANG_SAVE +AC_LANG_FORTRAN77 +AC_TRY_COMPILER(dnl +[ program conftest + end +], ac_cv_prog_f77_works, ac_cv_prog_f77_cross) +AC_LANG_RESTORE +AC_MSG_RESULT($ac_cv_prog_f77_works) +if test $ac_cv_prog_f77_works = no; then + AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.]) +fi +AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler]) +AC_MSG_RESULT($ac_cv_prog_f77_cross) +cross_compiling=$ac_cv_prog_f77_cross +]) + +AC_DEFUN(AC_PROG_CC_GNU, +[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc, +[dnl The semicolon is to pacify NeXT's syntax-checking cpp. +cat > conftest.c </dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi])]) + +AC_DEFUN(AC_PROG_CXX_GNU, +[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx, +[dnl The semicolon is to pacify NeXT's syntax-checking cpp. +cat > conftest.C </dev/null 2>&1; then + ac_cv_prog_gxx=yes +else + ac_cv_prog_gxx=no +fi])]) + +dnl Test whether for Fortran 77 compiler is `g77' (the GNU Fortran 77 +dnl Compiler). This test depends on whether the Fortran 77 compiler can +dnl do CPP pre-processing. +dnl +dnl AC_PROG_F77_GNU() +AC_DEFUN(AC_PROG_F77_GNU, +[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77, +[cat > conftest.fpp </dev/null 2>&1; then + ac_cv_prog_g77=yes +else + ac_cv_prog_g77=no +fi])]) + +AC_DEFUN(AC_PROG_CC_G, +[AC_CACHE_CHECK(whether ${CC-cc} accepts -g, ac_cv_prog_cc_g, +[echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* +])]) + +AC_DEFUN(AC_PROG_CXX_G, +[AC_CACHE_CHECK(whether ${CXX-g++} accepts -g, ac_cv_prog_cxx_g, +[echo 'void f(){}' > conftest.cc +if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then + ac_cv_prog_cxx_g=yes +else + ac_cv_prog_cxx_g=no +fi +rm -f conftest* +])]) + +dnl Test whether the Fortran 77 compiler can accept the `-g' option to +dnl enable debugging. +dnl +dnl AC_PROG_F77_G() +AC_DEFUN(AC_PROG_F77_G, +[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g, +[cat > conftest.f << EOF + program conftest + end +EOF +if test -z "`$F77 -g -c conftest.f 2>&1`"; then + ac_cv_prog_f77_g=yes +else + ac_cv_prog_f77_g=no +fi +rm -f conftest* +])]) + +AC_DEFUN(AC_PROG_GCC_TRADITIONAL, +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_CPP])dnl +if test $ac_cv_prog_gcc = yes; then + AC_CACHE_CHECK(whether ${CC-cc} needs -traditional, + ac_cv_prog_gcc_traditional, +[ ac_pattern="Autoconf.*'x'" + AC_EGREP_CPP($ac_pattern, [#include +Autoconf TIOCGETP], + ac_cv_prog_gcc_traditional=yes, ac_cv_prog_gcc_traditional=no) + + if test $ac_cv_prog_gcc_traditional = no; then + AC_EGREP_CPP($ac_pattern, [#include +Autoconf TCGETA], + ac_cv_prog_gcc_traditional=yes) + fi]) + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi +]) + +AC_DEFUN(AC_PROG_CC_C_O, +[if test "x$CC" != xcc; then + AC_MSG_CHECKING(whether $CC and cc understand -c and -o together) +else + AC_MSG_CHECKING(whether cc understands -c and -o together) +fi +set dummy $CC; ac_cc="`echo [$]2 | +changequote(, )dnl + sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" +changequote([, ])dnl +AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, +[echo 'foo(){}' > conftest.c +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC' +if AC_TRY_EVAL(ac_try) && + test -f conftest.o && AC_TRY_EVAL(ac_try); +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then + ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC' + if AC_TRY_EVAL(ac_try) && + test -f conftest.o && AC_TRY_EVAL(ac_try); + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f conftest* +])dnl +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + AC_DEFINE(NO_MINUS_C_MINUS_O) +fi +]) + +dnl Test if the Fortran 77 compiler accepts the options `-c' and `-o' +dnl simultaneously, and define `F77_NO_MINUS_C_MINUS_O' if it does not. +dnl +dnl The usefulness of this macro is questionable, as I can't really see +dnl why anyone would use it. The only reason I include it is for +dnl completeness, since a similar test exists for the C compiler. +dnl +dnl AC_PROG_F77_C_O +AC_DEFUN(AC_PROG_F77_C_O, +[AC_BEFORE([$0], [AC_PROG_F77])dnl +AC_MSG_CHECKING(whether $F77 understand -c and -o together) +set dummy $F77; ac_f77="`echo [$]2 | +changequote(, )dnl +sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" +changequote([, ])dnl +AC_CACHE_VAL(ac_cv_prog_f77_${ac_f77}_c_o, +[cat > conftest.f << EOF + program conftest + end +EOF +# We do the `AC_TRY_EVAL' test twice because some compilers refuse to +# overwrite an existing `.o' file with `-o', although they will create +# one. +ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC' +if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then + eval ac_cv_prog_f77_${ac_f77}_c_o=yes +else + eval ac_cv_prog_f77_${ac_f77}_c_o=no +fi +rm -f conftest* +])dnl +if eval "test \"`echo '$ac_cv_prog_f77_'${ac_f77}_c_o`\" = yes"; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + AC_DEFINE(F77_NO_MINUS_C_MINUS_O) +fi +]) + +dnl Define SET_MAKE to set ${MAKE} if make doesn't. +AC_DEFUN(AC_PROG_MAKE_SET, +[AC_MSG_CHECKING(whether ${MAKE-make} sets \${MAKE}) +set dummy ${MAKE-make}; ac_make=`echo "[$]2" | sed 'y%./+-%__p_%'` +AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set, +[cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +changequote(, )dnl +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +changequote([, ])dnl +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake])dnl +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + AC_MSG_RESULT(yes) + SET_MAKE= +else + AC_MSG_RESULT(no) + SET_MAKE="MAKE=${MAKE-make}" +fi +AC_SUBST([SET_MAKE])dnl +]) + +AC_DEFUN(AC_PROG_RANLIB, +[AC_CHECK_PROG(RANLIB, ranlib, ranlib, :)]) + +dnl Check for mawk first since it's generally faster. +AC_DEFUN(AC_PROG_AWK, +[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )]) + +AC_DEFUN(AC_PROG_YACC, +[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)]) + +AC_DEFUN(AC_PROG_CPP, +[AC_MSG_CHECKING(how to run the C preprocessor) +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +AC_CACHE_VAL(ac_cv_prog_CPP, +[ # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. +dnl Use a header file that comes with gcc, so configuring glibc +dnl with a fresh cross-compiler works. + AC_TRY_CPP([#include +Syntax Error], , + CPP="${CC-cc} -E -traditional-cpp" + AC_TRY_CPP([#include +Syntax Error], , + CPP="${CC-cc} -nologo -E" + AC_TRY_CPP([#include +Syntax Error], , CPP=/lib/cpp))) + ac_cv_prog_CPP="$CPP"])dnl + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +AC_MSG_RESULT($CPP) +AC_SUBST(CPP)dnl +]) + +AC_DEFUN(AC_PROG_CXXCPP, +[AC_MSG_CHECKING(how to run the C++ preprocessor) +if test -z "$CXXCPP"; then +AC_CACHE_VAL(ac_cv_prog_CXXCPP, +[AC_LANG_SAVE[]dnl +AC_LANG_CPLUSPLUS[]dnl + CXXCPP="${CXX-g++} -E" + AC_TRY_CPP([#include ], , CXXCPP=/lib/cpp) + ac_cv_prog_CXXCPP="$CXXCPP" +AC_LANG_RESTORE[]dnl +fi])dnl +CXXCPP="$ac_cv_prog_CXXCPP" +AC_MSG_RESULT($CXXCPP) +AC_SUBST(CXXCPP)dnl +]) + +dnl Require finding the C or C++ preprocessor, whichever is the +dnl current language. +AC_DEFUN(AC_REQUIRE_CPP, +[ifelse(AC_LANG, C, [AC_REQUIRE([AC_PROG_CPP])], [AC_REQUIRE([AC_PROG_CXXCPP])])]) + +AC_DEFUN(AC_PROG_LEX, +[AC_CHECK_PROG(LEX, flex, flex, lex) +if test -z "$LEXLIB" +then + case "$LEX" in + flex*) ac_lib=fl ;; + *) ac_lib=l ;; + esac + AC_CHECK_LIB($ac_lib, yywrap, LEXLIB="-l$ac_lib") +fi +AC_SUBST(LEXLIB)]) + +dnl Check if lex declares yytext as a char * by default, not a char[]. +undefine([AC_DECL_YYTEXT]) +AC_DEFUN(AC_DECL_YYTEXT, +[AC_REQUIRE_CPP()dnl +AC_REQUIRE([AC_PROG_LEX])dnl +AC_CACHE_CHECK(lex output file root, ac_cv_prog_lex_root, +[# The minimal lex program is just a single line: %%. But some broken lexes +# (Solaris, I think it was) want two %% lines, so accommodate them. +echo '%% +%%' | $LEX +if test -f lex.yy.c; then + ac_cv_prog_lex_root=lex.yy +elif test -f lexyy.c; then + ac_cv_prog_lex_root=lexyy +else + AC_MSG_ERROR(cannot find output from $LEX; giving up) +fi]) +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root +AC_SUBST(LEX_OUTPUT_ROOT)dnl + +AC_CACHE_CHECK(whether yytext is a pointer, ac_cv_prog_lex_yytext_pointer, +[# POSIX says lex can declare yytext either as a pointer or an array; the +# default is implementation-dependent. Figure out which it is, since +# not all implementations provide the %pointer and %array declarations. +ac_cv_prog_lex_yytext_pointer=no +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c +ac_save_LIBS="$LIBS" +LIBS="$LIBS $LEXLIB" +AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, , ac_cv_prog_lex_yytext_pointer=yes) +LIBS="$ac_save_LIBS" +rm -f "${LEX_OUTPUT_ROOT}.c" +]) +dnl +if test $ac_cv_prog_lex_yytext_pointer = yes; then + AC_DEFINE(YYTEXT_POINTER) +fi +]) + +AC_DEFUN(AC_PROG_INSTALL, +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +AC_MSG_CHECKING(for a BSD compatible install) +if test -z "$INSTALL"; then +AC_CACHE_VAL(ac_cv_path_install, +[ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" +])dnl + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +dnl We do special magic for INSTALL instead of AC_SUBST, to get +dnl relative paths right. +AC_MSG_RESULT($INSTALL) + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' +AC_SUBST(INSTALL_PROGRAM)dnl + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' +AC_SUBST(INSTALL_SCRIPT)dnl + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +AC_SUBST(INSTALL_DATA)dnl +]) + +AC_DEFUN(AC_PROG_LN_S, +[AC_MSG_CHECKING(whether ln -s works) +AC_CACHE_VAL(ac_cv_prog_LN_S, +[rm -f conftestdata +if ln -s X conftestdata 2>/dev/null +then + rm -f conftestdata + ac_cv_prog_LN_S="ln -s" +else + ac_cv_prog_LN_S=ln +fi])dnl +LN_S="$ac_cv_prog_LN_S" +if test "$ac_cv_prog_LN_S" = "ln -s"; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi +AC_SUBST(LN_S)dnl +]) + +define(AC_RSH, +[errprint(__file__:__line__: [$0] has been removed; replace it with equivalent code +)m4exit(4)]) + + +dnl ### Checks for header files + + +AC_DEFUN(AC_HEADER_STDC, +[AC_REQUIRE_CPP()dnl +AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc, +[AC_TRY_CPP([#include +#include +#include +#include ], ac_cv_header_stdc=yes, ac_cv_header_stdc=no) + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no) +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no) +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +AC_TRY_RUN([#include +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int main () { int i; for (i = 0; i < 256; i++) +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +exit (0); } +], , ac_cv_header_stdc=no, :) +fi]) +if test $ac_cv_header_stdc = yes; then + AC_DEFINE(STDC_HEADERS) + AC_DEFINE(HAVE_STDARG_H) + AC_DEFINE(HAVE_STDLIB_H) + AC_DEFINE(HAVE_STRING_H) + AC_DEFINE(HAVE_FLOAT_H) +fi +]) + +AC_DEFUN(AC_UNISTD_H, +[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])dnl +AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))]) + +AC_DEFUN(AC_USG, +[AC_OBSOLETE([$0], + [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl +AC_MSG_CHECKING([for BSD string and memory functions]) +AC_TRY_LINK([#include ], [rindex(0, 0); bzero(0, 0);], + [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); AC_DEFINE(USG)])]) + + +dnl If memchr and the like aren't declared in , include . +dnl To avoid problems, don't check for gcc2 built-ins. +AC_DEFUN(AC_MEMORY_H, +[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl +AC_MSG_CHECKING(whether string.h declares mem functions) +AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no) +AC_MSG_RESULT($ac_found) +if test $ac_found = no; then + AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)]) +fi +]) + +AC_DEFUN(AC_HEADER_MAJOR, +[AC_CACHE_CHECK(whether sys/types.h defines makedev, + ac_cv_header_sys_types_h_makedev, +[AC_TRY_LINK([#include ], [return makedev(0, 0);], + ac_cv_header_sys_types_h_makedev=yes, ac_cv_header_sys_types_h_makedev=no) +]) + +if test $ac_cv_header_sys_types_h_makedev = no; then +AC_CHECK_HEADER(sys/mkdev.h, [AC_DEFINE(MAJOR_IN_MKDEV)]) + + if test $ac_cv_header_sys_mkdev_h = no; then +AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS)]) + fi +fi +]) + +AC_DEFUN(AC_HEADER_DIRENT, +[ac_header_dirent=no +AC_CHECK_HEADERS_DIRENT(dirent.h sys/ndir.h sys/dir.h ndir.h, + [ac_header_dirent=$ac_hdr; break]) +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then +AC_CHECK_LIB(c, opendir, :, + [AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")]) +else +AC_CHECK_LIB(c, opendir, :, + [AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx")]) +fi +]) + +dnl Like AC_CHECK_HEADER, except also make sure that HEADER-FILE +dnl defines the type `DIR'. dirent.h on NextStep 3.2 doesn't. +dnl AC_CHECK_HEADER_DIRENT(HEADER-FILE, ACTION-IF-FOUND) +AC_DEFUN(AC_CHECK_HEADER_DIRENT, +[ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` +AC_MSG_CHECKING([for $1 that defines DIR]) +AC_CACHE_VAL(ac_cv_header_dirent_$ac_safe, +[AC_TRY_COMPILE([#include +#include <$1>], [DIR *dirp = 0;], + eval "ac_cv_header_dirent_$ac_safe=yes", + eval "ac_cv_header_dirent_$ac_safe=no")])dnl +if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then + AC_MSG_RESULT(yes) + $2 +else + AC_MSG_RESULT(no) +fi +]) + +dnl Like AC_CHECK_HEADERS, except succeed only for a HEADER-FILE that +dnl defines `DIR'. +dnl AC_CHECK_HEADERS_DIRENT(HEADER-FILE... [, ACTION]) +define(AC_CHECK_HEADERS_DIRENT, +[for ac_hdr in $1 +do +AC_CHECK_HEADER_DIRENT($ac_hdr, +[changequote(, )dnl + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +changequote([, ])dnl + AC_DEFINE_UNQUOTED($ac_tr_hdr) $2])dnl +done]) + +AC_DEFUN(AC_DIR_HEADER, +[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + AC_CHECK_HEADER_DIRENT($ac_hdr, [ac_header_dirent=$ac_hdr; break]) +done + +case "$ac_header_dirent" in +dirent.h) AC_DEFINE(DIRENT) ;; +sys/ndir.h) AC_DEFINE(SYSNDIR) ;; +sys/dir.h) AC_DEFINE(SYSDIR) ;; +ndir.h) AC_DEFINE(NDIR) ;; +esac + +AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, +[AC_TRY_RUN([#include +#include <$ac_header_dirent> +int closedir(); main() { exit(closedir(opendir(".")) != 0); }], + ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) +if test $ac_cv_func_closedir_void = yes; then + AC_DEFINE(VOID_CLOSEDIR) +fi +]) + +AC_DEFUN(AC_HEADER_STAT, +[AC_CACHE_CHECK(whether stat file-mode macros are broken, + ac_cv_header_stat_broken, +[AC_EGREP_CPP([You lose], [#include +#include + +#if defined(S_ISBLK) && defined(S_IFDIR) +# if S_ISBLK (S_IFDIR) +You lose. +# endif +#endif + +#if defined(S_ISBLK) && defined(S_IFCHR) +# if S_ISBLK (S_IFCHR) +You lose. +# endif +#endif + +#if defined(S_ISLNK) && defined(S_IFREG) +# if S_ISLNK (S_IFREG) +You lose. +# endif +#endif + +#if defined(S_ISSOCK) && defined(S_IFREG) +# if S_ISSOCK (S_IFREG) +You lose. +# endif +#endif +], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)]) +if test $ac_cv_header_stat_broken = yes; then + AC_DEFINE(STAT_MACROS_BROKEN) +fi +]) + +AC_DEFUN(AC_DECL_SYS_SIGLIST, +[AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h], + ac_cv_decl_sys_siglist, +[AC_TRY_COMPILE([#include +#include +/* NetBSD declares sys_siglist in unistd.h. */ +#ifdef HAVE_UNISTD_H +#include +#endif], [char *msg = *(sys_siglist + 1);], + ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)]) +if test $ac_cv_decl_sys_siglist = yes; then + AC_DEFINE(SYS_SIGLIST_DECLARED) +fi +]) + +AC_DEFUN(AC_HEADER_SYS_WAIT, +[AC_CACHE_CHECK([for sys/wait.h that is POSIX.1 compatible], + ac_cv_header_sys_wait_h, +[AC_TRY_COMPILE([#include +#include +#ifndef WEXITSTATUS +#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif +#ifndef WIFEXITED +#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif], [int s; +wait (&s); +s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;], +ac_cv_header_sys_wait_h=yes, ac_cv_header_sys_wait_h=no)]) +if test $ac_cv_header_sys_wait_h = yes; then + AC_DEFINE(HAVE_SYS_WAIT_H) +fi +]) + + +dnl ### Checks for typedefs + + +AC_DEFUN(AC_TYPE_GETGROUPS, +[AC_REQUIRE([AC_TYPE_UID_T])dnl +AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups, +[AC_TRY_RUN( +changequote(<<, >>)dnl +<< +/* Thanks to Mike Rendell for this test. */ +#include +#define NGID 256 +#undef MAX +#define MAX(x, y) ((x) > (y) ? (x) : (y)) +main() +{ + gid_t gidset[NGID]; + int i, n; + union { gid_t gval; long lval; } val; + + val.lval = -1; + for (i = 0; i < NGID; i++) + gidset[i] = val.gval; + n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, + gidset); + /* Exit non-zero if getgroups seems to require an array of ints. This + happens when gid_t is short but getgroups modifies an array of ints. */ + exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); +} +>>, +changequote([, ])dnl + ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int, + ac_cv_type_getgroups=cross) +if test $ac_cv_type_getgroups = cross; then + dnl When we can't run the test program (we are cross compiling), presume + dnl that has either an accurate prototype for getgroups or none. + dnl Old systems without prototypes probably use int. + AC_EGREP_HEADER([getgroups.*int.*gid_t], unistd.h, + ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int) +fi]) +AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups) +]) + +AC_DEFUN(AC_TYPE_UID_T, +[AC_CACHE_CHECK(for uid_t in sys/types.h, ac_cv_type_uid_t, +[AC_EGREP_HEADER(uid_t, sys/types.h, + ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)]) +if test $ac_cv_type_uid_t = no; then + AC_DEFINE(uid_t, int) + AC_DEFINE(gid_t, int) +fi +]) + +AC_DEFUN(AC_TYPE_SIZE_T, +[AC_CHECK_TYPE(size_t, unsigned)]) + +AC_DEFUN(AC_TYPE_PID_T, +[AC_CHECK_TYPE(pid_t, int)]) + +AC_DEFUN(AC_TYPE_OFF_T, +[AC_CHECK_TYPE(off_t, long)]) + +AC_DEFUN(AC_TYPE_MODE_T, +[AC_CHECK_TYPE(mode_t, int)]) + +dnl Note that identifiers starting with SIG are reserved by ANSI C. +AC_DEFUN(AC_TYPE_SIGNAL, +[AC_CACHE_CHECK([return type of signal handlers], ac_cv_type_signal, +[AC_TRY_COMPILE([#include +#include +#ifdef signal +#undef signal +#endif +#ifdef __cplusplus +extern "C" void (*signal (int, void (*)(int)))(int); +#else +void (*signal ()) (); +#endif +], +[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)]) +AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal) +]) + + +dnl ### Checks for functions + + +AC_DEFUN(AC_FUNC_CLOSEDIR_VOID, +[AC_REQUIRE([AC_HEADER_DIRENT])dnl +AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, +[AC_TRY_RUN([#include +#include <$ac_header_dirent> +int closedir(); main() { exit(closedir(opendir(".")) != 0); }], + ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) +if test $ac_cv_func_closedir_void = yes; then + AC_DEFINE(CLOSEDIR_VOID) +fi +]) + +AC_DEFUN(AC_FUNC_FNMATCH, +[AC_CACHE_CHECK(for working fnmatch, ac_cv_func_fnmatch_works, +# Some versions of Solaris or SCO have a broken fnmatch function. +# So we run a test program. If we are cross-compiling, take no chance. +# Thanks to John Oleynick and Franc,ois Pinard for this test. +[AC_TRY_RUN([main() { exit (fnmatch ("a*", "abc", 0) != 0); }], +ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no, +ac_cv_func_fnmatch_works=no)]) +if test $ac_cv_func_fnmatch_works = yes; then + AC_DEFINE(HAVE_FNMATCH) +fi +]) + +AC_DEFUN(AC_FUNC_MMAP, +[AC_CHECK_HEADERS(unistd.h) +AC_CHECK_FUNCS(getpagesize) +AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, +[AC_TRY_RUN([ +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the filesystem buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propogated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ +#include +#include +#include + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +int +main() +{ + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + data2 = malloc(2 * pagesize); + if (!data2) + exit(1); + data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); + if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + /* + * Finally, make sure that changes to the mapped area + * do not percolate back to the file as seen by read(). + * (This is a bug on some variants of i386 svr4.0.) + */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = malloc(pagesize); + if (!data3) + exit(1); + if (read(fd, data3, pagesize) != pagesize) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + exit(1); + close(fd); + unlink("conftestmmap"); + exit(0); +} +], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no, +ac_cv_func_mmap_fixed_mapped=no)]) +if test $ac_cv_func_mmap_fixed_mapped = yes; then + AC_DEFINE(HAVE_MMAP) +fi +]) + +AC_DEFUN(AC_FUNC_GETPGRP, +[AC_CACHE_CHECK(whether getpgrp takes no argument, ac_cv_func_getpgrp_void, +[AC_TRY_RUN([ +/* + * If this system has a BSD-style getpgrp(), + * which takes a pid argument, exit unsuccessfully. + * + * Snarfed from Chet Ramey's bash pgrp.c test program + */ +#include +#include + +int pid; +int pg1, pg2, pg3, pg4; +int ng, np, s, child; + +main() +{ + pid = getpid(); + pg1 = getpgrp(0); + pg2 = getpgrp(); + pg3 = getpgrp(pid); + pg4 = getpgrp(1); + + /* + * If all of these values are the same, it's pretty sure that + * we're on a system that ignores getpgrp's first argument. + */ + if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) + exit(0); + + child = fork(); + if (child < 0) + exit(1); + else if (child == 0) { + np = getpid(); + /* + * If this is Sys V, this will not work; pgrp will be + * set to np because setpgrp just changes a pgrp to be + * the same as the pid. + */ + setpgrp(np, pg1); + ng = getpgrp(0); /* Same result for Sys V and BSD */ + if (ng == pg1) { + exit(1); + } else { + exit(0); + } + } else { + wait(&s); + exit(s>>8); + } +} +], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no, + AC_MSG_ERROR(cannot check getpgrp if cross compiling)) +]) +if test $ac_cv_func_getpgrp_void = yes; then + AC_DEFINE(GETPGRP_VOID) +fi +]) + +AC_DEFUN(AC_FUNC_SETPGRP, +[AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void, +AC_TRY_RUN([ +#ifdef HAVE_UNISTD_H +#include +#endif + +/* + * If this system has a BSD-style setpgrp, which takes arguments, exit + * successfully. + */ +main() +{ + if (setpgrp(1,1) == -1) + exit(0); + else + exit(1); +} +], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes, + AC_MSG_ERROR(cannot check setpgrp if cross compiling)) +) +if test $ac_cv_func_setpgrp_void = yes; then + AC_DEFINE(SETPGRP_VOID) +fi +]) + +AC_DEFUN(AC_FUNC_VPRINTF, +[AC_CHECK_FUNC(vprintf, AC_DEFINE(HAVE_VPRINTF)) +if test "$ac_cv_func_vprintf" != yes; then +AC_CHECK_FUNC(_doprnt, AC_DEFINE(HAVE_DOPRNT)) +fi +]) + +AC_DEFUN(AC_FUNC_VFORK, +[AC_REQUIRE([AC_TYPE_PID_T])dnl +AC_CHECK_HEADER(vfork.h, AC_DEFINE(HAVE_VFORK_H)) +AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, +[AC_TRY_RUN([/* Thanks to Paul Eggert for first version of this test. */ +#include +#include +#include +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_VFORK_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#if defined(HAVE_WAIT_H) +#include +#else +#include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. + The compiler is told about this with #include , + but some compilers (e.g. gcc -O) don't grok . + Test for this by using a static variable whose address + is put into a register that is clobbered by the vfork. */ +#ifndef VMS +static int +#ifdef __cplusplus +sparc_address_test (int arg) +#else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } + return (0); +} +#endif +int exc = 0; + +int +main() { + pid_t parent = getpid (); + pid_t child; + +#ifndef VMS + sparc_address_test(0); +#endif + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. + This test uses lots of local variables, at least + as many local variables as main has allocated so far + including compiler temporaries. 4 locals are enough for + gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. + A buggy compiler should reuse the register of parent + for one of the local variables, since it will think that + parent can't possibly be used any more in this routine. + Assigning to the local variable will thus munge parent + in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + exc = 1; + + /* On some systems (e.g. IRIX 3.3), + vfork doesn't separate parent from child file descriptors. + If the child closes a descriptor before it execs or exits, + this munges the parent's descriptor as well. + Test for this by closing stdout in the child. */ + if (exc == 0) + exc = close(fileno(stdout)) != 0; + /* + * VMS hangs if we do not call execl() + */ +#ifdef HAVE_EXECL + /* + * On VMS, things hang unless the child calls exec() + */ + if (exc == 0) + execl("/bin/true", "true", (char *)0); + else + execl("/bin/false", "false", (char *)0); +#endif + _exit(exc); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + exit( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +}], +ac_cv_func_vfork_works=yes, ac_cv_func_vfork_works=no, AC_CHECK_FUNC(vfork) +ac_cv_func_vfork_works=$ac_cv_func_vfork)]) +if test $ac_cv_func_vfork_works = no; then + AC_DEFINE(vfork, fork) +else + AC_DEFINE(HAVE_VFORK) +fi +]) + +AC_DEFUN(AC_FUNC_WAIT3, +[AC_CACHE_CHECK(for wait3 that fills in rusage, ac_cv_func_wait3_rusage, +[AC_TRY_RUN([#include +#include +#include +#include +/* HP-UX has wait3 but does not fill in rusage at all. */ +main() { + struct rusage r; + int i; + /* Use a field that we can force nonzero -- + voluntary context switches. + For systems like NeXT and OSF/1 that don't set it, + also use the system CPU time. And page faults (I/O) for Linux. */ + r.ru_nvcsw = 0; + r.ru_utime.tv_sec = 0; + r.ru_utime.tv_usec = 0; + r.ru_stime.tv_sec = 0; + r.ru_stime.tv_usec = 0; + r.ru_majflt = r.ru_minflt = 0; + switch (fork()) { + case 0: /* Child. */ + sleep(1); /* Give up the CPU. */ + for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ + _exit(0); + case -1: _exit(0); /* What can we do? */ + default: /* Parent. */ + wait3(&i, 0, &r); + sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ + exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 + && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 + && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); + } +}], ac_cv_func_wait3_rusage=yes, ac_cv_func_wait3_rusage=no, +ac_cv_func_wait3_rusage=no)]) +if test $ac_cv_func_wait3_rusage = yes; then + AC_DEFINE(HAVE_WAIT3) +fi +]) + +AC_DEFUN(AC_FUNC_ALLOCA, +[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h, +[AC_TRY_LINK([#include ], [char *p = alloca(2 * sizeof(int));], + ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)]) +if test $ac_cv_header_alloca_h = yes; then + AC_DEFINE(HAVE_ALLOCA_H) +fi + +AC_CACHE_CHECK([for alloca], ac_cv_func_alloca_works, +[AC_TRY_LINK([ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif +], [char *p = (char *) alloca(1);], + ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)]) +if test $ac_cv_func_alloca_works = yes; then + AC_DEFINE(HAVE_ALLOCA) +fi + +if test $ac_cv_func_alloca_works = no; then + # The SVR3 libPW and SVR4 libucb both contain incompatible functions + # that cause trouble. Some versions do not even contain alloca or + # contain a buggy version. If you still want to use their alloca, + # use ar to extract alloca.o from them instead of compiling alloca.c. + ALLOCA=alloca.${ac_objext} + AC_DEFINE(C_ALLOCA) + +AC_CACHE_CHECK(whether alloca needs Cray hooks, ac_cv_os_cray, +[AC_EGREP_CPP(webecray, +[#if defined(CRAY) && ! defined(CRAY2) +webecray +#else +wenotbecray +#endif +], ac_cv_os_cray=yes, ac_cv_os_cray=no)]) +if test $ac_cv_os_cray = yes; then +for ac_func in _getb67 GETB67 getb67; do + AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func) + break]) +done +fi + +AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, +[AC_TRY_RUN([find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} +main () +{ + exit (find_stack_direction() < 0); +}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1, + ac_cv_c_stack_direction=0)]) +AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) +fi +AC_SUBST(ALLOCA)dnl +]) + +AC_DEFUN(AC_FUNC_GETLOADAVG, +[ac_have_func=no # yes means we've found a way to get the load average. + +# Some systems with -lutil have (and need) -lkvm as well, some do not. +# On Solaris, -lkvm requires nlist from -lelf, so check that first +# to get the right answer into the cache. +AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") +AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") +# Check for the 4.4BSD definition of getloadavg. +AC_CHECK_LIB(util, getloadavg, + [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) + +if test $ac_have_func = no; then + # There is a commonly available library for RS/6000 AIX. + # Since it is not a standard part of AIX, it might be installed locally. + ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" + AC_CHECK_LIB(getloadavg, getloadavg, + LIBS="-lgetloadavg $LIBS", LIBS="$ac_getloadavg_LIBS") +fi + +# Make sure it is really in the library, if we think we found it. +AC_REPLACE_FUNCS(getloadavg) + +if test $ac_cv_func_getloadavg = yes; then + AC_DEFINE(HAVE_GETLOADAVG) + ac_have_func=yes +else + # Figure out what our getloadavg.c needs. + ac_have_func=no + AC_CHECK_HEADER(sys/dg_sys_info.h, + [ac_have_func=yes; AC_DEFINE(DGUX) + AC_CHECK_LIB(dgc, dg_sys_info)]) + + # We cannot check for , because Solaris 2 does not use dwarf (it + # uses stabs), but it is still SVR4. We cannot check for because + # Irix 4.0.5F has the header but not the library. + if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then + ac_have_func=yes; AC_DEFINE(SVR4) + fi + + if test $ac_have_func = no; then + AC_CHECK_HEADER(inq_stats/cpustats.h, + [ac_have_func=yes; AC_DEFINE(UMAX) + AC_DEFINE(UMAX4_3)]) + fi + + if test $ac_have_func = no; then + AC_CHECK_HEADER(sys/cpustats.h, + [ac_have_func=yes; AC_DEFINE(UMAX)]) + fi + + if test $ac_have_func = no; then + AC_CHECK_HEADERS(mach/mach.h) + fi + + AC_CHECK_HEADER(nlist.h, + [AC_DEFINE(NLIST_STRUCT) + AC_CACHE_CHECK([for n_un in struct nlist], ac_cv_struct_nlist_n_un, + [AC_TRY_COMPILE([#include ], + [struct nlist n; n.n_un.n_name = 0;], + ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)]) + if test $ac_cv_struct_nlist_n_un = yes; then + AC_DEFINE(NLIST_NAME_UNION) + fi + ])dnl +fi # Do not have getloadavg in system libraries. + +# Some definitions of getloadavg require that the program be installed setgid. +dnl FIXME Don't hardwire the path of getloadavg.c in the top-level directory. +AC_CACHE_CHECK(whether getloadavg requires setgid, + ac_cv_func_getloadavg_setgid, +[AC_EGREP_CPP([Yowza Am I SETGID yet], +[#include "$srcdir/getloadavg.c" +#ifdef LDAV_PRIVILEGED +Yowza Am I SETGID yet +#endif], + ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)]) +if test $ac_cv_func_getloadavg_setgid = yes; then + NEED_SETGID=true; AC_DEFINE(GETLOADAVG_PRIVILEGED) +else + NEED_SETGID=false +fi +AC_SUBST(NEED_SETGID)dnl + +if test $ac_cv_func_getloadavg_setgid = yes; then + AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem, +[changequote(, )dnl + # On Solaris, /dev/kmem is a symlink. Get info on the real file. + ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` + # If we got an error (system does not support symlinks), try without -L. + test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` + ac_cv_group_kmem=`echo $ac_ls_output \ + | sed -ne 's/[ ][ ]*/ /g; + s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; + / /s/.* //;p;'` +changequote([, ])dnl +]) + KMEM_GROUP=$ac_cv_group_kmem +fi +AC_SUBST(KMEM_GROUP)dnl +]) + +AC_DEFUN(AC_FUNC_UTIME_NULL, +[AC_CACHE_CHECK(whether utime accepts a null argument, ac_cv_func_utime_null, +[rm -f conftestdata; > conftestdata +# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. +AC_TRY_RUN([#include +#include +main() { +struct stat s, t; +exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 +&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime +&& t.st_mtime - s.st_mtime < 120)); +}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no, + ac_cv_func_utime_null=no) +rm -f core core.* *.core]) +if test $ac_cv_func_utime_null = yes; then + AC_DEFINE(HAVE_UTIME_NULL) +fi +]) + +AC_DEFUN(AC_FUNC_STRCOLL, +[AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works, +[AC_TRY_RUN([#include +main () +{ + exit (strcoll ("abc", "def") >= 0 || + strcoll ("ABC", "DEF") >= 0 || + strcoll ("123", "456") >= 0); +}], ac_cv_func_strcoll_works=yes, ac_cv_func_strcoll_works=no, +ac_cv_func_strcoll_works=no)]) +if test $ac_cv_func_strcoll_works = yes; then + AC_DEFINE(HAVE_STRCOLL) +fi +]) + +AC_DEFUN(AC_FUNC_SETVBUF_REVERSED, +[AC_CACHE_CHECK(whether setvbuf arguments are reversed, + ac_cv_func_setvbuf_reversed, +[AC_TRY_RUN([#include +/* If setvbuf has the reversed format, exit 0. */ +main () { + /* This call has the arguments reversed. + A reversed system may check and see that the address of main + is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ + if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) + exit(1); + putc('\r', stdout); + exit(0); /* Non-reversed systems segv here. */ +}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no) +rm -f core core.* *.core]) +if test $ac_cv_func_setvbuf_reversed = yes; then + AC_DEFINE(SETVBUF_REVERSED) +fi +]) + +AC_DEFUN(AC_FUNC_GETMNTENT, +[# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. +AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS", + [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS", + [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])]) +AC_CHECK_FUNC(getmntent, [AC_DEFINE(HAVE_GETMNTENT)])]) + +AC_DEFUN(AC_FUNC_STRFTIME, +[AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)], +[# strftime is in -lintl on SCO UNIX. +AC_CHECK_LIB(intl, strftime, +[AC_DEFINE(HAVE_STRFTIME) +LIBS="-lintl $LIBS"])])]) + +AC_DEFUN(AC_FUNC_MEMCMP, +[AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean, +[AC_TRY_RUN([ +main() +{ + char c0 = 0x40, c1 = 0x80, c2 = 0x81; + exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); +} +], ac_cv_func_memcmp_clean=yes, ac_cv_func_memcmp_clean=no, +ac_cv_func_memcmp_clean=no)]) +test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" +AC_SUBST(LIBOBJS)dnl +]) + +AC_DEFUN(AC_FUNC_SELECT_ARGTYPES, +[AC_MSG_CHECKING([types of arguments for select()]) + AC_CACHE_VAL(ac_cv_func_select_arg234,dnl + [AC_CACHE_VAL(ac_cv_func_select_arg1,dnl + [AC_CACHE_VAL(ac_cv_func_select_arg5,dnl + [for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do + for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do + for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do + AC_TRY_COMPILE(dnl +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_SYS_SELECT_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl + [ac_not_found=no ; break 3],ac_not_found=yes) + done + done + done + ])dnl AC_CACHE_VAL + ])dnl AC_CACHE_VAL + ])dnl AC_CACHE_VAL + if test "$ac_not_found" = yes; then + ac_cv_func_select_arg1=int + ac_cv_func_select_arg234='int *' + ac_cv_func_select_arg5='struct timeval *' + fi + AC_MSG_RESULT([$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5]) + AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG1,$ac_cv_func_select_arg1) + AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG234,($ac_cv_func_select_arg234)) + AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG5,($ac_cv_func_select_arg5)) +]) + + +dnl ### Checks for structure members + + +AC_DEFUN(AC_HEADER_TIME, +[AC_CACHE_CHECK([whether time.h and sys/time.h may both be included], + ac_cv_header_time, +[AC_TRY_COMPILE([#include +#include +#include ], +[struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)]) +if test $ac_cv_header_time = yes; then + AC_DEFINE(TIME_WITH_SYS_TIME) +fi +]) + +AC_DEFUN(AC_STRUCT_TM, +[AC_CACHE_CHECK([whether struct tm is in sys/time.h or time.h], + ac_cv_struct_tm, +[AC_TRY_COMPILE([#include +#include ], +[struct tm *tp; tp->tm_sec;], + ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)]) +if test $ac_cv_struct_tm = sys/time.h; then + AC_DEFINE(TM_IN_SYS_TIME) +fi +]) + +AC_DEFUN(AC_STRUCT_TM_ZONE, +[AC_REQUIRE([AC_STRUCT_TM])dnl +AC_CACHE_CHECK([for tm_zone in struct tm], ac_cv_struct_tm_zone, +[AC_TRY_COMPILE([#include +#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;], + ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)]) +if test "$ac_cv_struct_tm_zone" = yes; then + AC_DEFINE(HAVE_TM_ZONE) +else + AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, +[AC_TRY_LINK( +changequote(<<, >>)dnl +<<#include +#ifndef tzname /* For SGI. */ +extern char *tzname[]; /* RS6000 and others reject char **tzname. */ +#endif>>, +changequote([, ])dnl +[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) + if test $ac_cv_var_tzname = yes; then + AC_DEFINE(HAVE_TZNAME) + fi +fi +]) + +AC_DEFUN(AC_STRUCT_ST_BLOCKS, +[AC_CACHE_CHECK([for st_blocks in struct stat], ac_cv_struct_st_blocks, +[AC_TRY_COMPILE([#include +#include ], [struct stat s; s.st_blocks;], +ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)]) +if test $ac_cv_struct_st_blocks = yes; then + AC_DEFINE(HAVE_ST_BLOCKS) +else + LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" +fi +AC_SUBST(LIBOBJS)dnl +]) + +AC_DEFUN(AC_STRUCT_ST_BLKSIZE, +[AC_CACHE_CHECK([for st_blksize in struct stat], ac_cv_struct_st_blksize, +[AC_TRY_COMPILE([#include +#include ], [struct stat s; s.st_blksize;], +ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)]) +if test $ac_cv_struct_st_blksize = yes; then + AC_DEFINE(HAVE_ST_BLKSIZE) +fi +]) + +AC_DEFUN(AC_STRUCT_ST_RDEV, +[AC_CACHE_CHECK([for st_rdev in struct stat], ac_cv_struct_st_rdev, +[AC_TRY_COMPILE([#include +#include ], [struct stat s; s.st_rdev;], +ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)]) +if test $ac_cv_struct_st_rdev = yes; then + AC_DEFINE(HAVE_ST_RDEV) +fi +]) + + +dnl ### Checks for compiler characteristics + + +AC_DEFUN(AC_C_CROSS, +[AC_OBSOLETE([$0], [; it has been merged into AC_PROG_CC])]) + +AC_DEFUN(AC_C_CHAR_UNSIGNED, +[AC_CACHE_CHECK(whether char is unsigned, ac_cv_c_char_unsigned, +[if test "$GCC" = yes; then + # GCC predefines this symbol on systems where it applies. +AC_EGREP_CPP(yes, +[#ifdef __CHAR_UNSIGNED__ + yes +#endif +], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) +else +AC_TRY_RUN( +[/* volatile prevents gcc2 from optimizing the test away on sparcs. */ +#if !defined(__STDC__) || __STDC__ != 1 +#define volatile +#endif +main() { + volatile char c = 255; exit(c < 0); +}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) +fi]) +if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then + AC_DEFINE(__CHAR_UNSIGNED__) +fi +]) + +AC_DEFUN(AC_C_LONG_DOUBLE, +[AC_CACHE_CHECK(for long double, ac_cv_c_long_double, +[if test "$GCC" = yes; then + ac_cv_c_long_double=yes +else +AC_TRY_RUN([int main() { +/* The Stardent Vistra knows sizeof(long double), but does not support it. */ +long double foo = 0.0; +/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ +exit(sizeof(long double) < sizeof(double)); }], +ac_cv_c_long_double=yes, ac_cv_c_long_double=no) +fi]) +if test $ac_cv_c_long_double = yes; then + AC_DEFINE(HAVE_LONG_DOUBLE) +fi +]) + +AC_DEFUN(AC_INT_16_BITS, +[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl +AC_MSG_CHECKING(whether int is 16 bits) +AC_TRY_RUN([main() { exit(sizeof(int) != 2); }], + [AC_MSG_RESULT(yes) + AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no)) +]) + +AC_DEFUN(AC_LONG_64_BITS, +[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl +AC_MSG_CHECKING(whether long int is 64 bits) +AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }], + [AC_MSG_RESULT(yes) + AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no)) +]) + +AC_DEFUN(AC_C_BIGENDIAN, +[AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian, +[ac_cv_c_bigendian=unknown +# See if sys/param.h defines the BYTE_ORDER macro. +AC_TRY_COMPILE([#include +#include ], [ +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN + bogus endian macros +#endif], [# It does; now see whether it defined to BIG_ENDIAN or not. +AC_TRY_COMPILE([#include +#include ], [ +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)]) +if test $ac_cv_c_bigendian = unknown; then +AC_TRY_RUN([main () { + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long l; + char c[sizeof (long)]; + } u; + u.l = 1; + exit (u.c[sizeof (long) - 1] == 1); +}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes) +fi]) +if test $ac_cv_c_bigendian = yes; then + AC_DEFINE(WORDS_BIGENDIAN) +fi +]) + +dnl Do nothing if the compiler accepts the inline keyword. +dnl Otherwise define inline to __inline__ or __inline if one of those work, +dnl otherwise define inline to be empty. +AC_DEFUN(AC_C_INLINE, +[AC_CACHE_CHECK([for inline], ac_cv_c_inline, +[ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + AC_TRY_COMPILE(, [} $ac_kw foo() {], [ac_cv_c_inline=$ac_kw; break]) +done +]) +case "$ac_cv_c_inline" in + inline | yes) ;; + no) AC_DEFINE(inline, ) ;; + *) AC_DEFINE_UNQUOTED(inline, $ac_cv_c_inline) ;; +esac +]) + +AC_DEFUN(AC_C_CONST, +[dnl This message is consistent in form with the other checking messages, +dnl and with the result message. +AC_CACHE_CHECK([for working const], ac_cv_c_const, +[AC_TRY_COMPILE(, +changequote(<<, >>)dnl +<< +/* Ultrix mips cc rejects this. */ +typedef int charset[2]; const charset x; +/* SunOS 4.1.1 cc rejects this. */ +char const *const *ccp; +char **p; +/* NEC SVR4.0.2 mips cc rejects this. */ +struct point {int x, y;}; +static struct point const zero = {0,0}; +/* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in an arm + of an if-expression whose if-part is not a constant expression */ +const char *g = "string"; +ccp = &g + (g ? g-g : 0); +/* HPUX 7.0 cc rejects these. */ +++ccp; +p = (char**) ccp; +ccp = (char const *const *) p; +{ /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; +} +{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; +} +{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; +} +{ /* AIX XL C 1.02.0.0 rejects this saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; }; + struct s *b; b->j = 5; +} +{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; +} +>>, +changequote([, ])dnl +ac_cv_c_const=yes, ac_cv_c_const=no)]) +if test $ac_cv_c_const = no; then + AC_DEFINE(const, ) +fi +]) + +AC_DEFUN(AC_C_STRINGIZE, [ +AC_REQUIRE([AC_PROG_CPP]) +AC_MSG_CHECKING([for preprocessor stringizing operator]) +AC_CACHE_VAL(ac_cv_c_stringize, +AC_EGREP_CPP([#teststring],[ +#define x(y) #y + +char *s = x(teststring); +], ac_cv_c_stringize=no, ac_cv_c_stringize=yes)) +if test "${ac_cv_c_stringize}" = yes +then + AC_DEFINE(HAVE_STRINGIZE) +fi +AC_MSG_RESULT([${ac_cv_c_stringize}]) +])dnl + +define(AC_ARG_ARRAY, +[errprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments +)m4exit(4)]) + +dnl Check the object extension used by the compiler: typically .o or +dnl .obj. If this is called, some other behaviour will change, +dnl determined by ac_objext. +AC_DEFUN(AC_OBJEXT, +[AC_MSG_CHECKING([for object suffix]) +AC_CACHE_VAL(ac_cv_objext, +[rm -f conftest* +echo 'int i = 1;' > conftest.$ac_ext +if AC_TRY_EVAL(ac_compile); then + for ac_file in conftest.*; do + case $ac_file in + *.c) ;; + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; + esac + done +else + AC_MSG_ERROR([installation or configuration problem; compiler does not work]) +fi +rm -f conftest*]) +AC_MSG_RESULT($ac_cv_objext) +OBJEXT=$ac_cv_objext +ac_objext=$ac_cv_objext +AC_SUBST(OBJEXT)]) + +dnl Determine the linker flags (e.g. `-L' and `-l') for the Fortran 77 +dnl intrinsic and run-time libraries that are required to successfully +dnl link a Fortran 77 program or shared library. The output variable +dnl FLIBS is set to these flags. +dnl +dnl This macro is intended to be used in those situations when it is +dnl necessary to mix, e.g. C++ and Fortran 77, source code into a single +dnl program or shared library. +dnl +dnl For example, if object files from a C++ and Fortran 77 compiler must +dnl be linked together, then the C++ compiler/linker must be used for +dnl linking (since special C++-ish things need to happen at link time +dnl like calling global constructors, instantiating templates, enabling +dnl exception support, etc.). +dnl +dnl However, the Fortran 77 intrinsic and run-time libraries must be +dnl linked in as well, but the C++ compiler/linker doesn't know how to +dnl add these Fortran 77 libraries. Hence, the macro +dnl `AC_F77_LIBRARY_LDFLAGS' was created to determine these Fortran 77 +dnl libraries. +dnl +dnl This macro was packaged in its current form by Matthew D. Langston +dnl . However, nearly all of this macro +dnl came from the `OCTAVE_FLIBS' macro in `octave-2.0.13/aclocal.m4', +dnl and full credit should go to John W. Eaton for writing this +dnl extremely useful macro. Thank you John. +dnl +dnl AC_F77_LIBRARY_LDFLAGS() +AC_DEFUN(AC_F77_LIBRARY_LDFLAGS, +[AC_MSG_CHECKING([for Fortran 77 libraries]) +AC_REQUIRE([AC_PROG_F77]) +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_CACHE_VAL(ac_cv_flibs, +[changequote(, )dnl +dnl Write a minimal program and compile it with -v. I don't know what +dnl to do if your compiler doesn't have -v... +echo " END" > conftest.f +foutput=`${F77} -v -o conftest conftest.f 2>&1` +dnl +dnl The easiest thing to do for xlf output is to replace all the commas +dnl with spaces. Try to only do that if the output is really from xlf, +dnl since doing that causes problems on other systems. +dnl +xlf_p=`echo $foutput | grep xlfentry` +if test -n "$xlf_p"; then + foutput=`echo $foutput | sed 's/,/ /g'` +fi +dnl +ld_run_path=`echo $foutput | \ + sed -n -e 's/^.*LD_RUN_PATH *= *\([^ ]*\).*/\1/p'` +dnl +dnl We are only supposed to find this on Solaris systems... +dnl Uh, the run path should be absolute, shouldn't it? +dnl +case "$ld_run_path" in + /*) + if test "$ac_cv_prog_gcc" = yes; then + ld_run_path="-Xlinker -R -Xlinker $ld_run_path" + else + ld_run_path="-R $ld_run_path" + fi + ;; + *) + ld_run_path= + ;; +esac +dnl +flibs= +lflags= +dnl +dnl If want_arg is set, we know we want the arg to be added to the list, +dnl so we don't have to examine it. +dnl +want_arg= +dnl +for arg in $foutput; do + old_want_arg=$want_arg + want_arg= +dnl +dnl None of the options that take arguments expect the argument to +dnl start with a -, so pretend we didn't see anything special. +dnl + if test -n "$old_want_arg"; then + case "$arg" in + -*) + old_want_arg= + ;; + esac + fi + case "$old_want_arg" in + '') + case $arg in + /*.a) + exists=false + for f in $lflags; do + if test x$arg = x$f; then + exists=true + fi + done + if $exists; then + arg= + else + lflags="$lflags $arg" + fi + ;; + -bI:*) + exists=false + for f in $lflags; do + if test x$arg = x$f; then + exists=true + fi + done + if $exists; then + arg= + else + if test "$ac_cv_prog_gcc" = yes; then + lflags="$lflags -Xlinker $arg" + else + lflags="$lflags $arg" + fi + fi + ;; + -lang* | -lcrt0.o | -lc | -lgcc) + arg= + ;; + -[lLR]) + want_arg=$arg + arg= + ;; + -[lLR]*) + exists=false + for f in $lflags; do + if test x$arg = x$f; then + exists=true + fi + done + if $exists; then + arg= + else + case "$arg" in + -lkernel32) + case "$canonical_host_type" in + *-*-cygwin*) + arg= + ;; + *) + lflags="$lflags $arg" + ;; + esac + ;; + -lm) + ;; + *) + lflags="$lflags $arg" + ;; + esac + fi + ;; + -u) + want_arg=$arg + arg= + ;; + -Y) + want_arg=$arg + arg= + ;; + *) + arg= + ;; + esac + ;; + -[lLR]) + arg="$old_want_arg $arg" + ;; + -u) + arg="-u $arg" + ;; + -Y) +dnl +dnl Should probably try to ensure unique directory options here too. +dnl This probably only applies to Solaris systems, and then will only +dnl work with gcc... +dnl + arg=`echo $arg | sed -e 's%^P,%%'` + SAVE_IFS=$IFS + IFS=: + list= + for elt in $arg; do + list="$list -L$elt" + done + IFS=$SAVE_IFS + arg="$list" + ;; + esac +dnl + if test -n "$arg"; then + flibs="$flibs $arg" + fi +done +if test -n "$ld_run_path"; then + flibs_result="$ld_run_path $flibs" +else + flibs_result="$flibs" +fi +changequote([, ])dnl +ac_cv_flibs="$flibs_result"]) +FLIBS="$ac_cv_flibs" +AC_SUBST(FLIBS)dnl +AC_MSG_RESULT($FLIBS) +]) + + +dnl ### Checks for operating system services + + +AC_DEFUN(AC_SYS_INTERPRETER, +[# Pull the hash mark out of the macro call to avoid m4 problems. +ac_msg="whether #! works in shell scripts" +AC_CACHE_CHECK($ac_msg, ac_cv_sys_interpreter, +[echo '#! /bin/cat +exit 69 +' > conftest +chmod u+x conftest +(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) +if test $? -ne 69; then + ac_cv_sys_interpreter=yes +else + ac_cv_sys_interpreter=no +fi +rm -f conftest]) +interpval="$ac_cv_sys_interpreter" +]) + +define(AC_HAVE_POUNDBANG, +[errprint(__file__:__line__: [$0 has been replaced by AC_SYS_INTERPRETER, taking no arguments +])m4exit(4)]) + +AC_DEFUN(AC_SYS_LONG_FILE_NAMES, +[AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, +[ac_cv_sys_long_file_names=yes +# Test for long file names in all the places we know might matter: +# . the current directory, where building will happen +# $prefix/lib where we will be installing things +# $exec_prefix/lib likewise +# eval it to expand exec_prefix. +# $TMPDIR if set, where it might want to write temporary files +# if $TMPDIR is not set: +# /tmp where it might want to write temporary files +# /var/tmp likewise +# /usr/tmp likewise +if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then + ac_tmpdirs="$TMPDIR" +else + ac_tmpdirs='/tmp /var/tmp /usr/tmp' +fi +for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do + test -d $ac_dir || continue + test -w $ac_dir || continue # It is less confusing to not echo anything here. + (echo 1 > $ac_dir/conftest9012345) 2>/dev/null + (echo 2 > $ac_dir/conftest9012346) 2>/dev/null + val=`cat $ac_dir/conftest9012345 2>/dev/null` + if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then + ac_cv_sys_long_file_names=no + rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null + break + fi + rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null +done]) +if test $ac_cv_sys_long_file_names = yes; then + AC_DEFINE(HAVE_LONG_FILE_NAMES) +fi +]) + +AC_DEFUN(AC_SYS_RESTARTABLE_SYSCALLS, +[AC_CACHE_CHECK(for restartable system calls, ac_cv_sys_restartable_syscalls, +[AC_TRY_RUN( +[/* Exit 0 (true) if wait returns something other than -1, + i.e. the pid of the child, which means that wait was restarted + after getting the signal. */ +#include +#include +ucatch (isig) { } +main () { + int i = fork (), status; + if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } + signal (SIGINT, ucatch); + status = wait(&i); + if (status == -1) wait(&i); + exit (status == -1); +} +], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)]) +if test $ac_cv_sys_restartable_syscalls = yes; then + AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS) +fi +]) + +AC_DEFUN(AC_PATH_X, +[AC_REQUIRE_CPP()dnl Set CPP; we run AC_PATH_X_DIRECT conditionally. +# If we find X, set shell vars x_includes and x_libraries to the +# paths, otherwise set no_x=yes. +# Uses ac_ vars as temps to allow command line to override cache and checks. +# --without-x overrides everything else, but does not touch the cache. +AC_MSG_CHECKING(for X) + +AC_ARG_WITH(x, [ --with-x use the X Window System]) +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then + # Both variables are already set. + have_x=yes + else +AC_CACHE_VAL(ac_cv_have_x, +[# One or both of the vars are not set, and there is no cached value. +ac_x_includes=NO ac_x_libraries=NO +AC_PATH_X_XMKMF +AC_PATH_X_DIRECT +if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then + # Didn't find X anywhere. Cache the known absence of X. + ac_cv_have_x="have_x=no" +else + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" +fi])dnl + fi + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + AC_MSG_RESULT($have_x) + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$x_includes ac_x_libraries=$x_libraries" + AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) +fi +]) + +dnl Internal subroutine of AC_PATH_X. +dnl Set ac_x_includes and/or ac_x_libraries. +AC_DEFUN(AC_PATH_X_XMKMF, +[rm -fr conftestdir +if mkdir conftestdir; then + cd conftestdir + # Make sure to not put "make" in the Imakefile rules, since we grep it out. + cat > Imakefile <<'EOF' +acfindx: + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' +EOF + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering...", which would confuse us. + eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl; do + if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && + test -f $ac_im_libdir/libX11.$ac_extension; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case "$ac_im_incroot" in + /usr/include) ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; + esac + case "$ac_im_usrlibdir" in + /usr/lib | /lib) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; + esac + fi + cd .. + rm -fr conftestdir +fi +]) + +dnl Internal subroutine of AC_PATH_X. +dnl Set ac_x_includes and/or ac_x_libraries. +AC_DEFUN(AC_PATH_X_DIRECT, +[if test "$ac_x_includes" = NO; then + # Guess where to find include files, by looking for this one X11 .h file. + test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h + + # First, try using that file with no special directory specified. +AC_TRY_CPP([#include <$x_direct_test_include>], +[# We can compile using X headers with no special include directory. +ac_x_includes=], +[# Look for the header file in a standard set of common directories. +# Check X11 before X11Rn because it is often a symlink to the current release. + for ac_dir in \ + /usr/X11/include \ + /usr/X11R6/include \ + /usr/X11R5/include \ + /usr/X11R4/include \ + \ + /usr/include/X11 \ + /usr/include/X11R6 \ + /usr/include/X11R5 \ + /usr/include/X11R4 \ + \ + /usr/local/X11/include \ + /usr/local/X11R6/include \ + /usr/local/X11R5/include \ + /usr/local/X11R4/include \ + \ + /usr/local/include/X11 \ + /usr/local/include/X11R6 \ + /usr/local/include/X11R5 \ + /usr/local/include/X11R4 \ + \ + /usr/X386/include \ + /usr/x386/include \ + /usr/XFree86/include/X11 \ + \ + /usr/include \ + /usr/local/include \ + /usr/unsupported/include \ + /usr/athena/include \ + /usr/local/x11r5/include \ + /usr/lpp/Xamples/include \ + \ + /usr/openwin/include \ + /usr/openwin/share/include \ + ; \ + do + if test -r "$ac_dir/$x_direct_test_include"; then + ac_x_includes=$ac_dir + break + fi + done]) +fi # $ac_x_includes = NO + +if test "$ac_x_libraries" = NO; then + # Check for the libraries. + + test -z "$x_direct_test_library" && x_direct_test_library=Xt + test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc + + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS="$LIBS" + LIBS="-l$x_direct_test_library $LIBS" +AC_TRY_LINK(, [${x_direct_test_function}()], +[LIBS="$ac_save_LIBS" +# We can link X programs with no special library path. +ac_x_libraries=], +[LIBS="$ac_save_LIBS" +# First see if replacing the include by lib works. +# Check X11 before X11Rn because it is often a symlink to the current release. +for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ + /usr/X11/lib \ + /usr/X11R6/lib \ + /usr/X11R5/lib \ + /usr/X11R4/lib \ + \ + /usr/lib/X11 \ + /usr/lib/X11R6 \ + /usr/lib/X11R5 \ + /usr/lib/X11R4 \ + \ + /usr/local/X11/lib \ + /usr/local/X11R6/lib \ + /usr/local/X11R5/lib \ + /usr/local/X11R4/lib \ + \ + /usr/local/lib/X11 \ + /usr/local/lib/X11R6 \ + /usr/local/lib/X11R5 \ + /usr/local/lib/X11R4 \ + \ + /usr/X386/lib \ + /usr/x386/lib \ + /usr/XFree86/lib/X11 \ + \ + /usr/lib \ + /usr/local/lib \ + /usr/unsupported/lib \ + /usr/athena/lib \ + /usr/local/x11r5/lib \ + /usr/lpp/Xamples/lib \ + /lib/usr/lib/X11 \ + \ + /usr/openwin/lib \ + /usr/openwin/share/lib \ + ; \ +do +dnl Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl; do + if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done]) +fi # $ac_x_libraries = NO +]) + +dnl Find additional X libraries, magic flags, etc. +AC_DEFUN(AC_PATH_XTRA, +[AC_REQUIRE([AC_PATH_X])dnl +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + AC_DEFINE(X_DISPLAY_MISSING) + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" +dnl FIXME banish uname from this macro! + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + case "`(uname -sr) 2>/dev/null`" in + "SunOS 5"*) + AC_MSG_CHECKING(whether -R must be followed by a space) + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" + AC_TRY_LINK(, , ac_R_nospace=yes, ac_R_nospace=no) + if test $ac_R_nospace = yes; then + AC_MSG_RESULT(no) + X_LIBS="$X_LIBS -R$x_libraries" + else + LIBS="$ac_xsave_LIBS -R $x_libraries" + AC_TRY_LINK(, , ac_R_space=yes, ac_R_space=no) + if test $ac_R_space = yes; then + AC_MSG_RESULT(yes) + X_LIBS="$X_LIBS -R $x_libraries" + else + AC_MSG_RESULT(neither works) + fi + fi + LIBS="$ac_xsave_LIBS" + esac + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And karl@cs.umb.edu says + # the Alpha needs dnet_stub (dnet does not exist). + AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + AC_CHECK_LIB(dnet_stub, dnet_ntoa, + [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) + fi + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to dickey@clark.net. + AC_CHECK_FUNC(gethostbyname) + if test $ac_cv_func_gethostbyname = no; then + AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says simon@lia.di.epfl.ch: it contains + # gethostby* variants that don't use the nameserver (or something). + # -lsocket must be given before -lnsl if both are needed. + # We assume that if connect needs -lnsl, so does gethostbyname. + AC_CHECK_FUNC(connect) + if test $ac_cv_func_connect = no; then + AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , + $X_EXTRA_LIBS) + fi + + # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. + AC_CHECK_FUNC(remove) + if test $ac_cv_func_remove = no; then + AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + AC_CHECK_FUNC(shmat) + if test $ac_cv_func_shmat = no; then + AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS="$LDFLAGS" + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. + AC_CHECK_LIB(ICE, IceConnectionNumber, + [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) + LDFLAGS="$ac_save_LDFLAGS" + +fi +AC_SUBST(X_CFLAGS)dnl +AC_SUBST(X_PRE_LIBS)dnl +AC_SUBST(X_LIBS)dnl +AC_SUBST(X_EXTRA_LIBS)dnl +]) + +dnl The old Cygwin32 macro is deprecated. +AC_DEFUN(AC_CYGWIN32, +[AC_OBSOLETE([$0], [; instead use AC_CYGWIN])dnl +AC_CYGWIN]) + +dnl Check for Cygwin. This is a way to set the right value for +dnl EXEEXT. +AC_DEFUN(AC_CYGWIN, +[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin, +[AC_TRY_COMPILE(,[ +#ifndef __CYGWIN__ +#define __CYGWIN__ __CYGWIN32__ +#endif +return __CYGWIN__;], +ac_cv_cygwin=yes, ac_cv_cygwin=no) +rm -f conftest*]) +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes]) + +dnl Check for mingw32. This is another way to set the right value for +dnl EXEEXT. +AC_DEFUN(AC_MINGW32, +[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32, +[AC_TRY_COMPILE(,[return __MINGW32__;], +ac_cv_mingw32=yes, ac_cv_mingw32=no) +rm -f conftest*]) +MINGW32= +test "$ac_cv_mingw32" = yes && MINGW32=yes]) + +dnl Check for EMX/OS2. This is another way to set the right value for +dnl EXEEXT. +AC_DEFUN(AC_EMXOS2, +[AC_CACHE_CHECK(for EMX/OS2 environment, ac_cv_emxos2, +[AC_TRY_COMPILE(,[return __EMX__;], +ac_cv_emxos2=yes, ac_cv_emxos2=no) +rm -f conftest*]) +AC_CACHE_VAL(ac_cv_libpre, +if test "$ac_cv_emxos2" = yes ; then + ac_cv_libpre= +else + ac_cv_libpre=lib +fi +) +EMXOS2= +test "$ac_cv_emxos2" = yes && EMXOS2=yes]) + +dnl Check for the extension used for executables. This knows that we +dnl add .exe for Cygwin or mingw32. Otherwise, it compiles a test +dnl executable. If this is called, the executable extensions will be +dnl automatically used by link commands run by the configure script. +AC_DEFUN(AC_EXEEXT, +[AC_REQUIRE([AC_CYGWIN]) +AC_REQUIRE([AC_MINGW32]) +AC_REQUIRE([AC_EMXOS2]) +AC_MSG_CHECKING([for executable suffix]) +AC_CACHE_VAL(ac_cv_exeext, +[if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then + ac_cv_exeext=.exe + ac_cv_xexeext="" +else + rm -f conftest* + echo 'int main () { return 0; }' > conftest.$ac_ext + ac_cv_exeext= + if AC_TRY_EVAL(ac_link); then + for file in conftest.*; do + case $file in + *.c | *.o | *.obj) ;; + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; + esac + done + else + ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` + ret=$? + nf=`echo "$ccout" | grep 'not found'` + if test $ret = 127 -a -n "$nf" ; then # Korn Shell + ccout="" + fi + if test ! -n "$ccout" ; then + AC_MSG_ERROR([installation or configuration problem: C compiler ${CC-cc} not found.]) + fi + AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.]) + fi + (./conftest ; exit) 2> /dev/null + if test $? != 0 ; then + ac_cv_xexeext="${ac_cv_exeext}" + (./conftest${ac_cv_xexeext} ; exit) 2> /dev/null + if test $? != 0 ; then + ac_cv_xexeext="" + fi + fi + rm -f conftest* + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no + test x"${ac_cv_xexeext}" = x && ac_cv_xexeext=no +fi]) +EXEEXT="" +XEXEEXT="" +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} +test x"${ac_cv_xexeext}" != xno && XEXEEXT=${ac_cv_xexeext} +AC_MSG_RESULT(${ac_cv_exeext}) +AC_MSG_CHECKING([for executable calling suffix]) +AC_MSG_RESULT(${ac_cv_xexeext}) +dnl Setting ac_exeext will implicitly change the ac_link command. +ac_exeext=$EXEEXT +ac_xexeext=$XEXEEXT +AC_SUBST(EXEEXT) +AC_SUBST(XEXEEXT) +]) + + +dnl ### Checks for UNIX variants +dnl These are kludges which should be replaced by a single POSIX check. +dnl They aren't cached, to discourage their use. + + +AC_DEFUN(AC_AIX, +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl +AC_BEFORE([$0], [AC_TRY_RUN])dnl +AC_MSG_CHECKING(for AIX) +AC_EGREP_CPP(yes, +[#ifdef _AIX + yes +#endif +], [AC_MSG_RESULT(yes); AC_DEFINE(_ALL_SOURCE)], AC_MSG_RESULT(no)) +]) + +AC_DEFUN(AC_MINIX, +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl +AC_BEFORE([$0], [AC_TRY_RUN])dnl +AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=) +if test "$MINIX" = yes; then + AC_DEFINE(_POSIX_SOURCE) + AC_DEFINE(_POSIX_1_SOURCE, 2) + AC_DEFINE(_MINIX) +fi +]) + +AC_DEFUN(AC_ISC_POSIX, +[AC_REQUIRE([AC_PROG_CC])dnl +AC_BEFORE([$0], [AC_TRY_COMPILE])dnl +AC_BEFORE([$0], [AC_TRY_RUN])dnl +AC_MSG_CHECKING(for POSIXized ISC) +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1 +then + AC_MSG_RESULT(yes) + ISC=yes # If later tests want to check for ISC. + AC_DEFINE(_POSIX_SOURCE) + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + AC_MSG_RESULT(no) + ISC= +fi +]) + +AC_DEFUN(AC_XENIX_DIR, +[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl +AC_REQUIRE([AC_DIR_HEADER])dnl +AC_MSG_CHECKING(for Xenix) +AC_EGREP_CPP(yes, +[#if defined(M_XENIX) && !defined(M_UNIX) + yes +#endif +], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=]) +if test "$XENIX" = yes; then + # Make sure -ldir precedes -lx. + test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS" + LIBS="$LIBS -lx" +fi +]) + +AC_DEFUN(AC_DYNIX_SEQ, +[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl +AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS") +]) + +AC_DEFUN(AC_IRIX_SUN, +[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl +AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS") +]) + +AC_DEFUN(AC_SCO_INTL, +[AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl +AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS") +]) diff -Nru smake-1.2a41/autoconf/autoconf smake-1.2a49/autoconf/autoconf --- smake-1.2a41/autoconf/autoconf 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/autoconf 2009-04-19 13:45:00.000000000 +0100 @@ -0,0 +1,176 @@ +#! /bin/sh +# @(#)autoconf 1.8 09/04/19 Copyright 1999-2009 J. Schilling +# +# autoconf -- create `configure' using m4 macros +# Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# If given no args, create `configure' from template file `configure.in'. +# With one arg, create a configure script on standard output from +# the given template file. + +usage="\ +Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] + [-l dir] [--localdir=dir] [--version] [template-file]" + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +: ${AC_MACRODIR=.} + +: ${M4=/usr/bin/gm4} +$M4 < /dev/null 2> /dev/null || M4=/opt/sfw/bin/gm4 +$M4 < /dev/null 2> /dev/null || M4=/usr/sfw/bin/gm4 +$M4 < /dev/null 2> /dev/null || M4=/opt/csw/bin/gm4 +$M4 < /dev/null 2> /dev/null || M4=gm4 +$M4 < /dev/null 2> /dev/null || M4=m4 + +: ${AWK=/usr/bin/gawk} +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=/opt/sfw/bin/gawk +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=/usr/sfw/bin/gawk +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=/opt/csw/bin/gawk +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=gawk +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=nawk +$AWK '{print 1}' < /dev/null 2> /dev/null || AWK=awk + +case "${M4}" in +/*) # Handle the case that m4 has moved since we were configured. + # It may have been found originally in a build directory. + test -f "${M4}" || M4=/usr/sfw/bin/gm4 + test -f "${M4}" || M4=m4 ;; +esac + +: ${TMPDIR=/tmp} +tmpout=${TMPDIR}/acout.$$ +localdir= +show_version=no + +while test $# -gt 0 ; do + case "${1}" in + -h | --help | --h* ) + echo "${usage}" 1>&2; exit 0 ;; + --localdir=* | --l*=* ) + localdir="`echo \"${1}\" | sed -e 's/^[^=]*=//'`" + shift ;; + -l | --localdir | --l*) + shift + test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } + localdir="${1}" + shift ;; + --macrodir=* | --m*=* ) + AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`" + shift ;; + -m | --macrodir | --m* ) + shift + test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } + AC_MACRODIR="${1}" + shift ;; + --version | --v* ) + show_version=yes; shift ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "${usage}" 1>&2; exit 1 ;; + * ) + break ;; + esac +done + +if test $show_version = yes; then + version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \ + $AC_MACRODIR/acgeneral.m4` + echo "Autoconf version $version" + exit 0 +fi + +case $# in + 0) infile=configure.in ;; + 1) infile="$1" ;; + *) echo "$usage" >&2; exit 1 ;; +esac + +trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15 + +tmpin=${TMPDIR}/acin.$$ # Always set this, to avoid bogus errors from some rm's. +if test z$infile = z-; then + infile=$tmpin + cat > $infile +elif test ! -r "$infile"; then + echo "autoconf: ${infile}: No such file or directory" >&2 + exit 1 +fi + +if test -n "$localdir"; then + use_localdir="-I$localdir -DAC_LOCALDIR=$localdir" +else + use_localdir= +fi + +# Use the frozen version of Autoconf if available. +r= f= +# Some non-GNU m4's don't reject the --help option, so give them /dev/null. +case `$M4 --help < /dev/null 2>&1` in +*reload-state*) test -r $AC_MACRODIR/autoconf.m4f && { r=--reload f=f; } ;; +*traditional*) ;; +*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin; exit 1 ;; +esac + +$M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout || + { rm -f $tmpin $tmpout; exit 2; } + +# You could add your own prefixes to pattern if you wanted to check for +# them too, e.g. pattern='\(AC_\|ILT_\)', except that UNIX sed doesn't do +# alternation. +pattern="AC_" + +status=0 +if grep "^[^#]*${pattern}" $tmpout > /dev/null 2>&1; then + echo "autoconf: Undefined macros:" >&2 + sed -n "s/^[^#]*\\(${pattern}[_A-Za-z0-9]*\\).*/\\1/p" $tmpout | + while read macro; do + grep -n "^[^#]*$macro" $infile /dev/null + test $? -eq 1 && echo >&2 "***BUG in Autoconf--please report*** $macro" + done | sort -u >&2 + status=1 +fi + +if test $# -eq 0; then + exec 4> configure; chmod +x configure +else + exec 4>&1 +fi + +# Put the real line numbers into configure to make config.log more helpful. +$AWK ' +/__oline__/ { printf "%d:", NR + 1 } + { print } +' $tmpout | sed ' +/__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/ +' >&4 + +rm -f $tmpout + +exit $status diff -Nru smake-1.2a41/autoconf/autoconf.m4 smake-1.2a49/autoconf/autoconf.m4 --- smake-1.2a41/autoconf/autoconf.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/autoconf.m4 1999-01-05 13:27:52.000000000 +0000 @@ -0,0 +1,28 @@ +dnl Driver that loads the Autoconf macro files. +dnl Requires GNU m4. +dnl This file is part of Autoconf. +dnl Copyright (C) 1994 Free Software Foundation, Inc. +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl Written by David MacKenzie. +dnl +include(acgeneral.m4)dnl +builtin(include, acspecific.m4)dnl +builtin(include, acoldnames.m4)dnl +dnl Do not sinclude acsite.m4 here, because it may not be installed +dnl yet when Autoconf is frozen. +dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. diff -Nru smake-1.2a41/autoconf/autoheader.m4 smake-1.2a49/autoconf/autoheader.m4 --- smake-1.2a41/autoconf/autoheader.m4 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/autoheader.m4 1999-01-05 13:28:37.000000000 +0000 @@ -0,0 +1,110 @@ +dnl Driver and redefinitions of some Autoconf macros for autoheader. +dnl This file is part of Autoconf. +dnl Copyright (C) 1994, 1995 Free Software Foundation, Inc. +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl Written by Roland McGrath. +dnl +include(acgeneral.m4)dnl +builtin(include, acspecific.m4)dnl +builtin(include, acoldnames.m4)dnl + +dnl These are alternate definitions of some macros, which produce +dnl strings in the output marked with "@@@" so we can easily extract +dnl the information we want. The `#' at the end of the first line of +dnl each definition seems to be necessary to prevent m4 from eating +dnl the newline, which makes the @@@ not always be at the beginning of +dnl a line. + +define([AC_CHECK_FUNCS], [# +@@@funcs="$funcs $1"@@@ +ifelse([$2], , , [ +# If it was found, we do: +$2 +# If it was not found, we do: +$3 +]) +]) + +define([AC_CHECK_HEADERS], [# +@@@headers="$headers $1"@@@ +ifelse([$2], , , [ +# If it was found, we do: +$2 +# If it was not found, we do: +$3 +]) +]) + +define([AC_CHECK_HEADERS_DIRENT], [# +@@@headers="$headers $1"@@@ +]) + +define([AC_CHECK_LIB], [# + ifelse([$3], , [ +@@@libs="$libs $1"@@@ +], [ +# If it was found, we do: +$3 +# If it was not found, we do: +$4 +]) +]) + +define([AC_HAVE_LIBRARY], [# +changequote(<<, >>)dnl +define(<>, dnl +patsubst(patsubst($1, <>, <<\1>>), <<-l>>, <<>>))dnl +changequote([, ])dnl + ifelse([$2], , [ +@@@libs="$libs AC_LIB_NAME"@@@ +], [ +# If it was found, we do: +$2 +# If it was not found, we do: +$3 +]) +]) + +define([AC_CHECK_SIZEOF], [# +@@@types="$types,$1"@@@ +]) + +define([AC_CONFIG_HEADER], [# +define([AC_CONFIG_H], patsubst($1, [ .*$], []))dnl +@@@config_h=AC_CONFIG_H@@@ +]) + +define([AC_DEFINE], [# +ifelse([$3],,[# +@@@syms="$syms $1"@@@ +], [# +@@@verbatim="$verbatim +/* $3 */ +#undef $1 +"@@@ +])]) + +define([AC_DEFINE_UNQUOTED], [# +ifelse([$3],,[# +@@@syms="$syms $1"@@@ +], [# +@@@verbatim="$verbatim +/* $3 */ +#undef $1 +"@@@ +])]) diff -Nru smake-1.2a41/autoconf/config.guess smake-1.2a49/autoconf/config.guess --- smake-1.2a41/autoconf/config.guess 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/config.guess 2009-10-31 14:52:30.000000000 +0000 @@ -0,0 +1,1011 @@ +#! /bin/sh +# @(#)config.guess 1.15 09/10/31 Copyright 1999-2009 J. Schilling +# +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Written by Per Bothner . +# The master version of this file is at the FSF in /home/gd/gnu/lib. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit system type (host/target name). +# +# Only a few systems have been added to this list; please add others +# (but try to keep the structure clean). +# + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 8/24/94.) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + alpha:OSF1:*:*) + if test $UNAME_RELEASE = "V4.0"; then + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + fi + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + cat <dummy.s + .globl main + .ent main +main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + ${CC-cc} dummy.s -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + fi + rm -f dummy.s dummy + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + *:FreeMiNT:*:*) + echo m68k-atari-freemint + exit 0 ;; + *:MiNT:*:*) + echo m68k-atari-mint + exit 0 ;; + *:TOS:*:*) + echo m68k-atari-tos + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-cbm-sysv4 + exit 0;; + amiga:NetBSD:*:*) + echo m68k-cbm-netbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + arc64:OpenBSD:*:*) + echo mips64el-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hkmips:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + arm32:NetBSD:*:*) + echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + SR2?01:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + atari*:NetBSD:*:*) + echo m68k-atari-netbsd${UNAME_RELEASE} + exit 0 ;; + atari*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:NetBSD:*:*) + echo m68k-sun-netbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:NetBSD:*:*) + echo m68k-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + macppc:NetBSD:*:*) + echo powerpc-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + sed 's/^ //' << EOF >dummy.c + int main (argc, argv) int argc; char **argv; { + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + ${CC-cc} dummy.c -o dummy \ + && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ + -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i?86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + sed 's/^ //' << EOF >dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:4) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=4.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 | 9000/820 | 9000/800 ) + sed 's/^ //' << EOF >dummy.c + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy` + rm -f dummy.c dummy + esac + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + sed 's/^ //' << EOF >dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i?86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*X-MP:*:*:*) + echo xmp-cray-unicos + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY-2:*:*:*) + echo cray2-cray-unicos + exit 0 ;; + F300:UNIX_System_V:*:*) + FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + F301:UNIX_System_V:*:*) + echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` + exit 0 ;; + hp3[0-9][05]:NetBSD:*:*) + echo m68k-hp-netbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + i?86:BSD/386:*:* | *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + x86:Interix*:3*) + echo i586-pc-interix3 + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit 0 ;; + *:Linux:*:*) + # uname on the ARM produces all sorts of strangeness, and we need to + # filter it out. + case "$UNAME_MACHINE" in + arm* | sa110*) UNAME_MACHINE="arm" ;; + esac + + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. + ld_help_string=`ld --help 2>&1` + ld_supported_emulations=`echo $ld_help_string \ + | sed -ne '/supported emulations:/!d + s/[ ][ ]*/ /g + s/.*supported emulations: *// + s/ .*// + p'` + case "$ld_supported_emulations" in + i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; + i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; + sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; + esac + + if test "${UNAME_MACHINE}" = "alpha" ; then + sed 's/^ //' <dummy.s + .globl main + .ent main + main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + LIBC="" + ${CC-cc} dummy.s -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + + objdump --private-headers dummy | \ + grep ld.so.1 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f dummy.s dummy + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 + elif test "${UNAME_MACHINE}" = "mips" ; then + cat >dummy.c </dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + else + # Either a pre-BFD a.out linker (linux-gnuoldld) + # or one that does not give us useful --help. + # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. + # If ld does not provide *any* "supported emulations:" + # that means it is gnuoldld. + echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" + test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 + + case "${UNAME_MACHINE}" in + i?86) + VENDOR=pc; + ;; + *) + VENDOR=unknown; + ;; + esac + # Determine whether the default compiler is a.out or elf + cat >dummy.c < +main(argc, argv) + int argc; + char *argv[]; +{ +#if defined __ELF__ || defined __SUNPRO_C +# ifdef __GLIBC__ +# if __GLIBC__ >= 2 + printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +#else + printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); +#endif + return 0; +} +EOF + ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + fi ;; +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions +# are messed up and put the nodename in both sysname and nodename. + i?86:DYNIX/ptx:4*:*) + echo i386-sequent-sysv4 + exit 0 ;; + i?86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i?86:MS-DOS:5:50) + # DJGPP v2 + echo ${UNAME_MACHINE}-pc-msdos + exit 0 ;; + i?86:*:5:*) + # Fixed at (any) Pentium or better + UNAME_MACHINE=i586 + if [ ${UNAME_SYSTEM} = "UnixWare" ] || + [ ${UNAME_SYSTEM} = "OpenUNIX" ]; then + echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i?86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + pc:*:*:*) + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i?86:LynxOS:2.*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:*:6*) + echo mips-sony-newsos6 + exit 0 ;; + R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + BeMac:Haiku:*:*) + echo powerpc-apple-haiku + exit ;; + BePC:Haiku:*:*) + echo i586-pc-haiku + exit ;; + "Power Macintosh":Rhapsody:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + "Power Macintosh":"Mac OS":*) + echo powerpc-apple-macosx${UNAME_RELEASE} + exit 0 ;; + "Power Macintosh":"Darwin":*) + echo powerpc-apple-macosx${UNAME_RELEASE} + exit 0 ;; + "i386":"Darwin":*) + echo i386-apple-macosx${UNAME_RELEASE} + exit 0 ;; + "x86":"Darwin":*) + echo i386-apple-macosx${UNAME_RELEASE} + exit 0 ;; + *:OS/2:*:*) + echo "i386-pc-os2_emx" + exit 0;; + *:OpenVMS:*:*) + UNAME_PROCESSOR=`uname -p | tr [A-Z] [a-z]` + echo "${UNAME_PROCESSOR}-hp-openvms" + exit 0;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +cat >dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +#if !defined (ultrix) + printf ("vax-dec-bsd\n"); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 +rm -f dummy.c dummy + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +if [ x$CONFIG_NOFAIL = xTRUE ]; then + echo unknownCPU-unknownMFR-unknownOS + exit 0 +fi + +#echo '(Unable to guess system type)' 1>&2 + +exit 1 diff -Nru smake-1.2a41/autoconf/config.sub smake-1.2a49/autoconf/config.sub --- smake-1.2a41/autoconf/config.sub 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/config.sub 2009-09-15 13:59:40.000000000 +0100 @@ -0,0 +1,987 @@ +#! /bin/sh +# @(#)config.sub 1.9 09/09/15 Copyright 1999-2009 J. Schilling +# +# Configuration validation subroutine script, version 1.1. +# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +if [ x$1 = x ] +then + echo Configuration name missing. 1>&2 + echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 + echo "or $0 ALIAS" 1>&2 + echo where ALIAS is a recognized configuration type. 1>&2 + exit 1 +fi + +# First pass through any local machine types. +case $1 in + *local*) + echo $1 + exit 0 + ;; + *) + ;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + linux-gnu*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple) + os= + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ + | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ + | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0? \ + | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ + | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ + | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ + | mipstx39 | mipstx39el \ + | sparc | sparclet | sparclite | sparc64 | v850) + basic_machine=$basic_machine-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i[34567]86) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ + | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ + | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ + | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0?-* \ + | ia64-* \ + | alpha-* | alphaev5-* | alphaev56-* | alphaev6-* | we32k-* | cydra-* \ + | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ + | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ + | sparc64-* | mips64-* | mipsel-* \ + | mips64el-* | mips64orion-* | mips64orionel-* \ + | mipstx39-* | mipstx39el-* \ + | f301-* \ + | x86-* | x86_64-* | amd64-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-cbm + ;; + amigaos | amigados) + basic_machine=m68k-cbm + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-cbm + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | ymp) + basic_machine=ymp-cray + os=-unicos + ;; + cray2) + basic_machine=cray2-cray + os=-unicos + ;; + [ctj]90-cray) + basic_machine=c90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + os=-mvs + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i[34567]86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i[34567]86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i[34567]86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i[34567]86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + miniframe) + basic_machine=m68000-convergent + ;; + mipsel*-linux*) + basic_machine=mipsel-unknown + os=-linux-gnu + ;; + mips*-linux*) + basic_machine=mips-unknown + os=-linux-gnu + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + np1) + basic_machine=np1-gould + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc-unknown) + basic_machine=parisc-unknown + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | nexen) + basic_machine=i586-pc + ;; + pentiumpro | p6 | k6 | 6x86) + basic_machine=i686-pc + ;; + pentiumii | pentium2) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | nexen-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | k6-* | 6x86-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=rs6000-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + xmp) + basic_machine=xmp-cray + os=-unicos + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + mips) + if [ x$os = x-linux-gnu ]; then + basic_machine=mips-unknown + else + basic_machine=mips-mips + fi + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sparc) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -dragonfly* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -os2* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -macos* | -haiku* ) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -ctix* | -uts*) + os=-sysv + ;; + -ns2 ) + os=-nextstep2 + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + # For sys5.3 apollo + -sys5.3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -xenix) + os=-xenix + ;; + -freemint) + os=-freemint + ;; + -mint) + os=-mint + ;; + -tos) + os=-tos + ;; + + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-semi) + os=-aout + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f301-fujitsu) + os=-uxpv + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -hpux*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os diff -Nru smake-1.2a41/autoconf/configure smake-1.2a49/autoconf/configure --- smake-1.2a41/autoconf/configure 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/configure 2009-11-29 14:35:34.000000000 +0000 @@ -0,0 +1,18460 @@ +#! /bin/sh + +# From configure.in 1.201 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#serial 18 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --disable-largefile omit support for large files" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -cc=* | --cc=* ) + CC="$ac_optarg" ; echo using $CC as compiler ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir="$ac_optarg" ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir="$ac_optarg" ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir="$ac_optarg" ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=config.guess + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_xexeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 +echo "configure:836: checking host system type" >&5 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + + +echo $ac_n "checking if sh is bash""... $ac_c" 1>&6 +echo "configure:858: checking if sh is bash" >&5 +if eval "test \"`echo '$''{'ac_cv_shell_is_bash'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`< /dev/null sh --version 2> /dev/null | egrep 'GNU sh|bash'` +if test -n "$ac_err"; then + ac_cv_shell_is_bash=yes +else + ac_cv_shell_is_bash=no +fi + +fi + +echo "$ac_t""$ac_cv_shell_is_bash" 1>&6 +if test $ac_cv_shell_is_bash = yes; then + cat >> confdefs.h <<\EOF +#define SHELL_IS_BASH 1 +EOF + +fi +echo $ac_n "checking if /bin/sh is bash""... $ac_c" 1>&6 +echo "configure:880: checking if /bin/sh is bash" >&5 +if eval "test \"`echo '$''{'ac_cv_bin_shell_is_bash'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`< /dev/null /bin/sh --version 2> /dev/null | egrep 'GNU sh|bash'` +if test -n "$ac_err"; then + ac_cv_bin_shell_is_bash=yes +else + ac_cv_bin_shell_is_bash=no +fi + +fi + +echo "$ac_t""$ac_cv_bin_shell_is_bash" 1>&6 +if test $ac_cv_bin_shell_is_bash = yes; then + cat >> confdefs.h <<\EOF +#define BIN_SHELL_IS_BASH 1 +EOF + +fi +echo $ac_n "checking whether sh -ce is broken""... $ac_c" 1>&6 +echo "configure:902: checking whether sh -ce is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_shell_ce_is_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` +if test -n "$ac_err"; then + ac_cv_shell_ce_is_broken=yes +else + ac_cv_shell_ce_is_broken=no +fi + +fi + +echo "$ac_t""$ac_cv_shell_ce_is_broken" 1>&6 +if test $ac_cv_shell_ce_is_broken = yes; then + cat >> confdefs.h <<\EOF +#define SHELL_CE_IS_BROKEN 1 +EOF + +fi +echo $ac_n "checking whether /bin/sh -ce is broken""... $ac_c" 1>&6 +echo "configure:924: checking whether /bin/sh -ce is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_bin_shell_ce_is_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`/bin/sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` +if test -n "$ac_err"; then + ac_cv_bin_shell_ce_is_broken=yes +else + ac_cv_bin_shell_ce_is_broken=no +fi + +fi + +echo "$ac_t""$ac_cv_bin_shell_ce_is_broken" 1>&6 +if test $ac_cv_bin_shell_ce_is_broken = yes; then + cat >> confdefs.h <<\EOF +#define BIN_SHELL_CE_IS_BROKEN 1 +EOF + +fi +echo $ac_n "checking whether /bin/bosh is a working shell""... $ac_c" 1>&6 +echo "configure:946: checking whether /bin/bosh is a working shell" >&5 +if eval "test \"`echo '$''{'ac_cv_bin_shell_bosh'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`< /dev/null /bin/bosh -c 'echo abc' 2> /dev/null | grep abc` +if test "$ac_err" != "abc"; then + ac_cv_bin_shell_bosh=no +else + ac_err=`/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` + if test -z "$ac_err"; then + ac_cv_bin_shell_bosh=yes + else + ac_cv_bin_shell_bosh=no + fi +fi + +fi + +echo "$ac_t""$ac_cv_bin_shell_bosh" 1>&6 +if test $ac_cv_bin_shell_bosh = yes; then + cat >> confdefs.h <<\EOF +#define BIN_SHELL_BOSH 1 +EOF + +fi +echo $ac_n "checking whether /opt/schily/bin/bosh is a working shell""... $ac_c" 1>&6 +echo "configure:973: checking whether /opt/schily/bin/bosh is a working shell" >&5 +if eval "test \"`echo '$''{'ac_cv_opt_schily_bin_shell_bosh'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ac_err=`< /dev/null /opt/schily/bin/bosh -c 'echo abc' 2> /dev/null | grep abc` +if test "$ac_err" != "abc"; then + ac_cv_opt_schily_bin_shell_bosh=no +else + ac_err=`/opt/schily/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` + if test -z "$ac_err"; then + ac_cv_opt_schily_bin_shell_bosh=yes + else + ac_cv_opt_schily_bin_shell_bosh=no + fi +fi + +fi + +echo "$ac_t""$ac_cv_opt_schily_bin_shell_bosh" 1>&6 +if test $ac_cv_opt_schily_bin_shell_bosh = yes; then + cat >> confdefs.h <<\EOF +#define OPT_SCHILY_BIN_SHELL_BOSH 1 +EOF + +fi +echo $ac_n "checking for object suffix""... $ac_c" 1>&6 +echo "configure:1000: checking for object suffix" >&5 +if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + rm -f conftest* +echo 'int i = 1;' > conftest.$ac_ext +if { (eval echo configure:1006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + for ac_file in conftest.*; do + case $ac_file in + *.c) ;; + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; + esac + done +else + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_objext" 1>&6 +OBJEXT=$ac_cv_objext +ac_objext=$ac_cv_objext + +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +echo "configure:1024: checking for Cygwin environment" >&5 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_cygwin=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_cygwin" 1>&6 +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 +echo "configure:1057: checking for mingw32 environment" >&5 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_mingw32=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_mingw32=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_mingw32" 1>&6 +MINGW32= +test "$ac_cv_mingw32" = yes && MINGW32=yes +echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 +echo "configure:1086: checking for EMX/OS2 environment" >&5 +if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_emxos2=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_emxos2=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_emxos2" 1>&6 +if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$ac_cv_emxos2" = yes ; then + ac_cv_libpre= +else + ac_cv_libpre=lib +fi + +fi + +EMXOS2= +test "$ac_cv_emxos2" = yes && EMXOS2=yes + + + +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 +echo "configure:1129: checking for executable suffix" >&5 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then + ac_cv_exeext=.exe + ac_cv_xexeext="" +else + rm -f conftest* + echo 'int main () { return 0; }' > conftest.$ac_ext + ac_cv_exeext= + if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + for file in conftest.*; do + case $file in + *.c | *.o | *.obj) ;; + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; + esac + done + else + ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` + ret=$? + nf=`echo "$ccout" | grep 'not found'` + if test $ret = 127 -a -n "$nf" ; then # Korn Shell + ccout="" + fi + if test ! -n "$ccout" ; then + { echo "configure: error: installation or configuration problem: C compiler ${CC-cc} not found." 1>&2; exit 1; } + fi + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } + fi + (./conftest ; exit) 2> /dev/null + if test $? != 0 ; then + ac_cv_xexeext="${ac_cv_exeext}" + (./conftest${ac_cv_xexeext} ; exit) 2> /dev/null + if test $? != 0 ; then + ac_cv_xexeext="" + fi + fi + rm -f conftest* + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no + test x"${ac_cv_xexeext}" = x && ac_cv_xexeext=no +fi +fi + +EXEEXT="" +XEXEEXT="" +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} +test x"${ac_cv_xexeext}" != xno && XEXEEXT=${ac_cv_xexeext} +echo "$ac_t""${ac_cv_exeext}" 1>&6 +echo $ac_n "checking for executable calling suffix""... $ac_c" 1>&6 +echo "configure:1179: checking for executable calling suffix" >&5 +echo "$ac_t""${ac_cv_xexeext}" 1>&6 +ac_exeext=$EXEEXT +ac_xexeext=$XEXEEXT + + + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:1187: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +echo $ac_n "checking if suncc/cc supports -m64""... $ac_c" 1>&6 +echo "configure:1267: checking if suncc/cc supports -m64" >&5 +if eval "test \"`echo '$''{'ac_cv_sun_cc64_opt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +sun_cc64=cc +sun_cc64_opt='' +ac_cv_sun_cc64_opt=no +if test "$GCC" != yes; then + if test "$CC" = suncc; then + sun_cc64=suncc + fi + ac_err=`< /dev/null eval $sun_cc64 -m64 -c 2>&1 | grep illegal` + if test -n "$ac_err"; then + ac_cv_sun_cc64_opt=no + else + ac_cv_sun_cc64_opt=yes + fi +fi + +fi + +echo "$ac_t""$ac_cv_sun_cc64_opt" 1>&6 +if test $ac_cv_sun_cc64_opt = yes; then + sun_cc64_opt='-m64' +fi +echo $ac_n "checking if HP cc supports -Ae""... $ac_c" 1>&6 +echo "configure:1294: checking if HP cc supports -Ae" >&5 +if eval "test \"`echo '$''{'ac_cv_hp_cc_ansi_opt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +hp_cc=cc +hp_cc_ansi_opt='' +ac_cv_hp_cc_ansi_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -Ae -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_ansi_opt=no + else + ac_cv_hp_cc_ansi_opt=yes + fi + fi +fi + +fi + +echo "$ac_t""$ac_cv_hp_cc_ansi_opt" 1>&6 +if test $ac_cv_hp_cc_ansi_opt = yes; then + hp_cc_ansi_opt='-Ae' +fi +echo $ac_n "checking if HP cc supports -O""... $ac_c" 1>&6 +echo "configure:1321: checking if HP cc supports -O" >&5 +if eval "test \"`echo '$''{'ac_cv_hp_cc_opt_opt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +hp_cc=cc +hp_cc_opt_opt='' +ac_cv_hp_cc_opt_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -O -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_opt_opt=no + else + ac_cv_hp_cc_opt_opt=yes + fi + fi +fi + +fi + +echo "$ac_t""$ac_cv_hp_cc_opt_opt" 1>&6 +if test $ac_cv_hp_cc_opt_opt = yes; then + hp_cc_opt_opt='-O' +fi +echo $ac_n "checking if HP cc supports -G""... $ac_c" 1>&6 +echo "configure:1348: checking if HP cc supports -G" >&5 +if eval "test \"`echo '$''{'ac_cv_hp_cc_gprof_opt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +hp_cc=cc +hp_cc_gprof_opt='' +ac_cv_hp_cc_gprof_opt=no +if test "$GCC" != yes; then + os_name=`(uname -s) 2> /dev/null` + if test ."$os_name" = .HP-UX ; then + ac_err=`< /dev/null eval $hp_cc -O -c 2>&1 | grep 'Bundled.*option is available only'` + if test -n "$ac_err"; then + ac_cv_hp_cc_gprof_opt=no + else + ac_cv_hp_cc_gprof_opt=yes + fi + fi +fi + +fi + +echo "$ac_t""$ac_cv_hp_cc_gprof_opt" 1>&6 +if test $ac_cv_hp_cc_gprof_opt = yes; then + hp_cc_gprof_opt='-G' +fi +# Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1377: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:1405: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +echo "configure:1433: checking for ANSI C header files" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +#include +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ac_cv_header_stdc=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +if test "$cross_compiling" = yes; then + : +else + cat > conftest.$ac_ext < +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int main () { int i; for (i = 0; i < 256; i++) +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +exit (0); } + +EOF +if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_header_stdc=no +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 +if test $ac_cv_header_stdc = yes; then + cat >> confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_STDARG_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_STDLIB_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_STRING_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FLOAT_H 1 +EOF + +fi + +for ac_hdr in stdarg.h stdlib.h string.h float.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1556: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + echo $ac_n "checking for UNIX-98 compliant inttypes.h""... $ac_c" 1>&6 +echo "configure:1592: checking for UNIX-98 compliant inttypes.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; +int64_t ll; uint64_t ull; +intptr_t ip; uintptr_t uip; +; return 0; } +EOF +if { (eval echo configure:1606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_inttypes=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_inttypes=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_inttypes" 1>&6 +if test $ac_cv_header_inttypes = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_INTTYPES_H 1 +EOF + +fi +echo $ac_n "checking for SUSv3 compliant stdint.h""... $ac_c" 1>&6 +echo "configure:1626: checking for SUSv3 compliant stdint.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stdint'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; +int64_t ll; uint64_t ull; +intptr_t ip; uintptr_t uip; +intmax_t im; uintmax_t uim; +; return 0; } +EOF +if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_stdint=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_stdint=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_stdint" 1>&6 +if test $ac_cv_header_stdint = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STDINT_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TYPE_INTMAX_T 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TYPE_UINTMAX_T 1 +EOF + +fi +ac_xsave_LIBS="$LIBS" +LIBS="" +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 +echo "configure:1675: checking for $ac_hdr that defines DIR" >&5 +if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include <$ac_hdr> +int main() { +DIR *dirp = 0; +; return 0; } +EOF +if { (eval echo configure:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_header_dirent_$ac_safe=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_dirent_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then +echo $ac_n "checking for opendir in -lc""... $ac_c" 1>&6 +echo "configure:1713: checking for opendir in -lc" >&5 +ac_lib_var=`echo c'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 +echo "configure:1751: checking for opendir in -ldir" >&5 +ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-ldir $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -ldir" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +else +echo $ac_n "checking for opendir in -lc""... $ac_c" 1>&6 +echo "configure:1794: checking for opendir in -lc" >&5 +ac_lib_var=`echo c'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 +echo "configure:1832: checking for opendir in -lx" >&5 +ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lx $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -lx" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +lib_dir="$LIBS" +LIBS="$ac_xsave_LIBS" +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 +echo "configure:1878: checking whether stat file-mode macros are broken" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include + +#if defined(S_ISBLK) && defined(S_IFDIR) +# if S_ISBLK (S_IFDIR) +You lose. +# endif +#endif + +#if defined(S_ISBLK) && defined(S_IFCHR) +# if S_ISBLK (S_IFCHR) +You lose. +# endif +#endif + +#if defined(S_ISLNK) && defined(S_IFREG) +# if S_ISLNK (S_IFREG) +You lose. +# endif +#endif + +#if defined(S_ISSOCK) && defined(S_IFREG) +# if S_ISSOCK (S_IFREG) +You lose. +# endif +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "You lose" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_header_stat_broken=yes +else + rm -rf conftest* + ac_cv_header_stat_broken=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 +if test $ac_cv_header_stat_broken = yes; then + cat >> confdefs.h <<\EOF +#define STAT_MACROS_BROKEN 1 +EOF + +fi + +echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 +echo "configure:1934: checking whether time.h and sys/time.h may both be included" >&5 +if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +int main() { +struct tm *tp; +; return 0; } +EOF +if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_time=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_time=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_time" 1>&6 +if test $ac_cv_header_time = yes; then + cat >> confdefs.h <<\EOF +#define TIME_WITH_SYS_TIME 1 +EOF + +fi + +echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 +echo "configure:1969: checking for sys/wait.h that is POSIX.1 compatible" >&5 +if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#ifndef WEXITSTATUS +#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif +#ifndef WIFEXITED +#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif +int main() { +int s; +wait (&s); +s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; +; return 0; } +EOF +if { (eval echo configure:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_wait_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_sys_wait_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 +if test $ac_cv_header_sys_wait_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SYS_WAIT_H 1 +EOF + +fi + +echo $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6 +echo "configure:2011: checking if select needs nonstd include files" >&5 +if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); +; return 0; } +EOF +if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_slect_nonstd_hdr=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_slect_nonstd_hdr=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6 +if test $ac_cv_header_slect_nonstd_hdr = yes; then + cat >> confdefs.h <<\EOF +#define SELECT_NONSTD_HDR 1 +EOF + +fi +echo $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6 +echo "configure:2044: checking if sys/select.h is needed for select" >&5 +if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +#ifndef SELECT_NONSTD_HDR +do not compile if we do not need nonstandard headers +#endif +int main() { +fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); +; return 0; } +EOF +if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_need_sys_select_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_need_sys_select_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6 +if test $ac_cv_header_need_sys_select_h = yes; then + cat >> confdefs.h <<\EOF +#define NEED_SYS_SELECT_H 1 +EOF + +fi +echo $ac_n "checking if sys/socket.h is needed for select""... $ac_c" 1>&6 +echo "configure:2081: checking if sys/socket.h is needed for select" >&5 +if eval "test \"`echo '$''{'ac_cv_header_need_sys_socket_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +#ifndef SELECT_NONSTD_HDR +do not compile if we do not need nonstandard headers +#endif +int main() { +fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); +; return 0; } +EOF +if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_need_sys_socket_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_need_sys_socket_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_need_sys_socket_h" 1>&6 +if test $ac_cv_header_need_sys_socket_h = yes; then + cat >> confdefs.h <<\EOF +#define NEED_SYS_SOCKET_H 1 +EOF + +fi +for ac_hdr in assert.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2121: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h sys/file.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2161: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in getopt.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2201: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in limits.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2241: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in a.out.h aouthdr.h elf.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2281: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sysexits.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2321: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in malloc.h sgtty.h termios.h termio.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2361: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in pwd.h grp.h sys/acl.h acllib.h acl/libacl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2401: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in signal.h siginfo.h sys/siginfo.h ucontext.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2441: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in shadow.h syslog.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2481: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2521: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/syscall.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2561: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in mach/machine.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2601: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in mntent.h sys/mntent.h sys/mnttab.h sys/mount.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2641: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/fork.h vfork.h wait.h sys/wait.h sys/resource.h procfs.h sys/procfs.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2681: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/utsname.h sys/priocntl.h sys/rtpriocntl.h sys/procset.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2721: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2761: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/shm.h sys/sem.h sys/ipc.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2801: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2841: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/types.h sys/stat.h types.h stat.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2881: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/stypes.h sys/filedesc.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2921: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/acct.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2961: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in poll.h sys/poll.h sys/select.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3001: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in netdb.h sys/socket.h netinet/in.h stropts.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3041: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in ieeefp.h fp.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3081: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in values.h float.h math.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3121: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in arpa/inet.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3161: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in bsd/dev/scsireg.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3201: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in sys/bsdtty.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3241: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in linux/types.h linux/gfp.h asm/types.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3281: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in OS.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3321: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in os2.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3361: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in os2me.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3401: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in windows.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3441: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in ext2fs/ext2_fs.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3481: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in attr/xattr.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3521: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in crt_externs.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3561: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in fnmatch.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3601: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in libintl.h locale.h langinfo.h nl_types.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3641: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in ctype.h wctype.h wchar.h iconv.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3681: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in priv.h sys/priv.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3721: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in exec_attr.h secdb.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3761: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in direct.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3801: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in pthread.h thread.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3841: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in libgen.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3881: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in dlfcn.h link.h dl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3921: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + +echo $ac_n "checking for header file containing major(), minor() and makedev()""... $ac_c" 1>&6 +echo "configure:3959: checking for header file containing major(), minor() and makedev()" >&5 +if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_header_makedev=none +cat > conftest.$ac_ext < +#include +int main() { +int i = major(0); i = minor(0); i = makedev(0,0); +; return 0; } +EOF +if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_makedev=sys/mkdev.h +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +if test $ac_cv_header_makedev = none; then + cat > conftest.$ac_ext < +#include +int main() { +int i = major(0); i = minor(0); i = makedev(0,0); +; return 0; } +EOF +if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_makedev=sys/sysmacros.h +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +fi +fi + +echo "$ac_t""$ac_cv_header_makedev" 1>&6 +if test $ac_cv_header_makedev = sys/mkdev.h; then + cat >> confdefs.h <<\EOF +#define MAJOR_IN_MKDEV 1 +EOF + +fi +if test $ac_cv_header_makedev = sys/sysmacros.h; then + cat >> confdefs.h <<\EOF +#define MAJOR_IN_SYSMACROS 1 +EOF + +fi + + +echo $ac_n "checking bits in minor device number""... $ac_c" 1>&6 +echo "configure:4018: checking bits in minor device number" >&5 +if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#include +#ifdef major +# define _FOUND_MAJOR_ +#endif + +#ifdef MAJOR_IN_MKDEV +# include +# define _FOUND_MAJOR_ +#endif + +#ifndef _FOUND_MAJOR_ +# ifdef MAJOR_IN_SYSMACROS +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# if defined(hpux) || defined(__hpux__) || defined(__hpux) +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# define major(dev) (((dev) >> 8) & 0xFF) +# define minor(dev) ((dev) & 0xFF) +# define makedev(majo, mino) (((majo) << 8) | (mino)) +#endif +int +main() +{ + long l = 1; + int i; + int m; + int c = 0; + FILE *f=fopen("conftestval", "w"); + int maxloop = 32; + + if (sizeof (long) > 4) + maxloop = 64; + + if (!f) exit(1); + + for (i=1, m=0; i <= maxloop; i++, l<<=1) { + if (minor(l) == 0 && c == 0) + c = m; + if (minor(l) != 0) + m = i; + } + fprintf(f, "%d\n", m); + exit(0); +} +EOF +if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_dev_minor_bits=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_dev_minor_bits=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_dev_minor_bits" 1>&6 +cat >> confdefs.h <&6 +echo "configure:4103: checking whether bits in minor device numbers are non contiguous" >&5 +if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#ifdef major +# define _FOUND_MAJOR_ +#endif + +#ifdef MAJOR_IN_MKDEV +# include +# define _FOUND_MAJOR_ +#endif + +#ifndef _FOUND_MAJOR_ +# ifdef MAJOR_IN_SYSMACROS +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# if defined(hpux) || defined(__hpux__) || defined(__hpux) +# include +# define _FOUND_MAJOR_ +# endif +#endif + +#ifndef _FOUND_MAJOR_ +# define major(dev) (((dev) >> 8) & 0xFF) +# define minor(dev) ((dev) & 0xFF) +# define makedev(majo, mino) (((majo) << 8) | (mino)) +#endif +int +main() +{ + long l = 1; + int i; + int m; + int c = 0; + int maxloop = 32; + + if (sizeof (long) > 4) + maxloop = 64; + + for (i=1, m=0; i <= maxloop; i++, l<<=1) { + if (minor(l) == 0 && c == 0) + c = m; + if (minor(l) != 0) + m = i; + } +exit (m == c);} +EOF +if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_dev_minor_noncontig=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_dev_minor_noncontig=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6 +if test $ac_cv_dev_minor_noncontig = yes; then + cat >> confdefs.h <<\EOF +#define DEV_MINOR_NONCONTIG 1 +EOF + +fi + +echo $ac_n "checking for _filbuf()""... $ac_c" 1>&6 +echo "configure:4186: checking for _filbuf()" >&5 +if eval "test \"`echo '$''{'ac_cv_func__filbuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +_filbuf(f); +_flsbuf(c, f); +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f); +; return 0; } +EOF +if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func__filbuf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func__filbuf=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func__filbuf" 1>&6 +if test $ac_cv_func__filbuf = yes; then + cat >> confdefs.h <<\EOF +#define HAVE__FILBUF 1 +EOF + +fi +echo $ac_n "checking for __filbuf()""... $ac_c" 1>&6 +echo "configure:4231: checking for __filbuf()" >&5 +if eval "test \"`echo '$''{'ac_cv_func___filbuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +__filbuf(f); +__flsbuf(c, f); +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f); +; return 0; } +EOF +if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func___filbuf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func___filbuf=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func___filbuf" 1>&6 +if test $ac_cv_func___filbuf = yes; then + cat >> confdefs.h <<\EOF +#define HAVE___FILBUF 1 +EOF + +fi +echo $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6 +echo "configure:4276: checking for USG derived STDIO" >&5 +if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +FILE *f; +int flag; +int count; +char *ptr; +char c = 0; +f = fopen("confdefs.h", "r"); +#ifdef HAVE___FILBUF +__filbuf(f); +__flsbuf(c, f); +#else +# ifdef HAVE__FILBUF +_filbuf(f); +_flsbuf(c, f); +# else +no filbuf() +# endif +#endif +flag = f->_flag & _IONBF; +flag |= f->_flag & _IOERR; +flag |= f->_flag & _IOEOF; +count = f->_cnt; +ptr = (char *)f->_ptr; +fclose(f); +; return 0; } +EOF +if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_header_usg_stdio=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_usg_stdio=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_usg_stdio" 1>&6 +if test $ac_cv_header_usg_stdio = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_USG_STDIO 1 +EOF + +fi +echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6 +echo "configure:4330: checking for errno definition in errno.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +errno = 0; +; return 0; } +EOF +if { (eval echo configure:4342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_errno_def=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_errno_def=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_errno_def" 1>&6 +if test $ac_cv_header_errno_def = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ERRNO_DEF 1 +EOF + +fi +echo $ac_n "checking for environ definition in unistd.h/stdlib.h""... $ac_c" 1>&6 +echo "configure:4362: checking for environ definition in unistd.h/stdlib.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_environ_def'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#else +#ifdef HAVE_STDLIB_H +#include /* MSC no unistd.h but environ in stdlib.h */ +#endif +#endif + +int main() { +environ = 0; +; return 0; } +EOF +if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_environ_def=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_environ_def=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_environ_def" 1>&6 +if test $ac_cv_header_environ_def = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ENVIRON_DEF 1 +EOF + +fi +echo $ac_n "checking for sys_siglist definition in signal.h""... $ac_c" 1>&6 +echo "configure:4402: checking for sys_siglist definition in signal.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_sys_siglist_def'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +char *cp = (char *)sys_siglist[0]; +; return 0; } +EOF +if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_siglist_def=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_sys_siglist_def=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_sys_siglist_def" 1>&6 +if test $ac_cv_header_sys_siglist_def = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SYS_SIGLIST_DEF 1 +EOF + +fi + +echo $ac_n "checking for working const""... $ac_c" 1>&6 +echo "configure:4435: checking for working const" >&5 +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <j = 5; +} +{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; +} + +; return 0; } +EOF +if { (eval echo configure:4489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_const=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_const=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_const" 1>&6 +if test $ac_cv_c_const = no; then + cat >> confdefs.h <<\EOF +#define const +EOF + +fi + +echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 +echo "configure:4510: checking whether byte ordering is bigendian" >&5 +if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_bigendian=unknown +# See if sys/param.h defines the BYTE_ORDER macro. +cat > conftest.$ac_ext < +#include +int main() { + +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN + bogus endian macros +#endif +; return 0; } +EOF +if { (eval echo configure:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # It does; now see whether it defined to BIG_ENDIAN or not. +cat > conftest.$ac_ext < +#include +int main() { + +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif +; return 0; } +EOF +if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_bigendian=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_bigendian=no +fi +rm -f conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +if test $ac_cv_c_bigendian = unknown; then +if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_c_bigendian=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_bigendian=yes +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_c_bigendian" 1>&6 +if test $ac_cv_c_bigendian = yes; then + cat >> confdefs.h <<\EOF +#define WORDS_BIGENDIAN 1 +EOF + +fi + +echo $ac_n "checking whether bitorder in bitfields is htol""... $ac_c" 1>&6 +echo "configure:4600: checking whether bitorder in bitfields is htol" >&5 +if eval "test \"`echo '$''{'ac_cv_c_bitfields_htol'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_c_bitfields_htol=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_bitfields_htol=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_c_bitfields_htol" 1>&6 +if test $ac_cv_c_bitfields_htol = yes; then + cat >> confdefs.h <<\EOF +#define BITFIELDS_HTOL 1 +EOF + +fi + + +echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 +echo "configure:4648: checking for preprocessor stringizing operator" >&5 +if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5 | + egrep "#teststring" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_c_stringize=no +else + rm -rf conftest* + ac_cv_c_stringize=yes +fi +rm -f conftest* + +fi + +if test "${ac_cv_c_stringize}" = yes +then + cat >> confdefs.h <<\EOF +#define HAVE_STRINGIZE 1 +EOF + +fi +echo "$ac_t""${ac_cv_c_stringize}" 1>&6 + +echo $ac_n "checking for inline""... $ac_c" 1>&6 +echo "configure:4683: checking for inline" >&5 +if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline=$ac_kw; break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +done + +fi + +echo "$ac_t""$ac_cv_c_inline" 1>&6 +case "$ac_cv_c_inline" in + inline | yes) ;; + no) cat >> confdefs.h <<\EOF +#define inline +EOF + ;; + *) cat >> confdefs.h <&6 +echo "configure:4723: checking return type of signal handlers" >&5 +if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#ifdef signal +#undef signal +#endif +#ifdef __cplusplus +extern "C" void (*signal (int, void (*)(int)))(int); +#else +void (*signal ()) (); +#endif + +int main() { +int i; +; return 0; } +EOF +if { (eval echo configure:4745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_signal=void +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_signal=int +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_signal" 1>&6 +cat >> confdefs.h <&6 +echo "configure:4764: checking for uid_t in sys/types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "uid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_uid_t=yes +else + rm -rf conftest* + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +if test $ac_cv_type_uid_t = no; then + cat >> confdefs.h <<\EOF +#define uid_t int +EOF + + cat >> confdefs.h <<\EOF +#define gid_t int +EOF + +fi + +echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 +echo "configure:4798: checking type of array argument to getgroups" >&5 +if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_type_getgroups=cross +else + cat > conftest.$ac_ext < +#define NGID 256 +#undef MAX +#define MAX(x, y) ((x) > (y) ? (x) : (y)) +main() +{ + gid_t gidset[NGID]; + int i, n; + union { gid_t gval; long lval; } val; + + val.lval = -1; + for (i = 0; i < NGID; i++) + gidset[i] = val.gval; + n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, + gidset); + /* Exit non-zero if getgroups seems to require an array of ints. This + happens when gid_t is short but getgroups modifies an array of ints. */ + exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); +} + +EOF +if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_type_getgroups=gid_t +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_type_getgroups=int +fi +rm -fr conftest* +fi + +if test $ac_cv_type_getgroups = cross; then + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_getgroups=gid_t +else + rm -rf conftest* + ac_cv_type_getgroups=int +fi +rm -f conftest* + +fi +fi + +echo "$ac_t""$ac_cv_type_getgroups" 1>&6 +cat >> confdefs.h <&6 +echo "configure:4869: checking for type long long" >&5 +if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_longlong=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_longlong=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_longlong" 1>&6 +if test $ac_cv_type_longlong = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_LONGLONG 1 +EOF + +fi +echo $ac_n "checking for type __int64""... $ac_c" 1>&6 +echo "configure:4901: checking for type __int64" >&5 +if eval "test \"`echo '$''{'ac_cv_type___int64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type___int64=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type___int64=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type___int64" 1>&6 +if test $ac_cv_type___int64 = yes; then + cat >> confdefs.h <<\EOF +#define HAVE___INT64 1 +EOF + +fi +echo $ac_n "checking for type long double""... $ac_c" 1>&6 +echo "configure:4933: checking for type long double" >&5 +if eval "test \"`echo '$''{'ac_cv_type_longdouble'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_longdouble=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_longdouble=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_longdouble" 1>&6 +if test $ac_cv_type_longdouble = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_LONGDOUBLE 1 +EOF + +fi +echo $ac_n "checking for prototypes""... $ac_c" 1>&6 +echo "configure:4965: checking for prototypes" >&5 +if eval "test \"`echo '$''{'ac_cv_type_prototypes'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_type_prototypes=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_type_prototypes=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_type_prototypes" 1>&6 +if test $ac_cv_type_prototypes = yes; then + cat >> confdefs.h <<\EOF +#define PROTOTYPES 1 +EOF + +fi +echo $ac_n "checking if compiler allows dynamic arrays""... $ac_c" 1>&6 +echo "configure:5005: checking if compiler allows dynamic arrays" >&5 +if eval "test \"`echo '$''{'ac_cv_dyn_arrays'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_dyn_arrays=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_dyn_arrays=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_dyn_arrays" 1>&6 +if test $ac_cv_dyn_arrays = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_DYN_ARRAYS 1 +EOF + +fi +echo $ac_n "checking if compiler allows pragma weak""... $ac_c" 1>&6 +echo "configure:5037: checking if compiler allows pragma weak" >&5 +if eval "test \"`echo '$''{'ac_cv_pragma_weak'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_pragma_weak=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_pragma_weak=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_pragma_weak" 1>&6 +if test $ac_cv_pragma_weak = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_PRAGMA_WEAK 1 +EOF + +fi + +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:5071: checking for uid_t in sys/types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "uid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_uid_t=yes +else + rm -rf conftest* + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +if test $ac_cv_type_uid_t = no; then + cat >> confdefs.h <<\EOF +#define uid_t int +EOF + + cat >> confdefs.h <<\EOF +#define gid_t int +EOF + +fi + +echo $ac_n "checking for size_t""... $ac_c" 1>&6 +echo "configure:5105: checking for size_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_size_t=yes +else + rm -rf conftest* + ac_cv_type_size_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_size_t" 1>&6 +if test $ac_cv_type_size_t = no; then + cat >> confdefs.h <<\EOF +#define size_t unsigned +EOF + +fi + +echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 +echo "configure:5140: checking for ssize_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_ssize_t=yes +else + rm -rf conftest* + ac_cv_type_ssize_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 +if test $ac_cv_type_ssize_t = no; then + cat >> confdefs.h <<\EOF +#define ssize_t int +EOF + +fi + +echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6 +echo "configure:5175: checking for ptrdiff_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_ptrdiff_t=yes +else + rm -rf conftest* + ac_cv_type_ptrdiff_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6 +if test $ac_cv_type_ptrdiff_t = no; then + cat >> confdefs.h <<\EOF +#define ptrdiff_t int +EOF + +fi + +echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +echo "configure:5210: checking for pid_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_pid_t=yes +else + rm -rf conftest* + ac_cv_type_pid_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_pid_t" 1>&6 +if test $ac_cv_type_pid_t = no; then + cat >> confdefs.h <<\EOF +#define pid_t int +EOF + +fi + +echo $ac_n "checking for off_t""... $ac_c" 1>&6 +echo "configure:5245: checking for off_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_off_t=yes +else + rm -rf conftest* + ac_cv_type_off_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_off_t" 1>&6 +if test $ac_cv_type_off_t = no; then + cat >> confdefs.h <<\EOF +#define off_t long +EOF + +fi + +echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +echo "configure:5280: checking for mode_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_mode_t=yes +else + rm -rf conftest* + ac_cv_type_mode_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_mode_t" 1>&6 +if test $ac_cv_type_mode_t = no; then + cat >> confdefs.h <<\EOF +#define mode_t int +EOF + +fi + +echo $ac_n "checking for time_t""... $ac_c" 1>&6 +echo "configure:5315: checking for time_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +int main() { +time_t t; +; return 0; } +EOF +if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_time_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_time_t=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_time_t" 1>&6 +if test $ac_cv_type_time_t = no; then + cat >> confdefs.h <<\EOF +#define time_t long +EOF + +fi +echo $ac_n "checking for caddr_t""... $ac_c" 1>&6 +echo "configure:5358: checking for caddr_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_caddr_t=yes +else + rm -rf conftest* + ac_cv_type_caddr_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_caddr_t" 1>&6 +if test $ac_cv_type_caddr_t = no; then + cat >> confdefs.h <<\EOF +#define caddr_t char * +EOF + +fi + +echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 +echo "configure:5393: checking for daddr_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_daddr_t=yes +else + rm -rf conftest* + ac_cv_type_daddr_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 +if test $ac_cv_type_daddr_t = no; then + cat >> confdefs.h <<\EOF +#define daddr_t long +EOF + +fi + +echo $ac_n "checking for dev_t""... $ac_c" 1>&6 +echo "configure:5428: checking for dev_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_dev_t=yes +else + rm -rf conftest* + ac_cv_type_dev_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_dev_t" 1>&6 +if test $ac_cv_type_dev_t = no; then + cat >> confdefs.h <<\EOF +#define dev_t unsigned short +EOF + +fi + +echo $ac_n "checking for major_t""... $ac_c" 1>&6 +echo "configure:5463: checking for major_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_major_t=yes +else + rm -rf conftest* + ac_cv_type_major_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_major_t" 1>&6 +if test $ac_cv_type_major_t = no; then + cat >> confdefs.h <<\EOF +#define major_t dev_t +EOF + +fi + +echo $ac_n "checking for minor_t""... $ac_c" 1>&6 +echo "configure:5498: checking for minor_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_minor_t=yes +else + rm -rf conftest* + ac_cv_type_minor_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_minor_t" 1>&6 +if test $ac_cv_type_minor_t = no; then + cat >> confdefs.h <<\EOF +#define minor_t dev_t +EOF + +fi + +echo $ac_n "checking for ino_t""... $ac_c" 1>&6 +echo "configure:5533: checking for ino_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_ino_t=yes +else + rm -rf conftest* + ac_cv_type_ino_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_ino_t" 1>&6 +if test $ac_cv_type_ino_t = no; then + cat >> confdefs.h <<\EOF +#define ino_t unsigned long +EOF + +fi + +echo $ac_n "checking for nlink_t""... $ac_c" 1>&6 +echo "configure:5568: checking for nlink_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])nlink_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_nlink_t=yes +else + rm -rf conftest* + ac_cv_type_nlink_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_nlink_t" 1>&6 +if test $ac_cv_type_nlink_t = no; then + cat >> confdefs.h <<\EOF +#define nlink_t unsigned long +EOF + +fi + +echo $ac_n "checking for blksize_t""... $ac_c" 1>&6 +echo "configure:5603: checking for blksize_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_blksize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])blksize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_blksize_t=yes +else + rm -rf conftest* + ac_cv_type_blksize_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_blksize_t" 1>&6 +if test $ac_cv_type_blksize_t = no; then + cat >> confdefs.h <<\EOF +#define blksize_t long +EOF + +fi + +echo $ac_n "checking for blkcnt_t""... $ac_c" 1>&6 +echo "configure:5638: checking for blkcnt_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_blkcnt_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])blkcnt_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_blkcnt_t=yes +else + rm -rf conftest* + ac_cv_type_blkcnt_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_blkcnt_t" 1>&6 +if test $ac_cv_type_blkcnt_t = no; then + cat >> confdefs.h <<\EOF +#define blkcnt_t Intmax_t +EOF + +fi + +echo $ac_n "checking for clock_t""... $ac_c" 1>&6 +echo "configure:5673: checking for clock_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_clock_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* + * time.h is needed because of a bug in Next Step. + * Next Step needs time.h for clock_t + */ +#ifdef TIME_WITH_SYS_TIME +# ifndef _INCL_SYS_TIME_H +# include +# define _INCL_SYS_TIME_H +# endif +# ifndef _INCL_TIME_H +# include +# define _INCL_TIME_H +# endif +#else +#ifdef HAVE_SYS_TIME_H +# ifndef _INCL_SYS_TIME_H +# include +# define _INCL_SYS_TIME_H +# endif +#else +# ifndef _INCL_TIME_H +# include +# define _INCL_TIME_H +# endif +#endif +#endif +#ifdef HAVE_SYS_TIMES_H +#include +#endif + +int main() { +clock_t t; +; return 0; } +EOF +if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_clock_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_clock_t=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_clock_t" 1>&6 +if test $ac_cv_type_clock_t = no; then + cat >> confdefs.h <<\EOF +#define clock_t long +EOF + +fi +echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 +echo "configure:5736: checking for socklen_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +#include +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_socklen_t=yes +else + rm -rf conftest* + ac_cv_type_socklen_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 +if test $ac_cv_type_socklen_t = no; then + cat >> confdefs.h <<\EOF +#define socklen_t int +EOF + +fi +echo $ac_n "checking for greg_t""... $ac_c" 1>&6 +echo "configure:5771: checking for greg_t" >&5 +if eval "test \"`echo '$''{'ac_cv_have_type_greg_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +#include +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])greg_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_have_type_greg_t=yes +else + rm -rf conftest* + ac_cv_have_type_greg_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_have_type_greg_t" 1>&6 + ac_tr_type=HAVE_TYPE_`echo greg_t | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_type_greg_t = yes; then + cat >> confdefs.h <&6 +echo "configure:5808: checking if stack_t is declared in signal.h" >&5 +if eval "test \"`echo '$''{'ac_cv_stack_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +stack_t ss; ss.ss_size = 0; +; return 0; } +EOF +if { (eval echo configure:5820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_stack_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_stack_t=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_stack_t" 1>&6 +if test $ac_cv_stack_t = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STACK_T 1 +EOF + +fi +echo $ac_n "checking if siginfo_t is declared in signal.h""... $ac_c" 1>&6 +echo "configure:5840: checking if siginfo_t is declared in signal.h" >&5 +if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#ifdef HAVE_SIGINFO_H +#include +#else +#ifdef HAVE_SYS_SIGINFO_H +#include +#endif +#endif +int main() { +siginfo_t si; si.si_signo = 0; +; return 0; } +EOF +if { (eval echo configure:5859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_siginfo_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_siginfo_t=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_siginfo_t" 1>&6 +if test $ac_cv_siginfo_t = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SIGINFO_T 1 +EOF + +fi + +echo $ac_n "checking for u_char""... $ac_c" 1>&6 +echo "configure:5880: checking for u_char" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_char=yes +else + rm -rf conftest* + ac_cv_type_u_char=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_char" 1>&6 +if test $ac_cv_type_u_char = no; then + cat >> confdefs.h <<\EOF +#define u_char unsigned char +EOF + +fi + +echo $ac_n "checking for u_short""... $ac_c" 1>&6 +echo "configure:5915: checking for u_short" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_short=yes +else + rm -rf conftest* + ac_cv_type_u_short=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_short" 1>&6 +if test $ac_cv_type_u_short = no; then + cat >> confdefs.h <<\EOF +#define u_short unsigned short +EOF + +fi + +echo $ac_n "checking for u_int""... $ac_c" 1>&6 +echo "configure:5950: checking for u_int" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_int=yes +else + rm -rf conftest* + ac_cv_type_u_int=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_int" 1>&6 +if test $ac_cv_type_u_int = no; then + cat >> confdefs.h <<\EOF +#define u_int unsigned int +EOF + +fi + +echo $ac_n "checking for u_long""... $ac_c" 1>&6 +echo "configure:5985: checking for u_long" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if HAVE_STDLIB_H || STDC_HEADERS +#include +#endif +#if HAVE_STDDEF_H || STDC_HEADERS +#include +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_long=yes +else + rm -rf conftest* + ac_cv_type_u_long=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_long" 1>&6 +if test $ac_cv_type_u_long = no; then + cat >> confdefs.h <<\EOF +#define u_long unsigned long +EOF + +fi + + +echo $ac_n "checking size of char""... $ac_c" 1>&6 +echo "configure:6021: checking size of char" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(char)); + exit(0); +} +EOF +if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_char=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_char=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_char" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6066: checking size of short int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(short int)); + exit(0); +} +EOF +if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_short_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_short_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6111: checking size of int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(int)); + exit(0); +} +EOF +if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6156: checking size of long int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long int)); + exit(0); +} +EOF +if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_long_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6201: checking size of long long" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long long)); + exit(0); +} +EOF +if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_long_long=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long_long=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6246: checking size of __int64" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(__int64)); + exit(0); +} +EOF +if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof___int64=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof___int64=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6291: checking size of char *" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(char *)); + exit(0); +} +EOF +if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_char_p=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_char_p=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6337: checking size of unsigned char" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned char)); + exit(0); +} +EOF +if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_char=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_char=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6382: checking size of unsigned short int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned short int)); + exit(0); +} +EOF +if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_short_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_short_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6427: checking size of unsigned int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned int)); + exit(0); +} +EOF +if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6472: checking size of unsigned long int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned long int)); + exit(0); +} +EOF +if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_long_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_long_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6517: checking size of unsigned long long" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned long long)); + exit(0); +} +EOF +if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_long_long=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_long_long=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6562: checking size of unsigned __int64" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned___int64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned __int64)); + exit(0); +} +EOF +if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned___int64=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned___int64=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned___int64" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6607: checking size of unsigned char *" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(unsigned char *)); + exit(0); +} +EOF +if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_unsigned_char_p=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_unsigned_char_p=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6652: checking size of float" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(float)); + exit(0); +} +EOF +if { (eval echo configure:6677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_float=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_float=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_float" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6697: checking size of double" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(double)); + exit(0); +} +EOF +if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_double=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_double=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_double" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6742: checking size of long double" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long double)); + exit(0); +} +EOF +if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_long_double=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long_double=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6788: checking size of size_t" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(size_t)); + exit(0); +} +EOF +if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_size_t=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_size_t=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6833: checking size of ssize_t" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_ssize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(ssize_t)); + exit(0); +} +EOF +if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_ssize_t=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_ssize_t=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_ssize_t" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6878: checking size of ptrdiff_t" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_ptrdiff_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#if HAVE_STDDEF_H || STDC_HEADERS +#include /* For ptrdiff_t, wchar_t, size_t */ +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(ptrdiff_t)); + exit(0); +} +EOF +if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_ptrdiff_t=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_ptrdiff_t=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_ptrdiff_t" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6924: checking size of time_t" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#include +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(time_t)); + exit(0); +} +EOF +if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_time_t=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_time_t=SIZEOF_LONG_INT +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 +cat >> confdefs.h <&6 +echo "configure:6974: checking size of wchar" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_wchar'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(L'a')); + exit(0); +} +EOF +if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_wchar=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_wchar=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_wchar" 1>&6 +cat >> confdefs.h <&6 +echo "configure:7013: checking size of wchar_t" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#ifdef HAVE_WCHAR_H +#include +#endif +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(wchar_t)); + exit(0); +} +EOF +if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_sizeof_wchar_t=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_wchar_t=SIZEOF_CHAR +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 +cat >> confdefs.h <&6 +echo "configure:7062: checking if char is unsigned" >&5 +if eval "test \"`echo '$''{'ac_cv_type_char_unsigned'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_type_char_unsigned=no +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_type_char_unsigned=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_type_char_unsigned=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_type_char_unsigned" 1>&6 +if test $ac_cv_type_char_unsigned = yes; then + cat >> confdefs.h <<\EOF +#define CHAR_IS_UNSIGNED 1 +EOF + +fi +echo $ac_n "checking if va_list is an array""... $ac_c" 1>&6 +echo "configure:7103: checking if va_list is an array" >&5 +if eval "test \"`echo '$''{'ac_cv_type_va_list_array'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#else +# include +#endif + +int main() { + +va_list a, b; + +a = b; +; return 0; } +EOF +if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_type_va_list_array=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_va_list_array=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_va_list_array" 1>&6 +if test $ac_cv_type_va_list_array = yes; then + cat >> confdefs.h <<\EOF +#define VA_LIST_IS_ARRAY 1 +EOF + +fi +echo $ac_n "checking for struct timeval in time.h or sys/time.h""... $ac_c" 1>&6 +echo "configure:7144: checking for struct timeval in time.h or sys/time.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_timeval'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +int main() { +struct timeval tv; +; return 0; } +EOF +if { (eval echo configure:7167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_timeval=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_timeval=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_timeval" 1>&6 +if test $ac_cv_struct_timeval = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STRUCT_TIMEVAL 1 +EOF + +fi +echo $ac_n "checking for struct timezone in time.h or sys/time.h""... $ac_c" 1>&6 +echo "configure:7187: checking for struct timezone in time.h or sys/time.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_timezone'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +int main() { +struct timezone tz; +; return 0; } +EOF +if { (eval echo configure:7210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_timezone=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_timezone=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_timezone" 1>&6 +if test $ac_cv_struct_timezone = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STRUCT_TIMEZONE 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_type""... $ac_c" 1>&6 +echo "configure:7230: checking if struct mtget contains mt_type" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_type = 0; +; return 0; } +EOF +if { (eval echo configure:7243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_type=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_type=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_type" 1>&6 +if test $ac_cv_struct_mtget_type = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_TYPE 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_model""... $ac_c" 1>&6 +echo "configure:7263: checking if struct mtget contains mt_model" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_model'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_model = 0; +; return 0; } +EOF +if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_model=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_model=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_model" 1>&6 +if test $ac_cv_struct_mtget_model = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_MODEL 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_dsreg""... $ac_c" 1>&6 +echo "configure:7296: checking if struct mtget contains mt_dsreg" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_dsreg = 0; +; return 0; } +EOF +if { (eval echo configure:7309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_dsreg=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_dsreg=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_dsreg" 1>&6 +if test $ac_cv_struct_mtget_dsreg = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_DSREG 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_dsreg1""... $ac_c" 1>&6 +echo "configure:7329: checking if struct mtget contains mt_dsreg1" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_dsreg1 = 0; +; return 0; } +EOF +if { (eval echo configure:7342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_dsreg1=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_dsreg1=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_dsreg1" 1>&6 +if test $ac_cv_struct_mtget_dsreg1 = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_DSREG1 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_dsreg2""... $ac_c" 1>&6 +echo "configure:7362: checking if struct mtget contains mt_dsreg2" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_dsreg2 = 0; +; return 0; } +EOF +if { (eval echo configure:7375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_dsreg2=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_dsreg2=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_dsreg2" 1>&6 +if test $ac_cv_struct_mtget_dsreg2 = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_DSREG2 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_gstat""... $ac_c" 1>&6 +echo "configure:7395: checking if struct mtget contains mt_gstat" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_gstat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_gstat = 0; +; return 0; } +EOF +if { (eval echo configure:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_gstat=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_gstat=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_gstat" 1>&6 +if test $ac_cv_struct_mtget_gstat = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_GSTAT 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_erreg""... $ac_c" 1>&6 +echo "configure:7428: checking if struct mtget contains mt_erreg" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_erreg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_erreg = 0; +; return 0; } +EOF +if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_erreg=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_erreg=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_erreg" 1>&6 +if test $ac_cv_struct_mtget_erreg = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_ERREG 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_resid""... $ac_c" 1>&6 +echo "configure:7461: checking if struct mtget contains mt_resid" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_resid'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_resid = 0; +; return 0; } +EOF +if { (eval echo configure:7474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_resid=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_resid=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_resid" 1>&6 +if test $ac_cv_struct_mtget_resid = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_RESID 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_fileno""... $ac_c" 1>&6 +echo "configure:7494: checking if struct mtget contains mt_fileno" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_fileno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_fileno = 0; +; return 0; } +EOF +if { (eval echo configure:7507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_fileno=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_fileno=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_fileno" 1>&6 +if test $ac_cv_struct_mtget_fileno = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_FILENO 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_blkno""... $ac_c" 1>&6 +echo "configure:7527: checking if struct mtget contains mt_blkno" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_blkno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_blkno = 0; +; return 0; } +EOF +if { (eval echo configure:7540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_blkno=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_blkno=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_blkno" 1>&6 +if test $ac_cv_struct_mtget_blkno = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_BLKNO 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_flags""... $ac_c" 1>&6 +echo "configure:7560: checking if struct mtget contains mt_flags" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_flags'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_flags = 0; +; return 0; } +EOF +if { (eval echo configure:7573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_flags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_flags=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_flags" 1>&6 +if test $ac_cv_struct_mtget_flags = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_FLAGS 1 +EOF + +fi +echo $ac_n "checking if struct mtget contains mt_bf""... $ac_c" 1>&6 +echo "configure:7593: checking if struct mtget contains mt_bf" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_mtget_bf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct mtget t; t.mt_bf = 0; +; return 0; } +EOF +if { (eval echo configure:7606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_mtget_bf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_mtget_bf=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_mtget_bf" 1>&6 +if test $ac_cv_struct_mtget_bf = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MTGET_BF 1 +EOF + +fi +echo $ac_n "checking if struct rusage is declared in sys/resource.h""... $ac_c" 1>&6 +echo "configure:7626: checking if struct rusage is declared in sys/resource.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_rusage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct rusage r; +; return 0; } +EOF +if { (eval echo configure:7639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_rusage=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_rusage=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_rusage" 1>&6 +if test $ac_cv_struct_rusage = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_STRUCT_RUSAGE 1 +EOF + +fi +echo $ac_n "checking if struct siginfo contains si_utime""... $ac_c" 1>&6 +echo "configure:7659: checking if struct siginfo contains si_utime" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_si_utime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct siginfo si; si.si_utime = 0; +; return 0; } +EOF +if { (eval echo configure:7672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_si_utime=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_si_utime=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_si_utime" 1>&6 +if test $ac_cv_struct_si_utime = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SI_UTIME 1 +EOF + +fi +echo $ac_n "checking if struct sockaddr_storage is declared in socket.h""... $ac_c" 1>&6 +echo "configure:7692: checking if struct sockaddr_storage is declared in socket.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct sockaddr_storage ss; ss.ss_family = 0; +; return 0; } +EOF +if { (eval echo configure:7704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_sockaddr_storage=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_sockaddr_storage=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 +if test $ac_cv_struct_sockaddr_storage = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SOCKADDR_STORAGE 1 +EOF + +fi +echo $ac_n "checking if an illegal declaration for union semun in sys/sem.h exists""... $ac_c" 1>&6 +echo "configure:7724: checking if an illegal declaration for union semun in sys/sem.h exists" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_union_semun'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +int main() { +union semun s; +; return 0; } +EOF +if { (eval echo configure:7738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_union_semun=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_union_semun=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_union_semun" 1>&6 +if test $ac_cv_struct_union_semun = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UNION_SEMUN 1 +EOF + +fi +echo $ac_n "checking if union wait is declared in wait.h or sys/wait.h""... $ac_c" 1>&6 +echo "configure:7758: checking if union wait is declared in wait.h or sys/wait.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_union_wait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if defined(HAVE_WAIT_H) +# include +#else +#include +#endif +int main() { +union wait w; +; return 0; } +EOF +if { (eval echo configure:7775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_union_wait=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_union_wait=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_union_wait" 1>&6 +if test $ac_cv_struct_union_wait = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UNION_WAIT 1 +EOF + +fi +echo $ac_n "checking if union wait is used by default""... $ac_c" 1>&6 +echo "configure:7795: checking if union wait is used by default" >&5 +if eval "test \"`echo '$''{'ac_cv_use_union_wait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#if defined(HAVE_WAIT_H) +# include +#else +#include +#endif +xxzzy WTERMSIG(status) +xxzzy WCOREDUMP(status) +xxzzy WEXITSTATUS(status) +xxzzy WSTOPSIG(status) +xxzzy WIFSTOPPED(status) +xxzzy WIFSIGNALED(status) +xxzzy WIFEXITED(status) +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "xxzzy.*x_|xxzzy.*union" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_use_union_wait=yes +else + rm -rf conftest* + ac_cv_use_union_wait=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_use_union_wait" 1>&6 +if test $ac_cv_use_union_wait = yes; then + cat >> confdefs.h <<\EOF +#define USE_UNION_WAIT 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_spare1""... $ac_c" 1>&6 +echo "configure:7835: checking if struct stat contains st_spare1" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_spare1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_spare1 = 0; +; return 0; } +EOF +if { (eval echo configure:7848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_spare1=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_spare1=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_spare1" 1>&6 +if test $ac_cv_struct_st_spare1 = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_SPARE1 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_atimensec""... $ac_c" 1>&6 +echo "configure:7868: checking if struct stat contains st_atimensec" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_atimensec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_atimensec = 0; +; return 0; } +EOF +if { (eval echo configure:7881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_atimensec=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_atimensec=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_atimensec" 1>&6 +if test $ac_cv_struct_st_atimensec = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_ATIMENSEC 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_atim.tv_nsec""... $ac_c" 1>&6 +echo "configure:7901: checking if struct stat contains st_atim.tv_nsec" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_nsec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_atim.tv_nsec = 0; +; return 0; } +EOF +if { (eval echo configure:7914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_nsec=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_nsec=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_nsec" 1>&6 +if test $ac_cv_struct_st_nsec = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_NSEC 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_atim.st__tim.tv_nsec""... $ac_c" 1>&6 +echo "configure:7934: checking if struct stat contains st_atim.st__tim.tv_nsec" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st__tim'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_atim.st__tim.tv_nsec = 0; +; return 0; } +EOF +if { (eval echo configure:7947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st__tim=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st__tim=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st__tim" 1>&6 +if test $ac_cv_struct_st__tim = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST__TIM 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_atimespec.tv_nsec""... $ac_c" 1>&6 +echo "configure:7967: checking if struct stat contains st_atimespec.tv_nsec" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_atimespec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_atimespec.tv_nsec = 0; +; return 0; } +EOF +if { (eval echo configure:7980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_atimespec=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_atimespec=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_atimespec" 1>&6 +if test $ac_cv_struct_st_atimespec = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_ATIMESPEC 1 +EOF + +fi +echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 +echo "configure:8000: checking for st_blksize in struct stat" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_blksize; +; return 0; } +EOF +if { (eval echo configure:8013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_blksize=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_blksize=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 +if test $ac_cv_struct_st_blksize = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_BLKSIZE 1 +EOF + +fi + +echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 +echo "configure:8034: checking for st_blocks in struct stat" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_blocks; +; return 0; } +EOF +if { (eval echo configure:8047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_blocks=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_blocks=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 +if test $ac_cv_struct_st_blocks = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_BLOCKS 1 +EOF + +else + LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" +fi + +echo $ac_n "checking if struct stat contains st_fstype""... $ac_c" 1>&6 +echo "configure:8070: checking if struct stat contains st_fstype" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_fstype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_fstype[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_fstype=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_fstype=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_fstype" 1>&6 +if test $ac_cv_struct_st_fstype = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_FSTYPE 1 +EOF + +fi +echo $ac_n "checking if struct stat contains st_aclcnt""... $ac_c" 1>&6 +echo "configure:8103: checking if struct stat contains st_aclcnt" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_aclcnt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_aclcnt = 0; +; return 0; } +EOF +if { (eval echo configure:8116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_aclcnt=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_aclcnt=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_aclcnt" 1>&6 +if test $ac_cv_struct_st_aclcnt = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_ACLCNT 1 +EOF + +fi +echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 +echo "configure:8136: checking for st_rdev in struct stat" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_rdev; +; return 0; } +EOF +if { (eval echo configure:8149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_rdev=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_rdev=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 +if test $ac_cv_struct_st_rdev = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_RDEV 1 +EOF + +fi + +echo $ac_n "checking if struct stat contains st_flags""... $ac_c" 1>&6 +echo "configure:8170: checking if struct stat contains st_flags" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_st_flags'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct stat s; s.st_flags = 0; +; return 0; } +EOF +if { (eval echo configure:8183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_flags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_st_flags=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_st_flags" 1>&6 +if test $ac_cv_struct_st_flags = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ST_FLAGS 1 +EOF + +fi +echo $ac_n "checking if struct dirent contains d_ino""... $ac_c" 1>&6 +echo "configure:8203: checking if struct dirent contains d_ino" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_ino'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ +# include +# define _FOUND_DIR_ +# else /* This is a Pre POSIX system */ + +# define dirent direct + +# if defined(HAVE_SYS_DIR_H) +# include +# define _FOUND_DIR_ +# endif + +# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) +# include +# define _FOUND_DIR_ +# endif + +# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) +# include +# define _FOUND_DIR_ +# endif +# endif /* HAVE_DIRENT_H */ + +int main() { +struct dirent d; d.d_ino = 0; +; return 0; } +EOF +if { (eval echo configure:8247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_dirent_d_ino=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_dirent_d_ino=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_dirent_d_ino" 1>&6 +if test $ac_cv_struct_dirent_d_ino = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_DIRENT_D_INO 1 +EOF + +fi +echo $ac_n "checking if DIR * contains dd_fd""... $ac_c" 1>&6 +echo "configure:8267: checking if DIR * contains dd_fd" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_dir_dd_fd'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +DIR d; d.dd_fd = 0; +; return 0; } +EOF +if { (eval echo configure:8279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_dir_dd_fd=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_dir_dd_fd=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_dir_dd_fd" 1>&6 +if test $ac_cv_struct_dir_dd_fd = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_DIR_DD_FD 1 +EOF + +fi +echo $ac_n "checking if struct utsname contains arch""... $ac_c" 1>&6 +echo "configure:8299: checking if struct utsname contains arch" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_utsname_arch'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname u; u.arch[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_utsname_arch=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_utsname_arch=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_utsname_arch" 1>&6 +if test $ac_cv_struct_utsname_arch = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UTSNAME_ARCH 1 +EOF + +fi +echo $ac_n "checking if struct utsname contains processor""... $ac_c" 1>&6 +echo "configure:8331: checking if struct utsname contains processor" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_utsname_processor'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname u; u.processor[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_utsname_processor=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_utsname_processor=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_utsname_processor" 1>&6 +if test $ac_cv_struct_utsname_processor = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UTSNAME_PROCESSOR 1 +EOF + +fi +echo $ac_n "checking if struct utsname contains sysname_host""... $ac_c" 1>&6 +echo "configure:8363: checking if struct utsname contains sysname_host" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_utsname_sysname_host'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname u; u.sysname_host[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_utsname_sysname_host=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_utsname_sysname_host=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_utsname_sysname_host" 1>&6 +if test $ac_cv_struct_utsname_sysname_host = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UTSNAME_SYSNAME_HOST 1 +EOF + +fi +echo $ac_n "checking if struct utsname contains release_host""... $ac_c" 1>&6 +echo "configure:8395: checking if struct utsname contains release_host" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_utsname_release_host'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname u; u.release_host[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_utsname_release_host=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_utsname_release_host=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_utsname_release_host" 1>&6 +if test $ac_cv_struct_utsname_release_host = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UTSNAME_RELEASE_HOST 1 +EOF + +fi +echo $ac_n "checking if struct utsname contains version_host""... $ac_c" 1>&6 +echo "configure:8427: checking if struct utsname contains version_host" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_utsname_version_host'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname u; u.version_host[0] = 0; +; return 0; } +EOF +if { (eval echo configure:8439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_utsname_version_host=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_utsname_version_host=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_utsname_version_host" 1>&6 +if test $ac_cv_struct_utsname_version_host = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UTSNAME_VERSION_HOST 1 +EOF + +fi + +echo $ac_n "checking whether iconv() uses const char **""... $ac_c" 1>&6 +echo "configure:8460: checking whether iconv() uses const char **" >&5 +if eval "test \"`echo '$''{'ac_cv_iconv_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c < +EOF +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | grep 'size_t.*iconv.*iconv_t.*const' >/dev/null 2>&1; then + ac_cv_iconv_const=yes +else + ac_cv_iconv_const=no +fi +fi + +echo "$ac_t""$ac_cv_iconv_const" 1>&6 +if test $ac_cv_iconv_const = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ICONV_CONST 1 +EOF + +fi + +echo $ac_n "checking if stat is declared""... $ac_c" 1>&6 +echo "configure:8483: checking if stat is declared" >&5 +if eval "test \"`echo '$''{'ac_cv_have_decl_stat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { + char *p = (char *) stat; +; return 0; } +EOF +if { (eval echo configure:8497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_decl_stat=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_decl_stat=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_decl_stat" 1>&6 + ac_tr_decl=HAVE_DECL_`echo stat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_decl_stat = yes; then + cat >> confdefs.h <&6 +echo "configure:8518: checking if lstat is declared" >&5 +if eval "test \"`echo '$''{'ac_cv_have_decl_lstat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { + char *p = (char *) lstat; +; return 0; } +EOF +if { (eval echo configure:8532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_decl_lstat=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_decl_lstat=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_decl_lstat" 1>&6 + ac_tr_decl=HAVE_DECL_`echo lstat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_decl_lstat = yes; then + cat >> confdefs.h <&6 +echo "configure:8554: checking for wait3 that fills in rusage" >&5 +if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_wait3_rusage=no +else + cat > conftest.$ac_ext < +#include +#include +#include +/* HP-UX has wait3 but does not fill in rusage at all. */ +main() { + struct rusage r; + int i; + /* Use a field that we can force nonzero -- + voluntary context switches. + For systems like NeXT and OSF/1 that don't set it, + also use the system CPU time. And page faults (I/O) for Linux. */ + r.ru_nvcsw = 0; + r.ru_utime.tv_sec = 0; + r.ru_utime.tv_usec = 0; + r.ru_stime.tv_sec = 0; + r.ru_stime.tv_usec = 0; + r.ru_majflt = r.ru_minflt = 0; + switch (fork()) { + case 0: /* Child. */ + sleep(1); /* Give up the CPU. */ + for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ + _exit(0); + case -1: _exit(0); /* What can we do? */ + default: /* Parent. */ + wait3(&i, 0, &r); + sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ + exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 + && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 + && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); + } +} +EOF +if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_wait3_rusage=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_wait3_rusage=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6 +if test $ac_cv_func_wait3_rusage = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_WAIT3 1 +EOF + +fi + +echo $ac_n "checking for mlock""... $ac_c" 1>&6 +echo "configure:8620: checking for mlock" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mlock'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +main() +{ + if (mlock(0, 0) < 0) { + if (errno == EINVAL || errno == ENOMEM || + errno == EPERM || errno == EACCES) + exit(0); + exit(-1); + } + exit(0); +} +EOF +if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_mlock=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_mlock=no +fi +rm -fr conftest* +fi + +rm -f core core.* *.core +fi + +echo "$ac_t""$ac_cv_func_mlock" 1>&6 +if test $ac_cv_func_mlock = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MLOCK 1 +EOF + +fi +echo $ac_n "checking for mlockall""... $ac_c" 1>&6 +echo "configure:8671: checking for mlockall" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mlockall'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#include +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +int +main() +{ + if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { + if (errno == EINVAL || errno == ENOMEM || + errno == EPERM || errno == EACCES) + exit(0); + exit(-1); + } + exit(0); +} + +EOF +if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_mlockall=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_mlockall=no +fi +rm -fr conftest* +fi + +rm -f core core.* *.core +fi + +echo "$ac_t""$ac_cv_func_mlockall" 1>&6 +if test $ac_cv_func_mlockall = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MLOCKALL 1 +EOF + +fi +echo $ac_n "checking for va_copy""... $ac_c" 1>&6 +echo "configure:8725: checking for va_copy" >&5 +if eval "test \"`echo '$''{'ac_cv_func_va_copy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#else +# include +#endif +int main() { + +va_list a, b; + +va_copy(a, b); +; return 0; } +EOF +if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_va_copy=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_va_copy=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_va_copy" 1>&6 +if test $ac_cv_func_va_copy = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_VA_COPY 1 +EOF + +fi +echo $ac_n "checking for __va_copy""... $ac_c" 1>&6 +echo "configure:8765: checking for __va_copy" >&5 +if eval "test \"`echo '$''{'ac_cv_func__va_copy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#else +# include +#endif +int main() { + +va_list a, b; + +__va_copy(a, b); +; return 0; } +EOF +if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func__va_copy=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func__va_copy=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func__va_copy" 1>&6 +if test $ac_cv_func__va_copy = yes; then + cat >> confdefs.h <<\EOF +#define HAVE__VA_COPY 1 +EOF + +fi +echo $ac_n "checking for working ecvt() ""... $ac_c" 1>&6 +echo "configure:8805: checking for working ecvt() " >&5 +if eval "test \"`echo '$''{'ac_cv_func_ecvt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_ecvt=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_ecvt=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_ecvt" 1>&6 +if test $ac_cv_func_ecvt = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ECVT 1 +EOF + +fi +echo $ac_n "checking for working fcvt() ""... $ac_c" 1>&6 +echo "configure:8855: checking for working fcvt() " >&5 +if eval "test \"`echo '$''{'ac_cv_func_fcvt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_fcvt=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_fcvt=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_fcvt" 1>&6 +if test $ac_cv_func_fcvt = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_FCVT 1 +EOF + +fi +echo $ac_n "checking for working gcvt() ""... $ac_c" 1>&6 +echo "configure:8905: checking for working gcvt() " >&5 +if eval "test \"`echo '$''{'ac_cv_func_gcvt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_gcvt=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_gcvt=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_gcvt" 1>&6 +if test $ac_cv_func_gcvt = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_GCVT 1 +EOF + +fi +echo $ac_n "checking for __dtoa""... $ac_c" 1>&6 +echo "configure:8955: checking for __dtoa" >&5 +if eval "test \"`echo '$''{'ac_cv_func_dtoa'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_dtoa=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_dtoa=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_dtoa" 1>&6 +if test $ac_cv_func_dtoa = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_DTOA 1 +EOF + +fi +echo $ac_n "checking for __dtoa that needs result ptr""... $ac_c" 1>&6 +echo "configure:8988: checking for __dtoa that needs result ptr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_dtoa_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_dtoa_r=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_dtoa_r=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_dtoa_r" 1>&6 +if test $ac_cv_func_dtoa_r = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_DTOA_R 1 +EOF + +fi +for ac_hdr in unistd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:9042: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpagesize +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:9081: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 +echo "configure:9134: checking for mmap that needs ptr to size" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_mmap_sizep=no +else + cat > conftest.$ac_ext < +#include +#include +#include +#include + +#ifndef MAP_FILE +#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +jmp_buf jenv; + +int +intr() +{ + signal(SIGSEGV, intr); + longjmp(jenv, 1); +} + +int +main() +{ + char *data, *data2; + int i, pagesize, ps; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + + /* + * Keep a copy, Apollo modifies the value... + */ + ps = pagesize; + + /* + * Apollo mmap() is not a syscall but a library function and fails + * if it tries to dereference 'ps'. We must use setjmp in order to + * catch the failure. + */ + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 != (char *)-1) + exit(1); + + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 == (char *)-1) + exit(1); + + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + close(fd); + unlink("conftestmmap"); + exit(0); +} + +EOF +if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_mmap_sizep=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_mmap_sizep=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 +if test $ac_cv_func_mmap_sizep = yes; then + cat >> confdefs.h <<\EOF +#define _MMAP_WITH_SIZEP 1 +EOF + +fi + +for ac_hdr in unistd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:9309: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpagesize +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:9348: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking for working mmap""... $ac_c" 1>&6 +echo "configure:9401: checking for working mmap" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_mmap_fixed_mapped=no +else + cat > conftest.$ac_ext < +#include +#include + +/* + * Needed for Apollo Domain/OS and may be for others? + */ +#ifdef _MMAP_WITH_SIZEP +# define mmap_sizeparm(s) (&(s)) +#else +# define mmap_sizeparm(s) (s) +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +int +main() +{ + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + data2 = malloc(2 * pagesize); + if (!data2) + exit(1); + data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); + if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + /* + * Finally, make sure that changes to the mapped area + * do not percolate back to the file as seen by read(). + * (This is a bug on some variants of i386 svr4.0.) + */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = malloc(pagesize); + if (!data3) + exit(1); + if (read(fd, data3, pagesize) != pagesize) + exit(1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + exit(1); + close(fd); + unlink("conftestmmap"); + exit(0); +} + +EOF +if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_mmap_fixed_mapped=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_mmap_fixed_mapped=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 +if test $ac_cv_func_mmap_fixed_mapped = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_MMAP 1 +EOF + +fi + +for ac_hdr in unistd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:9584: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpagesize +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:9623: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 +echo "configure:9676: checking for mmap that needs ptr to size" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_mmap_sizep=no +else + cat > conftest.$ac_ext < +#include +#include +#include +#include + +#ifndef MAP_FILE +#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } +#else +char *malloc(); +#endif + +jmp_buf jenv; + +int +intr() +{ + signal(SIGSEGV, intr); + longjmp(jenv, 1); +} + +int +main() +{ + char *data, *data2; + int i, pagesize, ps; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 0600); + if (fd < 0) + exit(1); + if (write(fd, data, pagesize) != pagesize) + exit(1); + close(fd); + + /* + * Next, try to mmap the file at a fixed address which + * already has something else allocated at it. If we can, + * also make sure that we see the same garbage. + */ + fd = open("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + + /* + * Keep a copy, Apollo modifies the value... + */ + ps = pagesize; + + /* + * Apollo mmap() is not a syscall but a library function and fails + * if it tries to dereference 'ps'. We must use setjmp in order to + * catch the failure. + */ + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 != (char *)-1) + exit(1); + + signal(SIGSEGV, intr); + if (setjmp(jenv) == 0) { + data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); + } else { + data2 = (char *)-1; + } + if (data2 == (char *)-1) + exit(1); + + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit(1); + + close(fd); + unlink("conftestmmap"); + exit(0); +} + +EOF +if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_mmap_sizep=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_mmap_sizep=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 +if test $ac_cv_func_mmap_sizep = yes; then + cat >> confdefs.h <<\EOF +#define _MMAP_WITH_SIZEP 1 +EOF + +fi + +echo $ac_n "checking if mmap works to get shared memory""... $ac_c" 1>&6 +echo "configure:9848: checking if mmap works to get shared memory" >&5 +if eval "test \"`echo '$''{'ac_cv_func_smmap'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_smmap=no +else + cat > conftest.$ac_ext < +#include + +#ifndef MAP_ANONYMOUS +# ifdef MAP_ANON +# define MAP_ANONYMOUS MAP_ANON +# endif +#endif + +/* + * Needed for Apollo Domain/OS and may be for others? + */ +#ifdef _MMAP_WITH_SIZEP +# define mmap_sizeparm(s) (&(s)) +#else +# define mmap_sizeparm(s) (s) +#endif + +char * +mkshare() +{ + int size = 8192; + int f; + char *addr; + +#ifdef MAP_ANONYMOUS /* HP/UX */ + f = -1; + addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); +#else + if ((f = open("/dev/zero", 2)) < 0) + exit(1); + addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); +#endif + if (addr == (char *)-1) + exit(1); + close(f); + + return (addr); +} + +int +main() +{ + char *addr; + + addr = mkshare(); + *addr = 'I'; + + switch (fork()) { + + case -1: + printf("help\n"); exit(1); + + case 0: /* child */ + *addr = 'N'; + _exit(0); + break; + default: /* parent */ + wait(0); + sleep(1); + break; + } + + if (*addr != 'N') + exit(1); + exit(0); +} + +EOF +if { (eval echo configure:9928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_smmap=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_smmap=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_smmap" 1>&6 +if test $ac_cv_func_smmap = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SMMAP 1 +EOF + +fi +echo $ac_n "checking if shmget works to get shared memory""... $ac_c" 1>&6 +echo "configure:9950: checking if shmget works to get shared memory" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_shmget=no +else + cat > conftest.$ac_ext < +#include +#include +int +main() +{ + int id; + + id = shmget(IPC_PRIVATE, 0x1, IPC_CREAT|0600); + if (id == -1) + exit(1); + shmctl(id, IPC_RMID, 0); + exit(0); +} + +EOF +if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_shmget=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_shmget=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_shmget" 1>&6 +if test $ac_cv_func_shmget = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SHMGET 1 +EOF + +fi +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 +echo "configure:10001: checking for working alloca.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +char *p = alloca(2 * sizeof(int)); +; return 0; } +EOF +if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_header_alloca_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_alloca_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 +if test $ac_cv_header_alloca_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ALLOCA_H 1 +EOF + +fi + +echo $ac_n "checking for alloca""... $ac_c" 1>&6 +echo "configure:10034: checking for alloca" >&5 +if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +# define alloca _alloca +# else +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +int main() { +char *p = (char *) alloca(1); +; return 0; } +EOF +if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_alloca_works=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_alloca_works=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 +if test $ac_cv_func_alloca_works = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ALLOCA 1 +EOF + +fi + +if test $ac_cv_func_alloca_works = no; then + # The SVR3 libPW and SVR4 libucb both contain incompatible functions + # that cause trouble. Some versions do not even contain alloca or + # contain a buggy version. If you still want to use their alloca, + # use ar to extract alloca.o from them instead of compiling alloca.c. + ALLOCA=alloca.${ac_objext} + cat >> confdefs.h <<\EOF +#define C_ALLOCA 1 +EOF + + +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 +echo "configure:10099: checking whether alloca needs Cray hooks" >&5 +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5 | + egrep "webecray" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_os_cray=yes +else + rm -rf conftest* + ac_cv_os_cray=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_os_cray" 1>&6 +if test $ac_cv_os_cray = yes; then +for ac_func in _getb67 GETB67 getb67; do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10129: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <&6 +fi + +done +fi + +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 +echo "configure:10184: checking stack direction for C alloca" >&5 +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_c_stack_direction=0 +else + cat > conftest.$ac_ext < addr) ? 1 : -1; +} +main () +{ + exit (find_stack_direction() < 0); +} +EOF +if { (eval echo configure:10211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_c_stack_direction=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_stack_direction=-1 +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 +cat >> confdefs.h <&6 +echo "configure:10233: checking if quotactl is an ioctl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_quotaioctl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { +struct quotctl q; ioctl(0, Q_QUOTACTL, &q) +; return 0; } +EOF +if { (eval echo configure:10246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_quotaioctl=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_quotaioctl=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_quotaioctl" 1>&6 +if test $ac_cv_func_quotaioctl = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_QUOTAIOCTL 1 +EOF + +fi +echo $ac_n "checking for file locking via fcntl""... $ac_c" 1>&6 +echo "configure:10266: checking for file locking via fcntl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_fcntl_lock'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { + +struct flock fl; +fcntl(0, F_SETLK, &fl); +; return 0; } +EOF +if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_fcntl_lock=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_fcntl_lock=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_fcntl_lock" 1>&6 +if test $ac_cv_func_fcntl_lock = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_FCNTL_LOCKF 1 +EOF + +fi +echo $ac_n "checking for uname""... $ac_c" 1>&6 +echo "configure:10302: checking for uname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +struct utsname un; +uname(&un); +; return 0; } +EOF +if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_uname=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_uname=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_uname" 1>&6 +if test $ac_cv_func_uname = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_UNAME 1 +EOF + +fi +for ac_func in execl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10337: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 +echo "configure:10391: checking for vfork.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_VFORK_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for working vfork""... $ac_c" 1>&6 +echo "configure:10426: checking for working vfork" >&5 +if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + echo $ac_n "checking for vfork""... $ac_c" 1>&6 +echo "configure:10432: checking for vfork" >&5 +if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char vfork(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_vfork) || defined (__stub___vfork) +choke me +#else +vfork(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_vfork=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_vfork=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +ac_cv_func_vfork_works=$ac_cv_func_vfork +else + cat > conftest.$ac_ext < +#include +#include +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_VFORK_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#if defined(HAVE_WAIT_H) +#include +#else +#include +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. + The compiler is told about this with #include , + but some compilers (e.g. gcc -O) don't grok . + Test for this by using a static variable whose address + is put into a register that is clobbered by the vfork. */ +#ifndef VMS +static int +#ifdef __cplusplus +sparc_address_test (int arg) +#else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } + return (0); +} +#endif +int exc = 0; + +int +main() { + pid_t parent = getpid (); + pid_t child; + +#ifndef VMS + sparc_address_test(0); +#endif + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. + This test uses lots of local variables, at least + as many local variables as main has allocated so far + including compiler temporaries. 4 locals are enough for + gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. + A buggy compiler should reuse the register of parent + for one of the local variables, since it will think that + parent can't possibly be used any more in this routine. + Assigning to the local variable will thus munge parent + in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + exc = 1; + + /* On some systems (e.g. IRIX 3.3), + vfork doesn't separate parent from child file descriptors. + If the child closes a descriptor before it execs or exits, + this munges the parent's descriptor as well. + Test for this by closing stdout in the child. */ + if (exc == 0) + exc = close(fileno(stdout)) != 0; + /* + * VMS hangs if we do not call execl() + */ +#ifdef HAVE_EXECL + /* + * On VMS, things hang unless the child calls exec() + */ + if (exc == 0) + execl("/bin/true", "true", (char *)0); + else + execl("/bin/false", "false", (char *)0); +#endif + _exit(exc); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + exit( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +EOF +if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_vfork_works=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_vfork_works=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 +if test $ac_cv_func_vfork_works = no; then + cat >> confdefs.h <<\EOF +#define vfork fork +EOF + +else + cat >> confdefs.h <<\EOF +#define HAVE_VFORK 1 +EOF + +fi + +echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 +echo "configure:10635: checking for sys_siglist" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sys_siglist'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_sys_siglist=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_sys_siglist=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_sys_siglist" 1>&6 +if test $ac_cv_func_sys_siglist = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SYS_SIGLIST 1 +EOF + +fi +echo $ac_n "checking for BSD compliant getpgrp""... $ac_c" 1>&6 +echo "configure:10675: checking for BSD compliant getpgrp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_bsd_getpgrp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_bsd_getpgrp=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_bsd_getpgrp=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_bsd_getpgrp" 1>&6 +if test $ac_cv_func_bsd_getpgrp = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BSD_GETPGRP 1 +EOF + +fi +echo $ac_n "checking for BSD compliant setpgrp""... $ac_c" 1>&6 +echo "configure:10719: checking for BSD compliant setpgrp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_bsd_setpgrp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif +int +main() +{ errno = 0; +/* + * Force illegal pid on BSD + */ +if (setpgrp(-1, 100) < 0 && errno == ESRCH) + exit(0); +exit(1);} +EOF +if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_func_bsd_setpgrp=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_bsd_setpgrp=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_bsd_setpgrp" 1>&6 +if test $ac_cv_func_bsd_setpgrp = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BSD_SETPGRP 1 +EOF + +fi +echo $ac_n "checking for C99 compliant isinf""... $ac_c" 1>&6 +echo "configure:10766: checking for C99 compliant isinf" >&5 +if eval "test \"`echo '$''{'ac_cv_func_c99_isinf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + double d; +#ifndef isinf +The isinf macro is not defined +#endif +return (isinf(d)); + +; return 0; } +EOF +if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_c99_isinf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_c99_isinf=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_c99_isinf" 1>&6 +if test $ac_cv_func_c99_isinf = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_C99_ISINF 1 +EOF + +fi +echo $ac_n "checking for C99 compliant isnan""... $ac_c" 1>&6 +echo "configure:10803: checking for C99 compliant isnan" >&5 +if eval "test \"`echo '$''{'ac_cv_func_c99_isnan'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + double d; +#ifndef isnan +The isnan macro is not defined +#endif +return (isnan(d)); + +; return 0; } +EOF +if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_c99_isnan=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_c99_isnan=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_c99_isnan" 1>&6 +if test $ac_cv_func_c99_isnan = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_C99_ISNAN 1 +EOF + +fi +echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 +echo "configure:10840: checking for sigsetjmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sigsetjmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +sigjmp_buf jb; +sigsetjmp(jb, 1); +; return 0; } +EOF +if { (eval echo configure:10855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_sigsetjmp=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_sigsetjmp=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_sigsetjmp" 1>&6 +if test $ac_cv_func_sigsetjmp = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SIGSETJMP 1 +EOF + +fi +echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6 +echo "configure:10875: checking for siglongjmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +sigjmp_buf jb; +sigsetjmp(jb, 1); +siglongjmp(jb, 1); +; return 0; } +EOF +if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_siglongjmp=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_siglongjmp=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_siglongjmp" 1>&6 +if test $ac_cv_func_siglongjmp = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SIGLONGJMP 1 +EOF + +fi +for ac_func in access eaccess euidaccess +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10913: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in memchr memcpy memmove memset +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10968: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in brk sbrk strerror nice flock lockf fchdir statvfs quotactl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11023: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in realpath resolvepath +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11078: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in dup dup2 +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11133: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getcwd shmat semget +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11188: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in lstat readlink symlink link rename mkfifo mknod +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11243: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in setreuid setresuid seteuid setuid +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11298: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in setregid setresgid setegid setgid +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11353: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getuid geteuid getgid getegid +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11408: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpid getppid +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11463: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpgid setpgid getsid setsid +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11518: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getpgrp setpgrp +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11573: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getspnam getspwnam +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11628: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in sync fsync fork forkx vforkx forkall forkallx wait wait4 waitid waitpid getrusage getrlimit setrlimit ulimit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11683: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in execl execle execlp execv execve execvp +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11738: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getexecname +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11793: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getprogname setprogname +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11848: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in gethostid gethostname getdomainname getpagesize getdtablesize +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11903: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in gettimeofday settimeofday time stime gethrtime +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11958: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in ftime tzset mktime gmtime localtime timegm timelocal +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12013: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in ctime cftime ascftime strftime +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12068: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in poll select isastream +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12123: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12178: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in futimens utimensat +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12233: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in ecvt_r fcvt_r gcvt_r +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12288: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in econvert fconvert gconvert +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12343: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in isinf isnan +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12398: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in rand drand48 +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12453: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in strtol strtoll strtoul strtoull strtod +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12508: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in setpriority DosSetPriority +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12563: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in DosAllocSharedMem +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12618: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in seekdir fdopendir +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12673: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in openat fstatat fchownat futimesat renameat unlinkat +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12728: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in attropen +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12783: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in __accessat +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12838: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in accessat +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12893: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in mkdirat faccessat fchmodat linkat mkfifoat mknodat readlinkat symlinkat +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12948: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in popen pclose _popen _pclose +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13003: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in strsignal str2sig sig2str +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13058: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in kill killpg +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13113: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in signal sigrelse sigprocmask sigsetmask sigset sigaltstack +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13168: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in sleep usleep yield +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13223: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in tcgetattr tcsetattr tcgetpgrp tcsetpgrp +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13278: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getenv putenv setenv unsetenv +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13333: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in snprintf strcasecmp +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13388: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in strcat strncat strcmp strncmp strcpy strlcpy strncpy strdup strlen strchr strrchr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13443: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in wcscat wcsncat wcscmp wcsncmp wcscpy wcslcpy wcsncpy wcsdup wcslen wcschr wcsrchr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13498: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in wcwidth wcswidth wctype iswctype +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13553: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in malloc calloc valloc realloc memalign posix_memalign +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13608: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in madvise +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13663: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in mktemp mkstemp +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13718: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in chflags fchflags fflagstostr strtofflags +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13773: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in fnmatch +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13828: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in truncate ftruncate +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13883: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getppriv setppriv priv_set +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13938: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getroles privbit_set +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:13993: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in setlocale localeconv nl_langinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:14048: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in setbuf setvbuf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:14103: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:14131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in clone_area create_area delete_area +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:14158: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + +echo Checking for POSIX violations by the POSIX.1-2008 standard: +for ac_func in fexecl fexecle fexecv fexecve +do +echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 +echo "configure:14215: checking for raw availability of $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in fspawnv fspawnl fspawnv_nowait +do +echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 +echo "configure:14260: checking for raw availability of $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + +for ac_func in getline fgetline +do +echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 +echo "configure:14306: checking for raw availability of $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_rfunc_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +echo End of tests for POSIX violations by the POSIX.1-2008 standard. + +echo $ac_n "checking if dirfd is defined or function""... $ac_c" 1>&6 +echo "configure:14351: checking if dirfd is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_dirfd'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef dirfd + char *p = (char *) dirfd; +#endif +; return 0; } +EOF +if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_dirfd=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_dirfd=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_dirfd" 1>&6 + ac_tr_dfunc=HAVE_`echo dirfd | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_dirfd = yes; then + cat >> confdefs.h <&6 +echo "configure:14388: checking if iswprint is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_iswprint'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#endif +#ifdef HAVE_WCTYPE_H +#include +#endif + +int main() { + +#ifndef iswprint + char *p = (char *) iswprint; +#endif +; return 0; } +EOF +if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_iswprint=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_iswprint=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_iswprint" 1>&6 + ac_tr_dfunc=HAVE_`echo iswprint | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_iswprint = yes; then + cat >> confdefs.h <&6 +echo "configure:14432: checking if finite is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_finite'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef finite + char *p = (char *) finite; +#endif +; return 0; } +EOF +if { (eval echo configure:14447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_finite=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_finite=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_finite" 1>&6 + ac_tr_dfunc=HAVE_`echo finite | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_finite = yes; then + cat >> confdefs.h <&6 +echo "configure:14468: checking if isnand is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_isnand'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef isnand + char *p = (char *) isnand; +#endif +; return 0; } +EOF +if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_isnand=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_isnand=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_isnand" 1>&6 + ac_tr_dfunc=HAVE_`echo isnand | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_isnand = yes; then + cat >> confdefs.h <&6 +echo "configure:14505: checking if we may not define our own malloc()" >&5 +if eval "test \"`echo '$''{'ac_cv_no_user_malloc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_no_user_malloc=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_no_user_malloc=yes +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_no_user_malloc" 1>&6 +if test $ac_cv_no_user_malloc = yes; then + cat >> confdefs.h <<\EOF +#define NO_USER_MALLOC 1 +EOF + +fi +echo $ac_n "checking for working extern long timezone ""... $ac_c" 1>&6 +echo "configure:14566: checking for working extern long timezone " >&5 +if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_var_timezone=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_var_timezone=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_var_timezone" 1>&6 +if test $ac_cv_var_timezone = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_VAR_TIMEZONE 1 +EOF + +fi +echo $ac_n "checking for extern timezone in time.h or sys/time.h""... $ac_c" 1>&6 +echo "configure:14607: checking for extern timezone in time.h or sys/time.h" >&5 +if eval "test \"`echo '$''{'ac_cv_var_timezone_def'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#ifdef TIME_WITH_SYS_TIME_H +# include +# include +#else +#ifdef HAVE_SYS_TIME_H +# include +#else +# include +#endif +#endif +int main() { +timezone = 1; +; return 0; } +EOF +if { (eval echo configure:14630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_var_timezone_def=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_var_timezone_def=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_var_timezone_def" 1>&6 +if test $ac_cv_var_timezone_def = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_VAR_TIMEZONE_DEF 1 +EOF + +fi + +echo $ac_n "checking if link() allows hard links on symlinks""... $ac_c" 1>&6 +echo "configure:14651: checking if link() allows hard links on symlinks" >&5 +if eval "test \"`echo '$''{'ac_cv_hard_symlinks'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_hard_symlinks=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_hard_symlinks=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_hard_symlinks" 1>&6 +if test $ac_cv_hard_symlinks = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_HARD_SYMLINKS 1 +EOF + +fi +echo $ac_n "checking if link() does not folow symlinks""... $ac_c" 1>&6 +echo "configure:14703: checking if link() does not folow symlinks" >&5 +if eval "test \"`echo '$''{'ac_cv_link_nofollow'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +#include + +main() +{ + int ret = 0; + int f; + struct stat sb; + + unlink("confdefs.f1"); + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + f = creat("confdefs.f1", 0666); + close(f); + if (symlink("confdefs.f1", "confdefs.l1") < 0) + ret = 1; + if (link("confdefs.l1", "confdefs.h1") < 0) + ret = 1; + + stat("confdefs.f1", &sb); + if (sb.st_nlink == 2) + ret = 1; + + unlink("confdefs.f1"); + unlink("confdefs.l1"); + unlink("confdefs.h1"); + + exit(ret); +} +EOF +if { (eval echo configure:14745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_link_nofollow=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_link_nofollow=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_link_nofollow" 1>&6 +if test $ac_cv_link_nofollow = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_LINK_NOFOLLOW 1 +EOF + +fi +for ac_hdr in unistd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:14770: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:14780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking if access() does implement E_OK""... $ac_c" 1>&6 +echo "configure:14807: checking if access() does implement E_OK" >&5 +if eval "test \"`echo '$''{'ac_cv_access_e_ok'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext < +# endif +#ifndef R_OK +#define R_OK 4 /* Test for Read permission */ +#define W_OK 2 /* Test for Write permission */ +#define X_OK 1 /* Test for eXecute permission */ +#define F_OK 0 /* Test for existence of File */ +#endif + +#ifndef E_OK +#ifdef EFF_ONLY_OK +#define E_OK EFF_ONLY_OK /* Irix */ +#else +#ifdef EUID_OK +#define E_OK EUID_OK /* UNICOS (0400) */ +#else +#define E_OK 010 /* Test effective uids */ +#endif +#endif +#endif + +#include +#ifndef HAVE_ERRNO_DEF +extern int errno; +#endif + +main() +{ +#ifdef _MSC_VER +/* + * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will + * cause an exception that results in a popup window. For this reason, the test + * is disabled for "cl", it would not work anyway. + */ + int ret = 1; +#else + int ret = 0; + + if (access(".", F_OK) != 0) + ret = 1; + else if (access(".", E_OK|F_OK) != 0) + ret = 1; + else if (access(".", (R_OK<<4)|F_OK) == 0) + ret = 1; +#endif + + exit(ret); +} +EOF +if { (eval echo configure:14868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest${ac_xexeext}; exit) 2>/dev/null +then + ac_cv_access_e_ok=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_access_e_ok=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_access_e_ok" 1>&6 +if test $ac_cv_access_e_ok = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ACCESS_E_OK 1 +EOF + +fi + +echo $ac_n "checking for fseeko()""... $ac_c" 1>&6 +echo "configure:14891: checking for fseeko()" >&5 +if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +return !fseeko; +; return 0; } +EOF +if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_fseeko=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_fseeko=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_fseeko" 1>&6 +if test $ac_cv_func_fseeko = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_FSEEKO 1 +EOF + +fi +echo $ac_n "checking for ftello()""... $ac_c" 1>&6 +echo "configure:14923: checking for ftello()" >&5 +if eval "test \"`echo '$''{'ac_cv_func_ftello'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +return !ftello; +; return 0; } +EOF +if { (eval echo configure:14935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_ftello=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_ftello=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_ftello" 1>&6 +if test $ac_cv_func_ftello = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_FTELLO 1 +EOF + +fi + +echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 +echo "configure:14956: checking for dlopen in -lc" >&5 +ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_dl="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 +echo "configure:14994: checking for dlopen in -ldl" >&5 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-ldl $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_dl="-ldl" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_dl" +for ac_func in dlopen dlclose dlsym dlerror +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15040: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in shl_load shl_unload shl_gethandle +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15095: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in LoadLibrary FreeLibrary GetProcAddress +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15150: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +echo $ac_n "checking for rcmd in -lsocket""... $ac_c" 1>&6 +echo "configure:15205: checking for rcmd in -lsocket" >&5 +ac_lib_var=`echo socket'_'rcmd | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lsocket $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_socket="-lsocket" +else + echo "$ac_t""no" 1>&6 +fi + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_socket" +echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 +echo "configure:15247: checking for inet_ntoa in -lnsl" >&5 +ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lnsl $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_nsl="-lnsl" +else + echo "$ac_t""no" 1>&6 +fi + +LIBS="$LIBS $lib_nsl" +for ac_func in rcmd socket socketpair +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15290: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getservbyname inet_ntoa +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15345: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in getaddrinfo getnameinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15400: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +ac_save_LIBS="$LIBS" +echo $ac_n "checking for res_init in -lc""... $ac_c" 1>&6 +echo "configure:15456: checking for res_init in -lc" >&5 +ac_lib_var=`echo c'_'res_init | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_resolv="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6 +echo "configure:15494: checking for res_init in -lresolv" >&5 +ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lresolv $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_resolv="-lresolv" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +LIBS="$ac_save_LIBS" + +# Check whether --enable-largefile or --disable-largefile was given. +if test "${enable_largefile+set}" = set; then + enableval="$enable_largefile" + : +fi + + if test "$enable_largefile" != no; then + + echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 +echo "configure:15546: checking for special C compiler options needed for large files" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_sys_largefile_CC=no + largefile_cc_opt="" + if test "$GCC" != yes; then + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_save_CC="${CC-cc}" + CC="$CC -n32" + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_sys_largefile_CC=' -n32' +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + CC="$ac_save_CC" +fi +rm -f conftest* + fi +fi + +echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 + if test "$ac_cv_sys_largefile_CC" != no; then + CC="$CC$ac_cv_sys_largefile_CC" + largefile_cc_opt="$ac_cv_sys_largefile_CC" + fi + + echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 +echo "configure:15618: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_sys_file_offset_bits=no + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_sys_file_offset_bits=64 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 + if test "$ac_cv_sys_file_offset_bits" != no; then + cat >> confdefs.h <&6 +echo "configure:15685: checking for _LARGE_FILES value needed for large files" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_sys_large_files=no + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat > conftest.$ac_ext < + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply "#define LARGE_OFF_T 9223372036854775807", + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; + + +int main() { + +; return 0; } +EOF +if { (eval echo configure:15732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_sys_large_files=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_sys_large_files" 1>&6 + if test "$ac_cv_sys_large_files" != no; then + cat >> confdefs.h <&6 +echo "configure:15752: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_sys_largefile_source=no + cat > conftest.$ac_ext < +int main() { +return !fseeko; +; return 0; } +EOF +if { (eval echo configure:15765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat > conftest.$ac_ext < + +int main() { +return !fseeko; +; return 0; } +EOF +if { (eval echo configure:15781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_sys_largefile_source=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 + if test "$ac_cv_sys_largefile_source" != no; then + cat >> confdefs.h <&6 +echo "configure:15803: checking if system supports Large Files at all" >&5 +if eval "test \"`echo '$''{'ac_cv_largefiles'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { + +/* + * Check that off_t can represent 2**63 - 1 correctly. + * We can't simply "#define LARGE_OFF_T 9223372036854775807", + * since some C++ compilers masquerading as C compilers + * incorrectly reject 9223372036854775807. + */ +# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +return !fseeko; +return !ftello; +; return 0; } +EOF +if { (eval echo configure:15828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_largefiles=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_largefiles=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_largefiles" 1>&6 + if test $ac_cv_largefiles = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_LARGEFILES 1 +EOF + + fi + +cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 +echo "configure:15871: checking for crypt in -lc" >&5 +ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_crypt="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 +echo "configure:15909: checking for crypt in -lcrypt" >&5 +ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lcrypt $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_crypt="-lcrypt" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_crypt" +for ac_func in crypt +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15956: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 +echo "configure:16011: checking for gettext in -lc" >&5 +ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lc $LIBS" +cat > conftest.$ac_ext < +int main() { + + char *p = (char *) gettext; + + return ((int)p); + +; return 0; } +EOF +if { (eval echo configure:16030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_intl="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 +echo "configure:16049: checking for gettext in -lintl" >&5 +ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lintl $LIBS" +cat > conftest.$ac_ext < +int main() { + + char *p = (char *) gettext; + + return ((int)p); + +; return 0; } +EOF +if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_intl="-lintl" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_intl" +echo $ac_n "checking if gettext is defined or function""... $ac_c" 1>&6 +echo "configure:16094: checking if gettext is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_gettext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef gettext + char *p = (char *) gettext; +#endif +; return 0; } +EOF +if { (eval echo configure:16109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_gettext=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_gettext=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_gettext" 1>&6 + ac_tr_dfunc=HAVE_`echo gettext | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_gettext = yes; then + cat >> confdefs.h <&6 +echo "configure:16132: checking for iconv_open in -lc" >&5 +ac_lib_var=`echo c'_'iconv_open | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lc $LIBS" +cat > conftest.$ac_ext < +int main() { + + char *p = (char *) iconv_open; + + return ((int)p); + +; return 0; } +EOF +if { (eval echo configure:16151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_iconv="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6 +echo "configure:16170: checking for iconv_open in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext < +int main() { + + char *p = (char *) iconv_open; + + return ((int)p); + +; return 0; } +EOF +if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_iconv="-liconv" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_iconv" +echo $ac_n "checking if iconv is defined or function""... $ac_c" 1>&6 +echo "configure:16215: checking if iconv is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_iconv'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef iconv + char *p = (char *) iconv; +#endif +; return 0; } +EOF +if { (eval echo configure:16230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_iconv=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_iconv=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_iconv" 1>&6 + ac_tr_dfunc=HAVE_`echo iconv | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_iconv = yes; then + cat >> confdefs.h <&6 +echo "configure:16251: checking if iconv_open is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_iconv_open'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef iconv_open + char *p = (char *) iconv_open; +#endif +; return 0; } +EOF +if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_iconv_open=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_iconv_open=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_iconv_open" 1>&6 + ac_tr_dfunc=HAVE_`echo iconv_open | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_iconv_open = yes; then + cat >> confdefs.h <&6 +echo "configure:16287: checking if iconv_close is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_iconv_close'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef iconv_close + char *p = (char *) iconv_close; +#endif +; return 0; } +EOF +if { (eval echo configure:16302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_iconv_close=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_iconv_close=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_iconv_close" 1>&6 + ac_tr_dfunc=HAVE_`echo iconv_close | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_iconv_close = yes; then + cat >> confdefs.h <&6 +echo "configure:16323: checking if libiconv is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_libiconv'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef libiconv + char *p = (char *) libiconv; +#endif +; return 0; } +EOF +if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_libiconv=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_libiconv=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_libiconv" 1>&6 + ac_tr_dfunc=HAVE_`echo libiconv | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_libiconv = yes; then + cat >> confdefs.h <&6 +echo "configure:16359: checking if libiconv_open is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_libiconv_open'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef libiconv_open + char *p = (char *) libiconv_open; +#endif +; return 0; } +EOF +if { (eval echo configure:16374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_libiconv_open=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_libiconv_open=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_libiconv_open" 1>&6 + ac_tr_dfunc=HAVE_`echo libiconv_open | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_libiconv_open = yes; then + cat >> confdefs.h <&6 +echo "configure:16395: checking if libiconv_close is defined or function" >&5 +if eval "test \"`echo '$''{'ac_cv_have_libiconv_close'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { + +#ifndef libiconv_close + char *p = (char *) libiconv_close; +#endif +; return 0; } +EOF +if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_have_libiconv_close=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_have_libiconv_close=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_have_libiconv_close" 1>&6 + ac_tr_dfunc=HAVE_`echo libiconv_close | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +if test $ac_cv_have_libiconv_close = yes; then + cat >> confdefs.h <&6 +echo "configure:16440: checking for Posix Access Control List support" >&5 + echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 +echo "configure:16442: checking for acl_get_file in -lacl" >&5 +ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lacl $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_acl="-lacl" +else + echo "$ac_t""no" 1>&6 +fi + + echo $ac_n "checking for acl_get_file in -lpacl""... $ac_c" 1>&6 +echo "configure:16482: checking for acl_get_file in -lpacl" >&5 +ac_lib_var=`echo pacl'_'acl_get_file | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lpacl $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_acl="-lpacl" +else + echo "$ac_t""no" 1>&6 +fi + + + + if test ".$lib_acl" != .; then + lib_acl_test="$lib_acl" + fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_acl" + for ac_func in acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16532: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + for ac_func in acl_extended_file +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16587: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + for ac_func in acl_get_entry +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16642: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + LIBS="$ac_save_LIBS" + + echo "checking for Solaris Access Control List support" 1>&6 +echo "configure:16697: checking for Solaris Access Control List support" >&5 + echo $ac_n "checking for acltotext in -lsec""... $ac_c" 1>&6 +echo "configure:16699: checking for acltotext in -lsec" >&5 +ac_lib_var=`echo sec'_'acltotext | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lsec $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_acl="-lsec" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_acl" + for ac_func in acl facl aclfromtext acltotext +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16743: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + LIBS="$ac_save_LIBS" + + + echo "checking for HP-UX Access Control List support" 1>&6 +echo "configure:16799: checking for HP-UX Access Control List support" >&5 + for ac_func in getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16803: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + + +fi + +if test "$ac_cv_header_attr_xattr_h" = yes; then + echo "checking for Linux flavor Extended Attribute support" 1>&6 +echo "configure:16861: checking for Linux flavor Extended Attribute support" >&5 + echo $ac_n "checking for getxattr in -lattr""... $ac_c" 1>&6 +echo "configure:16863: checking for getxattr in -lattr" >&5 +ac_lib_var=`echo attr'_'getxattr | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lattr $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_attr="-lattr" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_attr" + for ac_func in getxattr setxattr listxattr lgetxattr lsetxattr llistxattr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16907: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + LIBS="$ac_save_LIBS" +fi + +echo "checking for RBAC support" 1>&6 +echo "configure:16963: checking for RBAC support" >&5 +echo $ac_n "checking for getuserattr in -lsecdb""... $ac_c" 1>&6 +echo "configure:16965: checking for getuserattr in -lsecdb" >&5 +ac_lib_var=`echo secdb'_'getuserattr | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lsecdb $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_secdb="-lsecdb" +else + echo "$ac_t""no" 1>&6 +fi + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_secdb" +for ac_func in getauthattr getuserattr getexecattr getprofattr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17009: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +echo "checking for gmatch() support" 1>&6 +echo "configure:17064: checking for gmatch() support" >&5 +echo $ac_n "checking for gmatch in -lgen""... $ac_c" 1>&6 +echo "configure:17066: checking for gmatch in -lgen" >&5 +ac_lib_var=`echo gen'_'gmatch | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lgen $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_gen="-lgen" +else + echo "$ac_t""no" 1>&6 +fi + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_gen" +for ac_func in gmatch +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17110: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +for ac_func in thr_yield +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17167: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + +echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 +echo "configure:17221: checking for pthread_create in -lpthread" >&5 +ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lpthread $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_pthread="-lpthread" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 +echo "configure:17259: checking for pthread_create in -lc" >&5 +ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_pthread="" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_pthread" +for ac_func in pthread_create pthread_kill +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17306: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in pthread_mutex_lock pthread_cond_wait pthread_spin_lock +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17361: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6 +echo "configure:17416: checking for clock_gettime in -lc" >&5 +ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_rt="" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6 +echo "configure:17454: checking for clock_gettime in -lrt" >&5 +ac_lib_var=`echo rt'_'clock_gettime | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lrt $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_rt="-lrt" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6 +echo "configure:17492: checking for clock_gettime in -lposix4" >&5 +ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS=`echo "-lposix4 $LIBS" | sed -e 's/-lc //'` +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + lib_rt="-lposix4" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_rt" +for ac_func in clock_gettime clock_settime clock_getres +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17541: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in sched_getparam sched_setparam sched_getscheduler sched_setscheduler +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17596: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in sched_yield +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17651: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in nanosleep +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:17706: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +LIBS="$ac_save_LIBS" + +echo $ac_n "checking for /dev/tty""... $ac_c" 1>&6 +echo "configure:17761: checking for /dev/tty" >&5 +if test -r /dev/tty; then + echo yes + cat >> confdefs.h <<\EOF +#define HAVE_DEV_TTY 1 +EOF + +else + echo no +fi +echo $ac_n "checking for /dev/null""... $ac_c" 1>&6 +echo "configure:17772: checking for /dev/null" >&5 +if test -r /dev/null; then + echo yes + cat >> confdefs.h <<\EOF +#define HAVE_DEV_NULL 1 +EOF + +else + echo no +fi +echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6 +echo "configure:17783: checking for /dev/zero" >&5 +if test -r /dev/zero; then + echo yes + cat >> confdefs.h <<\EOF +#define HAVE_DEV_ZERO 1 +EOF + +else + echo no +fi + +UNAME=`uname || true` + +if test ."$UNAME" = .Linux; then + + +echo $ac_n "checking if Linux include file linux/ext2_fs.h is broken""... $ac_c" 1>&6 +echo "configure:17800: checking if Linux include file linux/ext2_fs.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_linux_ext2_fs_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:17815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_linux_ext2_fs_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_linux_ext2_fs_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_linux_ext2_fs_h" 1>&6 +if test $ac_cv_broken_linux_ext2_fs_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_LINUX_EXT2_FS_H 1 +EOF + +fi +echo $ac_n "checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken""... $ac_c" 1>&6 +echo "configure:17835: checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_src_linux_ext2_fs_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + cat > conftest.$ac_ext < +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:17851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_src_linux_ext2_fs_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_src_linux_ext2_fs_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_src_linux_ext2_fs_h" 1>&6 +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_SRC_LINUX_EXT2_FS_H 1 +EOF + +fi +if test .$ac_cv_broken_linux_ext2_fs_h = .no -o .$ac_cv_broken_src_linux_ext2_fs_h = .no; then + # + # If either /usr/include/linux/ex2_fs.h works or + # /usr/src/linux/include/linux/ex2_fs.h works, we will + # #define HAVE_USABLE_LINUX_EXT2_FS_H + # + # If HAVE_USABLE_LINUX_EXT2_FS_H is defined, a simple + # #include will work. + # + ac_cv_usable_linux_ext2_fs_h=yes + cat >> confdefs.h <<\EOF +#define HAVE_USABLE_LINUX_EXT2_FS_H 1 +EOF + +else + ac_cv_usable_linux_ext2_fs_h=no +fi +echo $ac_n "checking if Linux include file scsi/scsi.h is broken""... $ac_c" 1>&6 +echo "configure:17889: checking if Linux include file scsi/scsi.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_scsi_scsi_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:17904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_scsi_scsi_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_scsi_scsi_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_scsi_scsi_h" 1>&6 +if test $ac_cv_broken_scsi_scsi_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_SCSI_SCSI_H 1 +EOF + +fi +echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken""... $ac_c" 1>&6 +echo "configure:17924: checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_scsi_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + cat > conftest.$ac_ext < +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:17940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_src_scsi_scsi_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_src_scsi_scsi_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_src_scsi_scsi_h" 1>&6 +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_scsi_scsi_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_SRC_SCSI_SCSI_H 1 +EOF + +fi +echo $ac_n "checking if Linux include file scsi/sg.h is broken""... $ac_c" 1>&6 +echo "configure:17961: checking if Linux include file scsi/sg.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_scsi_sg_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:17977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_scsi_sg_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_scsi_sg_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_scsi_sg_h" 1>&6 +if test $ac_cv_broken_scsi_sg_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_SCSI_SG_H 1 +EOF + +fi +echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken""... $ac_c" 1>&6 +echo "configure:17997: checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken" >&5 +if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_sg_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" + cat > conftest.$ac_ext < +#include +#endif +int main() { + +; return 0; } +EOF +if { (eval echo configure:18014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_broken_src_scsi_sg_h=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_broken_src_scsi_sg_h=yes +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_broken_src_scsi_sg_h" 1>&6 +CPPFLAGS=$___CPPFLAGS +if test $ac_cv_broken_src_scsi_sg_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_BROKEN_SRC_SCSI_SG_H 1 +EOF + +fi + +if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then + may_linux_src_include=no +fi +if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then + may_linux_src_include=no +fi +if test .$may_linux_src_include = .no; then + echo + echo "Warning: *** /usr/src/linux/include contains broken include files ***" + echo "Warning: *** /usr/src/linux/include is not used this reason ***" + echo "Warning: This may result in the inability to use recent Linux kernel interfaces" + echo +fi +if test .$ac_cv_usable_linux_ext2_fs_h = .no; then + echo + echo "Warning: *** linux/ext2_fs.h is not usable at all ***" + echo "Warning: *** This makes it impossible to support Linux file flags ***" + echo "You may try to compile using 'make COPTX=-DTRY_EXT2_FS'" + echo + sleep 10 +fi +fi # Linux only tests + + + + + + + + + + + + + + + + + + + + + + + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +DEFS=-DHAVE_CONFIG_H + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir + +trap 'rm -fr `echo "rules.cnf xconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@OBJEXT@%$OBJEXT%g +s%@EXEEXT@%$EXEEXT%g +s%@XEXEEXT@%$XEXEEXT%g +s%@CPP@%$CPP%g +s%@RANLIB@%$RANLIB%g +s%@SET_MAKE@%$SET_MAKE%g +s%@LIBOBJS@%$LIBOBJS%g +s%@ALLOCA@%$ALLOCA%g +s%@may_linux_src_include@%$may_linux_src_include%g +s%@largefile_cc_opt@%$largefile_cc_opt%g +s%@sun_cc64_opt@%$sun_cc64_opt%g +s%@hp_cc_ansi_opt@%$hp_cc_ansi_opt%g +s%@hp_cc_opt_opt@%$hp_cc_opt_opt%g +s%@hp_cc_gprof_opt@%$hp_cc_gprof_opt%g +s%@lib_crypt@%$lib_crypt%g +s%@lib_resolv@%$lib_resolv%g +s%@lib_intl@%$lib_intl%g +s%@lib_iconv@%$lib_iconv%g +s%@scsi_lib@%$scsi_lib%g +s%@lib_scsi@%$lib_scsi%g +s%@lib_acl@%$lib_acl%g +s%@lib_acl_test@%$lib_acl_test%g +s%@lib_attr@%$lib_attr%g +s%@lib_secdb@%$lib_secdb%g +s%@lib_gen@%$lib_gen%g +s%@lib_pthread@%$lib_pthread%g +s%@lib_rt@%$lib_rt%g +s%@lib_dl@%$lib_dl%g +s%@lib_dir@%$lib_dir%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' +ac_dC='\3' +ac_dD='%g' +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". +ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='\([ ]\)%\1#\2define\3' +ac_uC=' ' +ac_uD='\4%g' +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_eB='$%\1#\2define\3' +ac_eC=' ' +ac_eD='%g' + +if test "${CONFIG_HEADERS+set}" != set; then +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +fi +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + echo creating $ac_file + + rm -f conftest.frag conftest.in conftest.out + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + cat $ac_file_inputs > conftest.in + +EOF + +# Transform confdefs.h into a sed script conftest.vals that substitutes +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. +rm -f conftest.vals +cat > conftest.hdr <<\EOF +s/[\\&%]/\\&/g +s%[\\$`]%\\&%g +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%ac_d%ac_u%gp +s%ac_u%ac_e%gp +EOF +sed -n -f conftest.hdr confdefs.h > conftest.vals +rm -f conftest.hdr + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >> conftest.vals <<\EOF +s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +EOF + +# Break up conftest.vals because some shells have a limit on +# the size of here documents, and old seds have small limits too. + +rm -f conftest.tail +while : +do + ac_lines=`grep -c . conftest.vals` + # grep -c gives empty output for an empty file on some AIX systems. + if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi + # Write a limited-size here document to conftest.frag. + echo ' cat > conftest.frag <> $CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + echo 'CEOF + sed -f conftest.frag conftest.in > conftest.out + rm -f conftest.in + mv conftest.out conftest.in +' >> $CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail + rm -f conftest.vals + mv conftest.tail conftest.vals +done +rm -f conftest.vals + +cat >> $CONFIG_STATUS <<\EOF + rm -f conftest.frag conftest.h + echo "/* $ac_file. Generated automatically by configure. */" > conftest.h + cat conftest.in >> conftest.h + rm -f conftest.in + if cmp -s $ac_file conftest.h 2>/dev/null; then + echo "$ac_file is unchanged" + rm -f conftest.h + else + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + fi + rm -f $ac_file + mv conftest.h $ac_file + fi +fi; done + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + diff -Nru smake-1.2a41/autoconf/configure.in smake-1.2a49/autoconf/configure.in --- smake-1.2a41/autoconf/configure.in 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/configure.in 2009-11-29 14:35:28.000000000 +0000 @@ -0,0 +1,659 @@ +dnl @(#)configure.in 1.201 09/11/29 Copyright 1998-2009 J. Schilling +dnl Process this file with autoconf to produce a configure script. +AC_REVISION(1.201)dnl + +dnl AC_INIT(xconfig.h.in) +AC_INIT(config.guess) +AC_CONFIG_HEADER(xconfig.h) +AC_CANONICAL_HOST + +dnl Checks for programs. +AC_SHELL_BASH +AC_BIN_SHELL_BASH +AC_SHELL_CE_BROKEN +AC_BIN_SHELL_CE_BROKEN +AC_BIN_SHELL_BOSH +AC_OPT_SCHILY_BIN_SHELL_BOSH +dnl CC=${CC-cc} +dnl AC_PROG_CC +AC_OBJEXT +AC_EXEEXT +AC_PROG_CPP +AC_SUN_CC64_OPT +AC_HP_CC_ANSI_OPT +AC_HP_CC_OPT_OPT +AC_HP_CC_GPROF_OPT +dnl AC_PROG_INSTALL +AC_PROG_RANLIB +AC_PROG_MAKE_SET + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(stdarg.h stdlib.h string.h float.h) dnl AC_HEADER_STDC in particular +AC_HEADER_INTTYPES +AC_HEADER_STDINT +ac_xsave_LIBS="$LIBS" +LIBS="" +AC_HEADER_DIRENT +lib_dir="$LIBS" +LIBS="$ac_xsave_LIBS" +AC_HEADER_STAT +AC_HEADER_TIME +AC_HEADER_SYS_WAIT +dnl check whether select() needs sys/select.h +AC_HEADER_SYS_SELECT +dnl check whether select() needs sys/socket.h (BeOS) +AC_HEADER_SELECT2 +AC_CHECK_HEADERS(assert.h) +AC_CHECK_HEADERS(stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h sys/file.h) +AC_CHECK_HEADERS(getopt.h) +AC_CHECK_HEADERS(limits.h) +AC_CHECK_HEADERS(a.out.h aouthdr.h elf.h) +AC_CHECK_HEADERS(sysexits.h) +AC_CHECK_HEADERS(malloc.h sgtty.h termios.h termio.h) +AC_CHECK_HEADERS(pwd.h grp.h sys/acl.h acllib.h acl/libacl.h) +AC_CHECK_HEADERS(signal.h siginfo.h sys/siginfo.h ucontext.h) +AC_CHECK_HEADERS(shadow.h syslog.h) +AC_CHECK_HEADERS(sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h) +AC_CHECK_HEADERS(sys/syscall.h) +AC_CHECK_HEADERS(mach/machine.h) +AC_CHECK_HEADERS(mntent.h sys/mntent.h sys/mnttab.h sys/mount.h) +AC_CHECK_HEADERS(sys/fork.h vfork.h wait.h sys/wait.h sys/resource.h procfs.h sys/procfs.h) +AC_CHECK_HEADERS(sys/utsname.h sys/priocntl.h sys/rtpriocntl.h sys/procset.h) +AC_CHECK_HEADERS(sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h) +AC_CHECK_HEADERS(sys/shm.h sys/sem.h sys/ipc.h) +AC_CHECK_HEADERS(sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h) +AC_CHECK_HEADERS(sys/types.h sys/stat.h types.h stat.h) +AC_CHECK_HEADERS(sys/stypes.h sys/filedesc.h) +AC_CHECK_HEADERS(sys/acct.h) +AC_CHECK_HEADERS(poll.h sys/poll.h sys/select.h) +AC_CHECK_HEADERS(netdb.h sys/socket.h netinet/in.h stropts.h) +AC_CHECK_HEADERS(ieeefp.h fp.h) +AC_CHECK_HEADERS(values.h float.h math.h) +AC_CHECK_HEADERS(arpa/inet.h) +AC_CHECK_HEADERS(bsd/dev/scsireg.h) +dnl Check for HP-UX sys/bsdtty.h (needed for TIOCGPGRP) +AC_CHECK_HEADERS(sys/bsdtty.h) +dnl Check for Linux kernel definitions +AC_CHECK_HEADERS(linux/types.h linux/gfp.h asm/types.h) +dnl Check for BeOS kernel definitions (e.g. B_PAGE_SIZE) +AC_CHECK_HEADERS(OS.h) +dnl needed for newer OS/2 versions of EMX +AC_CHECK_HEADERS(os2.h) +AC_CHECK_HEADERS(os2me.h) +dnl Check for MS-Win's junkyard +AC_CHECK_HEADERS(windows.h) +dnl Check for moving Linux targets caused by missing concepts +AC_CHECK_HEADERS(ext2fs/ext2_fs.h) +dnl Check for Linux Extended File Attributes definitions +AC_CHECK_HEADERS(attr/xattr.h) +dnl Check for Mas OS X ac, av, env delarations +AC_CHECK_HEADERS(crt_externs.h) +AC_CHECK_HEADERS(fnmatch.h) +AC_CHECK_HEADERS(libintl.h locale.h langinfo.h nl_types.h) +AC_CHECK_HEADERS(ctype.h wctype.h wchar.h iconv.h) +AC_CHECK_HEADERS(priv.h sys/priv.h) +AC_CHECK_HEADERS(exec_attr.h secdb.h) +AC_CHECK_HEADERS(direct.h) +AC_CHECK_HEADERS(pthread.h thread.h) +AC_CHECK_HEADERS(libgen.h) +AC_CHECK_HEADERS(dlfcn.h link.h dl.h) + +dnl from aclocal.m4 (uses AC_TRY_COMPILE) +AC_HEADER_MAKEDEV + +dnl don't use GNU original +dnl from GNU acspecific.m4 (uses AC_CHECK_HEADER) +dnl AC_HEADER_MAJOR + +AC_CHECK_MINOR_BITS +AC_CHECK_MINOR_NONCONTIG + +AC_HEADER_USG_STDIO +AC_HEADER_ERRNO_DEF +AC_HEADER_ENVIRON_DEF +AC_HEADER_SYS_SIGLIST_DEF + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_BIGENDIAN +AC_C_BITFIELDS +AC_C_STRINGIZE +AC_C_INLINE +AC_TYPE_SIGNAL +AC_TYPE_GETGROUPS +AC_TYPE_LONGLONG +AC_TYPE___INT64 +AC_TYPE_LONGDOUBLE +AC_TYPE_PROTOTYPES +dnl AC_USER_MALLOC must be past AC_CHECK_FUNCS(strdup) +AC_DYN_ARRAYS +AC_PRAGMA_WEAK + +AC_TYPE_UID_T +AC_TYPE_SIZE_T +AC_CHECK_TYPE(ssize_t, int) +AC_CHECK_TYPE(ptrdiff_t, int) +AC_TYPE_PID_T +AC_TYPE_OFF_T +AC_TYPE_MODE_T +AC_TYPE_TIME_T +AC_CHECK_TYPE(caddr_t, char *) +AC_CHECK_TYPE(daddr_t, long) +AC_CHECK_TYPE(dev_t, unsigned short) +AC_CHECK_TYPE(major_t, dev_t) +AC_CHECK_TYPE(minor_t, dev_t) +AC_CHECK_TYPE(ino_t, unsigned long) +AC_CHECK_TYPE(nlink_t, unsigned long) +AC_CHECK_TYPE(blksize_t, long) +AC_CHECK_TYPE(blkcnt_t, Intmax_t) +AC_TYPE_CLOCK_T +AC_TYPE_SOCKLEN_T +AC_HAVE_TYPE([#include ], greg_t) +AC_TYPE_STACK_T +AC_TYPE_SIGINFO_T + +dnl These types are present on all UNIX systems but should be avoided +dnl for portability. +dnl On Apollo/Domain OS we don't have them.... +dnl Better include and use Uchar, Uint & Ulong +AC_CHECK_TYPE(u_char, unsigned char) +AC_CHECK_TYPE(u_short, unsigned short) +AC_CHECK_TYPE(u_int, unsigned int) +AC_CHECK_TYPE(u_long, unsigned long) + +AC_CHECK_SIZEOF(char) +AC_CHECK_SIZEOF(short int) +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long int) +AC_CHECK_SIZEOF(long long) +AC_CHECK_SIZEOF(__int64) +AC_CHECK_SIZEOF(char *) + +AC_CHECK_SIZEOF(unsigned char) +AC_CHECK_SIZEOF(unsigned short int) +AC_CHECK_SIZEOF(unsigned int) +AC_CHECK_SIZEOF(unsigned long int) +AC_CHECK_SIZEOF(unsigned long long) +AC_CHECK_SIZEOF(unsigned __int64) +AC_CHECK_SIZEOF(unsigned char *) +AC_CHECK_SIZEOF(float) +AC_CHECK_SIZEOF(double) +AC_CHECK_SIZEOF(long double) + +AC_CHECK_SIZEOF(size_t) +AC_CHECK_SIZEOF(ssize_t) +AC_CHECK_SIZEOF(ptrdiff_t) + +dnl This call must be past AC_CHECK_SIZEOF(long int) +AC_CHECK_SIZE_TIME_T +AC_CHECK_SIZE_WCHAR +AC_CHECK_SIZE_WCHAR_T + +dnl # AC_TYPE_SIZE_T_ # Defines HAVE_SIZE_T / NO_SIZE_T +AC_TYPE_CHAR +AC_TYPE_VA_LIST +AC_STRUCT_TIMEVAL +AC_STRUCT_TIMEZONE +AC_STRUCT_MTGET_TYPE +AC_STRUCT_MTGET_MODEL +AC_STRUCT_MTGET_DSREG +AC_STRUCT_MTGET_DSREG1 +AC_STRUCT_MTGET_DSREG2 +AC_STRUCT_MTGET_GSTAT +AC_STRUCT_MTGET_ERREG +AC_STRUCT_MTGET_RESID +AC_STRUCT_MTGET_FILENO +AC_STRUCT_MTGET_BLKNO +AC_STRUCT_MTGET_FLAGS +AC_STRUCT_MTGET_BF +AC_STRUCT_RUSAGE +AC_STRUCT_SI_UTIME +AC_STRUCT_SOCKADDR_STORAGE +AC_STRUCT_UNION_SEMUN +AC_STRUCT_UNION_WAIT +AC_USE_STRUCT_UNION_WAIT +AC_STRUCT_ST_SPARE1 +AC_STRUCT_ST_ATIMENSEC +AC_STRUCT_ST_NSEC +AC_STRUCT_ST__TIM +AC_STRUCT_ST_ATIMESPEC +AC_STRUCT_ST_BLKSIZE +AC_STRUCT_ST_BLOCKS +AC_STRUCT_ST_FSTYPE +AC_STRUCT_ST_ACLCNT +AC_STRUCT_ST_RDEV +AC_STRUCT_ST_FLAGS +AC_STRUCT_DIRENT_D_INO +AC_STRUCT_DIR_DD_FD +AC_STRUCT_UTSNAME_ARCH +AC_STRUCT_UTSNAME_PROCESSOR +AC_STRUCT_UTSNAME_SYSNAME_HOST +AC_STRUCT_UTSNAME_RELEASE_HOST +AC_STRUCT_UTSNAME_VERSION_HOST + +dnl Check whether iconv() uses const char ** arguments +AC_ICONV_CONST + +dnl Check whether we are able to get the address of a function +dnl or whether the symbol is declared and usable as rhs +AC_CHECK_DECLARE([ +#include +#include ], stat) +AC_CHECK_DECLARE([ +#include +#include ], lstat) + +dnl Checks for library functions. +AC_FUNC_WAIT3 +AC_FUNC_MLOCK +AC_FUNC_MLOCKALL +AC_FUNC_VA_COPY +AC_FUNC__VA_COPY +AC_FUNC_ECVT +AC_FUNC_FCVT +AC_FUNC_GCVT +AC_FUNC_DTOA +AC_FUNC_DTOA_R +jsAC_FUNC_MMAP +AC_MMAP_SIZEP +AC_FUNC_SMMAP +AC_FUNC_SHMGET +AC_FUNC_ALLOCA +AC_FUNC_QUOTAIOCTL +AC_FUNC_FCNTL_LOCKF +AC_FUNC_UNAME +AC_CHECK_FUNCS(execl) +AC_FUNC_VFORK +AC_FUNC_SYS_SIGLIST +AC_FUNC_BSD_GETPGRP +AC_FUNC_BSD_SETPGRP +AC_FUNC_C99_ISINF +AC_FUNC_C99_ISNAN +AC_FUNC_SIGSETJMP +AC_FUNC_SIGLONGJMP +AC_CHECK_FUNCS(access eaccess euidaccess) +AC_CHECK_FUNCS(memchr memcpy memmove memset) +AC_CHECK_FUNCS(brk sbrk strerror nice flock lockf fchdir statvfs quotactl) +AC_CHECK_FUNCS(realpath resolvepath) +AC_CHECK_FUNCS(dup dup2) +AC_CHECK_FUNCS(getcwd shmat semget) +AC_CHECK_FUNCS(lstat readlink symlink link rename mkfifo mknod) +AC_CHECK_FUNCS(setreuid setresuid seteuid setuid) +AC_CHECK_FUNCS(setregid setresgid setegid setgid) +AC_CHECK_FUNCS(getuid geteuid getgid getegid) +AC_CHECK_FUNCS(getpid getppid) +AC_CHECK_FUNCS(getpgid setpgid getsid setsid) +AC_CHECK_FUNCS(getpgrp setpgrp) +dnl getspwnam() on HP-UX is in libsec.a +AC_CHECK_FUNCS(getspnam getspwnam) +AC_CHECK_FUNCS(sync fsync fork forkx vforkx forkall forkallx wait wait4 waitid waitpid getrusage getrlimit setrlimit ulimit) +AC_CHECK_FUNCS(execl execle execlp execv execve execvp) +AC_CHECK_FUNCS(getexecname) +AC_CHECK_FUNCS(getprogname setprogname) +AC_CHECK_FUNCS(gethostid gethostname getdomainname getpagesize getdtablesize) +AC_CHECK_FUNCS(gettimeofday settimeofday time stime gethrtime) +AC_CHECK_FUNCS(ftime tzset mktime gmtime localtime timegm timelocal) +AC_CHECK_FUNCS(ctime cftime ascftime strftime) +AC_CHECK_FUNCS(poll select isastream) +AC_CHECK_FUNCS(chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes) +AC_CHECK_FUNCS(futimens utimensat) +dnl AC_CHECK_FUNCS(ecvt fcvt gcvt) +AC_CHECK_FUNCS(ecvt_r fcvt_r gcvt_r) +AC_CHECK_FUNCS(econvert fconvert gconvert) +AC_CHECK_FUNCS(isinf isnan) +AC_CHECK_FUNCS(rand drand48) +AC_CHECK_FUNCS(strtol strtoll strtoul strtoull strtod) +AC_CHECK_FUNCS(setpriority DosSetPriority) +AC_CHECK_FUNCS(DosAllocSharedMem) +AC_CHECK_FUNCS(seekdir fdopendir) +dnl These are POSIX.1 functions (syscalls on Solaris) +AC_CHECK_FUNCS(openat fstatat fchownat futimesat renameat unlinkat) +dnl This is a library function for the Solaris extended attr interface +AC_CHECK_FUNCS(attropen) +dnl This appeared on Solaris 11 Build 63 +AC_CHECK_FUNCS(__accessat) +dnl This appeared not yet in POSIX +AC_CHECK_FUNCS(accessat) +dnl This are POSIX extensions not found on Solaris 10 +AC_CHECK_FUNCS(mkdirat faccessat fchmodat linkat mkfifoat mknodat readlinkat symlinkat) +AC_CHECK_FUNCS(popen pclose _popen _pclose) +AC_CHECK_FUNCS(strsignal str2sig sig2str) +AC_CHECK_FUNCS(kill killpg) +AC_CHECK_FUNCS(signal sigrelse sigprocmask sigsetmask sigset sigaltstack) +AC_CHECK_FUNCS(sleep usleep yield) +AC_CHECK_FUNCS(tcgetattr tcsetattr tcgetpgrp tcsetpgrp) +AC_CHECK_FUNCS(getenv putenv setenv unsetenv) +AC_CHECK_FUNCS(snprintf strcasecmp) +AC_CHECK_FUNCS(strcat strncat strcmp strncmp strcpy strlcpy strncpy strdup strlen strchr strrchr) +AC_CHECK_FUNCS(wcscat wcsncat wcscmp wcsncmp wcscpy wcslcpy wcsncpy wcsdup wcslen wcschr wcsrchr) +AC_CHECK_FUNCS(wcwidth wcswidth wctype iswctype) +AC_CHECK_FUNCS(malloc calloc valloc realloc memalign posix_memalign) +AC_CHECK_FUNCS(madvise) +AC_CHECK_FUNCS(mktemp mkstemp) +AC_CHECK_FUNCS(chflags fchflags fflagstostr strtofflags) +AC_CHECK_FUNCS(fnmatch) +AC_CHECK_FUNCS(truncate ftruncate) +AC_CHECK_FUNCS(getppriv setppriv priv_set) +AC_CHECK_FUNCS(getroles privbit_set) +AC_CHECK_FUNCS(setlocale localeconv nl_langinfo) +AC_CHECK_FUNCS(setbuf setvbuf) +AC_CHECK_FUNCS(clone_area create_area delete_area) + +dnl The official POSIX rule is not to define "new" interfaces that +dnl are in conflict with older interfaces of the same name. +dnl Our interfaces fexec*() have been defined and published in 1982. +dnl The new POSIX interfaces define a different interface and the +dnl new POSIX interfaces even use names that are not compatible with +dnl POSIX rules. The new POSIX interfaces in question should be called +dnl fdexec*() to follow the rules of other similar POSIX functions. +dnl +dnl We use AC_RCHECK_FUNCS() because some Linux distros define a +dnl fexecve() that returns ENOSYS an AC_CHECK_FUNCS() would return FALSE +dnl +echo Checking for POSIX violations by the POSIX.1-2008 standard: +AC_RCHECK_FUNCS(fexecl fexecle fexecv fexecve) +AC_RCHECK_FUNCS(fspawnv fspawnl fspawnv_nowait) + +dnl A similar problem exists with the new POSIX.1-2008 interfaces +dnl getline() and fgetline(). These interfaces are also incompatible +dnl with our interfaces defined in 1982. +AC_RCHECK_FUNCS(getline fgetline) +echo End of tests for POSIX violations by the POSIX.1-2008 standard. + +dnl Check whether a symbol is either defined in an include file or +dnl otherwise usable (e.g. as function) +AC_CHECK_DFUNC([#include ], dirfd) + +AC_CHECK_DFUNC([ +#ifdef HAVE_WCHAR_H +#include +#endif +#ifdef HAVE_WCTYPE_H +#include +#endif +], iswprint) + +AC_CHECK_DFUNC([#include ], finite) +AC_CHECK_DFUNC([#include ], isnand) + +dnl Checks for typedefs, structures, and compiler characteristics. +dnl that need results from the AC_CHECK_FUNCS() calls. +AC_USER_MALLOC +dnl AC_USER_XCVT test macro does not yet work +AC_VAR_TIMEZONE +AC_VAR_TIMEZONE_DEF + +dnl Checks for OS characteristics. +AC_HARD_SYMLINKS +AC_LINK_NOFOLLOW +AC_ACCESS_E_OK + +dnl Need to check this in default compilation mode to find out +dnl whether this platform supports both functions by default too. +dnl We cannot use the standard tests because they would find +dnl that fseeko()/ftello() are present in small file mode on +dnl Limnux while there is no prototype for these functions. +AC_SMALL_FSEEKO +AC_SMALL_FTELLO + +AC_CHECK_LIB(c, dlopen, lib_dl="", + [AC_CHECK_LIB(dl, dlopen, lib_dl="-ldl")]) +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_dl" +AC_CHECK_FUNCS(dlopen dlclose dlsym dlerror) +AC_CHECK_FUNCS(shl_load shl_unload shl_gethandle) +AC_CHECK_FUNCS(LoadLibrary FreeLibrary GetProcAddress) +LIBS="$ac_save_LIBS" + +dnl ??? AC_CHECK_LIB(socket, socket, lib_socket="-lsocket") +dnl +AC_CHECK_LIB(socket, rcmd, lib_socket="-lsocket") +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_socket" +AC_CHECK_LIB(nsl, inet_ntoa, lib_nsl="-lnsl") +LIBS="$LIBS $lib_nsl" +AC_CHECK_FUNCS(rcmd socket socketpair) +AC_CHECK_FUNCS(getservbyname inet_ntoa) +AC_CHECK_FUNCS(getaddrinfo getnameinfo) +LIBS="$ac_save_LIBS" + +ac_save_LIBS="$LIBS" +AC_CHECK_LIB(c, res_init, lib_resolv="", + [AC_CHECK_LIB(resolv, res_init, lib_resolv="-lresolv")]) +LIBS="$ac_save_LIBS" + +dnl Check for largefile support +dnl Do this last to make sure that no large file definition +dnl in confdefs.h will modify our results +AC_SYS_LARGEFILE +dnl Warning do not run this test. it interferes with the test +dnl AC_CHECK_FUNCS(fseeko ftello) from above. +dnl The test AC_HAVE_LARGEFILES will check whether ftello/fseeko +dnl are available in Large File mode +dnl AC_FUNC_FSEEKO +AC_HAVE_LARGEFILES + +AC_DEFINE_UNQUOTED_STRING(HOST_ALIAS,$host_alias) +AC_DEFINE_UNQUOTED_STRING(HOST_SUB,$host) +AC_DEFINE_UNQUOTED_STRING(HOST_CPU,$host_cpu) +AC_DEFINE_UNQUOTED_STRING(HOST_VENDOR,$host_vendor) +AC_DEFINE_UNQUOTED_STRING(HOST_OS,$host_os) + +dnl AC_CHECK_LIB(crypt, crypt, lib_crypt="-lcrypt") + +AC_CHECK_LIB(c, crypt, lib_crypt="", + [AC_CHECK_LIB(crypt, crypt, lib_crypt="-lcrypt")]) + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_crypt" +AC_CHECK_FUNCS(crypt) +LIBS="$ac_save_LIBS" + +AC_CHECK_ILIB([#include ], c, gettext, lib_intl="", + [AC_CHECK_ILIB([#include ], intl, gettext, lib_intl="-lintl")]) + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_intl" +AC_CHECK_DFUNC([#include ], gettext) +LIBS="$ac_save_LIBS" + +AC_CHECK_ILIB([#include ], c, iconv_open, lib_iconv="", + [AC_CHECK_ILIB([#include ], iconv, iconv_open, lib_iconv="-liconv")]) + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_iconv" +AC_CHECK_DFUNC([#include ], iconv) +AC_CHECK_DFUNC([#include ], iconv_open) +AC_CHECK_DFUNC([#include ], iconv_close) +dnl GNU libiconv on Linux and Cygwin may make "configure" fail :-( +AC_CHECK_DFUNC([#include ], libiconv) +AC_CHECK_DFUNC([#include ], libiconv_open) +AC_CHECK_DFUNC([#include ], libiconv_close) +LIBS="$ac_save_LIBS" + +if test $ac_cv_header_camlib_h = yes; then + scsi_lib=-lcam + lib_scsi=-lcam +fi + +if test "$ac_cv_header_sys_acl_h" = yes; then + + AC_CHECKING(for Posix Access Control List support) + AC_CHECK_LIB(acl, acl_get_file, lib_acl="-lacl") + AC_CHECK_LIB(pacl, acl_get_file, lib_acl="-lpacl") + + dnl If $lib_acl is nonempty, save it in $lib_acl_test + + if test ".$lib_acl" != .; then + lib_acl_test="$lib_acl" + fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_acl" + AC_CHECK_FUNCS(acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file) + AC_CHECK_FUNCS(acl_extended_file) + AC_CHECK_FUNCS(acl_get_entry) + LIBS="$ac_save_LIBS" + + AC_CHECKING(for Solaris Access Control List support) + AC_CHECK_LIB(sec, acltotext, lib_acl="-lsec") + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_acl" + AC_CHECK_FUNCS(acl facl aclfromtext acltotext) + LIBS="$ac_save_LIBS" + + dnl On Solaris, there is no need for lib_acl_test as acl(2) is in -libc + + AC_CHECKING(for HP-UX Access Control List support) + AC_CHECK_FUNCS(getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry) + + dnl XXX lib_acl_test: How do we test for ACLs on HP-UX? + +fi + +if test "$ac_cv_header_attr_xattr_h" = yes; then + AC_CHECKING(for Linux flavor Extended Attribute support) + AC_CHECK_LIB(attr, getxattr, lib_attr="-lattr") + ac_save_LIBS="$LIBS" + LIBS="$LIBS $lib_attr" + AC_CHECK_FUNCS(getxattr setxattr listxattr lgetxattr lsetxattr llistxattr) + LIBS="$ac_save_LIBS" +fi + +AC_CHECKING(for RBAC support) +AC_CHECK_LIB(secdb, getuserattr, lib_secdb="-lsecdb") +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_secdb" +AC_CHECK_FUNCS(getauthattr getuserattr getexecattr getprofattr) +LIBS="$ac_save_LIBS" + +AC_CHECKING(for gmatch() support) +AC_CHECK_LIB(gen, gmatch, lib_gen="-lgen") +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_gen" +AC_CHECK_FUNCS(gmatch) +LIBS="$ac_save_LIBS" + +AC_CHECK_FUNCS(thr_yield) + +AC_CHECK_LIB(pthread, pthread_create, lib_pthread="-lpthread", + [AC_CHECK_LIB(c, pthread_create, lib_pthread="")]) + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_pthread" +AC_CHECK_FUNCS(pthread_create pthread_kill) +AC_CHECK_FUNCS(pthread_mutex_lock pthread_cond_wait pthread_spin_lock) +LIBS="$ac_save_LIBS" + +AC_CHECK_LIB(c, clock_gettime, lib_rt="", + [AC_CHECK_LIB(rt, clock_gettime, lib_rt="-lrt", + [AC_CHECK_LIB(posix4, clock_gettime, lib_rt="-lposix4")])]) + +ac_save_LIBS="$LIBS" +LIBS="$LIBS $lib_rt" +AC_CHECK_FUNCS(clock_gettime clock_settime clock_getres) +AC_CHECK_FUNCS(sched_getparam sched_setparam sched_getscheduler sched_setscheduler) +AC_CHECK_FUNCS(sched_yield) +AC_CHECK_FUNCS(nanosleep) +LIBS="$ac_save_LIBS" + +dnl Misc OS checks. +AC_MSG_CHECKING(for /dev/tty) +if test -r /dev/tty; then + echo yes + AC_DEFINE(HAVE_DEV_TTY) +else + echo no +fi +AC_MSG_CHECKING(for /dev/null) +if test -r /dev/null; then + echo yes + AC_DEFINE(HAVE_DEV_NULL) +else + echo no +fi +AC_MSG_CHECKING(for /dev/zero) +if test -r /dev/zero; then + echo yes + AC_DEFINE(HAVE_DEV_ZERO) +else + echo no +fi + +dnl Checks for OS madness. +UNAME=`uname || true` + +if test ."$UNAME" = .Linux; then + +dnl Linux madness tests: + +AC_BROKEN_LINUX_EXT2_FS_H +AC_BROKEN_SRC_LINUX_EXT2_FS_H +if test .$ac_cv_broken_linux_ext2_fs_h = .no -o .$ac_cv_broken_src_linux_ext2_fs_h = .no; then + # + # If either /usr/include/linux/ex2_fs.h works or + # /usr/src/linux/include/linux/ex2_fs.h works, we will + # #define HAVE_USABLE_LINUX_EXT2_FS_H + # + # If HAVE_USABLE_LINUX_EXT2_FS_H is defined, a simple + # #include will work. + # + ac_cv_usable_linux_ext2_fs_h=yes + AC_DEFINE(HAVE_USABLE_LINUX_EXT2_FS_H) +else + ac_cv_usable_linux_ext2_fs_h=no +fi +AC_BROKEN_SCSI_SCSI_H +AC_BROKEN_SRC_SCSI_SCSI_H +AC_BROKEN_SCSI_SG_H +AC_BROKEN_SRC_SCSI_SG_H + +if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then + may_linux_src_include=no +fi +if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then + may_linux_src_include=no +fi +if test .$may_linux_src_include = .no; then + echo + echo "Warning: *** /usr/src/linux/include contains broken include files ***" + echo "Warning: *** /usr/src/linux/include is not used this reason ***" + echo "Warning: This may result in the inability to use recent Linux kernel interfaces" + echo +fi +if test .$ac_cv_usable_linux_ext2_fs_h = .no; then + echo + echo "Warning: *** linux/ext2_fs.h is not usable at all ***" + echo "Warning: *** This makes it impossible to support Linux file flags ***" + echo "You may try to compile using 'make COPTX=-DTRY_EXT2_FS'" + echo + sleep 10 +fi +fi # Linux only tests + +AC_SUBST(may_linux_src_include) + +AC_SUBST(largefile_cc_opt) +AC_SUBST(sun_cc64_opt) +AC_SUBST(hp_cc_ansi_opt) +AC_SUBST(hp_cc_opt_opt) +AC_SUBST(hp_cc_gprof_opt) + +AC_SUBST(lib_crypt) +AC_SUBST(lib_resolv) +AC_SUBST(lib_intl) +AC_SUBST(lib_iconv) +AC_SUBST(scsi_lib) +AC_SUBST(lib_scsi) +AC_SUBST(lib_acl) +AC_SUBST(lib_acl_test) +AC_SUBST(lib_attr) +AC_SUBST(lib_secdb) +AC_SUBST(lib_gen) +AC_SUBST(lib_pthread) +AC_SUBST(lib_rt) +AC_SUBST(lib_dl) +AC_SUBST(lib_dir) + +AC_OUTPUT(rules.cnf) diff -Nru smake-1.2a41/autoconf/install-sh smake-1.2a49/autoconf/install-sh --- smake-1.2a41/autoconf/install-sh 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/install-sh 1996-11-20 21:28:55.000000000 +0000 @@ -0,0 +1,250 @@ +#! /bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff -Nru smake-1.2a41/autoconf/rules.cnf.in smake-1.2a49/autoconf/rules.cnf.in --- smake-1.2a41/autoconf/rules.cnf.in 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/rules.cnf.in 2009-11-05 00:18:58.000000000 +0000 @@ -0,0 +1,29 @@ +# @(#)rules.cnf.in 1.22 09/11/05 Copyright 1998-2009 J. Schilling + +EXEEXT= @EXEEXT@ +XEXEEXT= @XEXEEXT@ +OBJEXT= @OBJEXT@ + +LARGEFILE_CC_OPT= @largefile_cc_opt@ +SUN_CC64_OPT= @sun_cc64_opt@ # Used on e.g. Solaris and Linux +HP_CC_ANSI_OPT= @hp_cc_ansi_opt@ # Used on HP-UX +HP_CC_OPT_OPT= @hp_cc_opt_opt@ # Used on HP-UX +HP_CC_GPROF_OPT= @hp_cc_gprof_opt@ # Used on HP-UX + +MAY_LINUX_SRC_INCLUDE= @may_linux_src_include@ + +SCSILIB= @scsi_lib@ +LIB_SCSI= @lib_scsi@ +LIB_RESOLV= @lib_resolv@ +LIB_CRYPT= @lib_crypt@ +LIB_INTL= @lib_intl@ +LIB_ICONV= @lib_iconv@ +LIB_ACL= @lib_acl@ # Full (test/set) ACL users like star +LIB_ACL_TEST= @lib_acl_test@ # Test only ACL users like libfind +LIB_ATTR = @lib_attr@ +LIB_SECDB = @lib_secdb@ +LIB_GEN = @lib_gen@ +LIB_PTHREAD = @lib_pthread@ +LIB_RT = @lib_rt@ +LIB_DL= @lib_dl@ +LIB_DIR= @lib_dir@ diff -Nru smake-1.2a41/autoconf/xconfig.h.in smake-1.2a49/autoconf/xconfig.h.in --- smake-1.2a41/autoconf/xconfig.h.in 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/autoconf/xconfig.h.in 2009-11-29 14:35:28.000000000 +0000 @@ -0,0 +1,901 @@ +/* @(#)xconfig.h.in 1.187 09/11/29 Copyright 1998-2009 J. Schilling */ +/* + * Dynamic autoconf C-include code. + * + * Copyright (c) 1998-2009 J. Schilling + */ + +/* + * Header Files + */ +#undef PROTOTYPES /* if Compiler supports ANSI C prototypes */ +#undef HAVE_ASSERT_H /* to use stdio.h */ +#undef HAVE_STDIO_H /* to use stdio.h */ +#undef HAVE_STDARG_H /* to use stdarg.h, else use varargs.h NOTE: SaberC on a Sun has prototypes but no stdarg.h */ +#undef HAVE_VARARGS_H /* to use use varargs.h NOTE: The free HP-UX C-compiler has stdarg.h but no PROTOTYPES */ +#undef HAVE_STDLIB_H /* to use general utility defines (malloc(), size_t ...) and general C library prototypes */ +#undef HAVE_STDDEF_H /* to use offsetof(), ptrdiff_t, wchar_t, size_t */ +#undef HAVE_STRING_H /* to get NULL and ANSI C string function prototypes */ +#undef HAVE_STRINGS_H /* to get BSD string function prototypes */ +#undef STDC_HEADERS /* if ANSI compliant stdlib.h, stdarg.h, string.h, float.h are present */ +#undef HAVE_UNISTD_H /* to get POSIX syscall prototypes XXX sys/file.h fcntl.h (unixstd/fctl)XXX*/ +#undef HAVE_GETOPT_H /* to get getopt() prototype from getopt.h instead of unistd.h */ +#undef HAVE_LIMITS_H /* to get POSIX numeric limits constants */ +#undef HAVE_A_OUT_H /* if a.out.h is present (may be a system using a.out format) */ +#undef HAVE_AOUTHDR_H /* if aouthdr.h is present. This is a COFF system */ +#undef HAVE_ELF_H /* if elf.h is present. This is an ELF system */ +#undef HAVE_FCNTL_H /* to access, O_XXX constants for open(), otherwise use sys/file.h */ +#undef HAVE_SYS_FILE_H /* to use O_XXX constants for open() and flock() defs */ +#undef HAVE_INTTYPES_H /* to use UNIX-98 inttypes.h */ +#undef HAVE_STDINT_H /* to use SUSv3 stdint.h */ +#undef HAVE_DIRENT_H /* to use POSIX dirent.h */ +#undef HAVE_SYS_DIR_H /* to use BSD sys/dir.h */ +#undef HAVE_NDIR_H /* to use ndir.h */ +#undef HAVE_SYS_NDIR_H /* to use sys/ndir.h */ +#undef HAVE_ALLOCA_H /* if alloca.h exists */ +#undef HAVE_MALLOC_H /* if malloc.h exists */ +#undef HAVE_SGTTY_H /* if sgtty.h exists */ +#undef HAVE_TERMIOS_H /* to use POSIX termios.h */ +#undef HAVE_TERMIO_H /* to use SVR4 termio.h */ +#undef HAVE_PWD_H /* if pwd.h exists */ +#undef HAVE_GRP_H /* if grp.h exists */ +#undef HAVE_SIGNAL_H /* if signal.h exists */ +#undef HAVE_SIGINFO_H /* if siginfo.h exists */ +#undef HAVE_SYS_SIGINFO_H /* if sys/siginfo.h exists */ +#undef HAVE_UCONTEXT_H /* if ucontext.h exists */ +#undef HAVE_SYS_ACL_H /* to use for ACL definitions */ +#undef HAVE_ACLLIB_H /* if HP-UX is present */ +#undef HAVE_ACL_LIBACL_H /* if Linux is present */ +#undef HAVE_SHADOW_H /* if shadow.h exists */ +#undef HAVE_SYSLOG_H /* if syslog.h exists */ +#undef HAVE_SYS_TIME_H /* may include sys/time.h for struct timeval */ +#undef TIME_WITH_SYS_TIME /* may include both time.h and sys/time.h */ +#undef HAVE_TIMES /* to use times() and sys/times.h */ +#undef HAVE_SYS_TIMES_H /* may include sys/times.h for struct tms */ +#undef HAVE_UTIME /* to use AT&T utime() and utimbuf */ +#undef HAVE_UTIMES /* to use BSD utimes() and sys/time.h */ +#undef HAVE_FUTIMES /* to use BSD futimes() and sys/time.h */ +#undef HAVE_LUTIMES /* to use BSD lutimes() and sys/time.h */ +#undef HAVE_UTIME_H /* to use utime.h for the utimbuf structure declaration, else declare struct utimbuf yourself */ +#undef HAVE_SYS_UTIME_H /* to use sys/utime.h if utime.h does not exist */ +#undef HAVE_SYS_IOCTL_H /* if sys/ioctl.h is present */ +#undef HAVE_SYS_FILIO_H /* if sys/ioctl.h is present */ +#undef HAVE_SYS_PARAM_H /* if sys/param.h is present */ +#undef HAVE_MACH_MACHINE_H /* if mach/machine.h is present */ +#undef HAVE_MNTENT_H /* if mntent.h is present */ +#undef HAVE_SYS_MNTENT_H /* if sys/mntent.h is present */ +#undef HAVE_SYS_MNTTAB_H /* if sys/mnttab.h is present */ +#undef HAVE_SYS_MOUNT_H /* if sys/mount.h is present */ +#undef HAVE_WAIT_H /* to use wait.h for prototypes and union wait */ +#undef HAVE_SYS_WAIT_H /* else use sys/wait.h */ +#undef HAVE_SYS_RESOURCE_H /* to use sys/resource.h for rlimit() and wait3() */ +#undef HAVE_PROCFS_H /* to use procfs.h instead of sys/procfs.h (Solaris forces profcs-2) */ +#undef HAVE_SYS_PROCFS_H /* to use sys/procfs.h for wait3() emulation */ +#undef HAVE_SYS_SYSTEMINFO_H /* to use SVr4 sysinfo() */ +#undef HAVE_SYS_SYSCTL_H /* to use BSD sysctl() */ +#undef HAVE_SYS_UTSNAME_H /* to use uname() */ +#undef HAVE_SYS_PRIOCNTL_H /* to use SVr4 priocntl() instead of nice()/setpriority() */ +#undef HAVE_SYS_RTPRIOCNTL_H /* if the system supports SVr4 real time classes */ +#undef HAVE_SYS_PROCSET_H /* if the system supports SVr4 process sets */ +#undef HAVE_SYS_SYSCALL_H /* to use syscall() */ +#undef HAVE_SYS_MTIO_H /* to use mtio definitions from sys/mtio.h */ +#undef HAVE_SYS_TAPE_H /* to use mtio definitions from AIX sys/tape.h */ +#undef HAVE_SYS_MMAN_H /* to use definitions for mmap()/madvise()... from sys/mman.h */ +#undef HAVE_SYS_SHM_H /* to use definitions for shmget() ... from sys/shm.h */ +#undef HAVE_SYS_SEM_H /* to use definitions for semget() ... from sys/sem.h */ +#undef HAVE_SYS_IPC_H /* to use definitions for ftok() ... from sys/ipc.h */ +#undef MAJOR_IN_MKDEV /* if we should include sys/mkdev.h to get major()/minor()/makedev() */ +#undef MAJOR_IN_SYSMACROS /* if we should include sys/sysmacros.h to get major()/minor()/makedev() */ +#undef HAVE_SYS_DKIO_H /* if we may include sys/dkio.h for disk ioctls */ +#undef HAVE_SYS_DKLABEL_H /* if we may include sys/dklabel.h for disk label */ +#undef HAVE_SUN_DKIO_H /* if we may include sun/dkio.h for disk ioctls */ +#undef HAVE_SUN_DKLABEL_H /* if we may include sun/dklabel.h for disk label */ +#undef HAVE_SYS_TYPES_H /* if we may include sys/types.h (the standard) */ +#undef HAVE_SYS_STYPES_H /* if we may include sys/stypes.h (JOS) */ +#undef HAVE_SYS_FILEDESC_H /* if we may include sys/filedesc.h (JOS) */ +#undef HAVE_SYS_STAT_H /* if we may include sys/stat.h (the standard) */ +#undef HAVE_SYS_ACCT_H /* if we may include sys/acct.h */ +#undef HAVE_TYPES_H /* if we may include types.h (rare cases e.g. ATARI TOS) */ +#undef HAVE_STAT_H /* if we may include stat.h (rare cases e.g. ATARI TOS) */ +#undef HAVE_POLL_H /* if we may include poll.h to use poll() */ +#undef HAVE_SYS_POLL_H /* if we may include sys/poll.h to use poll() */ +#undef HAVE_SYS_SELECT_H /* if we may have sys/select.h nonstandard use for select() on some systems*/ +#undef NEED_SYS_SELECT_H /* if we need sys/select.h to use select() (this is nonstandard) */ +#undef HAVE_NETDB_H /* if we have netdb.h for get*by*() and rcmd() */ +#undef HAVE_SYS_SOCKET_H /* if we have sys/socket.h for socket() */ +#undef NEED_SYS_SOCKET_H /* if we need sys/socket.h to use select() (this is nonstandard) */ +#undef HAVE_NETINET_IN_H /* if we have netinet/in.h */ +#undef HAVE_STROPTS_H /* if we have stropts.h */ +#undef HAVE_LINUX_PG_H /* if we may include linux/pg.h for PP ATAPI sypport */ +#undef HAVE_CAMLIB_H /* if we may include camlib.h for CAM SCSI transport definitions */ +#undef HAVE_IEEEFP_H /* if we may include ieeefp.h for finite()/isnand() */ +#undef HAVE_FP_H /* if we may include fp.h for FINITE()/IS_INF()/IS_NAN() */ +#undef HAVE_VALUES_H /* if we may include values.h for MAXFLOAT */ +#undef HAVE_FLOAT_H /* if we may include float.h for FLT_MAX */ +#undef HAVE_MATH_H /* if we may include math.h for e.g. isinf()/isnan() */ +#undef HAVE__FILBUF /* if we have _filbuf() for USG derived STDIO */ +#undef HAVE___FILBUF /* if we have __filbuf() for USG derived STDIO */ +#undef HAVE_USG_STDIO /* if we have USG derived STDIO */ +#undef HAVE_ERRNO_DEF /* if we have errno definition in */ +#undef HAVE_ENVIRON_DEF /* if we have environ definition in */ +#undef HAVE_SYS_SIGLIST_DEF /* if we have sys_siglist definition in */ +#undef HAVE_SYS_FORK_H /* if we should include sys/fork.h for forkx() definitions */ +#undef HAVE_VFORK_H /* if we should include vfork.h for vfork() definitions */ +#undef HAVE_ARPA_INET_H /* if we have arpa/inet.h (missing on BeOS) */ + /* BeOS has inet_ntoa() in */ +#undef HAVE_BSD_DEV_SCSIREG_H /* if we have a NeXT Step compatible sg driver */ +#undef HAVE_LINUX_TYPES_H /* if we may include linux/types.h */ +#undef HAVE_LINUX_GFP_H /* if we may include linux/gfp.h */ +#undef HAVE_ASM_TYPES_H /* if we may include asm/types.h */ +#undef HAVE_SYS_BSDTTY_H /* if we have sys/bsdtty.h on HP-UX for TIOCGPGRP */ +#undef HAVE_OS_H /* if we have the BeOS kernel definitions in OS.h */ +#undef HAVE_OS2_H /* if we have the OS/2 definitions in os2.h */ +#undef HAVE_OS2ME_H /* if we have the OS/2 definitions in os2me.h */ +#undef HAVE_WINDOWS_H /* if we have the MS-Win definitions in windows.h */ +#undef HAVE_EXT2FS_EXT2_FS_H /* if we have the Linux moving target ext2fs/ext2_fs.h */ +#undef HAVE_ATTR_XATTR_H /* if we have the Linux Extended File Attr definitions in attr/xattr.h */ +#undef HAVE_CRT_EXTERNS_H /* if we have the Mac OS X env definitions in crt_externs.h */ +#undef HAVE_FNMATCH_H /* if we may include fnmatch.h */ +#undef HAVE_DIRECT_H /* if we may include direct.h (MSVC for getcwd()/chdir()/mkdir()/rmdir()) */ +#undef HAVE_SYSEXITS_H /* if we may include sysexits.h */ + +#undef HAVE_LIBINTL_H /* if we may include libintl.h */ +#undef HAVE_LOCALE_H /* if we may include locale.h */ +#undef HAVE_LANGINFO_H /* if we may include langinfo.h */ +#undef HAVE_NL_TYPES_H /* if we may include nl_types.h */ +#undef HAVE_CTYPE_H /* if we may include ctype.h */ +#undef HAVE_WCTYPE_H /* if we may include wctype.h */ +#undef HAVE_WCHAR_H /* if we may include wchar.h */ +#undef HAVE_ICONV_H /* if we may include iconv.h */ + +#undef HAVE_PRIV_H /* if we may include priv.h */ +#undef HAVE_SYS_PRIV_H /* if we may include sys/priv.h */ +#undef HAVE_EXEC_ATTR_H /* if we may include exec_attr.h */ +#undef HAVE_SECDB_H /* if we may include secdb.h */ +#undef HAVE_PTHREAD_H /* if we may include pthread.h */ +#undef HAVE_THREAD_H /* if we may include thread.h */ + +#undef HAVE_LIBGEN_H /* if we may include libgen.h */ + +#undef HAVE_DLFCN_H /* if we may include dlfcn.h */ +#undef HAVE_LINK_H /* if we may include linh.h */ +#undef HAVE_DL_H /* if we may include dl.h */ + +/* + * Convert to SCHILY name + */ +#ifdef STDC_HEADERS +# ifndef HAVE_STDC_HEADERS +# define HAVE_STDC_HEADERS +# endif +#endif + +#ifdef HAVE_ELF_H +#define HAVE_ELF /* This system uses ELF */ +#else +# ifdef HAVE_AOUTHDR_H +# define HAVE_COFF /* This system uses COFF */ +# else +# ifdef HAVE_A_OUT_H +# define HAVE_AOUT /* This system uses AOUT */ +# endif +# endif +#endif + +/* + * Function declarations + */ +#undef HAVE_DECL_STAT /* Whether defines extern stat(); */ +#undef HAVE_DECL_LSTAT /* Whether defines extern lstat(); */ + +/* + * Library Functions + */ +#undef HAVE_ACCESS /* access() is present in libc */ +#undef HAVE_EACCESS /* eaccess() is present in libc */ +#undef HAVE_EUIDACCESS /* euidaccess() is present in libc */ +#undef HAVE_ACCESS_E_OK /* access() implements E_OK (010) for effective UIDs */ +#undef HAVE_CRYPT /* crypt() is present in libc or libcrypt */ +#undef HAVE_STRERROR /* strerror() is present in libc */ +#undef HAVE_MEMCHR /* memchr() is present in libc */ +#undef HAVE_MEMCPY /* memcpy() is present in libc */ +#undef HAVE_MEMMOVE /* memmove() is present in libc */ +#undef HAVE_MEMSET /* memset() is present in libc */ +#undef HAVE_MADVISE /* madvise() is present in libc */ +#undef HAVE_MLOCK /* mlock() is present in libc */ +#undef HAVE_MLOCKALL /* working mlockall() is present in libc */ +#undef HAVE_MMAP /* working mmap() is present in libc */ +#undef _MMAP_WITH_SIZEP /* mmap() needs address of size parameter */ +#undef HAVE_FLOCK /* *BSD flock() is present in libc */ +#undef HAVE_LOCKF /* lockf() is present in libc (XOPEN) */ +#undef HAVE_FCNTL_LOCKF /* file locking via fcntl() is present in libc */ +#undef HAVE_FCHDIR /* fchdir() is present in libc */ +#undef HAVE_FDOPENDIR /* fdopendir() is present in libc */ +#undef HAVE_OPENAT /* openat() is present in libc */ +#undef HAVE_ATTROPEN /* attropen() is present in libc */ +#undef HAVE_FSTATAT /* fstatat() is present in libc */ +#undef HAVE_FCHOWNAT /* fchownat() is present in libc */ +#undef HAVE_FUTIMESAT /* futimesat() is present in libc */ +#undef HAVE_RENAMEAT /* renameat() is present in libc */ +#undef HAVE_UNLINKAT /* unlinkat() is present in libc */ +#undef HAVE___ACCESSAT /* __accessat() is present in libc */ +#undef HAVE_ACCESSAT /* accessat() is present in libc */ +#undef HAVE_REALPATH /* realpath() is present in libc */ +#undef HAVE_RESOLVEPATH /* resolvepath() is present in libc */ +/* + * See e.g. http://www.die.net/doc/linux/man/man2/mkdirat.2.html + */ +#undef HAVE_MKDIRAT /* mkdirat() is present in libc */ +#undef HAVE_FACCESSAT /* faccessat() is present in libc */ +#undef HAVE_FCHMODAT /* fchmodat() is present in libc */ +#undef HAVE_LINKAT /* inkat() is present in libc */ +#undef HAVE_MKFIFOAT /* mkfifoat() is present in libc */ +#undef HAVE_MKNODKAT /* mknodat() is present in libc */ +#undef HAVE_READLINKAT /* readlinkat() is present in libc */ +#undef HAVE_SYMLINKAT /* symlinkat() is present in libc */ +#undef HAVE_FUTIMENS /* futimens() is present in libc */ +#undef HAVE_UTIMENSAT /* utimensat() is present in libc */ +#undef HAVE_POPEN /* popen() is present in libc */ +#undef HAVE_PCLOSE /* pclose() is present in libc */ +#undef HAVE__POPEN /* _popen() is present in libc */ +#undef HAVE__PCLOSE /* _pclose() is present in libc */ +#undef HAVE_STATVFS /* statvfs() is present in libc */ +#undef HAVE_QUOTACTL /* quotactl() is present in libc */ +#undef HAVE_QUOTAIOCTL /* use ioctl(f, Q_QUOTACTL, &q) instead of quotactl() */ +#undef HAVE_GETPID /* getpid() is present in libc */ +#undef HAVE_GETPPID /* getppid() is present in libc */ +#undef HAVE_SETREUID /* setreuid() is present in libc */ +#undef HAVE_SETRESUID /* setresuid() is present in libc */ +#undef HAVE_SETEUID /* seteuid() is present in libc */ +#undef HAVE_SETUID /* setuid() is present in libc */ +#undef HAVE_SETREGID /* setregid() is present in libc */ +#undef HAVE_SETRESGID /* setresgid() is present in libc */ +#undef HAVE_SETEGID /* setegid() is present in libc */ +#undef HAVE_SETGID /* setgid() is present in libc */ +#undef HAVE_GETUID /* getuid() is present in libc */ +#undef HAVE_GETEUID /* geteuid() is present in libc */ +#undef HAVE_GETGID /* getgid() is present in libc */ +#undef HAVE_GETEGID /* getegid() is present in libc */ +#undef HAVE_GETPGID /* getpgid() is present in libc (POSIX) */ +#undef HAVE_SETPGID /* setpgid() is present in libc (POSIX) */ +#undef HAVE_GETPGRP /* getpgrp() is present in libc (ANY) */ +#undef HAVE_GETSID /* getsid() is present in libc (POSIX) */ +#undef HAVE_SETSID /* setsid() is present in libc (POSIX) */ +#undef HAVE_SETPGRP /* setpgrp() is present in libc (ANY) */ +#undef HAVE_BSD_GETPGRP /* getpgrp() in libc is BSD-4.2 compliant */ +#undef HAVE_BSD_SETPGRP /* setpgrp() in libc is BSD-4.2 compliant */ +#undef HAVE_GETSPNAM /* getspnam() in libc (SVR4 compliant) */ +#undef HAVE_GETSPWNAM /* getspwnam() in libsec.a (HP-UX) */ +#undef HAVE_SYNC /* sync() is present in libc */ +#undef HAVE_FSYNC /* fsync() is present in libc */ +#undef HAVE_TCGETATTR /* tcgetattr() is present in libc */ +#undef HAVE_TCSETATTR /* tcsetattr() is present in libc */ +#undef HAVE_TCGETPGRP /* tcgetpgrp() is present in libc */ +#undef HAVE_TCSETPGRP /* tcsetpgrp() is present in libc */ +#undef HAVE_WAIT /* wait() is present in libc */ +#undef HAVE_WAIT3 /* working wait3() is present in libc */ +#undef HAVE_WAIT4 /* wait4() is present in libc */ +#undef HAVE_WAITID /* waitid() is present in libc */ +#undef HAVE_WAITPID /* waitpid() is present in libc */ +#undef HAVE_GETHOSTID /* gethostid() is present in libc */ +#undef HAVE_GETHOSTNAME /* gethostname() is present in libc */ +#undef HAVE_GETDOMAINNAME /* getdomainname() is present in libc */ +#undef HAVE_GETPAGESIZE /* getpagesize() is present in libc */ +#undef HAVE_GETDTABLESIZE /* getdtablesize() is present in libc */ +#undef HAVE_GETRUSAGE /* getrusage() is present in libc */ +#undef HAVE_GETRLIMIT /* getrlimit() is present in libc */ +#undef HAVE_SETRLIMIT /* setrlimit() is present in libc */ +#undef HAVE_ULIMIT /* ulimit() is present in libc */ +#undef HAVE_GETTIMEOFDAY /* gettimeofday() is present in libc */ +#undef HAVE_SETTIMEOFDAY /* settimeofday() is present in libc */ +#undef HAVE_VAR_TIMEZONE /* extern long timezone is present in libc */ +#undef HAVE_VAR_TIMEZONE_DEF /* extern long timezone is present in time.h */ +#undef HAVE_TIME /* time() is present in libc */ +#undef HAVE_GMTIME /* gmtime() is present in libc */ +#undef HAVE_LOCALTIME /* localtime() is present in libc */ +#undef HAVE_MKTIME /* mktime() is present in libc */ +#undef HAVE_TIMEGM /* timegm() is present in libc */ +#undef HAVE_TIMELOCAL /* timelocal() is present in libc */ +#undef HAVE_FTIME /* ftime() is present in libc */ +#undef HAVE_STIME /* stime() is present in libc */ +#undef HAVE_TZSET /* tzset() is present in libc */ +#undef HAVE_CTIME /* ctime() is present in libc */ +#undef HAVE_CFTIME /* cftime() is present in libc */ +#undef HAVE_ASCFTIME /* ascftime() is present in libc */ +#undef HAVE_STRFTIME /* strftime() is present in libc */ +#undef HAVE_GETHRTIME /* gethrtime() is present in libc */ +#undef HAVE_POLL /* poll() is present in libc */ +#undef HAVE_SELECT /* select() is present in libc */ +#undef HAVE_ISASTREAM /* isastream() is present in libc */ +#undef HAVE_CHMOD /* chmod() is present in libc */ +#undef HAVE_FCHMOD /* fchmod() is present in libc */ +#undef HAVE_LCHMOD /* lchmod() is present in libc */ +#undef HAVE_CHOWN /* chown() is present in libc */ +#undef HAVE_FCHOWN /* fchown() is present in libc */ +#undef HAVE_LCHOWN /* lchown() is present in libc */ +#undef HAVE_TRUNCATE /* truncate() is present in libc */ +#undef HAVE_FTRUNCATE /* ftruncate() is present in libc */ +#undef HAVE_BRK /* brk() is present in libc */ +#undef HAVE_SBRK /* sbrk() is present in libc */ +#undef HAVE_VA_COPY /* va_copy() is present in varargs.h/stdarg.h */ +#undef HAVE__VA_COPY /* __va_copy() is present in varargs.h/stdarg.h */ +#undef HAVE_DTOA /* BSD-4.4 __dtoa() is present in libc */ +#undef HAVE_DTOA_R /* BSD-4.4 __dtoa() with result ptr (reentrant) */ +#undef HAVE_DUP /* dup() is present in libc */ +#undef HAVE_DUP2 /* dup2() is present in libc */ +#undef HAVE_GETCWD /* POSIX getcwd() is present in libc */ +#undef HAVE_SMMAP /* may map anonymous memory to get shared mem */ +#undef HAVE_SHMAT /* shmat() is present in libc */ +#undef HAVE_SHMGET /* shmget() is present in libc and working */ +#undef HAVE_SEMGET /* semget() is present in libc */ +#undef HAVE_LSTAT /* lstat() is present in libc */ +#undef HAVE_READLINK /* readlink() is present in libc */ +#undef HAVE_SYMLINK /* symlink() is present in libc */ +#undef HAVE_LINK /* link() is present in libc */ +#undef HAVE_HARD_SYMLINKS /* link() allows hard links on symlinks */ +#undef HAVE_LINK_NOFOLLOW /* link() does not follow symlinks when hard linking symlinks */ +#undef HAVE_RENAME /* rename() is present in libc */ +#undef HAVE_MKFIFO /* mkfifo() is present in libc */ +#undef HAVE_MKNOD /* mknod() is present in libc */ +#undef HAVE_ECVT /* ecvt() is present in libc */ +#undef HAVE_FCVT /* fcvt() is present in libc */ +#undef HAVE_GCVT /* gcvt() is present in libc */ +#undef HAVE_ECVT_R /* ecvt_r() is present in libc */ +#undef HAVE_FCVT_R /* fcvt_r() is present in libc */ +#undef HAVE_GCVT_R /* gcvt_r() is present in libc */ +#undef HAVE_ECONVERT /* econvert() is present in libc */ +#undef HAVE_FCONVERT /* fconvert() is present in libc */ +#undef HAVE_GCONVERT /* gconvert() is present in libc */ +#undef HAVE_ISINF /* isinf() is present in libc */ +#undef HAVE_ISNAN /* isnan() is present in libc */ +#undef HAVE_C99_ISINF /* isinf() is present in math.h/libc */ +#undef HAVE_C99_ISNAN /* isnan() is present in math.h/libc */ +#undef HAVE_FINITE /* finite() is present in libc/ieeefp.h (SVr4) */ +#undef HAVE_ISNAND /* isnand() is present in libc/ieeefp.h (SVr4) */ +#undef HAVE_RAND /* rand() is present in libc */ +#undef HAVE_DRAND48 /* drand48() is present in libc */ +#undef HAVE_ICONV /* iconv() is present in libiconv */ +#undef HAVE_ICONV_OPEN /* iconv_open() is present in libiconv */ +#undef HAVE_ICONV_CLOSE /* iconv_close() is present in libiconc */ +#undef HAVE_LIBICONV /* libiconv() is present in libiconv */ +#undef HAVE_LIBICONV_OPEN /* libiconv_open() is present in liiconv */ +#undef HAVE_LIBICONV_CLOSE /* libiconv_close() is present in libiconv */ +#undef HAVE_SETPRIORITY /* setpriority() is present in libc */ +#undef HAVE_NICE /* nice() is present in libc */ +#undef HAVE_DOSSETPRIORITY /* DosSetPriority() is present in libc */ +#undef HAVE_DOSALLOCSHAREDMEM /* DosAllocSharedMem() is present in libc */ +#undef HAVE_SEEKDIR /* seekdir() is present in libc */ +#undef HAVE_GETENV /* getenv() is present in libc */ +#undef HAVE_PUTENV /* putenv() is present in libc (preferred function) */ +#undef HAVE_SETENV /* setenv() is present in libc (use instead of putenv()) */ +#undef HAVE_UNSETENV /* unsetenv() is present in libc */ +#undef HAVE_UNAME /* uname() is present in libc */ +#undef HAVE_SNPRINTF /* snprintf() is present in libc */ +#undef HAVE_STRCAT /* strcat() is present in libc */ +#undef HAVE_STRNCAT /* strncat() is present in libc */ +#undef HAVE_STRCMP /* strcmp() is present in libc */ +#undef HAVE_STRNCMP /* strncmp() is present in libc */ +#undef HAVE_STRCPY /* strcpy() is present in libc */ +#undef HAVE_STRLCPY /* strlcpy() is present in libc */ +#undef HAVE_STRNCPY /* strncpy() is present in libc */ +#undef HAVE_STRDUP /* strdup() is present in libc */ +#undef HAVE_STRLEN /* strlen() is present in libc */ +#undef HAVE_STRCHR /* strchr() is present in libc */ +#undef HAVE_STRRCHR /* strrchr() is present in libc */ +#undef HAVE_STRCASECMP /* strcasecmp() is present in libc */ +#undef HAVE_STRTOL /* strtol() is present in libc */ +#undef HAVE_STRTOLL /* strtoll() is present in libc */ +#undef HAVE_STRTOUL /* strtoul() is present in libc */ +#undef HAVE_STRTOULL /* strtoull() is present in libc */ +#undef HAVE_STRTOD /* strtold() is present in libc */ +#undef HAVE_STRSIGNAL /* strsignal() is present in libc */ +#undef HAVE_STR2SIG /* str2sig() is present in libc */ +#undef HAVE_SIG2STR /* sig2str() is present in libc */ +#undef HAVE_SIGSETJMP /* sigsetjmp() is present in libc */ +#undef HAVE_SIGLONGJMP /* siglongjmp() is present in libc */ +#undef HAVE_KILL /* kill() is present in libc */ +#undef HAVE_KILLPG /* killpg() is present in libc */ +#undef HAVE_SIGNAL /* signal() is present in libc */ +#undef HAVE_SIGRELSE /* sigrelse() is present in libc */ +#undef HAVE_SIGPROCMASK /* sigprocmask() is present in libc (POSIX) */ +#undef HAVE_SIGSETMASK /* sigsetmask() is present in libc (BSD) */ +#undef HAVE_SIGSET /* sigset() is present in libc (POSIX) */ +#undef HAVE_SIGALTSTACK /* sigaltstack() is present in libc (POSIX) */ +#undef HAVE_SYS_SIGLIST /* char *sys_siglist[] is present in libc */ +#undef HAVE_SLEEP /* sleep() is present in libc */ +#undef HAVE_USLEEP /* usleep() is present in libc */ +#undef HAVE_FORK /* fork() is present in libc */ +#undef HAVE_FORKX /* forkx() is present in libc */ +#undef HAVE_FORKALL /* forkall() is present in libc */ +#undef HAVE_FORKALLX /* forkallx() is present in libc */ +#undef HAVE_VFORK /* working vfork() is present in libc */ +#undef HAVE_VFORKX /* working vforkx() is present in libc */ +#undef HAVE_EXECL /* execl() is present in libc */ +#undef HAVE_EXECLE /* execle() is present in libc */ +#undef HAVE_EXECLP /* execlp() is present in libc */ +#undef HAVE_EXECV /* execv() is present in libc */ +#undef HAVE_EXECVE /* execve() is present in libc */ +#undef HAVE_EXECVP /* execvp() is present in libc */ +#undef HAVE_GETEXECNAME /* getexecname() is present in libc */ +#undef HAVE_GETPROGNAME /* getprogname() is present in libc */ +#undef HAVE_SETPROGNAME /* setprogname() is present in libc */ +#undef HAVE_ALLOCA /* alloca() is present (else use malloc())*/ +#undef HAVE_MALLOC /* malloc() is present in libc */ +#undef HAVE_CALLOC /* calloc() is present in libc */ +#undef HAVE_REALLOC /* realloc() is present in libc */ +#undef HAVE_VALLOC /* valloc() is present in libc (else use malloc())*/ +#undef HAVE_MEMALIGN /* memalign() is present in libc */ +#undef HAVE_POSIX_MEMALIGN /* posix_memalign() is present in libc */ +#undef vfork +#undef HAVE_WCSCAT /* wcscat() is present in libc */ +#undef HAVE_WCSNCAT /* wcsncat() is present in libc */ +#undef HAVE_WCSCMP /* wcscmp() is present in libc */ +#undef HAVE_WCSNCMP /* wcsncmp() is present in libc */ +#undef HAVE_WCSCPY /* wcscpy() is present in libc */ +#undef HAVE_WCSLCPY /* wcsncpy() is present in libc */ +#undef HAVE_WCSNCPY /* wcsncpy() is present in libc */ +#undef HAVE_WCSDUP /* wcsdup() is present in libc */ +#undef HAVE_WCSLEN /* wcslen() is present in libc */ +#undef HAVE_WCSCHR /* wcschr() is present in libc */ +#undef HAVE_WCSRCHR /* wcsrchr() is present in libc */ +#undef HAVE_WCWIDTH /* wcwidth() is present in libc */ +#undef HAVE_WCSWIDTH /* wcswidth() is present in libc */ +#undef HAVE_WCTYPE /* wctype() is present in libc */ +#undef HAVE_ISWCTYPE /* iswctype() is present in libc */ + + +#undef HAVE_CHFLAGS /* chflags() is present in libc */ +#undef HAVE_FCHFLAGS /* fchflags() is present in libc */ +#undef HAVE_FFLAGSTOSTR /* fflagstostr() is present in libc */ +#undef HAVE_STRTOFFLAGS /* strtofflags() is present in libc */ + +#undef HAVE_GETTEXT /* gettext() is present in -lintl */ +#undef HAVE_SETLOCALE /* setlocale() is present in libc */ +#undef HAVE_LOCALECONV /* localeconv() is present in libc */ +#undef HAVE_NL_LANGINFO /* nl_langinfo() is present in libc */ + +#undef HAVE_SETBUF /* setbuf() is present in libc */ +#undef HAVE_SETVBUF /* setvbuf() is present in libc */ + +#undef HAVE_FNMATCH /* fnmatch() is present in libc */ + +#undef HAVE_MKTEMP /* mktemp() is present in libc */ +#undef HAVE_MKSTEMP /* mkstemp() is present in libc */ + +#undef HAVE_GETPPRIV /* getppriv() is present in libc */ +#undef HAVE_SETPPRIV /* setppriv() is present in libc */ +#undef HAVE_PRIV_SET /* priv_set() is present in libc */ +#undef HAVE_GETROLES /* getroles() is present in libc (AIX) */ +#undef HAVE_PRIVBIT_SET /* privbit_set() is present in libc (AIX) */ + +#undef HAVE_GETAUTHATTR /* getauthattr() is present in -lsecdb */ +#undef HAVE_GETUSERATTR /* getuserattr() is present in -lsecdb */ +#undef HAVE_GETEXECATTR /* getexecattr() is present in -lsecdb */ +#undef HAVE_GETPROFATTR /* getprofattr() is present in -lsecdb */ + +#undef HAVE_GMATCH /* gmatch() is present in -lgen */ + +#undef HAVE_CLONE_AREA /* clone_area() is present in libc */ +#undef HAVE_CREATE_AREA /* create_area() is present in libc */ +#undef HAVE_DELETE_AREA /* delete_area() is present in libc */ + +#undef HAVE_DLOPEN /* dlopen() is present in libc */ +#undef HAVE_DLCLOSE /* dlclose() is present in libc */ +#undef HAVE_DLSYM /* dlsym() is present in libc */ +#undef HAVE_DLERROR /* dlerror() is present in libc */ +#undef HAVE_SHL_LOAD /* shl_load() is present in libc */ +#undef HAVE_SHL_UNLOAD /* shl_unload() is present in libc */ +#undef HAVE_SHL_GETHANDLE /* shl_gethandle() is present in libc */ +#undef HAVE_LOADLOBRARY /* LoadLibrary() as present in libc */ +#undef HAVE_FREELIBRARY /* FreeLibrary() is present in libc */ +#undef HAVE_GETPROCADDRESS /* GetProcAddress() is present in libc */ + +#undef HAVE_YIELD /* yield() is present in libc */ +#undef HAVE_THR_YIELD /* thr_yield() is present in libc */ + +#undef HAVE_PTHREAD_CREATE /* pthread_create() is present in libpthread */ +#undef HAVE_PTHREAD_KILL /* pthread_kill() is present in libpthread */ +#undef HAVE_PTHREAD_MUTEX_LOCK /* pthread_mutex_lock() is present in libpthread */ +#undef HAVE_PTHREAD_COND_WAIT /* pthread_cond_wait() is present in libpthread */ +#undef HAVE_PTHREAD_SPIN_LOCK /* pthread_spin_lock() is present in libpthread */ + +#undef HAVE_CLOCK_GETTIME /* clock_gettime() is present in librt */ +#undef HAVE_CLOCK_SETTIME /* clock_settime() is present in librt */ +#undef HAVE_CLOCK_GETRES /* clock_getres() is present in librt */ +#undef HAVE_SCHED_GETPARAM /* sched_getparam() is present in librt */ +#undef HAVE_SCHED_SETPARAM /* sched_setparam() is present in librt */ +#undef HAVE_SCHED_GETSCHEDULER /* sched_getscheduler() is present in librt */ +#undef HAVE_SCHED_SETSCHEDULER /* sched_setscheduler() is present in librt */ +#undef HAVE_SCHED_YIELD /* sched_yield() is present in librt */ +#undef HAVE_NANOSLEEP /* nanosleep() is present in librt */ + +#undef HAVE_DIRFD /* dirfd() is present in libc */ +#undef HAVE_ISWPRINT /* iswprint() is present in libc */ + +/* + * Functions that we defined in 1982 but where POSIX.1-2008 defined + * a POSIX violating incompatible definition. + * We use AC_RCHECK_FUNCS(), so we get HAVE_RAW_* results as some + * Linux distros have fexecve() that returns ENOSYS. + */ +#undef HAVE_RAW_FEXECL /* fexecl() */ +#undef HAVE_RAW_FEXECLE /* fexecle() */ +#undef HAVE_RAW_FEXECV /* fexecv() */ +#undef HAVE_RAW_FEXECVE /* fexecve() */ +#undef HAVE_RAW_FSPAWNV /* fspawnv() */ +#undef HAVE_RAW_FSPAWNL /* fspawnl() */ +#undef HAVE_RAW_FSPAWNV_NOWAIT /* fspawnv_nowait() */ +#undef HAVE_RAW_GETLINE /* getline() */ +#undef HAVE_RAW_FGETLINE /* fgetline() */ + + +/* + * Misc OS stuff + */ +#undef HAVE_DEV_TTY /* /dev/tty present */ +#undef HAVE_DEV_NULL /* /dev/null present */ +#undef HAVE_DEV_ZERO /* /dev/zero present */ + +/* + * Misc OS programs + */ +#undef SHELL_IS_BASH /* sh is bash */ +#undef BIN_SHELL_IS_BASH /* /bin/sh is bash */ +#undef SHELL_CE_IS_BROKEN /* sh -ce is broken */ +#undef BIN_SHELL_CE_IS_BROKEN /* /bin/sh -ce is broken */ +#undef BIN_SHELL_BOSH /* /bin/bosh is a working Bourne Shell */ +#undef OPT_SCHILY_BIN_SHELL_BOSH /* /opt/schily/bin/bosh is a working Bourne Shell */ + +/* + * OS madness + */ +#undef HAVE_BROKEN_LINUX_EXT2_FS_H /* whether is broken */ +#undef HAVE_BROKEN_SRC_LINUX_EXT2_FS_H /* whether /usr/src/linux/include/linux/ext2_fs.h is broken */ +#undef HAVE_USABLE_LINUX_EXT2_FS_H /* whether linux/ext2_fs.h is usable at all */ +#undef HAVE_BROKEN_SCSI_SCSI_H /* whether is broken */ +#undef HAVE_BROKEN_SRC_SCSI_SCSI_H /* whether /usr/src/linux/include/scsi/scsi.h is broken */ +#undef HAVE_BROKEN_SCSI_SG_H /* whether is broken */ +#undef HAVE_BROKEN_SRC_SCSI_SG_H /* whether /usr/src/linux/include/scsi/sg.h is broken */ + +/* + * Linux Extended File Attributes + */ +#undef HAVE_GETXATTR /* getxattr() */ +#undef HAVE_SETXATTR /* setxattr() */ +#undef HAVE_LISTXATTR /* listxattr() */ +#undef HAVE_LGETXATTR /* lgetxattr() */ +#undef HAVE_LSETXATTR /* lsetxattr() */ +#undef HAVE_LLISTXATTR /* llistxattr() */ + +/* + * Important: This must be a result from a check _before_ the Large File test + * has been run. It then tells us whether these functions are + * available even when not in Large File mode. + * + * Do not run the AC_FUNC_FSEEKO test from the GNU tar Large File test + * siute. It will use the same cache names and interfere with our test. + * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure + * they are placed before the large file tests. + */ +#undef HAVE_FSEEKO /* fseeko() is present in default compile mode */ +#undef HAVE_FTELLO /* ftello() is present in default compile mode */ + +#undef HAVE_RCMD /* rcmd() is present in libc/libsocket */ +#undef HAVE_SOCKET /* socket() is present in libc/libsocket */ +#undef HAVE_SOCKETPAIR /* socketpair() is present in libc/libsocket */ +#undef HAVE_GETSERVBYNAME /* getservbyname() is present in libc/libsocket */ +#undef HAVE_INET_NTOA /* inet_ntoa() is present in libc/libsocket */ +#undef HAVE_GETADDRINFO /* getaddrinfo() is present in libc/libsocket */ +#undef HAVE_GETNAMEINFO /* getnameinfo() is present in libc/libsocket */ + +#if defined(HAVE_QUOTACTL) || defined(HAVE_QUOTAIOCTL) +# define HAVE_QUOTA /* The system inludes quota */ +#endif + +/* + * We need to test for the include files too because Apollo Domain/OS has a + * libc that includes the functions but the includes files are not visible + * from the BSD compile environment. + * + * ATARI MiNT has a non-working shmget(), so we test for it separately. + */ +#if defined(HAVE_SHMAT) && defined(HAVE_SHMGET) && \ + defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) +# define HAVE_USGSHM /* USG shared memory is present */ +#endif +#if defined(HAVE_SEMGET) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) +# define HAVE_USGSEM /* USG semaphores are present */ +#endif + +#if defined(HAVE_GETPGRP) && !defined(HAVE_BSD_GETPGRP) +#define HAVE_POSIX_GETPGRP 1 /* getpgrp() in libc is POSIX compliant */ +#endif +#if defined(HAVE_SETPGRP) && !defined(HAVE_BSD_SETPGRP) +#define HAVE_POSIX_SETPGRP 1 /* setpgrp() in libc is POSIX compliant */ +#endif + +/* + * Structures + */ +#undef HAVE_MTGET_TYPE /* if struct mtget contains mt_type (drive type) */ +#undef HAVE_MTGET_MODEL /* if struct mtget contains mt_model (drive type) */ +#undef HAVE_MTGET_DSREG /* if struct mtget contains mt_dsreg (drive status) */ +#undef HAVE_MTGET_DSREG1 /* if struct mtget contains mt_dsreg1 (drive status msb) */ +#undef HAVE_MTGET_DSREG2 /* if struct mtget contains mt_dsreg2 (drive status lsb) */ +#undef HAVE_MTGET_GSTAT /* if struct mtget contains mt_gstat (generic status) */ +#undef HAVE_MTGET_ERREG /* if struct mtget contains mt_erreg (error register) */ +#undef HAVE_MTGET_RESID /* if struct mtget contains mt_resid (residual count) */ +#undef HAVE_MTGET_FILENO /* if struct mtget contains mt_fileno (file #) */ +#undef HAVE_MTGET_BLKNO /* if struct mtget contains mt_blkno (block #) */ +#undef HAVE_MTGET_FLAGS /* if struct mtget contains mt_flags (flags) */ +#undef HAVE_MTGET_BF /* if struct mtget contains mt_bf (optimum blocking factor) */ +#undef HAVE_STRUCT_TIMEVAL /* have struct timeval in time.h or sys/time.h */ +#undef HAVE_STRUCT_TIMEZONE /* have struct timezone in time.h or sys/time.h */ +#undef HAVE_STRUCT_RUSAGE /* have struct rusage in sys/resource.h */ +#undef HAVE_SI_UTIME /* if struct siginfo contains si_utime */ +#undef HAVE_UNION_SEMUN /* have an illegal definition for union semun in sys/sem.h */ +#undef HAVE_UNION_WAIT /* have union wait in wait.h */ +#undef USE_UNION_WAIT /* union wait in wait.h is used by default */ +#undef HAVE_DIRENT_D_INO /* have d_ino in struct dirent */ +#undef HAVE_DIR_DD_FD /* have dd_fd in DIR * */ +/* + * SCO UnixWare has st_atim.st__tim.tv_nsec but the st_atim.tv_nsec tests also + * succeeds. If you use st_atim.tv_nsec on UnixWare, you get a warning about + * illegal structure usage. For this reason, your code needs to have + * #ifdef HAVE_ST__TIM before #ifdef HAVE_ST_NSEC. + */ +#undef HAVE_ST_SPARE1 /* if struct stat contains st_spare1 (usecs) */ +#undef HAVE_ST_ATIMENSEC /* if struct stat contains st_atimensec (nanosecs) */ +#undef HAVE_ST_NSEC /* if struct stat contains st_atim.tv_nsec (nanosecs) */ +#undef HAVE_ST__TIM /* if struct stat contains st_atim.st__tim.tv_nsec (nanosecs) */ +#undef HAVE_ST_ATIMESPEC /* if struct stat contains st_atimespec.tv_nsec (nanosecs) */ +#undef HAVE_ST_BLKSIZE /* if struct stat contains st_blksize */ +#undef HAVE_ST_BLOCKS /* if struct stat contains st_blocks */ +#undef HAVE_ST_FSTYPE /* if struct stat contains st_fstype */ +#undef HAVE_ST_ACLCNT /* if struct stat contains st_aclcnt */ +#undef HAVE_ST_RDEV /* if struct stat contains st_rdev */ +#undef HAVE_ST_FLAGS /* if struct stat contains st_flags */ +#undef STAT_MACROS_BROKEN /* if the macros S_ISDIR, S_ISREG .. don't work */ + +#undef HAVE_UTSNAME_ARCH /* if struct utsname contains processor as arch */ +#undef HAVE_UTSNAME_PROCESSOR /* if struct utsname contains processor */ +#undef HAVE_UTSNAME_SYSNAME_HOST /* if struct utsname contains sysname_host */ +#undef HAVE_UTSNAME_RELEASE_HOST /* if struct utsname contains release_host */ +#undef HAVE_UTSNAME_VERSION_HOST /* if struct utsname contains version_host */ + +#undef DEV_MINOR_BITS /* # if bits needed to hold minor device number */ +#undef DEV_MINOR_NONCONTIG /* if bits in minor device number are noncontiguous */ + +#undef HAVE_SOCKADDR_STORAGE /* if socket.h defines struct sockaddr_storage */ + + +/* + * Byteorder/Bitorder + */ +#define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ +#undef WORDS_BIGENDIAN /* If using network byte order */ +#define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ +#undef BITFIELDS_HTOL /* If high bits come first in structures */ + +/* + * Types/Keywords + */ +#undef SIZEOF_CHAR +#undef SIZEOF_SHORT_INT +#undef SIZEOF_INT +#undef SIZEOF_LONG_INT +#undef SIZEOF_LONG_LONG +#undef SIZEOF___INT64 +#undef SIZEOF_CHAR_P +#undef SIZEOF_UNSIGNED_CHAR +#undef SIZEOF_UNSIGNED_SHORT_INT +#undef SIZEOF_UNSIGNED_INT +#undef SIZEOF_UNSIGNED_LONG_INT +#undef SIZEOF_UNSIGNED_LONG_LONG +#undef SIZEOF_UNSIGNED___INT64 +#undef SIZEOF_UNSIGNED_CHAR_P +#undef SIZEOF_FLOAT +#undef SIZEOF_DOUBLE +#undef SIZEOF_LONG_DOUBLE + +#undef SIZEOF_SIZE_T +#undef SIZEOF_SSIZE_T +#undef SIZEOF_PTRDIFF_T + +#undef SIZEOF_TIME_T +#undef SIZEOF_WCHAR /* sizeof (L'a') */ +#undef SIZEOF_WCHAR_T /* sizeof (wchar_t) */ + +#undef HAVE_LONGLONG /* Compiler defines long long type */ +#undef HAVE___INT64 /* Compiler defines __int64 type */ +#undef HAVE_LONGDOUBLE /* Compiler defines long double type */ +#undef CHAR_IS_UNSIGNED /* Compiler defines char to be unsigned */ + +#undef const /* Define to empty if const doesn't work */ +#undef uid_t /* To be used if uid_t is not present */ +#undef gid_t /* To be used if gid_t is not present */ +#undef size_t /* To be used if size_t is not present */ +#undef ssize_t /* To be used if ssize_t is not present */ +#undef ptrdiff_t /* To be used if ptrdiff_t is not present */ +#undef pid_t /* To be used if pid_t is not present */ +#undef off_t /* To be used if off_t is not present */ +#undef mode_t /* To be used if mode_t is not present */ +#undef time_t /* To be used if time_t is not present */ +#undef caddr_t /* To be used if caddr_t is not present */ +#undef daddr_t /* To be used if daddr_t is not present */ +#undef dev_t /* To be used if dev_t is not present */ +#undef major_t /* To be used if major_t is not present */ +#undef minor_t /* To be used if minor_t is not present */ +#undef ino_t /* To be used if ino_t is not present */ +#undef nlink_t /* To be used if nlink_t is not present */ +#undef blksize_t /* To be used if blksize_t is not present */ +#undef blkcnt_t /* To be used if blkcnt_t is not present */ + +#undef HAVE_TYPE_INTMAX_T /* if defines intmax_t */ +#undef HAVE_TYPE_UINTMAX_T /* if defines uintmax_t */ + +#undef HAVE_TYPE_GREG_T /* if defines greg_t */ + +#undef HAVE_STACK_T /* if defines stack_t */ +#undef HAVE_SIGINFO_T /* if defines siginfo_t */ + +/* + * Important: Next Step needs time.h for clock_t (because of a bug) + */ +#undef clock_t /* To be used if clock_t is not present */ +#undef socklen_t /* To be used if socklen_t is not present */ + +/* + * These types are present on all UNIX systems but should be avoided + * for portability. + * On Apollo/Domain OS we don't have them.... + * + * Better include and use Uchar, Uint & Ulong + */ +#undef u_char /* To be used if u_char is not present */ +#undef u_short /* To be used if u_short is not present */ +#undef u_int /* To be used if u_int is not present */ +#undef u_long /* To be used if u_long is not present */ + +/*#undef HAVE_SIZE_T*/ +/*#undef NO_SIZE_T*/ +#undef VA_LIST_IS_ARRAY /* va_list is an array */ +#undef GETGROUPS_T +#define GID_T GETGROUPS_T + +/* + * Define as the return type of signal handlers (int or void). + */ +#undef RETSIGTYPE + +/* + * Defined in case that we have iconv(iconv_t, const char **, site_t *, ...) + */ +#undef HAVE_ICONV_CONST + +/* + * Defines needed to get large file support. + */ +#ifdef USE_LARGEFILES + +#undef HAVE_LARGEFILES + +#ifdef HAVE_LARGEFILES /* If we have working largefiles at all */ + /* This is not defined with glibc-2.1.3 */ + +#undef _FILE_OFFSET_BITS /* # of bits in off_t if settable */ +#undef _LARGEFILE_SOURCE /* To make ftello() visible (HP-UX 10.20). */ +#undef _LARGE_FILES /* Large file defined on AIX-style hosts. */ +#undef _XOPEN_SOURCE /* To make ftello() visible (glibc 2.1.3). */ + /* XXX We don't use this because glibc2.1.3*/ + /* XXX is bad anyway. If we define */ + /* XXX _XOPEN_SOURCE we will loose caddr_t */ + +#undef HAVE_FSEEKO /* Do we need this? If HAVE_LARGEFILES is */ + /* defined, we have fseeko() */ + +#endif /* HAVE_LARGEFILES */ +#endif /* USE_LARGEFILES */ + +#ifdef USE_ACL /* Enable/disable ACL support */ +/* + * POSIX ACL support + */ +#undef HAVE_ACL_GET_FILE /* acl_get_file() function */ +#undef HAVE_ACL_SET_FILE /* acl_set_file() function */ +#undef HAVE_ACL_GET_ENTRY /* acl_get_entry() function */ +#undef HAVE_ACL_FROM_TEXT /* acl_from_text() function */ +#undef HAVE_ACL_TO_TEXT /* acl_to_text() function */ +#undef HAVE_ACL_FREE /* acl_free() function */ +#undef HAVE_ACL_DELETE_DEF_FILE /* acl_delete_def_file() function */ +#undef HAVE_ACL_EXTENDED_FILE /* acl_extended_file() function (Linux only)*/ + +#if defined(HAVE_ACL_GET_FILE) && defined(HAVE_ACL_SET_FILE) && \ + defined(HAVE_ACL_FROM_TEXT) && defined(HAVE_ACL_TO_TEXT) && \ + defined(HAVE_ACL_FREE) +# define HAVE_POSIX_ACL 1 /* POSIX ACL's present */ +#endif + +/* + * Sun ACL support. + * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. + */ +#undef HAVE_ACL /* acl() function */ +#undef HAVE_FACL /* facl() function */ +#undef HAVE_ACLFROMTEXT /* aclfromtext() function */ +#undef HAVE_ACLTOTEXT /* acltotext() function */ + +#if defined(HAVE_ACL) && defined(HAVE_FACL) && \ + defined(HAVE_ACLFROMTEXT) && defined(HAVE_ACLTOTEXT) +# define HAVE_SUN_ACL 1 /* Sun ACL's present */ +#endif + +/* + * HP-UX ACL support. + * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. + */ +#undef HAVE_GETACL /* getacl() function */ +#undef HAVE_FGETACL /* fgetacl() function */ +#undef HAVE_SETACL /* setacl() function */ +#undef HAVE_FSETACL /* fsetacl() function */ +#undef HAVE_STRTOACL /* strtoacl() function */ +#undef HAVE_ACLTOSTR /* acltostr() function */ +#undef HAVE_CPACL /* cpacl() function */ +#undef HAVE_FCPACL /* fcpacl() function */ +#undef HAVE_CHOWNACL /* chownacl() function */ +#undef HAVE_SETACLENTRY /* setaclentry() function */ +#undef HAVE_FSETACLENTRY /* fsetaclentry() function */ + +#if defined(HAVE_GETACL) && defined(HAVE_FGETACL) && \ + defined(HAVE_SETACL) && defined(HAVE_FSETACL) && \ + defined(HAVE_STRTOACL) && defined(HAVE_ACLTOTEXT) +# define HAVE_HP_ACL 1 /* HP-UX ACL's present */ +#endif + +/* + * Global definition whether ACL support is present. + * As HP-UX differs too much from other implementations, HAVE_HP_ACL is not + * included in HAVE_ANY_ACL. + */ +#if defined(HAVE_POSIX_ACL) || defined(HAVE_SUN_ACL) +# define HAVE_ANY_ACL 1 /* Any ACL implementation present */ +#endif + +#endif /* USE_ACL */ + +/* + * Misc CC / LD related stuff + */ +#undef NO_USER_MALLOC /* If we cannot define our own malloc() */ +#undef NO_USER_XCVT /* If we cannot define our own ecvt()/fcvt()/gcvt() */ +#undef HAVE_DYN_ARRAYS /* If the compiler allows dynamic sized arrays */ +#undef HAVE_PRAGMA_WEAK /* If the compiler allows #pragma weak */ +#undef HAVE_STRINGIZE /* If the cpp supports ANSI C stringize */ +#undef inline + +/* + * Strings that help to maintain OS/platform id's in C-programs + */ +#undef HOST_ALIAS /* Output from config.guess (orig) */ +#undef HOST_SUB /* Output from config.sub (modified) */ +#undef HOST_CPU /* CPU part from HOST_SUB */ +#undef HOST_VENDOR /* VENDOR part from HOST_SUB */ +#undef HOST_OS /* CPU part from HOST_SUB */ + + +/* + * Begin restricted code for quality assurance. + * + * Warning: you are not allowed to include the #define below if you are not + * using the Schily makefile system or if you modified the autoconfiguration + * tests. + * + * If you only added other tests you are allowed to keep this #define. + * + * This restiction is introduced because this way, I hope that people + * contribute to the project instead of creating branches. + */ +#define IS_SCHILY_XCONFIG +/* + * End restricted code for quality assurance. + */ diff -Nru smake-1.2a41/BUILD smake-1.2a49/BUILD --- smake-1.2a41/BUILD 2004-05-19 15:13:47.000000000 +0100 +++ smake-1.2a49/BUILD 2009-04-11 16:56:42.000000000 +0100 @@ -15,7 +15,7 @@ You **need** either my "smake" program, the SunPRO make from /usr/bin/make (SunOS 4.x) or /usr/ccs/bin/make (SunOS 5.x) - or GNU make to compile this program. Read README.gmake for + or GNU make to compile this program. Read READMEs/README.gmake for more information on gmake and a list of the most annoying bugs in gmake. All other make programs are either not smart enough or have bugs. @@ -169,6 +169,19 @@ env INS_BASE=/usr/local make -e install + Note that INS_BASE=/usr/local needs to be specified for every operation + that compiles or links programs as the path is stored inside the + binaries. + + +Installing to a prototype directory to implement package creation staging: + + If you like to create a prototype directory tree that is used as an + intermediate store for package creation, use the DESTDIR macro: + + smake INS_BASE=/usr/local DESTDIR=/tmp install + + This will create a usr/local tree below /tmp (i.e. /tmp/usr/local). Using a different C-compiler: @@ -189,27 +202,33 @@ Creating 64 bit executables on Solaris: - If you like to create 64 bit executables you always need first to - remove any old make results. This includes all autoconf results. In - order to make sure that the source tree is in a "clean" state, call: - - ./.clean + Simply call: - at the top level directory. Then configure and compile everything by - calling: - - smake COPTX=-xarch=v9 LDOPTX=-xarch=v9 - - To do this with GCC, you need at least GCC-3.1. It is the first 64 bit - aware GCC. With GCC, call on Solaris: - - smake CCOM=gcc COPTX=-m64 LDOPTX=-m64 + make CCOM=gcc64 + or + make CCOM=cc64 It is not clear if GCC already supports other platforms in 64 bit mode. As all GCC versions before 3.1 did emit hundreds of compilation warnings related to 64 bit bugs when compiling itself, there is little hope that other platforms are already supported in 64 bit mode. +Creating executables using the Sun Studio compiler on Linux: + + Simply call: + + make CCOM=suncc + + If the compilation does not work, try: + + mkdir /opt/sunstudio12/prod/include/cc/linux + cp /usr/include/linux/types.h /opt/sunstudio12/prod/include/cc/linux + + Then edit /opt/sunstudio12/prod/include/cc/linux/types.h and remove all + lines like: "#if defined(__GNUC__) && !defined(__STRICT_ANSI__)" + as well as the related #endif. + + Getting help from make: @@ -239,7 +258,7 @@ SunPro make will work as is. GNU make need some special preparation. - Read README.gmake for more information on gmake. + Read READMEs/README.gmake for more information on gmake. To use GNU make create a file called 'Gmake' in your search path that contains: @@ -307,6 +326,22 @@ make COPTX=-g LDOPTX=-g +Creting Blastwave packages: + + Call: + .clean + smake -f Mcsw + + You need the program "fakeroot" and will find the results + in packages/ + + Note that a single program source tree will allow you to create + packages like CSWstar but not the packages CSWschilybase and + CSWschilyutils on which CSWstar depends. + + + + If you want to see an example, please have a look at the "star" source. It may be found on: @@ -322,6 +357,7 @@ man -F + Author: Joerg Schilling @@ -330,6 +366,6 @@ Germany Email: joerg@schily.isdn.cs.tu-berlin.de, js@cs.tu-berlin.de - schilling@fokus.fhg.de + joerg.schilling@fokus.fraunhufer.de Please mail bugs and suggestions to me. diff -Nru smake-1.2a41/.clean smake-1.2a49/.clean --- smake-1.2a41/.clean 2001-02-25 22:18:25.000000000 +0000 +++ smake-1.2a49/.clean 2007-12-02 11:26:26.000000000 +0000 @@ -6,6 +6,7 @@ rm -f *.bak */*.bak */*/*.bak rm -f */tags */*/tags rm -f */TAGS */*/TAGS +rm -rf proto/* packages/* for i in */.; do (cd $i; [ -r .clean ] && sh .clean a ) diff -Nru smake-1.2a41/COMPILE smake-1.2a49/COMPILE --- smake-1.2a41/COMPILE 2004-05-19 15:13:47.000000000 +0100 +++ smake-1.2a49/COMPILE 2009-04-11 16:56:42.000000000 +0100 @@ -15,7 +15,7 @@ You **need** either my "smake" program, the SunPRO make from /usr/bin/make (SunOS 4.x) or /usr/ccs/bin/make (SunOS 5.x) - or GNU make to compile this program. Read README.gmake for + or GNU make to compile this program. Read READMEs/README.gmake for more information on gmake and a list of the most annoying bugs in gmake. All other make programs are either not smart enough or have bugs. @@ -169,6 +169,19 @@ env INS_BASE=/usr/local make -e install + Note that INS_BASE=/usr/local needs to be specified for every operation + that compiles or links programs as the path is stored inside the + binaries. + + +Installing to a prototype directory to implement package creation staging: + + If you like to create a prototype directory tree that is used as an + intermediate store for package creation, use the DESTDIR macro: + + smake INS_BASE=/usr/local DESTDIR=/tmp install + + This will create a usr/local tree below /tmp (i.e. /tmp/usr/local). Using a different C-compiler: @@ -189,27 +202,33 @@ Creating 64 bit executables on Solaris: - If you like to create 64 bit executables you always need first to - remove any old make results. This includes all autoconf results. In - order to make sure that the source tree is in a "clean" state, call: - - ./.clean + Simply call: - at the top level directory. Then configure and compile everything by - calling: - - smake COPTX=-xarch=v9 LDOPTX=-xarch=v9 - - To do this with GCC, you need at least GCC-3.1. It is the first 64 bit - aware GCC. With GCC, call on Solaris: - - smake CCOM=gcc COPTX=-m64 LDOPTX=-m64 + make CCOM=gcc64 + or + make CCOM=cc64 It is not clear if GCC already supports other platforms in 64 bit mode. As all GCC versions before 3.1 did emit hundreds of compilation warnings related to 64 bit bugs when compiling itself, there is little hope that other platforms are already supported in 64 bit mode. +Creating executables using the Sun Studio compiler on Linux: + + Simply call: + + make CCOM=suncc + + If the compilation does not work, try: + + mkdir /opt/sunstudio12/prod/include/cc/linux + cp /usr/include/linux/types.h /opt/sunstudio12/prod/include/cc/linux + + Then edit /opt/sunstudio12/prod/include/cc/linux/types.h and remove all + lines like: "#if defined(__GNUC__) && !defined(__STRICT_ANSI__)" + as well as the related #endif. + + Getting help from make: @@ -239,7 +258,7 @@ SunPro make will work as is. GNU make need some special preparation. - Read README.gmake for more information on gmake. + Read READMEs/README.gmake for more information on gmake. To use GNU make create a file called 'Gmake' in your search path that contains: @@ -307,6 +326,22 @@ make COPTX=-g LDOPTX=-g +Creting Blastwave packages: + + Call: + .clean + smake -f Mcsw + + You need the program "fakeroot" and will find the results + in packages/ + + Note that a single program source tree will allow you to create + packages like CSWstar but not the packages CSWschilybase and + CSWschilyutils on which CSWstar depends. + + + + If you want to see an example, please have a look at the "star" source. It may be found on: @@ -322,6 +357,7 @@ man -F + Author: Joerg Schilling @@ -330,6 +366,6 @@ Germany Email: joerg@schily.isdn.cs.tu-berlin.de, js@cs.tu-berlin.de - schilling@fokus.fhg.de + joerg.schilling@fokus.fraunhufer.de Please mail bugs and suggestions to me. diff -Nru smake-1.2a41/conf/acgeneral.m4 smake-1.2a49/conf/acgeneral.m4 --- smake-1.2a41/conf/acgeneral.m4 2006-06-26 11:53:08.000000000 +0100 +++ smake-1.2a49/conf/acgeneral.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,2611 +0,0 @@ -dnl Parameterized macros. -dnl Requires GNU m4. -dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception, the Free Software Foundation gives unlimited -dnl permission to copy, distribute and modify the configure scripts that -dnl are the output of Autoconf. You need not follow the terms of the GNU -dnl General Public License when using or distributing such scripts, even -dnl though portions of the text of Autoconf appear in them. The GNU -dnl General Public License (GPL) does govern all other use of the material -dnl that constitutes the Autoconf program. -dnl -dnl Certain portions of the Autoconf source text are designed to be copied -dnl (in certain cases, depending on the input) into the output of -dnl Autoconf. We call these the "data" portions. The rest of the Autoconf -dnl source text consists of comments plus executable code that decides which -dnl of the data portions to output in any given case. We call these -dnl comments and executable code the "non-data" portions. Autoconf never -dnl copies any of the non-data portions into its output. -dnl -dnl This special exception to the GPL applies to versions of Autoconf -dnl released by the Free Software Foundation. When you make and -dnl distribute a modified version of Autoconf, you may extend this special -dnl exception to the GPL to apply to your modified version as well, *unless* -dnl your modified version has the potential to copy into its output some -dnl of the text that was the non-data portion of the version that you started -dnl with. (In other words, unless your change moves or copies text from -dnl the non-data portions to the data portions.) If your modification has -dnl such potential, you must delete any notice of this special exception -dnl to the GPL from your modified version. -dnl -dnl Written by David MacKenzie, with help from -dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. -dnl -divert(-1)dnl Throw away output until AC_INIT is called. -changequote([, ]) - -define(AC_ACVERSION, 2.13) - -dnl Some old m4's don't support m4exit. But they provide -dnl equivalent functionality by core dumping because of the -dnl long macros we define. -ifdef([__gnu__], , [errprint(Autoconf requires GNU m4. -Install it before installing Autoconf or set the -M4 environment variable to its path name. -)m4exit(2)]) - -undefine([eval]) -undefine([include]) -undefine([shift]) -undefine([format]) - - -dnl ### Defining macros - - -dnl m4 output diversions. We let m4 output them all in order at the end, -dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS, -dnl and AC_DIVERSION_ICMDS. - -dnl AC_DIVERSION_NOTICE - 1 (= 0) AC_REQUIRE'd #! /bin/sh line -define(AC_DIVERSION_NOTICE, 1)dnl copyright notice & option help strings -define(AC_DIVERSION_INIT, 2)dnl initialization code -define(AC_DIVERSION_NORMAL_4, 3)dnl AC_REQUIRE'd code, 4 level deep -define(AC_DIVERSION_NORMAL_3, 4)dnl AC_REQUIRE'd code, 3 level deep -define(AC_DIVERSION_NORMAL_2, 5)dnl AC_REQUIRE'd code, 2 level deep -define(AC_DIVERSION_NORMAL_1, 6)dnl AC_REQUIRE'd code, 1 level deep -define(AC_DIVERSION_NORMAL, 7)dnl the tests and output code -define(AC_DIVERSION_SED, 8)dnl variable substitutions in config.status -define(AC_DIVERSION_CMDS, 9)dnl extra shell commands in config.status -define(AC_DIVERSION_ICMDS, 10)dnl extra initialization in config.status - -dnl Change the diversion stream to STREAM, while stacking old values. -dnl AC_DIVERT_PUSH(STREAM) -define(AC_DIVERT_PUSH, -[pushdef([AC_DIVERSION_CURRENT], $1)dnl -divert(AC_DIVERSION_CURRENT)dnl -]) - -dnl Change the diversion stream to its previous value, unstacking it. -dnl AC_DIVERT_POP() -define(AC_DIVERT_POP, -[popdef([AC_DIVERSION_CURRENT])dnl -divert(AC_DIVERSION_CURRENT)dnl -]) - -dnl Initialize the diversion setup. -define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL) -dnl This will be popped by AC_REQUIRE in AC_INIT. -pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE) - -dnl The prologue for Autoconf macros. -dnl AC_PRO(MACRO-NAME) -define(AC_PRO, -[define([AC_PROVIDE_$1], )dnl -ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, -[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))], -[pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl -]) - -dnl The Epilogue for Autoconf macros. -dnl AC_EPI() -define(AC_EPI, -[AC_DIVERT_POP()dnl -ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL, -[undivert(AC_DIVERSION_NORMAL_4)dnl -undivert(AC_DIVERSION_NORMAL_3)dnl -undivert(AC_DIVERSION_NORMAL_2)dnl -undivert(AC_DIVERSION_NORMAL_1)dnl -])dnl -]) - -dnl Define a macro which automatically provides itself. Add machinery -dnl so the macro automatically switches expansion to the diversion -dnl stack if it is not already using it. In this case, once finished, -dnl it will bring back all the code accumulated in the diversion stack. -dnl This, combined with AC_REQUIRE, achieves the topological ordering of -dnl macros. We don't use this macro to define some frequently called -dnl macros that are not involved in ordering constraints, to save m4 -dnl processing. -dnl AC_DEFUN(NAME, EXPANSION) -define([AC_DEFUN], -[define($1, [AC_PRO([$1])$2[]AC_EPI()])]) - - -dnl ### Initialization - - -dnl AC_INIT_NOTICE() -AC_DEFUN(AC_INIT_NOTICE, -[# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version] AC_ACVERSION [ -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -[#] Any additions from configure.in:]) - -dnl AC_PREFIX_DEFAULT(PREFIX) -AC_DEFUN(AC_PREFIX_DEFAULT, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_default_prefix=$1 -AC_DIVERT_POP()]) - -dnl AC_INIT_PARSE_ARGS() -AC_DEFUN(AC_INIT_PARSE_ARGS, -[ -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -dnl Installation directory options. -dnl These are left unexpanded so users can "make install exec_prefix=/foo" -dnl and all the variables that are supposed to be based on exec_prefix -dnl by default will actually change. -dnl Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in -changequote(, )dnl - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; -changequote([, ])dnl - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -cc=* | --cc=* ) - CC="$ac_optarg" ; echo using $CC as compiler ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. -changequote(, )dnl - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_feature: invalid feature name) - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. -changequote(, )dnl - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_feature: invalid feature name) - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -changequote(, )dnl -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -changequote([, ])dnl -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version AC_ACVERSION" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. -changequote(, )dnl - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_package: invalid package name) - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. -changequote(, )dnl - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then -changequote([, ])dnl - AC_MSG_ERROR($ac_package: invalid package name) - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) AC_MSG_ERROR([$ac_option: invalid option; use --help to show usage]) - ;; - - *) -changequote(, )dnl - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then -changequote([, ])dnl - AC_MSG_WARN($ac_option: invalid host type) - fi - if test "x$nonopt" != xNONE; then - AC_MSG_ERROR(can only configure for one host and one target at a time) - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - AC_MSG_ERROR(missing argument to --`echo $ac_prev | sed 's/_/-/g'`) -fi -]) - -dnl Try to have only one #! line, so the script doesn't look funny -dnl for users of AC_REVISION. -dnl AC_INIT_BINSH() -AC_DEFUN(AC_INIT_BINSH, -[#! /bin/sh -]) - -dnl AC_INIT(UNIQUE-FILE-IN-SOURCE-DIR) -AC_DEFUN(AC_INIT, -[sinclude(acsite.m4)dnl -sinclude(./aclocal.m4)dnl -AC_REQUIRE([AC_INIT_BINSH])dnl -AC_INIT_NOTICE -AC_DIVERT_POP()dnl to NORMAL -AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl -AC_INIT_PARSE_ARGS -AC_INIT_PREPARE($1)dnl -AC_DIVERT_POP()dnl to NORMAL -]) - -dnl AC_INIT_PREPARE(UNIQUE-FILE-IN-SOURCE-DIR) -AC_DEFUN(AC_INIT_PREPARE, -[trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -define(AC_FD_MSG, 6)dnl -[#] AC_FD_MSG checking for... messages and results -define(AC_FD_CC, 5)dnl -[#] AC_FD_CC compiler messages saved in config.log -if test "$silent" = yes; then - exec AC_FD_MSG>/dev/null -else - exec AC_FD_MSG>&1 -fi -exec AC_FD_CC>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&AC_FD_CC - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; -changequote(<<, >>)dnl -dnl If you change this globbing pattern, test it on an old shell -- -dnl it's sensitive. Putting any kind of quote in it causes syntax errors. - *" "*|*" "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; -changequote([, ])dnl - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=$1 - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=[$]0 -changequote(, )dnl - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - AC_MSG_ERROR(can not find sources in $ac_confdir or ..) - else - AC_MSG_ERROR(can not find sources in $srcdir) - fi -fi -dnl Double slashes in pathnames in object file debugging info -dnl mess up M-x gdb in Emacs. -changequote(, )dnl -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` -changequote([, ])dnl - -dnl Let the site file select an alternate cache file if it wants to. -AC_SITE_LOAD -AC_CACHE_LOAD -AC_LANG_C -dnl By default always use an empty string as the executable -dnl extension. Only change it if the script calls AC_EXEEXT. -ac_exeext= -dnl By default assume that objects files use an extension of .o. Only -dnl change it if the script calls AC_OBJEXT. -ac_objext=o -AC_PROG_ECHO_N -dnl Substitute for predefined variables. -AC_SUBST(SHELL)dnl -AC_SUBST(CFLAGS)dnl -AC_SUBST(CPPFLAGS)dnl -AC_SUBST(CXXFLAGS)dnl -AC_SUBST(FFLAGS)dnl -AC_SUBST(DEFS)dnl -AC_SUBST(LDFLAGS)dnl -AC_SUBST(LIBS)dnl -AC_SUBST(exec_prefix)dnl -AC_SUBST(prefix)dnl -AC_SUBST(program_transform_name)dnl -dnl Installation directory options. -AC_SUBST(bindir)dnl -AC_SUBST(sbindir)dnl -AC_SUBST(libexecdir)dnl -AC_SUBST(datadir)dnl -AC_SUBST(sysconfdir)dnl -AC_SUBST(sharedstatedir)dnl -AC_SUBST(localstatedir)dnl -AC_SUBST(libdir)dnl -AC_SUBST(includedir)dnl -AC_SUBST(oldincludedir)dnl -AC_SUBST(infodir)dnl -AC_SUBST(mandir)dnl -]) - - -dnl ### Selecting optional features - - -dnl AC_ARG_ENABLE(FEATURE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) -AC_DEFUN(AC_ARG_ENABLE, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_help="$ac_help -[$2]" -AC_DIVERT_POP()dnl -[#] Check whether --enable-[$1] or --disable-[$1] was given. -if test "[${enable_]patsubst([$1], -, _)+set}" = set; then - enableval="[$enable_]patsubst([$1], -, _)" - ifelse([$3], , :, [$3]) -ifelse([$4], , , [else - $4 -])dnl -fi -]) - -AC_DEFUN(AC_ENABLE, -[AC_OBSOLETE([$0], [; instead use AC_ARG_ENABLE])dnl -AC_ARG_ENABLE([$1], [ --enable-$1], [$2], [$3])dnl -]) - - -dnl ### Working with optional software - - -dnl AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE [, ACTION-IF-FALSE]) -AC_DEFUN(AC_ARG_WITH, -[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl -ac_help="$ac_help -[$2]" -AC_DIVERT_POP()dnl -[#] Check whether --with-[$1] or --without-[$1] was given. -if test "[${with_]patsubst([$1], -, _)+set}" = set; then - withval="[$with_]patsubst([$1], -, _)" - ifelse([$3], , :, [$3]) -ifelse([$4], , , [else - $4 -])dnl -fi -]) - -AC_DEFUN(AC_WITH, -[AC_OBSOLETE([$0], [; instead use AC_ARG_WITH])dnl -AC_ARG_WITH([$1], [ --with-$1], [$2], [$3])dnl -]) - - -dnl ### Transforming program names. - - -dnl AC_ARG_PROGRAM() -AC_DEFUN(AC_ARG_PROGRAM, -[if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," -]) - - -dnl ### Version numbers - - -dnl AC_REVISION(REVISION-INFO) -AC_DEFUN(AC_REVISION, -[AC_REQUIRE([AC_INIT_BINSH])dnl -[# From configure.in] translit([$1], $")]) - -dnl Subroutines of AC_PREREQ. - -dnl Change the dots in NUMBER into commas. -dnl AC_PREREQ_SPLIT(NUMBER) -define(AC_PREREQ_SPLIT, -[translit($1, ., [, ])]) - -dnl Default the ternary version number to 0 (e.g., 1, 7 -> 1, 7, 0). -dnl AC_PREREQ_CANON(MAJOR, MINOR [,TERNARY]) -define(AC_PREREQ_CANON, -[$1, $2, ifelse([$3], , 0, [$3])]) - -dnl Complain and exit if version number 1 is less than version number 2. -dnl PRINTABLE2 is the printable version of version number 2. -dnl AC_PREREQ_COMPARE(MAJOR1, MINOR1, TERNARY1, MAJOR2, MINOR2, TERNARY2, -dnl PRINTABLE2) -define(AC_PREREQ_COMPARE, -[ifelse(builtin([eval], -[$3 + $2 * 1000 + $1 * 1000000 < $6 + $5 * 1000 + $4 * 1000000]), 1, -[errprint(dnl -FATAL ERROR: Autoconf version $7 or higher is required for this script -)m4exit(3)])]) - -dnl Complain and exit if the Autoconf version is less than VERSION. -dnl AC_PREREQ(VERSION) -define(AC_PREREQ, -[AC_PREREQ_COMPARE(AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)), -AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), [$1])]) - - -dnl ### Getting the canonical system type - - -dnl Find install-sh, config.sub, config.guess, and Cygnus configure -dnl in directory DIR. These are auxiliary files used in configuration. -dnl DIR can be either absolute or relative to $srcdir. -dnl AC_CONFIG_AUX_DIR(DIR) -AC_DEFUN(AC_CONFIG_AUX_DIR, -[AC_CONFIG_AUX_DIRS($1 $srcdir/$1)]) - -dnl The default is `$srcdir' or `$srcdir/..' or `$srcdir/../..'. -dnl There's no need to call this macro explicitly; just AC_REQUIRE it. -AC_DEFUN(AC_CONFIG_AUX_DIR_DEFAULT, -[AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)]) - -dnl Internal subroutine. -dnl Search for the configuration auxiliary files in directory list $1. -dnl We look only for install-sh, so users of AC_PROG_INSTALL -dnl do not automatically need to distribute the other auxiliary files. -dnl AC_CONFIG_AUX_DIRS(DIR ...) -AC_DEFUN(AC_CONFIG_AUX_DIRS, -[ac_aux_dir= -for ac_dir in $1; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - AC_MSG_ERROR([can not find install-sh or install.sh in $1]) -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. -AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -]) - -dnl Canonicalize the host, target, and build system types. -AC_DEFUN(AC_CANONICAL_SYSTEM, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [AC_ARG_PROGRAM]) -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) AC_MSG_ERROR(can only configure for one host and one target at a time) ;; -esac - -AC_CANONICAL_HOST -AC_CANONICAL_TARGET -AC_CANONICAL_BUILD -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- -]) - -dnl Subroutines of AC_CANONICAL_SYSTEM. - -AC_DEFUN(AC_CANONICAL_HOST, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else AC_MSG_ERROR(can not run $ac_config_sub) -fi - -AC_MSG_CHECKING(host system type) - -dnl Set host_alias. -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else AC_MSG_ERROR(can not guess host type; you must specify one) - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other host vars. -changequote(<<, >>)dnl -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -changequote([, ])dnl -AC_MSG_RESULT($host) -AC_SUBST(host)dnl -AC_SUBST(host_alias)dnl -AC_SUBST(host_cpu)dnl -AC_SUBST(host_vendor)dnl -AC_SUBST(host_os)dnl -]) - -dnl Internal use only. -AC_DEFUN(AC_CANONICAL_TARGET, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_MSG_CHECKING(target system type) - -dnl Set target_alias. -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other target vars. -changequote(<<, >>)dnl -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -changequote([, ])dnl -AC_MSG_RESULT($target) -AC_SUBST(target)dnl -AC_SUBST(target_alias)dnl -AC_SUBST(target_cpu)dnl -AC_SUBST(target_vendor)dnl -AC_SUBST(target_os)dnl -]) - -dnl Internal use only. -AC_DEFUN(AC_CANONICAL_BUILD, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_MSG_CHECKING(build system type) - -dnl Set build_alias. -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -dnl Set the other build vars. -changequote(<<, >>)dnl -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -changequote([, ])dnl -AC_MSG_RESULT($build) -AC_SUBST(build)dnl -AC_SUBST(build_alias)dnl -AC_SUBST(build_cpu)dnl -AC_SUBST(build_vendor)dnl -AC_SUBST(build_os)dnl -]) - - -dnl AC_VALIDATE_CACHED_SYSTEM_TUPLE[(cmd)] -dnl if the cache file is inconsistent with the current host, -dnl target and build system types, execute CMD or print a default -dnl error message. -AC_DEFUN(AC_VALIDATE_CACHED_SYSTEM_TUPLE, [ - AC_REQUIRE([AC_CANONICAL_SYSTEM]) - AC_MSG_CHECKING([cached system tuple]) - if { test x"${ac_cv_host_system_type+set}" = x"set" && - test x"$ac_cv_host_system_type" != x"$host"; } || - { test x"${ac_cv_build_system_type+set}" = x"set" && - test x"$ac_cv_build_system_type" != x"$build"; } || - { test x"${ac_cv_target_system_type+set}" = x"set" && - test x"$ac_cv_target_system_type" != x"$target"; }; then - AC_MSG_RESULT([different]) - ifelse($#, 1, [$1], - [AC_MSG_ERROR([remove config.cache and re-run configure])]) - else - AC_MSG_RESULT(ok) - fi - ac_cv_host_system_type="$host" - ac_cv_build_system_type="$build" - ac_cv_target_system_type="$target" -]) - - -dnl ### Caching test results - - -dnl Look for site or system specific initialization scripts. -dnl AC_SITE_LOAD() -define(AC_SITE_LOAD, -[# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done -]) - -dnl AC_CACHE_LOAD() -define(AC_CACHE_LOAD, -[if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi -]) - -dnl AC_CACHE_SAVE() -define(AC_CACHE_SAVE, -[cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -dnl Allow a site initialization script to override cache values. -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -changequote(, )dnl -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -changequote([, ])dnl -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache -]) - -dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved. -dnl AC_CACHE_VAL(CACHE-ID, COMMANDS-TO-SET-IT) -define(AC_CACHE_VAL, -[dnl We used to use the below line, but it fails if the 1st arg is a -dnl shell variable, so we need the eval. -dnl if test "${$1+set}" = set; then -dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion"). -if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG -else - $2 -fi -]) - -dnl AC_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS) -define(AC_CACHE_CHECK, -[AC_MSG_CHECKING([$1]) -AC_CACHE_VAL([$2], [$3]) -AC_MSG_RESULT([$]$2)]) - - -dnl ### Defining symbols - - -dnl Set VARIABLE to VALUE, verbatim, or 1. -dnl AC_DEFINE(VARIABLE [, VALUE]) -define(AC_DEFINE, -[cat >> confdefs.h <<\EOF -[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) -EOF -]) - -dnl Similar, but perform shell substitutions $ ` \ once on VALUE. -define(AC_DEFINE_UNQUOTED, -[cat >> confdefs.h <&AC_FD_MSG -echo "configure:__oline__: checking $1" >&AC_FD_CC]) - -dnl AC_CHECKING(FEATURE-DESCRIPTION) -define(AC_CHECKING, -[echo "checking $1" 1>&AC_FD_MSG -echo "configure:__oline__: checking $1" >&AC_FD_CC]) - -dnl AC_MSG_RESULT(RESULT-DESCRIPTION) -define(AC_MSG_RESULT, -[echo "$ac_t""$1" 1>&AC_FD_MSG]) - -dnl AC_VERBOSE(RESULT-DESCRIPTION) -define(AC_VERBOSE, -[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl -echo " $1" 1>&AC_FD_MSG]) - -dnl AC_MSG_WARN(PROBLEM-DESCRIPTION) -define(AC_MSG_WARN, -[echo "configure: warning: $1" 1>&2]) - -dnl AC_MSG_ERROR(ERROR-DESCRIPTION) -define(AC_MSG_ERROR, -[{ echo "configure: error: $1" 1>&2; exit 1; }]) - - -dnl ### Selecting which language to use for testing - - -dnl AC_LANG_C() -AC_DEFUN(AC_LANG_C, -[define([AC_LANG], [C])dnl -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_cc_cross -]) - -dnl AC_LANG_CPLUSPLUS() -AC_DEFUN(AC_LANG_CPLUSPLUS, -[define([AC_LANG], [CPLUSPLUS])dnl -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_cxx_cross -]) - -dnl AC_LANG_FORTRAN77() -AC_DEFUN(AC_LANG_FORTRAN77, -[define([AC_LANG], [FORTRAN77])dnl -ac_ext=f -ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC' -ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' -cross_compiling=$ac_cv_prog_f77_cross -]) - -dnl Push the current language on a stack. -dnl AC_LANG_SAVE() -define(AC_LANG_SAVE, -[pushdef([AC_LANG_STACK], AC_LANG)]) - -dnl Restore the current language from the stack. -dnl AC_LANG_RESTORE() -pushdef([AC_LANG_RESTORE], -[ifelse(AC_LANG_STACK, [C], [AC_LANG_C],dnl -AC_LANG_STACK, [CPLUSPLUS], [AC_LANG_CPLUSPLUS],dnl -AC_LANG_STACK, [FORTRAN77], [AC_LANG_FORTRAN77])[]popdef([AC_LANG_STACK])]) - - -dnl ### Compiler-running mechanics - - -dnl The purpose of this macro is to "configure:123: command line" -dnl written into config.log for every test run. -dnl AC_TRY_EVAL(VARIABLE) -AC_DEFUN(AC_TRY_EVAL, -[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl -(eval [$]$1) 2>&AC_FD_CC; }]) - -dnl AC_TRY_COMMAND(COMMAND) -AC_DEFUN(AC_TRY_COMMAND, -[{ ac_try='$1'; AC_TRY_EVAL(ac_try); }]) - - -dnl ### Dependencies between macros - - -dnl AC_BEFORE(THIS-MACRO-NAME, CALLED-MACRO-NAME) -define(AC_BEFORE, -[ifdef([AC_PROVIDE_$2], [errprint(__file__:__line__: [$2 was called before $1 -])])]) - -dnl AC_REQUIRE(MACRO-NAME) -define(AC_REQUIRE, -[ifdef([AC_PROVIDE_$1], , -[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))dnl -indir([$1]) -AC_DIVERT_POP()dnl -])]) - -dnl AC_PROVIDE(MACRO-NAME) -define(AC_PROVIDE, -[define([AC_PROVIDE_$1], )]) - -dnl AC_OBSOLETE(THIS-MACRO-NAME [, SUGGESTION]) -define(AC_OBSOLETE, -[errprint(__file__:__line__: warning: [$1] is obsolete[$2] -)]) - - -dnl ### Checking for programs - - -dnl AC_CHECK_PROG(VARIABLE, PROG-TO-CHECK-FOR, VALUE-IF-FOUND -dnl [, [VALUE-IF-NOT-FOUND] [, [PATH] [, [REJECT]]]]) -AC_DEFUN(AC_CHECK_PROG, -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_prog_$1, -[if test -n "[$]$1"; then - ac_cv_prog_$1="[$]$1" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -ifelse([$6], , , [ ac_prog_rejected=no -])dnl -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$5], , $PATH, [$5])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then -ifelse([$6], , , dnl -[ if test "[$ac_dir/$ac_word]" = "$6"; then - ac_prog_rejected=yes - continue - fi -])dnl - ac_cv_prog_$1="$3" - break - fi - done - IFS="$ac_save_ifs" -ifelse([$6], , , [if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy [$]ac_cv_prog_$1 - shift - if test [$]# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set $1 to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "[$]@" - shift - ac_cv_prog_$1="[$]@" -ifelse([$2], [$4], dnl -[ else - # Default is a loser. - AC_MSG_ERROR([$1=$6 unacceptable, but no other $4 found in dnl -ifelse([$5], , [\$]PATH, [$5])]) -])dnl - fi -fi -])dnl -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_CHECK_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_prog_$1" && ac_cv_prog_$1="$4" -])dnl -fi])dnl -$1="$ac_cv_prog_$1" -if test -n "[$]$1"; then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -dnl AC_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN(AC_PATH_PROG, -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - /*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$4], , $PATH, [$4])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_$1="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" -dnl If no 3rd arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$3], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$3" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test -n "[$]$1"; then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -dnl AC_CHECK_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND -dnl [, PATH]]) -AC_DEFUN(AC_CHECK_PROGS, -[for ac_prog in $2 -do -AC_CHECK_PROG($1, [$]ac_prog, [$]ac_prog, , $4) -test -n "[$]$1" && break -done -ifelse([$3], , , [test -n "[$]$1" || $1="$3" -])]) - -dnl AC_PATH_PROGS(VARIABLE, PROGS-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND -dnl [, PATH]]) -AC_DEFUN(AC_PATH_PROGS, -[for ac_prog in $2 -do -AC_PATH_PROG($1, [$]ac_prog, , $4) -test -n "[$]$1" && break -done -ifelse([$3], , , [test -n "[$]$1" || $1="$3" -])]) - -dnl Internal subroutine. -AC_DEFUN(AC_CHECK_TOOL_PREFIX, -[AC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_CANONICAL_BUILD])dnl -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi -]) - -dnl AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN(AC_CHECK_TOOL, -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl -AC_CHECK_PROG($1, ${ac_tool_prefix}$2, ${ac_tool_prefix}$2, - ifelse([$3], , [$2], ), $4) -ifelse([$3], , , [ -if test -z "$ac_cv_prog_$1"; then -if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG($1, $2, $2, $3) -else - $1="$3" -fi -fi]) -]) - -dnl Guess the value for the `prefix' variable by looking for -dnl the argument program along PATH and taking its parent. -dnl Example: if the argument is `gcc' and we find /usr/local/gnu/bin/gcc, -dnl set `prefix' to /usr/local/gnu. -dnl This comes too late to find a site file based on the prefix, -dnl and it might use a cached value for the path. -dnl No big loss, I think, since most configures don't use this macro anyway. -dnl AC_PREFIX_PROGRAM(PROGRAM) -AC_DEFUN(AC_PREFIX_PROGRAM, -[if test "x$prefix" = xNONE; then -changequote(<<, >>)dnl -define(<>, translit($1, [a-z], [A-Z]))dnl -changequote([, ])dnl -dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle. -echo $ac_n "checking for prefix by $ac_c" 1>&AC_FD_MSG -AC_PATH_PROG(AC_VAR_NAME, $1) -changequote(<<, >>)dnl - if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then - prefix=`echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` -changequote([, ])dnl - fi -fi -undefine([AC_VAR_NAME])dnl -]) - -dnl Try to compile, link and execute TEST-PROGRAM. Set WORKING-VAR to -dnl `yes' if the current compiler works, otherwise set it ti `no'. Set -dnl CROSS-VAR to `yes' if the compiler and linker produce non-native -dnl executables, otherwise set it to `no'. Before calling -dnl `AC_TRY_COMPILER()', call `AC_LANG_*' to set-up for the right -dnl language. -dnl -dnl AC_TRY_COMPILER(TEST-PROGRAM, WORKING-VAR, CROSS-VAR) -AC_DEFUN(AC_TRY_COMPILER, -[cat > conftest.$ac_ext << EOF -ifelse(AC_LANG, [FORTRAN77], , -[ -[#]line __oline__ "configure" -#include "confdefs.h" -]) -[$1] -EOF -if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - [$2]=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - [$3]=no - else - [$3]=yes - fi -else - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC - [$2]=no -fi -rm -fr conftest*]) - - -dnl ### Checking for libraries - - -dnl AC_TRY_LINK_FUNC(func, action-if-found, action-if-not-found) -dnl Try to link a program that calls FUNC, handling GCC builtins. If -dnl the link succeeds, execute ACTION-IF-FOUND; otherwise, execute -dnl ACTION-IF-NOT-FOUND. - -AC_DEFUN(AC_TRY_LINK_FUNC, -AC_TRY_LINK(dnl -ifelse([$1], [main], , dnl Avoid conflicting decl of main. -[/* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus -extern "C" -#endif -])dnl -[/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1(); -]), -[$1()], -[$2], -[$3])) - - -dnl AC_SEARCH_LIBS(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND -dnl [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]]) -dnl Search for a library defining FUNC, if it's not already available. - -AC_DEFUN(AC_SEARCH_LIBS, -[AC_PREREQ([2.13]) -AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1], -[ac_func_search_save_LIBS="$LIBS" -ac_cv_search_$1="no" -AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"]) -test "$ac_cv_search_$1" = "no" && for i in $2; do -LIBS="-l$i $5 $ac_func_search_save_LIBS" -AC_TRY_LINK_FUNC([$1], -[ac_cv_search_$1="-l$i" -break]) -done -LIBS="$ac_func_search_save_LIBS"]) -if test "$ac_cv_search_$1" != "no"; then - test "$ac_cv_search_$1" = "none required" || LIBS="$ac_cv_search_$1 $LIBS" - $3 -else : - $4 -fi]) - - - -dnl AC_CHECK_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND -dnl [, OTHER-LIBRARIES]]]) -AC_DEFUN(AC_CHECK_LIB, -[AC_MSG_CHECKING([for $2 in -l$1]) -dnl Use a cache variable name containing both the library and function name, -dnl because the test really is for library $1 defining function $2, not -dnl just for library $1. Separate tests with the same $1 and different $2s -dnl may have different results. -ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` -AC_CACHE_VAL(ac_cv_lib_$ac_lib_var, -[ac_save_LIBS="$LIBS" -LIBS="-l$1 $5 $LIBS" -AC_TRY_LINK(dnl -ifelse(AC_LANG, [FORTRAN77], , -ifelse([$2], [main], , dnl Avoid conflicting decl of main. -[/* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus -extern "C" -#endif -])dnl -[/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $2(); -])), - [$2()], - eval "ac_cv_lib_$ac_lib_var=yes", - eval "ac_cv_lib_$ac_lib_var=no") -LIBS="$ac_save_LIBS" -])dnl -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$3], , -[changequote(, )dnl - ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_lib) - LIBS="-l$1 $LIBS" -], [$3]) -else - AC_MSG_RESULT(no) -ifelse([$4], , , [$4 -])dnl -fi -]) - -dnl AC_HAVE_LIBRARY(LIBRARY, [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND -dnl [, OTHER-LIBRARIES]]]) -AC_DEFUN(AC_HAVE_LIBRARY, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_LIB])dnl -changequote(<<, >>)dnl -define(<>, dnl -patsubst(patsubst($1, <>, <<\1>>), <<-l>>, <<>>))dnl -define(<>, ac_cv_lib_<<>>AC_LIB_NAME)dnl -changequote([, ])dnl -AC_MSG_CHECKING([for -l[]AC_LIB_NAME]) -AC_CACHE_VAL(AC_CV_NAME, -[ac_save_LIBS="$LIBS" -LIBS="-l[]AC_LIB_NAME[] $4 $LIBS" -AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no) -LIBS="$ac_save_LIBS" -])dnl -AC_MSG_RESULT($AC_CV_NAME) -if test "$AC_CV_NAME" = yes; then - ifelse([$2], , -[AC_DEFINE([HAVE_LIB]translit(AC_LIB_NAME, [a-z], [A-Z])) - LIBS="-l[]AC_LIB_NAME[] $LIBS" -], [$2]) -ifelse([$3], , , [else - $3 -])dnl -fi -undefine([AC_LIB_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - - -dnl ### Examining declarations - - -dnl AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) -AC_DEFUN(AC_TRY_CPP, -[AC_REQUIRE_CPP()dnl -cat > conftest.$ac_ext <&AC_FD_CC - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$3], , , [ rm -rf conftest* - $3 -])dnl -fi -rm -f conftest*]) - -dnl AC_EGREP_HEADER(PATTERN, HEADER-FILE, ACTION-IF-FOUND [, -dnl ACTION-IF-NOT-FOUND]) -AC_DEFUN(AC_EGREP_HEADER, -[AC_EGREP_CPP([$1], [#include <$2>], [$3], [$4])]) - -dnl Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must -dnl come early, it is not included in AC_BEFORE checks. -dnl AC_EGREP_CPP(PATTERN, PROGRAM, [ACTION-IF-FOUND [, -dnl ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_EGREP_CPP, -[AC_REQUIRE_CPP()dnl -cat > conftest.$ac_ext <&AC_FD_CC | -dnl Prevent m4 from eating character classes: -changequote(, )dnl - egrep "$1" >/dev/null 2>&1; then -changequote([, ])dnl - ifelse([$3], , :, [rm -rf conftest* - $3]) -ifelse([$4], , , [else - rm -rf conftest* - $4 -])dnl -fi -rm -f conftest* -]) - - -dnl ### Examining syntax - - -dnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY, -dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_TRY_COMPILE, -[cat > conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$4], , , [ rm -rf conftest* - $4 -])dnl -fi -rm -f conftest*]) - - -dnl ### Examining libraries - - -dnl AC_COMPILE_CHECK(ECHO-TEXT, INCLUDES, FUNCTION-BODY, -dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) -AC_DEFUN(AC_COMPILE_CHECK, -[AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl -ifelse([$1], , , [AC_CHECKING([for $1]) -])dnl -AC_TRY_LINK([$2], [$3], [$4], [$5]) -]) - -dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY, -dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_TRY_LINK, -[cat > conftest.$ac_ext <&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$4], , , [ rm -rf conftest* - $4 -])dnl -fi -rm -f conftest*]) - - -dnl ### Checking for run-time features - - -dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE -dnl [, ACTION-IF-CROSS-COMPILING]]]) -AC_DEFUN(AC_TRY_RUN, -[if test "$cross_compiling" = yes; then - ifelse([$4], , - [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling -)dnl - AC_MSG_ERROR(can not run test program while cross compiling)], - [$4]) -else - AC_TRY_RUN_NATIVE([$1], [$2], [$3]) -fi -]) - -dnl Like AC_TRY_RUN but assumes a native-environment (non-cross) compiler. -dnl AC_TRY_RUN_NATIVE(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE]]) -AC_DEFUN(AC_TRY_RUN_NATIVE, -[cat > conftest.$ac_ext </dev/null -then -dnl Don't remove the temporary files here, so they can be examined. - ifelse([$2], , :, [$2]) -else - echo "configure: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&AC_FD_CC -ifelse([$3], , , [ rm -fr conftest* - $3 -])dnl -fi -rm -fr conftest*]) - - -dnl ### Checking for header files - - -dnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_HEADER, -[dnl Do the transliteration at runtime so arg 1 can be a shell variable. -ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_header_$ac_safe, -[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes", - eval "ac_cv_header_$ac_safe=no")])dnl -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3 -])dnl -fi -]) - -dnl AC_CHECK_HEADERS(HEADER-FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_HEADERS, -[for ac_hdr in $1 -do -AC_CHECK_HEADER($ac_hdr, -[changequote(, )dnl - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_hdr) $2], $3)dnl -done -]) - - -dnl ### Checking for the existence of files - -dnl AC_CHECK_FILE(FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FILE, -[AC_REQUIRE([AC_PROG_CC]) -dnl Do the transliteration at runtime so arg 1 can be a shell variable. -ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_file_$ac_safe, -[if test "$cross_compiling" = yes; then - errprint(__file__:__line__: warning: Cannot check for file existence when cross compiling -)dnl - AC_MSG_ERROR(Cannot check for file existence when cross compiling) -else - if test -r $1; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi -fi])dnl -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3]) -fi -]) - -dnl AC_CHECK_FILES(FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FILES, -[for ac_file in $1 -do -AC_CHECK_FILE($ac_file, -[changequote(, )dnl - ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_file) $2], $3)dnl -done -]) - - -dnl ### Checking for library functions - - -dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FUNC, -[AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(ac_cv_func_$1, -[AC_TRY_LINK( -dnl Don't include because on OSF/1 3.0 it includes -dnl which includes which contains a prototype for -dnl select. Similarly for bzero. -[/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $1(); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus -extern "C" -#endif -])dnl -[/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $1(); -], [ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$1) || defined (__stub___$1) -choke me -#else -$1(); -#endif -], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")]) -if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) -else - AC_MSG_RESULT(no) -ifelse([$3], , , [$3 -])dnl -fi -]) - -dnl AC_CHECK_FUNCS(FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -AC_DEFUN(AC_CHECK_FUNCS, -[for ac_func in $1 -do -AC_CHECK_FUNC($ac_func, -[changequote(, )dnl - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnl -done -]) - -dnl AC_REPLACE_FUNCS(FUNCTION...) -AC_DEFUN(AC_REPLACE_FUNCS, -[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"]) -AC_SUBST(LIBOBJS)dnl -]) - - -dnl ### Checking compiler characteristics - - -dnl AC_CHECK_SIZEOF(TYPE [, CROSS-SIZE]) -AC_DEFUN(AC_CHECK_SIZEOF, -[changequote(<<, >>)dnl -dnl The name to #define. -define(<>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl -dnl The cache variable name. -define(<>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl -changequote([, ])dnl -AC_MSG_CHECKING(size of $1) -AC_CACHE_VAL(AC_CV_NAME, -[AC_TRY_RUN([#include -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof($1)); - exit(0); -}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl -AC_MSG_RESULT($AC_CV_NAME) -AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME) -undefine([AC_TYPE_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - - -dnl ### Checking for typedefs - - -dnl AC_CHECK_TYPE(TYPE, DEFAULT) -AC_DEFUN(AC_CHECK_TYPE, -[AC_REQUIRE([AC_HEADER_STDC])dnl -AC_MSG_CHECKING(for $1) -AC_CACHE_VAL(ac_cv_type_$1, -[AC_EGREP_CPP(dnl -changequote(<<,>>)dnl -<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl -changequote([,]), [#include -#if STDC_HEADERS -#include -#include -#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl -AC_MSG_RESULT($ac_cv_type_$1) -if test $ac_cv_type_$1 = no; then - AC_DEFINE($1, $2) -fi -]) - - -dnl ### Creating output files - - -dnl AC_CONFIG_HEADER(HEADER-TO-CREATE ...) -AC_DEFUN(AC_CONFIG_HEADER, -[define(AC_LIST_HEADER, $1)]) - -dnl Link each of the existing files SOURCE... to the corresponding -dnl link name in DEST... -dnl AC_LINK_FILES(SOURCE..., DEST...) -AC_DEFUN(AC_LINK_FILES, -[dnl -define([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnl -define([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])]) - -dnl Add additional commands for AC_OUTPUT to put into config.status. -dnl Use diversions instead of macros so we can be robust in the -dnl presence of commas in $1 and/or $2. -dnl AC_OUTPUT_COMMANDS(EXTRA-CMDS, INIT-CMDS) -AC_DEFUN(AC_OUTPUT_COMMANDS, -[AC_DIVERT_PUSH(AC_DIVERSION_CMDS)dnl -[$1] -AC_DIVERT_POP()dnl -AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)dnl -[$2] -AC_DIVERT_POP()]) - -dnl AC_CONFIG_SUBDIRS(DIR ...) -AC_DEFUN(AC_CONFIG_SUBDIRS, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -define([AC_LIST_SUBDIRS], ifdef([AC_LIST_SUBDIRS], [AC_LIST_SUBDIRS ],)[$1])dnl -subdirs="AC_LIST_SUBDIRS" -AC_SUBST(subdirs)dnl -]) - -dnl The big finish. -dnl Produce config.status, config.h, and links; and configure subdirs. -dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS]) -define(AC_OUTPUT, -[trap '' 1 2 15 -AC_CACHE_SAVE -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then -changequote(, )dnl - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -changequote([, ])dnl -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -ifdef([AC_LIST_HEADER], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()]) - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -[#] [$]0 [$]ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -changequote(, )dnl -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -changequote([, ])dnl -for ac_option -do - case "[\$]ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion" - exec [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version AC_ACVERSION" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "[\$]ac_cs_usage"; exit 0 ;; - *) echo "[\$]ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL" -])dnl - -changequote(<<, >>)dnl -ifdef(<>, -<>, -<>) -changequote([, ])dnl -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -undivert(AC_DIVERSION_CMDS)dnl -$2 -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 -dnl config.status should not do recursion. -ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl -])dnl - -dnl Set the DEFS variable to the -D options determined earlier. -dnl This is a subroutine of AC_OUTPUT. -dnl It is called inside configure, outside of config.status. -dnl AC_OUTPUT_MAKE_DEFS() -define(AC_OUTPUT_MAKE_DEFS, -[# Transform confdefs.h into DEFS. -dnl Using a here document instead of a string reduces the quoting nightmare. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -changequote(<<, >>)dnl -s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -changequote([, ])dnl -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs -]) - -dnl Do the variable substitutions to create the Makefiles or whatever. -dnl This is a subroutine of AC_OUTPUT. It is called inside an unquoted -dnl here document whose contents are going into config.status, but -dnl upon returning, the here document is being quoted. -dnl AC_OUTPUT_FILES(FILE...) -define(AC_OUTPUT_FILES, -[# Protect against being on the right side of a sed subst in config.status. -changequote(, )dnl -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -changequote([, ])dnl -dnl These here document variables are unquoted when configure runs -dnl but quoted when config.status runs, so variables are expanded once. -$ac_vpsub -dnl Shell code in configure.in might set extrasub. -$extrasub -dnl Insert the sed substitutions of variables. -undivert(AC_DIVERSION_SED) -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then -changequote(, )dnl - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. -changequote(, )dnl - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` -changequote([, ])dnl - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - -ifdef([AC_PROVIDE_AC_PROG_INSTALL], -[ case "$ac_given_INSTALL" in -changequote(, )dnl - [/$]*) INSTALL="$ac_given_INSTALL" ;; -changequote([, ])dnl - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac -])dnl - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g -])dnl -dnl The parens around the eval prevent an "illegal io" in Ultrix sh. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -dnl This would break Makefile dependencies. -dnl if cmp -s $ac_file conftest.out 2>/dev/null; then -dnl echo "$ac_file is unchanged" -dnl rm -f conftest.out -dnl else -dnl rm -f $ac_file -dnl mv conftest.out $ac_file -dnl fi -fi; done -rm -f conftest.s* -]) - -dnl Create the config.h files from the config.h.in files. -dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted -dnl here document whose contents are going into config.status. -dnl AC_OUTPUT_HEADER(HEADER-FILE...) -define(AC_OUTPUT_HEADER, -[changequote(<<, >>)dnl -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' -ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='<<$>>%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' -changequote([, ])dnl - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -dnl Support passing AC_CONFIG_HEADER a value containing shell variables. -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then -changequote(, )dnl - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac -changequote([, ])dnl - - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in - -EOF - -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -dnl Using a here document instead of a string reduces the quoting nightmare. -dnl Putting comments in sed scripts is not portable. -cat > conftest.hdr <<\EOF -changequote(<<, >>)dnl -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp -changequote([, ])dnl -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -changequote(, )dnl -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% -changequote([, ])dnl -EOF - -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. - -rm -f conftest.tail -while : -do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS - echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals -done -rm -f conftest.vals - -dnl Now back to your regularly scheduled config.status. -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h - else - # Remove last slash and all that follows it. Not all systems have dirname. - changequote(, )dnl - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - changequote([, ])dnl - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - fi - rm -f $ac_file - mv conftest.h $ac_file - fi -fi; done - -]) - -dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted -dnl here document whose contents are going into config.status. -dnl AC_OUTPUT_LINKS(SOURCE..., DEST...) -define(AC_OUTPUT_LINKS, -[EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -srcdir=$ac_given_srcdir -while test -n "$ac_sources"; do - set $ac_dests; ac_dest=[$]1; shift; ac_dests=[$]* - set $ac_sources; ac_source=[$]1; shift; ac_sources=[$]* - - echo "linking $srcdir/$ac_source to $ac_dest" - - if test ! -r $srcdir/$ac_source; then - AC_MSG_ERROR($srcdir/$ac_source: File not found) - fi - rm -f $ac_dest - - # Make relative symlinks. - # Remove last slash and all that follows it. Not all systems have dirname. -changequote(, )dnl - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` -changequote([, ])dnl - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then - # The dest file is in a subdirectory. - test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" - ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dest_dir_suffix. -changequote(, )dnl - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` -changequote([, ])dnl - else - ac_dest_dir_suffix= ac_dots= - fi - - case "$srcdir" in -changequote(, )dnl - [/$]*) ac_rel_source="$srcdir/$ac_source" ;; -changequote([, ])dnl - *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; - esac - - # Make a symlink if possible; otherwise try a hard link. - if ln -s $ac_rel_source $ac_dest 2>/dev/null || - ln $srcdir/$ac_source $ac_dest; then : - else - AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source) - fi -done -]) - -dnl This is a subroutine of AC_OUTPUT. -dnl It is called after running config.status. -dnl AC_OUTPUT_SUBDIRS(DIRECTORY...) -define(AC_OUTPUT_SUBDIRS, -[ -if test "$no_recursion" != yes; then - - # Remove --cache-file and --srcdir arguments so they do not pile up. - ac_sub_configure_args= - ac_prev= - for ac_arg in $ac_configure_args; do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case "$ac_arg" in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; - esac - done - - for ac_config_dir in $1; do - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - if test ! -d $srcdir/$ac_config_dir; then - continue - fi - - echo configuring in $ac_config_dir - - case "$srcdir" in - .) ;; - *) - if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; - else - AC_MSG_ERROR(can not create `pwd`/$ac_config_dir) - fi - ;; - esac - - ac_popdir=`pwd` - cd $ac_config_dir - -changequote(, )dnl - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` -changequote([, ])dnl - - case "$srcdir" in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - /*) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_config_dir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure; then - ac_sub_configure=$ac_sub_srcdir/configure - elif test -f $ac_sub_srcdir/configure.in; then - ac_sub_configure=$ac_configure - else - AC_MSG_WARN(no configuration information is in $ac_config_dir) - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - - # Make the cache file name correct relative to the subdirectory. - case "$cache_file" in - /*) ac_sub_cache_file=$cache_file ;; - *) # Relative path. - ac_sub_cache_file="$ac_dots$cache_file" ;; - esac -ifdef([AC_PROVIDE_AC_PROG_INSTALL], - [ case "$ac_given_INSTALL" in -changequote(, )dnl - [/$]*) INSTALL="$ac_given_INSTALL" ;; -changequote([, ])dnl - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac -])dnl - - echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir" - # The eval makes quoting arguments work. - if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir - then : - else - AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir) - fi - fi - - cd $ac_popdir - done -fi -]) diff -Nru smake-1.2a41/conf/aclocal.m4 smake-1.2a49/conf/aclocal.m4 --- smake-1.2a41/conf/aclocal.m4 2007-02-20 14:51:48.000000000 +0000 +++ smake-1.2a49/conf/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,2202 +0,0 @@ -dnl @(#)aclocal.m4 1.52 07/02/20 Copyright 1998 J. Schilling - -dnl Set VARIABLE to VALUE in C-string form, verbatim, or 1. -dnl AC_DEFINE_STRING(VARIABLE [, VALUE]) -define(AC_DEFINE_STRING, -[cat >> confdefs.h <<\EOF -[#define] $1 ifelse($#, 2, "[$2]", $#, 3, "[$2]", 1) -EOF -]) - -dnl Similar, but perform shell substitutions $ ` \ once on VALUE. -define(AC_DEFINE_UNQUOTED_STRING, -[cat >> confdefs.h < /dev/null | grep bash` -if test -n "$ac_err"; then - ac_cv_shell_is_bash=yes -else - ac_cv_shell_is_bash=no -fi -]) -if test $ac_cv_shell_is_bash = yes; then - AC_DEFINE(SHELL_IS_BASH) -fi]) - -dnl AC_CHECK_DECLARE(INCLUDES, SYMBOL) -dnl Checks if symbol is declared -dnl Defines HAVE_DECL_SYMBOL on success. -AC_DEFUN([AC_CHECK_DECLARE], -[AC_CACHE_CHECK([if $2 is declared], ac_cv_have_decl_$2, - [AC_TRY_COMPILE([$1], -[ -#ifndef $2 - char *p = (char *) $2; -#endif], - [ac_cv_have_decl_$2=yes], - [ac_cv_have_decl_$2=no])]) -changequote(, )dnl - ac_tr_decl=HAVE_DECL_`echo $2 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl -if test $ac_cv_have_decl_$2 = yes; then - AC_DEFINE_UNQUOTED($ac_tr_decl) -fi]) - -dnl Checks if structure 'stat' have field 'st_spare1'. -dnl Defines HAVE_ST_SPARE1 on success. -AC_DEFUN([AC_STRUCT_ST_SPARE1], -[AC_CACHE_CHECK([if struct stat contains st_spare1], ac_cv_struct_st_spare1, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_spare1 = 0;], - [ac_cv_struct_st_spare1=yes], - [ac_cv_struct_st_spare1=no])]) -if test $ac_cv_struct_st_spare1 = yes; then - AC_DEFINE(HAVE_ST_SPARE1) -fi]) - -dnl Checks if structure 'stat' have field 'st_atimensec'. -dnl Defines HAVE_ST_ATIMENSEC on success. -AC_DEFUN([AC_STRUCT_ST_ATIMENSEC], -[AC_CACHE_CHECK([if struct stat contains st_atimensec], ac_cv_struct_st_atimensec, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_atimensec = 0;], - [ac_cv_struct_st_atimensec=yes], - [ac_cv_struct_st_atimensec=no])]) -if test $ac_cv_struct_st_atimensec = yes; then - AC_DEFINE(HAVE_ST_ATIMENSEC) -fi]) - -dnl Checks if structure 'stat' have field 'st_atim.tv_nsec'. -dnl Defines HAVE_ST_NSEC on success. -AC_DEFUN([AC_STRUCT_ST_NSEC], -[AC_CACHE_CHECK([if struct stat contains st_atim.tv_nsec], ac_cv_struct_st_nsec, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_atim.tv_nsec = 0;], - [ac_cv_struct_st_nsec=yes], - [ac_cv_struct_st_nsec=no])]) -if test $ac_cv_struct_st_nsec = yes; then - AC_DEFINE(HAVE_ST_NSEC) -fi]) - -dnl Checks if structure 'stat' have field 'st_atim.st__tim.tv_nsec'. -dnl Defines HAVE_ST__TIM on success. -AC_DEFUN([AC_STRUCT_ST__TIM], -[AC_CACHE_CHECK([if struct stat contains st_atim.st__tim.tv_nsec], ac_cv_struct_st__tim, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_atim.st__tim.tv_nsec = 0;], - [ac_cv_struct_st__tim=yes], - [ac_cv_struct_st__tim=no])]) -if test $ac_cv_struct_st__tim = yes; then - AC_DEFINE(HAVE_ST__TIM) -fi]) - -dnl Checks if structure 'stat' have field 'st_atimspec.tv_nsec'. -dnl Defines HAVE_ST_ATIMESPEC on success. -AC_DEFUN([AC_STRUCT_ST_ATIMESPEC], -[AC_CACHE_CHECK([if struct stat contains st_atimespec.tv_nsec], ac_cv_struct_st_atimespec, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_atimespec.tv_nsec = 0;], - [ac_cv_struct_st_atimespec=yes], - [ac_cv_struct_st_atimespec=no])]) -if test $ac_cv_struct_st_atimespec = yes; then - AC_DEFINE(HAVE_ST_ATIMESPEC) -fi]) - -dnl Checks if structure 'stat' have field 'st_flags'. -dnl Defines HAVE_ST_FLAGS on success. -AC_DEFUN([AC_STRUCT_ST_FLAGS], -[AC_CACHE_CHECK([if struct stat contains st_flags], ac_cv_struct_st_flags, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_flags = 0;], - [ac_cv_struct_st_flags=yes], - [ac_cv_struct_st_flags=no])]) -if test $ac_cv_struct_st_flags = yes; then - AC_DEFINE(HAVE_ST_FLAGS) -fi]) - -dnl Checks if structure 'stat' have field 'st_fstype'. -dnl Defines HAVE_ST_FSTYPE on success. -AC_DEFUN([AC_STRUCT_ST_FSTYPE], -[AC_CACHE_CHECK([if struct stat contains st_fstype], ac_cv_struct_st_fstype, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_fstype[0] = 0;], - [ac_cv_struct_st_fstype=yes], - [ac_cv_struct_st_fstype=no])]) -if test $ac_cv_struct_st_fstype = yes; then - AC_DEFINE(HAVE_ST_FSTYPE) -fi]) - -dnl Checks if structure 'stat' have field 'st_aclcnt'. -dnl Defines HAVE_ST_ACLCNT on success. -AC_DEFUN([AC_STRUCT_ST_ACLCNT], -[AC_CACHE_CHECK([if struct stat contains st_aclcnt], ac_cv_struct_st_aclcnt, - [AC_TRY_COMPILE([#include -#include ], - [struct stat s; s.st_aclcnt = 0;], - [ac_cv_struct_st_aclcnt=yes], - [ac_cv_struct_st_aclcnt=no])]) -if test $ac_cv_struct_st_aclcnt = yes; then - AC_DEFINE(HAVE_ST_ACLCNT) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_type'. -dnl Defines HAVE_MTGET_TYPE on success. -AC_DEFUN([AC_STRUCT_MTGET_TYPE], -[AC_CACHE_CHECK([if struct mtget contains mt_type], ac_cv_struct_mtget_type, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_type = 0;], - [ac_cv_struct_mtget_type=yes], - [ac_cv_struct_mtget_type=no])]) -if test $ac_cv_struct_mtget_type = yes; then - AC_DEFINE(HAVE_MTGET_TYPE) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_model'. -dnl Defines HAVE_MTGET_MODEL on success. -AC_DEFUN([AC_STRUCT_MTGET_MODEL], -[AC_CACHE_CHECK([if struct mtget contains mt_model], ac_cv_struct_mtget_model, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_model = 0;], - [ac_cv_struct_mtget_model=yes], - [ac_cv_struct_mtget_model=no])]) -if test $ac_cv_struct_mtget_model = yes; then - AC_DEFINE(HAVE_MTGET_MODEL) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_dsreg'. -dnl Defines HAVE_MTGET_DSREG on success. -AC_DEFUN([AC_STRUCT_MTGET_DSREG], -[AC_CACHE_CHECK([if struct mtget contains mt_dsreg], ac_cv_struct_mtget_dsreg, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_dsreg = 0;], - [ac_cv_struct_mtget_dsreg=yes], - [ac_cv_struct_mtget_dsreg=no])]) -if test $ac_cv_struct_mtget_dsreg = yes; then - AC_DEFINE(HAVE_MTGET_DSREG) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_dsreg1'. -dnl Defines HAVE_MTGET_DSREG on success. -AC_DEFUN([AC_STRUCT_MTGET_DSREG1], -[AC_CACHE_CHECK([if struct mtget contains mt_dsreg1], ac_cv_struct_mtget_dsreg1, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_dsreg1 = 0;], - [ac_cv_struct_mtget_dsreg1=yes], - [ac_cv_struct_mtget_dsreg1=no])]) -if test $ac_cv_struct_mtget_dsreg1 = yes; then - AC_DEFINE(HAVE_MTGET_DSREG1) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_dsreg2'. -dnl Defines HAVE_MTGET_DSREG2 on success. -AC_DEFUN([AC_STRUCT_MTGET_DSREG2], -[AC_CACHE_CHECK([if struct mtget contains mt_dsreg2], ac_cv_struct_mtget_dsreg2, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_dsreg2 = 0;], - [ac_cv_struct_mtget_dsreg2=yes], - [ac_cv_struct_mtget_dsreg2=no])]) -if test $ac_cv_struct_mtget_dsreg2 = yes; then - AC_DEFINE(HAVE_MTGET_DSREG2) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_gstat'. -dnl Defines HAVE_MTGET_GSTAT on success. -AC_DEFUN([AC_STRUCT_MTGET_GSTAT], -[AC_CACHE_CHECK([if struct mtget contains mt_gstat], ac_cv_struct_mtget_gstat, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_gstat = 0;], - [ac_cv_struct_mtget_gstat=yes], - [ac_cv_struct_mtget_gstat=no])]) -if test $ac_cv_struct_mtget_gstat = yes; then - AC_DEFINE(HAVE_MTGET_GSTAT) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_erreg'. -dnl Defines HAVE_MTGET_ERREG on success. -AC_DEFUN([AC_STRUCT_MTGET_ERREG], -[AC_CACHE_CHECK([if struct mtget contains mt_erreg], ac_cv_struct_mtget_erreg, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_erreg = 0;], - [ac_cv_struct_mtget_erreg=yes], - [ac_cv_struct_mtget_erreg=no])]) -if test $ac_cv_struct_mtget_erreg = yes; then - AC_DEFINE(HAVE_MTGET_ERREG) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_resid'. -dnl Defines HAVE_MTGET_RESID on success. -AC_DEFUN([AC_STRUCT_MTGET_RESID], -[AC_CACHE_CHECK([if struct mtget contains mt_resid], ac_cv_struct_mtget_resid, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_resid = 0;], - [ac_cv_struct_mtget_resid=yes], - [ac_cv_struct_mtget_resid=no])]) -if test $ac_cv_struct_mtget_resid = yes; then - AC_DEFINE(HAVE_MTGET_RESID) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_fileno'. -dnl Defines HAVE_MTGET_FILENO on success. -AC_DEFUN([AC_STRUCT_MTGET_FILENO], -[AC_CACHE_CHECK([if struct mtget contains mt_fileno], - ac_cv_struct_mtget_fileno, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_fileno = 0;], - [ac_cv_struct_mtget_fileno=yes], - [ac_cv_struct_mtget_fileno=no])]) -if test $ac_cv_struct_mtget_fileno = yes; then - AC_DEFINE(HAVE_MTGET_FILENO) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_blkno'. -dnl Defines HAVE_MTGET_BLKNO on success. -AC_DEFUN([AC_STRUCT_MTGET_BLKNO], -[AC_CACHE_CHECK([if struct mtget contains mt_blkno], ac_cv_struct_mtget_blkno, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_blkno = 0;], - [ac_cv_struct_mtget_blkno=yes], - [ac_cv_struct_mtget_blkno=no])]) -if test $ac_cv_struct_mtget_blkno = yes; then - AC_DEFINE(HAVE_MTGET_BLKNO) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_flags'. -dnl Defines HAVE_MTGET_FLAGS on success. -AC_DEFUN([AC_STRUCT_MTGET_FLAGS], -[AC_CACHE_CHECK([if struct mtget contains mt_flags], ac_cv_struct_mtget_flags, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_flags = 0;], - [ac_cv_struct_mtget_flags=yes], - [ac_cv_struct_mtget_flags=no])]) -if test $ac_cv_struct_mtget_flags = yes; then - AC_DEFINE(HAVE_MTGET_FLAGS) -fi]) - -dnl Checks if structure 'mtget' have field 'mt_bf'. -dnl Defines HAVE_MTGET_BF on success. -AC_DEFUN([AC_STRUCT_MTGET_BF], -[AC_CACHE_CHECK([if struct mtget contains mt_bf], ac_cv_struct_mtget_bf, - [AC_TRY_COMPILE([#include -#include ], - [struct mtget t; t.mt_bf = 0;], - [ac_cv_struct_mtget_bf=yes], - [ac_cv_struct_mtget_bf=no])]) -if test $ac_cv_struct_mtget_bf = yes; then - AC_DEFINE(HAVE_MTGET_BF) -fi]) - -dnl Checks for illegal declaration of 'union semun' in sys/sem.h. -dnl Defines HAVE_UNION_SEMUN on success. -AC_DEFUN([AC_STRUCT_UNION_SEMUN], -[AC_CACHE_CHECK([if an illegal declaration for union semun in sys/sem.h exists], ac_cv_struct_union_semun, - [AC_TRY_COMPILE([#include -#include -#include ], [union semun s;], - [ac_cv_struct_union_semun=yes], - [ac_cv_struct_union_semun=no])]) -if test $ac_cv_struct_union_semun = yes; then - AC_DEFINE(HAVE_UNION_SEMUN) -fi]) - -dnl Checks if 'union wait' is declared in 'wait.h' or 'sys/wait.h'. -dnl Defines HAVE_UNION_WAIT on success. -AC_DEFUN([AC_STRUCT_UNION_WAIT], -[AC_CACHE_CHECK([if union wait is declared in wait.h or sys/wait.h], ac_cv_struct_union_wait, - [AC_TRY_COMPILE([#include -#if defined(HAVE_WAIT_H) -# include -#else -#include -#endif], [union wait w;], - [ac_cv_struct_union_wait=yes], - [ac_cv_struct_union_wait=no])]) -if test $ac_cv_struct_union_wait = yes; then - AC_DEFINE(HAVE_UNION_WAIT) -fi]) - -dnl Checks if 'struct rusage' is declared in sys/resource.h. -dnl Defines HAVE_STRUCT_RUSAGE on success. -AC_DEFUN([AC_STRUCT_RUSAGE], -[AC_CACHE_CHECK([if struct rusage is declared in sys/resource.h], ac_cv_struct_rusage, - [AC_TRY_COMPILE([#include -#include ], [struct rusage r;], - [ac_cv_struct_rusage=yes], - [ac_cv_struct_rusage=no])]) -if test $ac_cv_struct_rusage = yes; then - AC_DEFINE(HAVE_STRUCT_RUSAGE) -fi]) - -dnl Checks if structure 'siginfo' have field 'si_utime'. -dnl Defines HAVE_SI_UTIME on success. -AC_DEFUN([AC_STRUCT_SI_UTIME], -[AC_CACHE_CHECK([if struct siginfo contains si_utime], ac_cv_struct_si_utime, - [AC_TRY_COMPILE([#include -#include ], - [struct siginfo si; si.si_utime = 0;], - [ac_cv_struct_si_utime=yes], - [ac_cv_struct_si_utime=no])]) -if test $ac_cv_struct_si_utime = yes; then - AC_DEFINE(HAVE_SI_UTIME) -fi]) - - -dnl Checks if structure 'dirent' have field 'd_ino'. -dnl Defines HAVE_DIRENT_D_INO on success. -AC_DEFUN([AC_STRUCT_DIRENT_D_INO], -[AC_CACHE_CHECK([if struct dirent contains d_ino], ac_cv_struct_dirent_d_ino, - [AC_TRY_COMPILE([ -/* - * This must be kept in sync with schily/dirdesf.h - */ -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ -# include -# define _FOUND_DIR_ -# else /* This is a Pre POSIX system */ - -# define dirent direct - -# if defined(HAVE_SYS_DIR_H) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif -# endif /* HAVE_DIRENT_H */ - ], - [struct dirent d; d.d_ino = 0;], - [ac_cv_struct_dirent_d_ino=yes], - [ac_cv_struct_dirent_d_ino=no])]) -if test $ac_cv_struct_dirent_d_ino = yes; then - AC_DEFINE(HAVE_DIRENT_D_INO) -fi]) - - -dnl Checks wether major(), minor() and makedev() are defined in -dnl 'sys/mkdev.h' or in 'sys/sysmacros.h. Defines MAJOR_IN_MKDEV or -dnl MAJOR_IN_SYSMACROS or nothing. -AC_DEFUN([AC_HEADER_MAKEDEV], -[AC_CACHE_CHECK([for header file containing major(), minor() and makedev()], - ac_cv_header_makedev, -[ac_cv_header_makedev=none -AC_TRY_COMPILE([#include -#include ], - [int i = major(0); i = minor(0); i = makedev(0,0);], - [ac_cv_header_makedev=sys/mkdev.h]) -if test $ac_cv_header_makedev = none; then - AC_TRY_COMPILE([#include -#include ], - [int i = major(0); i = minor(0); i = makedev(0,0);], - [ac_cv_header_makedev=sys/sysmacros.h]) -fi]) -if test $ac_cv_header_makedev = sys/mkdev.h; then - AC_DEFINE(MAJOR_IN_MKDEV) -fi -if test $ac_cv_header_makedev = sys/sysmacros.h; then - AC_DEFINE(MAJOR_IN_SYSMACROS) -fi]) - -dnl Checks for USG derived STDIO that uses _filbuf() -dnl Defines HAVE__FILBUF on success. -AC_DEFUN([AC_HEADER__FILBUF], -[AC_CACHE_CHECK([for _filbuf()], ac_cv_func__filbuf, - [AC_TRY_LINK([#include ], -[FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -_filbuf(f); -_flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f);], - [ac_cv_func__filbuf=yes], - [ac_cv_func__filbuf=no])]) -if test $ac_cv_func__filbuf = yes; then - AC_DEFINE(HAVE__FILBUF) -fi]) - -dnl Checks for USG derived STDIO that uses __filbuf() -dnl Defines HAVE___FILBUF on success. -AC_DEFUN([AC_HEADER___FILBUF], -[AC_CACHE_CHECK([for __filbuf()], ac_cv_func___filbuf, - [AC_TRY_LINK([#include ], -[FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -__filbuf(f); -__flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f);], - [ac_cv_func___filbuf=yes], - [ac_cv_func___filbuf=no])]) -if test $ac_cv_func___filbuf = yes; then - AC_DEFINE(HAVE___FILBUF) -fi]) - -dnl Checks for USG derived STDIO -dnl Defines HAVE_USG_STDIO on success. -AC_DEFUN([AC_HEADER_USG_STDIO], -[AC_REQUIRE([AC_HEADER__FILBUF])AC_REQUIRE([AC_HEADER___FILBUF])dnl -AC_CACHE_CHECK([for USG derived STDIO], ac_cv_header_usg_stdio, - [AC_TRY_LINK([#include ], -[FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -#ifdef HAVE___FILBUF -__filbuf(f); -__flsbuf(c, f); -#else -# ifdef HAVE__FILBUF -_filbuf(f); -_flsbuf(c, f); -# else -no filbuf() -# endif -#endif -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f);], - [ac_cv_header_usg_stdio=yes], - [ac_cv_header_usg_stdio=no])]) -if test $ac_cv_header_usg_stdio = yes; then - AC_DEFINE(HAVE_USG_STDIO) -fi]) - -dnl Checks for errno definition in -dnl Defines HAVE_ERRNO_DEF on success. -AC_DEFUN([AC_HEADER_ERRNO_DEF], -[AC_CACHE_CHECK([for errno definition in errno.h], ac_cv_header_errno_def, - [AC_TRY_COMPILE([#include ], -[errno = 0;], - [ac_cv_header_errno_def=yes], - [ac_cv_header_errno_def=no])]) -if test $ac_cv_header_errno_def = yes; then - AC_DEFINE(HAVE_ERRNO_DEF) -fi]) - -dnl Checks if extern long timezone exists in libc -dnl Defines HAVE_VAR_TIMEZONE on success. -AC_DEFUN([AC_VAR_TIMEZONE], -[AC_CACHE_CHECK([for working extern long timezone ], ac_cv_var_timezone, - [AC_TRY_RUN([ -extern long timezone; - -int -main() -{ - exit(timezone != 0); -}], - [ac_cv_var_timezone=yes], - [ac_cv_var_timezone=no])]) -if test $ac_cv_var_timezone = yes; then - AC_DEFINE(HAVE_VAR_TIMEZONE) -fi]) - -dnl Checks for UNIX-98 compliant -dnl Defines HAVE_INTTYPES_H on success. -AC_DEFUN([AC_HEADER_INTTYPES], -[AC_CACHE_CHECK([for UNIX-98 compliant inttypes.h], ac_cv_header_inttypes, - [AC_TRY_COMPILE([#include ], -[int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; -int64_t ll; uint64_t ull; -intptr_t ip; uintptr_t uip;], - [ac_cv_header_inttypes=yes], - [ac_cv_header_inttypes=no])]) -if test $ac_cv_header_inttypes = yes; then - AC_DEFINE(HAVE_INTTYPES_H) -fi]) - -dnl Checks for type time_t -dnl Defines time_t to long on failure. -AC_DEFUN([AC_TYPE_TIME_T], -[AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CACHE_CHECK([for time_t], ac_cv_type_time_t, - [AC_TRY_COMPILE([ -#include -#ifdef TIME_WITH_SYS_TIME_H -# include -# include -#else -#ifdef HAVE_SYS_TIME_H -# include -#else -# include -#endif -#endif], [time_t t;], - [ac_cv_type_time_t=yes], - [ac_cv_type_time_t=no])]) -if test $ac_cv_type_time_t = no; then - AC_DEFINE(time_t, long) -fi]) - -dnl Checks for type clock_t -dnl Defines clock_t to long on failure. -dnl XXX we cannot check for AC_CHECK_HEADERS(sys/times.h) -AC_DEFUN([AC_TYPE_CLOCK_T], -[AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CACHE_CHECK([for clock_t], ac_cv_type_clock_t, - [AC_TRY_COMPILE([ -#include -/* - * time.h is needed because of a bug in Next Step. - * Next Step needs time.h for clock_t - */ -#ifdef TIME_WITH_SYS_TIME -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#else -#ifdef HAVE_SYS_TIME_H -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -#else -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#endif -#endif -#ifdef HAVE_SYS_TIMES_H -#include -#endif - ], [clock_t t;], - [ac_cv_type_clock_t=yes], - [ac_cv_type_clock_t=no])]) -if test $ac_cv_type_clock_t = no; then - AC_DEFINE(clock_t, long) -fi]) - -dnl Checks for type socklen_t -dnl Defines socklen_t to int on failure. -AC_DEFUN([AC_TYPE_SOCKLEN_T], -[AC_REQUIRE([AC_HEADER_STDC])dnl -AC_MSG_CHECKING(for socklen_t) -AC_CACHE_VAL(ac_cv_type_socklen_t, -[AC_EGREP_CPP(dnl -changequote(<<,>>)dnl -<<(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]>>dnl -changequote([,]), [#include -#if STDC_HEADERS -#include -#include -#endif -#include ], ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)])dnl -AC_MSG_RESULT($ac_cv_type_socklen_t) -if test $ac_cv_type_socklen_t = no; then - AC_DEFINE(socklen_t, int) -fi]) - -dnl Checks for type struct sockaddr_storage -dnl Defines HAVE_SOCKADDR_STORAGE on success. -AC_DEFUN([AC_STRUCT_SOCKADDR_STORAGE], -[AC_CACHE_CHECK([if struct sockaddr_storage is declared in socket.h], ac_cv_struct_sockaddr_storage, - [AC_TRY_COMPILE([#include ], - [struct sockaddr_storage ss; ss.ss_family = 0;], - [ac_cv_struct_sockaddr_storage=yes], - [ac_cv_struct_sockaddr_storage=no])]) -if test $ac_cv_struct_sockaddr_storage = yes; then - AC_DEFINE(HAVE_SOCKADDR_STORAGE) -fi]) - -dnl Checks for type long long -dnl Defines HAVE_LONGLONG on success. -AC_DEFUN([AC_TYPE_LONGLONG], -[AC_CACHE_CHECK([for type long long], ac_cv_type_longlong, - [AC_TRY_COMPILE([], [long long i;], - [ac_cv_type_longlong=yes], - [ac_cv_type_longlong=no])]) -if test $ac_cv_type_longlong = yes; then - AC_DEFINE(HAVE_LONGLONG) -fi]) - -dnl Checks for type __int64 -dnl Defines HAVE___INT64 on success. -AC_DEFUN([AC_TYPE___INT64], -[AC_CACHE_CHECK([for type __int64], ac_cv_type___int64, - [AC_TRY_COMPILE([], [__int64 i;], - [ac_cv_type___int64=yes], - [ac_cv_type___int64=no])]) -if test $ac_cv_type___int64 = yes; then - AC_DEFINE(HAVE___INT64) -fi]) - -dnl Checks if C-compiler orders bitfields htol -dnl Defines BITFIELDS_HTOL on success. -AC_DEFUN([AC_C_BITFIELDS], -[AC_CACHE_CHECK([whether bitorder in bitfields is htol], ac_cv_c_bitfields_htol, - [AC_TRY_RUN([ -struct { - unsigned char x1:4; - unsigned char x2:4; -} a; -int -main() -{ -char *cp; - -cp = (char *)&a; -*cp = 0x12; -exit(a.x1 == 2);}], - [ac_cv_c_bitfields_htol=yes], - [ac_cv_c_bitfields_htol=no])]) -if test $ac_cv_c_bitfields_htol = yes; then - AC_DEFINE(BITFIELDS_HTOL) -fi]) - -dnl Checks if C-compiler understands prototypes -dnl Defines PROTOTYPES on success. -AC_DEFUN([AC_TYPE_PROTOTYPES], -[AC_CACHE_CHECK([for prototypes], ac_cv_type_prototypes, - [AC_TRY_RUN([ -doit(int i, ...) -{return 0;} -int -main(int ac, char *av[]) -{ doit(1, 2, 3); -exit(0);}], - [ac_cv_type_prototypes=yes], - [ac_cv_type_prototypes=no])]) -if test $ac_cv_type_prototypes = yes; then - AC_DEFINE(PROTOTYPES) -fi]) - -dnl Checks for type size_t -dnl Defines HAVE_SIZE_T_ on success. -AC_DEFUN([AC_TYPE_SIZE_T_], -[AC_CACHE_CHECK([for type size_t], ac_cv_type_size_t_, - [AC_TRY_COMPILE([ -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_STDLIB_H -#include -#endif -#ifdef HAVE_STDDEF_H -#include -#endif -#ifdef HAVE_STDIO_H -#include -#endif - ], [size_t s;], - [ac_cv_type_size_t_=yes], - [ac_cv_type_size_t_=no])]) -if test $ac_cv_type_size_t_ = yes; then - AC_DEFINE(HAVE_SIZE_T) -else - AC_DEFINE(NO_SIZE_T) -fi]) - -dnl Checks if type char is unsigned -dnl Defines CHAR_IS_UNSIGNED on success. -AC_DEFUN([AC_TYPE_CHAR], -[AC_CACHE_CHECK([if char is unsigned], ac_cv_type_char_unsigned, - [AC_TRY_RUN([ -int -main() -{ - char c; - - c = -1; - exit(c < 0);}], - [ac_cv_type_char_unsigned=yes], - [ac_cv_type_char_unsigned=no], - [ac_cv_type_char_unsigned=no])]) -if test $ac_cv_type_char_unsigned = yes; then - AC_DEFINE(CHAR_IS_UNSIGNED) -fi]) - -dnl Checks if function/macro va_copy() is available -dnl Defines HAVE_VA_COPY on success. -AC_DEFUN([AC_FUNC_VA_COPY], -[AC_CACHE_CHECK([for va_copy], ac_cv_func_va_copy, - [AC_TRY_LINK([ -#ifdef HAVE_STDARG_H -# include -#else -# include -#endif], - [ -va_list a, b; - -va_copy(a, b);], - [ac_cv_func_va_copy=yes], - [ac_cv_func_va_copy=no])]) -if test $ac_cv_func_va_copy = yes; then - AC_DEFINE(HAVE_VA_COPY) -fi]) - -dnl Checks if function/macro __va_copy() is available -dnl Defines HAVE__VA_COPY on success. -AC_DEFUN([AC_FUNC__VA_COPY], -[AC_CACHE_CHECK([for __va_copy], ac_cv_func__va_copy, - [AC_TRY_LINK([ -#ifdef HAVE_STDARG_H -# include -#else -# include -#endif], - [ -va_list a, b; - -__va_copy(a, b);], - - [ac_cv_func__va_copy=yes], - [ac_cv_func__va_copy=no])]) -if test $ac_cv_func__va_copy = yes; then - AC_DEFINE(HAVE__VA_COPY) -fi]) - -dnl Checks if va_list is an array -dnl Defines VA_LIST_IS_ARRAY on success. -AC_DEFUN([AC_TYPE_VA_LIST], -[AC_CACHE_CHECK([if va_list is an array], ac_cv_type_va_list_array, - [AC_TRY_LINK([ -#ifdef HAVE_STDARG_H -# include -#else -# include -#endif -], - [ -va_list a, b; - -a = b;], - [ac_cv_type_va_list_array=no], - [ac_cv_type_va_list_array=yes])]) -if test $ac_cv_type_va_list_array = yes; then - AC_DEFINE(VA_LIST_IS_ARRAY) -fi]) - -dnl Checks if quotactl is present as ioctl -dnl Defines HAVE_QUOTAIOCTL on success. -AC_DEFUN([AC_FUNC_QUOTAIOCTL], -[AC_CACHE_CHECK([if quotactl is an ioctl], ac_cv_func_quotaioctl, - [AC_TRY_LINK([#include -#include ], - [struct quotctl q; ioctl(0, Q_QUOTACTL, &q)], - [ac_cv_func_quotaioctl=yes], - [ac_cv_func_quotaioctl=no])]) -if test $ac_cv_func_quotaioctl = yes; then - AC_DEFINE(HAVE_QUOTAIOCTL) -fi]) - -dnl Checks if function __dtoa() is available -dnl Defines HAVE_DTOA on success. -AC_DEFUN([AC_FUNC_DTOA], -[AC_CACHE_CHECK([for __dtoa], ac_cv_func_dtoa, - [AC_TRY_LINK([extern char *__dtoa();], -[int decpt; int sign; char *ep; char *bp; -bp = __dtoa(0.0, 2, 6, &decpt, &sign, &ep);], - [ac_cv_func_dtoa=yes], - [ac_cv_func_dtoa=no])]) -if test $ac_cv_func_dtoa = yes; then - AC_DEFINE(HAVE_DTOA) -fi]) - -dnl Checks if reentrant __dtoa() exists (needs a result prt) -dnl Defines HAVE_DTOA_R on success. -AC_DEFUN([AC_FUNC_DTOA_R], -[AC_REQUIRE([AC_FUNC_DTOA])dnl -AC_CACHE_CHECK([for __dtoa that needs result ptr], ac_cv_func_dtoa_r, - [AC_TRY_RUN([ -extern char *__dtoa(); -int -main() -{ -#ifdef HAVE_DTOA - int decpt, sign; - char *bp; - char *ep; - char *result; - - result = 0; - bp = __dtoa(1.9, 2, 5, &decpt, &sign, &ep, &result); - exit(result == 0); -#else - exit(1); -#endif -}], - [ac_cv_func_dtoa_r=yes], - [ac_cv_func_dtoa_r=no])]) -if test $ac_cv_func_dtoa_r = yes; then - AC_DEFINE(HAVE_DTOA_R) -fi]) - -dnl Checks if working ecvt() exists -dnl Defines HAVE_ECVT on success. -AC_DEFUN([AC_FUNC_ECVT], -[AC_CACHE_CHECK([for working ecvt() ], ac_cv_func_ecvt, - [AC_TRY_RUN([ -extern char *ecvt(); - -sprintf(s) - char *s; -{ - strcpy(s, "DEAD"); -} - -int -main() -{ - int a, b; - -/* exit (strcmp("DEAD", ecvt(1.9, 2, &a, &b)) == 0);*/ - exit (strcmp("19", ecvt(1.9, 2, &a, &b)) != 0); -}], - [ac_cv_func_ecvt=yes], - [ac_cv_func_ecvt=no])]) -if test $ac_cv_func_ecvt = yes; then - AC_DEFINE(HAVE_ECVT) -fi]) - -dnl Checks if working fcvt() exists -dnl Defines HAVE_FCVT on success. -AC_DEFUN([AC_FUNC_FCVT], -[AC_CACHE_CHECK([for working fcvt() ], ac_cv_func_fcvt, - [AC_TRY_RUN([ -extern char *fcvt(); - -sprintf(s) - char *s; -{ - strcpy(s, "DEAD"); -} - -int -main() -{ - int a, b; - -/* exit (strcmp("DEAD", fcvt(1.9, 2, &a, &b)) == 0);*/ - exit (strcmp("190", fcvt(1.9, 2, &a, &b)) != 0); -}], - [ac_cv_func_fcvt=yes], - [ac_cv_func_fcvt=no])]) -if test $ac_cv_func_fcvt = yes; then - AC_DEFINE(HAVE_FCVT) -fi]) - -dnl Checks if working gcvt() exists -dnl Defines HAVE_GCVT on success. -AC_DEFUN([AC_FUNC_GCVT], -[AC_CACHE_CHECK([for working gcvt() ], ac_cv_func_gcvt, - [AC_TRY_RUN([ -extern char *gcvt(); - -sprintf(s) - char *s; -{ - strcpy(s, "DEAD"); -} - -int -main() -{ - char buf[32]; - -/* exit (strcmp("DEAD", gcvt(1.9, 10, buf)) == 0);*/ - exit (strcmp("1.9", gcvt(1.9, 10, buf)) != 0); -}], - [ac_cv_func_gcvt=yes], - [ac_cv_func_gcvt=no])]) -if test $ac_cv_func_gcvt = yes; then - AC_DEFINE(HAVE_GCVT) -fi]) - -dnl Checks if function uname() is available -dnl Defines HAVE_UNAME on success. -AC_DEFUN([AC_FUNC_UNAME], -[AC_CACHE_CHECK([for uname], ac_cv_func_uname, - [AC_TRY_LINK([#include ], -[struct utsname un; -uname(&un);], - [ac_cv_func_uname=yes], - [ac_cv_func_uname=no])]) -if test $ac_cv_func_uname = yes; then - AC_DEFINE(HAVE_UNAME) -fi]) - -dnl Checks if function mlockall() is available -dnl beware HP-UX 10.x it contains a bad mlockall() in libc -dnl Defines HAVE_MLOCK on success. -AC_DEFUN([AC_FUNC_MLOCK], -[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl -AC_CACHE_CHECK([for mlock], ac_cv_func_mlock, - [AC_TRY_RUN([ -#include -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ - if (mlock(0, 0) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -}], - [ac_cv_func_mlock=yes], - [ac_cv_func_mlock=no])]) -if test $ac_cv_func_mlock = yes; then - AC_DEFINE(HAVE_MLOCK) -fi]) - -dnl Checks if function mlockall() is available -dnl beware HP-UX 10.x it contains a bad mlockall() in libc -dnl Defines HAVE_MLOCKALL on success. -AC_DEFUN([AC_FUNC_MLOCKALL], -[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl -AC_CACHE_CHECK([for mlockall], ac_cv_func_mlockall, - [AC_TRY_RUN([ -#include -#include -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -int -main() -{ - if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -} -], - [ac_cv_func_mlockall=yes], - [ac_cv_func_mlockall=no])]) -if test $ac_cv_func_mlockall = yes; then - AC_DEFINE(HAVE_MLOCKALL) -fi]) - -AC_DEFUN([jsAC_FUNC_MMAP], -[AC_REQUIRE([AC_MMAP_SIZEP])dnl -AC_CHECK_HEADERS(unistd.h) -AC_CHECK_FUNCS(getpagesize) -AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, -[AC_TRY_RUN([ -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the filesystem buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propogated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ -#include -#include -#include - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); -} -], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no, -ac_cv_func_mmap_fixed_mapped=no)]) -if test $ac_cv_func_mmap_fixed_mapped = yes; then - AC_DEFINE(HAVE_MMAP) -fi -]) - -AC_DEFUN([AC_MMAP_SIZEP], -[AC_CHECK_HEADERS(unistd.h) -AC_CHECK_FUNCS(getpagesize) -AC_CACHE_CHECK(for mmap that needs ptr to size, ac_cv_func_mmap_sizep, -[AC_TRY_RUN([ -#include -#include -#include -#include -#include - -#ifndef MAP_FILE -#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -jmp_buf jenv; - -int -intr() -{ - signal(SIGSEGV, intr); - longjmp(jenv, 1); -} - -int -main() -{ - char *data, *data2; - int i, pagesize, ps; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - - /* - * Keep a copy, Apollo modifies the value... - */ - ps = pagesize; - - /* - * Apollo mmap() is not a syscall but a library function and fails - * if it tries to dereference 'ps'. We must use setjmp in order to - * catch the failure. - */ - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 != (char *)-1) - exit(1); - - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 == (char *)-1) - exit(1); - - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - close(fd); - unlink("conftestmmap"); - exit(0); -} -], ac_cv_func_mmap_sizep=yes, ac_cv_func_mmap_sizep=no, -ac_cv_func_mmap_sizep=no)]) -if test $ac_cv_func_mmap_sizep = yes; then - AC_DEFINE(_MMAP_WITH_SIZEP) -fi -]) - -dnl Checks if mmap() works to get shared memory -dnl Defines HAVE_SMMAP on success. -AC_DEFUN([AC_FUNC_SMMAP], -[AC_CACHE_CHECK([if mmap works to get shared memory], ac_cv_func_smmap, - [AC_TRY_RUN([ -#include -#include - -#ifndef MAP_ANONYMOUS -# ifdef MAP_ANON -# define MAP_ANONYMOUS MAP_ANON -# endif -#endif - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -char * -mkshare() -{ - int size = 8192; - int f; - char *addr; - -#ifdef MAP_ANONYMOUS /* HP/UX */ - f = -1; - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); -#else - if ((f = open("/dev/zero", 2)) < 0) - exit(1); - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); -#endif - if (addr == (char *)-1) - exit(1); - close(f); - - return (addr); -} - -int -main() -{ - char *addr; - - addr = mkshare(); - *addr = 'I'; - - switch (fork()) { - - case -1: - printf("help\n"); exit(1); - - case 0: /* child */ - *addr = 'N'; - _exit(0); - break; - default: /* parent */ - wait(0); - sleep(1); - break; - } - - if (*addr != 'N') - exit(1); - exit(0); -} -], - [ac_cv_func_smmap=yes], - [ac_cv_func_smmap=no], - [ac_cv_func_smmap=no])]) -if test $ac_cv_func_smmap = yes; then - AC_DEFINE(HAVE_SMMAP) -fi]) - -dnl Checks if sys_siglist[] exists -dnl Defines HAVE_SYS_SIGLIST on success. -AC_DEFUN([AC_FUNC_SYS_SIGLIST], -[AC_CACHE_CHECK([for sys_siglist], ac_cv_func_sys_siglist, - [AC_TRY_RUN([ -int -main() -{ extern char *sys_siglist[]; -if (sys_siglist[1] == 0) - exit(1); -exit(0);}], - [ac_cv_func_sys_siglist=yes], - [ac_cv_func_sys_siglist=no])]) -if test $ac_cv_func_sys_siglist = yes; then - AC_DEFINE(HAVE_SYS_SIGLIST) -fi]) - -dnl Checks for maximum number of bits in minor device number -AC_DEFUN([AC_CHECK_MINOR_BITS], -[AC_REQUIRE([AC_HEADER_MAKEDEV])dnl -changequote(<<, >>)dnl -define(<>, DEV_MINOR_BITS)dnl -dnl The cache variable name. -define(<>, ac_cv_dev_minor_bits)dnl -changequote([, ])dnl -AC_MSG_CHECKING(bits in minor device number) -AC_CACHE_VAL(AC_CV_NAME, -[AC_TRY_RUN([#include -#include -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - FILE *f=fopen("conftestval", "w"); - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - if (!f) exit(1); - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } - fprintf(f, "%d\n", m); - exit(0); -}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl -AC_MSG_RESULT($AC_CV_NAME) -AC_DEFINE_UNQUOTED(AC_MACRO_NAME, $AC_CV_NAME) -undefine([AC_MACRO_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - -dnl Checks for maximum number of bits in minor device numbers are non contiguous -dnl Defines DEV_MINOR_NONCONTIG on success. -AC_DEFUN([AC_CHECK_MINOR_NONCONTIG], -[AC_REQUIRE([AC_HEADER_MAKEDEV])dnl -AC_CACHE_CHECK([whether bits in minor device numbers are non contiguous], ac_cv_dev_minor_noncontig, - [AC_TRY_RUN([ -#include -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } -exit (m == c);}], - [ac_cv_dev_minor_noncontig=yes], - [ac_cv_dev_minor_noncontig=no])]) -if test $ac_cv_dev_minor_noncontig = yes; then - AC_DEFINE(DEV_MINOR_NONCONTIG) -fi]) - -dnl Checks if we may not define our own malloc() -dnl Defines NO_USER_MALLOC if we cannot. -AC_DEFUN([AC_USER_MALLOC], -[AC_CACHE_CHECK([if we may not define our own malloc()], ac_cv_no_user_malloc, - [AC_TRY_RUN([ -static int mcalled; -char * -malloc(s) - int s; -{ - extern char *sbrk(); - - mcalled++; - _exit(0); - return (sbrk(s)); -} - -free(p) char *p;{} - -main() -{ -#ifdef HAVE_STRDUP - strdup("aaa"); -#else - exit(0); -#endif - exit(1);}], - [ac_cv_no_user_malloc=no], - [ac_cv_no_user_malloc=yes])]) -if test $ac_cv_no_user_malloc = yes; then - AC_DEFINE(NO_USER_MALLOC) -fi]) - -dnl Checks if BSD-4.2 compliant getpgrp() exists -dnl Defines HAVE_BSD_GETPGRP on success. -AC_DEFUN([AC_FUNC_BSD_GETPGRP], -[AC_CACHE_CHECK([for BSD compliant getpgrp], ac_cv_func_bsd_getpgrp, - [AC_TRY_RUN([ -int -main() -{ long p; -/* - * POSIX getpgrp() has void parameter... - */ - p = getpgrp(-1); - if (p == getpgrp(1) && p == getpgrp(getpid())) - exit(1); -exit(0);}], - [ac_cv_func_bsd_getpgrp=yes], - [ac_cv_func_bsd_getpgrp=no])]) -if test $ac_cv_func_bsd_getpgrp = yes; then - AC_DEFINE(HAVE_BSD_GETPGRP) -fi]) - -dnl Checks if BSD-4.2 compliant setpgrp() exists -dnl Defines HAVE_BSD_SETPGRP on success. -AC_DEFUN([AC_FUNC_BSD_SETPGRP], -[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl -AC_CACHE_CHECK([for BSD compliant setpgrp], ac_cv_func_bsd_setpgrp, - [AC_TRY_RUN([ -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif -int -main() -{ errno = 0; -/* - * Force illegal pid on BSD - */ -if (setpgrp(-1, 100) < 0 && errno == ESRCH) - exit(0); -exit(1);}], - [ac_cv_func_bsd_setpgrp=yes], - [ac_cv_func_bsd_setpgrp=no])]) -if test $ac_cv_func_bsd_setpgrp = yes; then - AC_DEFINE(HAVE_BSD_SETPGRP) -fi]) - -dnl Checks if C99 compliant isinf() exists -dnl Defines HAVE_C99_ISINF on success. -AC_DEFUN([AC_FUNC_C99_ISINF], -[AC_CACHE_CHECK([for C99 compliant isinf], ac_cv_func_c99_isinf, - [AC_TRY_COMPILE([#include ], [ double d; -#ifndef isinf -The isinf macro is not defined -#endif -return (isinf(d)); -], - [ac_cv_func_c99_isinf=yes], - [ac_cv_func_c99_isinf=no])]) -if test $ac_cv_func_c99_isinf = yes; then - AC_DEFINE(HAVE_C99_ISINF) -fi]) - -dnl Checks if C99 compliant isnan() exists -dnl Defines HAVE_C99_ISNAN on success. -AC_DEFUN([AC_FUNC_C99_ISNAN], -[AC_CACHE_CHECK([for C99 compliant isnan], ac_cv_func_c99_isnan, - [AC_TRY_COMPILE([#include ], [ double d; -#ifndef isnan -The isnan macro is not defined -#endif -return (isnan(d)); -], - [ac_cv_func_c99_isnan=yes], - [ac_cv_func_c99_isnan=no])]) -if test $ac_cv_func_c99_isnan = yes; then - AC_DEFINE(HAVE_C99_ISNAN) -fi]) - -dnl Checks if select() needs more than sys/time.h & sys/types.h -dnl Defines SELECT_NONSTD_HDR on success. -AC_DEFUN([AC_HEADER_SELECT_NONSTD], -[AC_CACHE_CHECK([if select needs nonstd include files], ac_cv_header_slect_nonstd_hdr, - [AC_TRY_COMPILE([#include -#include ], - [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], - [ac_cv_header_slect_nonstd_hdr=no], - [ac_cv_header_slect_nonstd_hdr=yes])]) -if test $ac_cv_header_slect_nonstd_hdr = yes; then - AC_DEFINE(SELECT_NONSTD_HDR) -fi]) - -dnl Checks if select() needs sys/select.h -dnl Defines NEED_SYS_SELECT_H on success. -AC_DEFUN([AC_HEADER_SYS_SELECT], -[AC_REQUIRE([AC_HEADER_SELECT_NONSTD])dnl -AC_CACHE_CHECK([if sys/select.h is needed for select], ac_cv_header_need_sys_select_h, - [AC_TRY_COMPILE([#include -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif], - [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], - [ac_cv_header_need_sys_select_h=yes], - [ac_cv_header_need_sys_select_h=no])]) -if test $ac_cv_header_need_sys_select_h = yes; then - AC_DEFINE(NEED_SYS_SELECT_H) -fi]) - -dnl Checks if select() needs sys/socket.h -dnl Defines NEED_SYS_SOCKET_H on success. -AC_DEFUN([AC_HEADER_SELECT2], -[AC_REQUIRE([AC_HEADER_SELECT_NONSTD])dnl -AC_CACHE_CHECK([if sys/socket.h is needed for select], ac_cv_header_need_sys_socket_h, - [AC_TRY_COMPILE([#include -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif], - [fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);], - [ac_cv_header_need_sys_socket_h=yes], - [ac_cv_header_need_sys_socket_h=no])]) -if test $ac_cv_header_need_sys_socket_h = yes; then - AC_DEFINE(NEED_SYS_SOCKET_H) -fi]) - -dnl Checks if file locking via fcntl() is available -dnl Defines HAVE_FCNTL_LOCKF on success. -AC_DEFUN([AC_FUNC_FCNTL_LOCKF], -[AC_CACHE_CHECK([for file locking via fcntl], ac_cv_func_fcntl_lock, - [AC_TRY_LINK([ -#include -#include ], - [ -struct flock fl; -fcntl(0, F_SETLK, &fl);], - [ac_cv_func_fcntl_lock=yes], - [ac_cv_func_fcntl_lock=no])]) -if test $ac_cv_func_fcntl_lock = yes; then - AC_DEFINE(HAVE_FCNTL_LOCKF) -fi]) - - -dnl Checks if sigsetjmp() is available -dnl Defines HAVE_SIGSETJMP on success. -AC_DEFUN([AC_FUNC_SIGSETJMP], -[AC_CACHE_CHECK([for sigsetjmp], ac_cv_func_sigsetjmp, - [AC_TRY_LINK([ -#include ], - [ -sigjmp_buf jb; -sigsetjmp(jb, 1);], - [ac_cv_func_sigsetjmp=yes], - [ac_cv_func_sigsetjmp=no])]) -if test $ac_cv_func_sigsetjmp = yes; then - AC_DEFINE(HAVE_SIGSETJMP) -fi]) - -dnl Checks if siglongjmp() is available -dnl Defines HAVE_SIGLONGJMP on success. -AC_DEFUN([AC_FUNC_SIGLONGJMP], -[AC_CACHE_CHECK([for siglongjmp], ac_cv_func_siglongjmp, - [AC_TRY_LINK([ -#include ], - [ -sigjmp_buf jb; -sigsetjmp(jb, 1); -siglongjmp(jb, 1);], - [ac_cv_func_siglongjmp=yes], - [ac_cv_func_siglongjmp=no])]) -if test $ac_cv_func_siglongjmp = yes; then - AC_DEFINE(HAVE_SIGLONGJMP) -fi]) - - -dnl Checks if link() allows hard links on symlinks -dnl Defines HAVE_HARD_SYMLINKS on success. -AC_DEFUN([AC_HARD_SYMLINKS], -[AC_CACHE_CHECK([if link() allows hard links on symlinks], ac_cv_hard_symlinks, - [AC_TRY_RUN([ -main() -{ - int ret = 0; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - if (symlink("confdefs.f1", "confdefs.l1") < 0) - ret = 1; - if (link("confdefs.l1", "confdefs.h1") < 0) - ret = 1; - - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - exit(ret); -}], - [ac_cv_hard_symlinks=yes], - [ac_cv_hard_symlinks=no])]) -if test $ac_cv_hard_symlinks = yes; then - AC_DEFINE(HAVE_HARD_SYMLINKS) -fi]) - - -dnl Checks if link() does not follow symlinks -dnl Defines HAVE_LINK_NOFOLLOW on success. -AC_DEFUN([AC_LINK_NOFOLLOW], -[AC_CACHE_CHECK([if link() does not folow symlinks], ac_cv_link_nofollow, - [AC_TRY_RUN([ -#include -#include - -main() -{ - int ret = 0; - int f; - struct stat sb; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - f = creat("confdefs.f1", 0666); - close(f); - if (symlink("confdefs.f1", "confdefs.l1") < 0) - ret = 1; - if (link("confdefs.l1", "confdefs.h1") < 0) - ret = 1; - - stat("confdefs.f1", &sb); - if (sb.st_nlink == 2) - ret = 1; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - exit(ret); -}], - [ac_cv_link_nofollow=yes], - [ac_cv_link_nofollow=no])]) -if test $ac_cv_link_nofollow = yes; then - AC_DEFINE(HAVE_LINK_NOFOLLOW) -fi]) - -dnl Checks if access() does implement E_OK (010) for effective UIDs -dnl Defines HAVE_ACCESS_E_OK on success. -AC_DEFUN([AC_ACCESS_E_OK], -[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl -AC_CHECK_HEADERS(unistd.h) -AC_CACHE_CHECK([if access() does implement E_OK], ac_cv_access_e_ok, - [AC_TRY_RUN([ -# ifdef HAVE_UNISTD_H -# include -# endif -#ifndef R_OK -#define R_OK 4 /* Test for Read permission */ -#define W_OK 2 /* Test for Write permission */ -#define X_OK 1 /* Test for eXecute permission */ -#define F_OK 0 /* Test for existence of File */ -#endif - -#ifndef E_OK -#ifdef EFF_ONLY_OK -#define E_OK EFF_ONLY_OK /* Irix */ -#else -#ifdef EUID_OK -#define E_OK EUID_OK /* UNICOS (0400) */ -#else -#define E_OK 010 /* Test effective uids */ -#endif -#endif -#endif - -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ -#ifdef _MSC_VER -/* - * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will - * cause an exception that results in a popup window. For this reason, the test - * is disabled for "cl", it would not work anyway. - */ - int ret = 1; -#else - int ret = 0; - - if (access(".", F_OK) != 0) - ret = 1; - else if (access(".", E_OK|F_OK) != 0) - ret = 1; - else if (access(".", (R_OK<<4)|F_OK) == 0) - ret = 1; -#endif - - exit(ret); -}], - [ac_cv_access_e_ok=yes], - [ac_cv_access_e_ok=no])]) -if test $ac_cv_access_e_ok = yes; then - AC_DEFINE(HAVE_ACCESS_E_OK) -fi]) - - -dnl XXXXXXXXXXXXXXXXXX Begin Stolen (but modified) from GNU tar XXXXXXXXXXXXXXXXXXXXXXXXXXX -dnl Changes: - -dnl One line has been changed to: [ac_save_CC="${CC-cc}" to default to "'cc" - -dnl AC_SYS_LARGEFILE_MACRO_VALUE test moved from AC_FUNC_FSEEKO into AC_SYS_LARGEFILE -dnl Do not call AC_FUNC_FSEEKO because it does not check whether fseeko() is -dnl available on non Large File mode. There are additionoal tests for fseeko()/ftello() -dnl inside the AC_HAVE_LARGEFILES test. - -dnl largefile_cc_opt definition added - -#serial 18 - -dnl By default, many hosts won't let programs access large files; -dnl one must use special compiler options to get large-file access to work. -dnl For more details about this brain damage please see: -dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html - -dnl Written by Paul Eggert . - -dnl Internal subroutine of AC_SYS_LARGEFILE. -dnl AC_SYS_LARGEFILE_TEST_INCLUDES -AC_DEFUN([AC_SYS_LARGEFILE_TEST_INCLUDES], - [[#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - ]]) - -dnl Internal subroutine of AC_SYS_LARGEFILE. -dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY) -AC_DEFUN([AC_SYS_LARGEFILE_MACRO_VALUE], - [AC_CACHE_CHECK([for $1 value needed for large files], $3, - [$3=no - AC_TRY_COMPILE([$5], - [$6], - , - [AC_TRY_COMPILE([#define $1 $2] -[$5] - , - [$6], - [$3=$2])])]) - if test "[$]$3" != no; then - AC_DEFINE_UNQUOTED([$1], [$]$3, [$4]) - fi]) - -AC_DEFUN([AC_SYS_LARGEFILE], - [AC_ARG_ENABLE(largefile, - [ --disable-largefile omit support for large files]) - if test "$enable_largefile" != no; then - - AC_CACHE_CHECK([for special C compiler options needed for large files], - ac_cv_sys_largefile_CC, - [ac_cv_sys_largefile_CC=no - largefile_cc_opt="" - if test "$GCC" != yes; then - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , , - [ac_save_CC="${CC-cc}" - CC="$CC -n32" - AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , - ac_cv_sys_largefile_CC=' -n32') - CC="$ac_save_CC"]) - fi]) - if test "$ac_cv_sys_largefile_CC" != no; then - CC="$CC$ac_cv_sys_largefile_CC" - largefile_cc_opt="$ac_cv_sys_largefile_CC" - fi - - AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64, - ac_cv_sys_file_offset_bits, - [Number of bits in a file offset, on hosts where this is settable.], - AC_SYS_LARGEFILE_TEST_INCLUDES) - AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1, - ac_cv_sys_large_files, - [Define for large files, on AIX-style hosts.], - AC_SYS_LARGEFILE_TEST_INCLUDES) - AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, - ac_cv_sys_largefile_source, - [Define to make fseeko visible on some hosts (e.g. glibc 2.2).], - [#include ], [return !fseeko;]) - fi - ]) - - -AC_DEFUN([AC_FUNC_FSEEKO], - [AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1, - ac_cv_sys_largefile_source, - [Define to make fseeko visible on some hosts (e.g. glibc 2.2).], - [#include ], [return !fseeko;]) - # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug - # in glibc 2.1.3, but that breaks too many other things. - # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. - - AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko, - [ac_cv_func_fseeko=no - AC_TRY_LINK([#include ], - [return fseeko && fseeko (stdin, 0, 0);], - [ac_cv_func_fseeko=yes])]) - if test $ac_cv_func_fseeko != no; then - AC_DEFINE(HAVE_FSEEKO, 1, - [Define if fseeko (and presumably ftello) exists and is declared.]) - fi]) - - -dnl XXXXXXXXXXXXXXXXXX End Stolen (but modified) from GNU tar XXXXXXXXXXXXXXXXXXXXXXXXXXXXX - -AC_DEFUN([AC_HAVE_LARGEFILES], -[AC_CACHE_CHECK([if system supports Large Files at all], ac_cv_largefiles, - [AC_TRY_COMPILE([#include -#include ], - [ -/* - * Check that off_t can represent 2**63 - 1 correctly. - * We can't simply "#define LARGE_OFF_T 9223372036854775807", - * since some C++ compilers masquerading as C compilers - * incorrectly reject 9223372036854775807. - */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -return !fseeko; -return !ftello;], - [ac_cv_largefiles=yes], - [ac_cv_largefiles=no])]) - if test $ac_cv_largefiles = yes; then - AC_DEFINE(HAVE_LARGEFILES) - fi]) - -dnl Checks for whether fseeko() is available in non large file mode -dnl and whether there is a prototype for fseeko() -dnl Defines HAVE_FSEEKO on success. -AC_DEFUN([AC_SMALL_FSEEKO], -[AC_CACHE_CHECK([for fseeko()], ac_cv_func_fseeko, - [AC_TRY_LINK([#include ], -[return !fseeko;], - [ac_cv_func_fseeko=yes], - [ac_cv_func_fseeko=no])]) -if test $ac_cv_func_fseeko = yes; then - AC_DEFINE(HAVE_FSEEKO) -fi]) - -dnl Checks for whether ftello() is available in non large file mode -dnl and whether there is a prototype for ftello() -dnl Defines HAVE_FTELLO on success. -AC_DEFUN([AC_SMALL_FTELLO], -[AC_CACHE_CHECK([for ftello()], ac_cv_func_ftello, - [AC_TRY_LINK([#include ], -[return !ftello;], - [ac_cv_func_ftello=yes], - [ac_cv_func_ftello=no])]) -if test $ac_cv_func_ftello = yes; then - AC_DEFINE(HAVE_FTELLO) -fi]) - -dnl Checks if compiler allows dynamic arrays. -dnl Defines HAVE_DYN_ARRAYS on success. -AC_DEFUN([AC_DYN_ARRAYS], -[AC_CACHE_CHECK([if compiler allows dynamic arrays], ac_cv_dyn_arrays, - [AC_TRY_COMPILE([], - [extern int __aa(); int len = __aa(); char some_array[len];], - [ac_cv_dyn_arrays=yes], - [ac_cv_dyn_arrays=no])]) -if test $ac_cv_dyn_arrays = yes; then - AC_DEFINE(HAVE_DYN_ARRAYS) -fi]) - -dnl Checks if Linux include file linux/ext2_fs.h is broken -dnl Defines HAVE_BROKEN_LINUX_EXT2_FS_H on success. -AC_DEFUN([AC_BROKEN_LINUX_EXT2_FS_H], -[AC_CACHE_CHECK([if Linux include file linux/ext2_fs.h is broken], ac_cv_broken_linux_ext2_fs_h, - [AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#endif], - [], - [ac_cv_broken_linux_ext2_fs_h=no], - [ac_cv_broken_linux_ext2_fs_h=yes])]) -if test $ac_cv_broken_linux_ext2_fs_h = yes; then - AC_DEFINE(HAVE_BROKEN_LINUX_EXT2_FS_H) -fi]) - -dnl Checks if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken -dnl Defines HAVE_BROKEN_SRC_LINUX_EXT2_FS_H on success. -AC_DEFUN([AC_BROKEN_SRC_LINUX_EXT2_FS_H], -[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken], ac_cv_broken_src_linux_ext2_fs_h, - [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#endif], - [], - [ac_cv_broken_src_linux_ext2_fs_h=no], - [ac_cv_broken_src_linux_ext2_fs_h=yes])]) -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then - AC_DEFINE(HAVE_BROKEN_SRC_LINUX_EXT2_FS_H) -fi]) - -dnl Checks if Linux include file scsi/scsi.h is broken -dnl Defines HAVE_BROKEN_SCSI_SCSI_H on success. -AC_DEFUN([AC_BROKEN_SCSI_SCSI_H], -[AC_CACHE_CHECK([if Linux include file scsi/scsi.h is broken], ac_cv_broken_scsi_scsi_h, - [AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#endif], - [], - [ac_cv_broken_scsi_scsi_h=no], - [ac_cv_broken_scsi_scsi_h=yes])]) -if test $ac_cv_broken_scsi_scsi_h = yes; then - AC_DEFINE(HAVE_BROKEN_SCSI_SCSI_H) -fi]) - -dnl Checks if Linux include file /usr/src/linux/include/scsi/scsi.h is broken -dnl Defines HAVE_BROKEN_SRC_SCSI_SCSI_H on success. -AC_DEFUN([AC_BROKEN_SRC_SCSI_SCSI_H], -[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/scsi/scsi.h is broken], ac_cv_broken_src_scsi_scsi_h, - [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#endif], - [], - [ac_cv_broken_src_scsi_scsi_h=no], - [ac_cv_broken_src_scsi_scsi_h=yes])]) -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_scsi_h = yes; then - AC_DEFINE(HAVE_BROKEN_SRC_SCSI_SCSI_H) -fi]) - -dnl Checks if Linux include file scsi/sg.h is broken -dnl Defines HAVE_BROKEN_SCSI_SG_H on success. -AC_DEFUN([AC_BROKEN_SCSI_SG_H], -[AC_CACHE_CHECK([if Linux include file scsi/sg.h is broken], ac_cv_broken_scsi_sg_h, - [AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#include -#endif], - [], - [ac_cv_broken_scsi_sg_h=no], - [ac_cv_broken_scsi_sg_h=yes])]) -if test $ac_cv_broken_scsi_sg_h = yes; then - AC_DEFINE(HAVE_BROKEN_SCSI_SG_H) -fi]) - -dnl Checks if Linux include file /usr/src/linux/include/scsi/sg.h is broken -dnl Defines HAVE_BROKEN_SRC_SCSI_SG_H on success. -AC_DEFUN([AC_BROKEN_SRC_SCSI_SG_H], -[AC_CACHE_CHECK([if Linux include file /usr/src/linux/include/scsi/sg.h is broken], ac_cv_broken_src_scsi_sg_h, - [___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - AC_TRY_COMPILE([ -#if defined(__linux__) || defined(__linux) || defined(linux) -#include -#include -#endif], - [], - [ac_cv_broken_src_scsi_sg_h=no], - [ac_cv_broken_src_scsi_sg_h=yes])]) -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_sg_h = yes; then - AC_DEFINE(HAVE_BROKEN_SRC_SCSI_SG_H) -fi]) - -AC_DEFUN(AC_PROG_SHELL_BROKEN_E, -[AC_CACHE_CHECK(whether handling of /bin/sh -ce 'command' is broken, ac_cv_prog_shell_broken_e, -[if AC_TRY_COMMAND(/bin/sh -ce 'if false; true; then echo yes; else echo no; fi') | egrep yes >/dev/null 2>&1; then - ac_cv_prog_shell_broken_e=no -else - ac_cv_prog_shell_broken_e=yes -fi -if test $ac_cv_prog_shell_broken_e = yes; then - AC_DEFINE(HAVE_PROG_SHELL_BROKEN_E) -fi])]) diff -Nru smake-1.2a41/conf/acoldnames.m4 smake-1.2a49/conf/acoldnames.m4 --- smake-1.2a41/conf/acoldnames.m4 1999-01-05 13:27:38.000000000 +0000 +++ smake-1.2a49/conf/acoldnames.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,80 +0,0 @@ -dnl Map old names of Autoconf macros to new regularized names. -dnl This file is part of Autoconf. -dnl Copyright (C) 1994 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl General macros. -dnl -define(AC_WARN, [indir([AC_MSG_WARN], $@)])dnl -define(AC_ERROR, [indir([AC_MSG_ERROR], $@)])dnl -AC_DEFUN(AC_PROGRAM_CHECK, [indir([AC_CHECK_PROG], $@)])dnl -AC_DEFUN(AC_PROGRAM_PATH, [indir([AC_PATH_PROG], $@)])dnl -AC_DEFUN(AC_PROGRAMS_CHECK, [indir([AC_CHECK_PROGS], $@)])dnl -AC_DEFUN(AC_PROGRAMS_PATH, [indir([AC_PATH_PROGS], $@)])dnl -AC_DEFUN(AC_PREFIX, [indir([AC_PREFIX_PROGRAM], $@)])dnl -AC_DEFUN(AC_HEADER_EGREP, [indir([AC_EGREP_HEADER], $@)])dnl -AC_DEFUN(AC_PROGRAM_EGREP, [indir([AC_EGREP_CPP], $@)])dnl -AC_DEFUN(AC_TEST_PROGRAM, [indir([AC_TRY_RUN], $@)])dnl -AC_DEFUN(AC_TEST_CPP, [indir([AC_TRY_CPP], $@)])dnl -AC_DEFUN(AC_HEADER_CHECK, [indir([AC_CHECK_HEADER], $@)])dnl -AC_DEFUN(AC_FUNC_CHECK, [indir([AC_CHECK_FUNC], $@)])dnl -AC_DEFUN(AC_HAVE_FUNCS, [indir([AC_CHECK_FUNCS], $@)])dnl -AC_DEFUN(AC_HAVE_HEADERS, [indir([AC_CHECK_HEADERS], $@)])dnl -AC_DEFUN(AC_SIZEOF_TYPE, [indir([AC_CHECK_SIZEOF], $@)])dnl -dnl -dnl Specific macros. -dnl -AC_DEFUN(AC_GCC_TRADITIONAL, [indir([AC_PROG_GCC_TRADITIONAL])])dnl -AC_DEFUN(AC_MINUS_C_MINUS_O, [indir([AC_PROG_CC_C_O])])dnl -AC_DEFUN(AC_SET_MAKE, [indir([AC_PROG_MAKE_SET])])dnl -AC_DEFUN(AC_YYTEXT_POINTER, [indir([AC_DECL_YYTEXT])])dnl -AC_DEFUN(AC_LN_S, [indir([AC_PROG_LN_S])])dnl -AC_DEFUN(AC_STDC_HEADERS, [indir([AC_HEADER_STDC])])dnl -AC_DEFUN(AC_MAJOR_HEADER, [indir([AC_HEADER_MAJOR])])dnl -AC_DEFUN(AC_STAT_MACROS_BROKEN, [indir([AC_HEADER_STAT])])dnl -AC_DEFUN(AC_SYS_SIGLIST_DECLARED, [indir([AC_DECL_SYS_SIGLIST])])dnl -AC_DEFUN(AC_GETGROUPS_T, [indir([AC_TYPE_GETGROUPS])])dnl -AC_DEFUN(AC_UID_T, [indir([AC_TYPE_UID_T])])dnl -AC_DEFUN(AC_SIZE_T, [indir([AC_TYPE_SIZE_T])])dnl -AC_DEFUN(AC_PID_T, [indir([AC_TYPE_PID_T])])dnl -AC_DEFUN(AC_OFF_T, [indir([AC_TYPE_OFF_T])])dnl -AC_DEFUN(AC_MODE_T, [indir([AC_TYPE_MODE_T])])dnl -AC_DEFUN(AC_RETSIGTYPE, [indir([AC_TYPE_SIGNAL])])dnl -AC_DEFUN(AC_MMAP, [indir([AC_FUNC_MMAP])])dnl -AC_DEFUN(AC_VPRINTF, [indir([AC_FUNC_VPRINTF])])dnl -AC_DEFUN(AC_VFORK, [indir([AC_FUNC_VFORK])])dnl -AC_DEFUN(AC_WAIT3, [indir([AC_FUNC_WAIT3])])dnl -AC_DEFUN(AC_ALLOCA, [indir([AC_FUNC_ALLOCA])])dnl -AC_DEFUN(AC_GETLOADAVG, [indir([AC_FUNC_GETLOADAVG])])dnl -AC_DEFUN(AC_UTIME_NULL, [indir([AC_FUNC_UTIME_NULL])])dnl -AC_DEFUN(AC_STRCOLL, [indir([AC_FUNC_STRCOLL])])dnl -AC_DEFUN(AC_SETVBUF_REVERSED, [indir([AC_FUNC_SETVBUF_REVERSED])])dnl -AC_DEFUN(AC_TIME_WITH_SYS_TIME, [indir([AC_HEADER_TIME])])dnl -AC_DEFUN(AC_TIMEZONE, [indir([AC_STRUCT_TIMEZONE])])dnl -AC_DEFUN(AC_ST_BLOCKS, [indir([AC_STRUCT_ST_BLOCKS])])dnl -AC_DEFUN(AC_ST_BLKSIZE, [indir([AC_STRUCT_ST_BLKSIZE])])dnl -AC_DEFUN(AC_ST_RDEV, [indir([AC_STRUCT_ST_RDEV])])dnl -AC_DEFUN(AC_CROSS_CHECK, [indir([AC_C_CROSS])])dnl -AC_DEFUN(AC_CHAR_UNSIGNED, [indir([AC_C_CHAR_UNSIGNED])])dnl -AC_DEFUN(AC_LONG_DOUBLE, [indir([AC_C_LONG_DOUBLE])])dnl -AC_DEFUN(AC_WORDS_BIGENDIAN, [indir([AC_C_BIGENDIAN])])dnl -AC_DEFUN(AC_INLINE, [indir([AC_C_INLINE])])dnl -AC_DEFUN(AC_CONST, [indir([AC_C_CONST])])dnl -AC_DEFUN(AC_LONG_FILE_NAMES, [indir([AC_SYS_LONG_FILE_NAMES])])dnl -AC_DEFUN(AC_RESTARTABLE_SYSCALLS, [indir([AC_SYS_RESTARTABLE_SYSCALLS])])dnl -AC_DEFUN(AC_FIND_X, [indir([AC_PATH_X])])dnl -AC_DEFUN(AC_FIND_XTRA, [indir([AC_PATH_XTRA])])dnl diff -Nru smake-1.2a41/conf/acspecific.m4 smake-1.2a49/conf/acspecific.m4 --- smake-1.2a41/conf/acspecific.m4 2005-07-14 12:35:21.000000000 +0100 +++ smake-1.2a49/conf/acspecific.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,2789 +0,0 @@ -dnl Macros that test for specific features. -dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception, the Free Software Foundation gives unlimited -dnl permission to copy, distribute and modify the configure scripts that -dnl are the output of Autoconf. You need not follow the terms of the GNU -dnl General Public License when using or distributing such scripts, even -dnl though portions of the text of Autoconf appear in them. The GNU -dnl General Public License (GPL) does govern all other use of the material -dnl that constitutes the Autoconf program. -dnl -dnl Certain portions of the Autoconf source text are designed to be copied -dnl (in certain cases, depending on the input) into the output of -dnl Autoconf. We call these the "data" portions. The rest of the Autoconf -dnl source text consists of comments plus executable code that decides which -dnl of the data portions to output in any given case. We call these -dnl comments and executable code the "non-data" portions. Autoconf never -dnl copies any of the non-data portions into its output. -dnl -dnl This special exception to the GPL applies to versions of Autoconf -dnl released by the Free Software Foundation. When you make and -dnl distribute a modified version of Autoconf, you may extend this special -dnl exception to the GPL to apply to your modified version as well, *unless* -dnl your modified version has the potential to copy into its output some -dnl of the text that was the non-data portion of the version that you started -dnl with. (In other words, unless your change moves or copies text from -dnl the non-data portions to the data portions.) If your modification has -dnl such potential, you must delete any notice of this special exception -dnl to the GPL from your modified version. -dnl -dnl Written by David MacKenzie, with help from -dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. - - -dnl ### Checks for programs - - -dnl Check whether to use -n, \c, or newline-tab to separate -dnl checking messages from result messages. -dnl Idea borrowed from dist 3.0. -dnl Internal use only. -AC_DEFUN(AC_PROG_ECHO_N, -[if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi -]) - -AC_DEFUN(AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - AC_CHECK_PROG(CC, cl, cl) ;; - esac - fi - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_WORKS -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -AC_PROG_CC_G -if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -]) - -AC_DEFUN(AC_PROG_CXX, -[AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl -AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, gcc) - -AC_PROG_CXX_WORKS -AC_PROG_CXX_GNU - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -dnl Check whether -g works, even if CXXFLAGS is set, in case the package -dnl plays around with CXXFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -AC_PROG_CXX_G -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -]) - -dnl Determine a Fortran 77 compiler to use. If `F77' is not already set -dnl in the environment, check for `g77', `f77' and `f2c', in that order. -dnl Set the output variable `F77' to the name of the compiler found. -dnl -dnl If using `g77' (the GNU Fortran 77 compiler), then `AC_PROG_F77' -dnl will set the shell variable `G77' to `yes', and empty otherwise. If -dnl the output variable `FFLAGS' was not already set in the environment, -dnl then set it to `-g -02' for `g77' (or `-O2' where `g77' does not -dnl accept `-g'). Otherwise, set `FFLAGS' to `-g' for all other Fortran -dnl 77 compilers. -dnl -dnl AC_PROG_F77() -AC_DEFUN(AC_PROG_F77, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -if test -z "$F77"; then - AC_CHECK_PROGS(F77, g77 f77 f2c) - test -z "$F77" && AC_MSG_ERROR([no acceptable Fortran 77 compiler found in \$PATH]) -fi - -AC_PROG_F77_WORKS -AC_PROG_F77_GNU - -if test $ac_cv_prog_g77 = yes; then - G77=yes -dnl Check whether -g works, even if FFLAGS is set, in case the package -dnl plays around with FFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_FFLAGS="${FFLAGS+set}" - ac_save_FFLAGS="$FFLAGS" - FFLAGS= - AC_PROG_F77_G - if test "$ac_test_FFLAGS" = set; then - FFLAGS="$ac_save_FFLAGS" - elif test $ac_cv_prog_f77_g = yes; then - FFLAGS="-g -O2" - else - FFLAGS="-O2" - fi -else - G77= - test "${FFLAGS+set}" = set || FFLAGS="-g" -fi -]) - -AC_DEFUN(AC_PROG_CC_WORKS, -[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_C -AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_cc_works) -if test $ac_cv_prog_cc_works = no; then - AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_cc_cross) -cross_compiling=$ac_cv_prog_cc_cross -]) - -AC_DEFUN(AC_PROG_CXX_WORKS, -[AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_CPLUSPLUS -AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_cxx_works) -if test $ac_cv_prog_cxx_works = no; then - AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_cxx_cross) -cross_compiling=$ac_cv_prog_cxx_cross -]) - -dnl Test whether the Fortran 77 compiler can compile and link a trivial -dnl Fortran program. Also, test whether the Fortran 77 compiler is a -dnl cross-compiler (which may realistically be the case if the Fortran -dnl compiler is `g77'). -dnl -dnl AC_PROG_F77_WORKS() -AC_DEFUN(AC_PROG_F77_WORKS, -[AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works]) -AC_LANG_SAVE -AC_LANG_FORTRAN77 -AC_TRY_COMPILER(dnl -[ program conftest - end -], ac_cv_prog_f77_works, ac_cv_prog_f77_cross) -AC_LANG_RESTORE -AC_MSG_RESULT($ac_cv_prog_f77_works) -if test $ac_cv_prog_f77_works = no; then - AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.]) -fi -AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler]) -AC_MSG_RESULT($ac_cv_prog_f77_cross) -cross_compiling=$ac_cv_prog_f77_cross -]) - -AC_DEFUN(AC_PROG_CC_GNU, -[AC_CACHE_CHECK(whether we are using GNU C, ac_cv_prog_gcc, -[dnl The semicolon is to pacify NeXT's syntax-checking cpp. -cat > conftest.c </dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi])]) - -AC_DEFUN(AC_PROG_CXX_GNU, -[AC_CACHE_CHECK(whether we are using GNU C++, ac_cv_prog_gxx, -[dnl The semicolon is to pacify NeXT's syntax-checking cpp. -cat > conftest.C </dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi])]) - -dnl Test whether for Fortran 77 compiler is `g77' (the GNU Fortran 77 -dnl Compiler). This test depends on whether the Fortran 77 compiler can -dnl do CPP pre-processing. -dnl -dnl AC_PROG_F77_GNU() -AC_DEFUN(AC_PROG_F77_GNU, -[AC_CACHE_CHECK(whether we are using GNU Fortran 77, ac_cv_prog_g77, -[cat > conftest.fpp </dev/null 2>&1; then - ac_cv_prog_g77=yes -else - ac_cv_prog_g77=no -fi])]) - -AC_DEFUN(AC_PROG_CC_G, -[AC_CACHE_CHECK(whether ${CC-cc} accepts -g, ac_cv_prog_cc_g, -[echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* -])]) - -AC_DEFUN(AC_PROG_CXX_G, -[AC_CACHE_CHECK(whether ${CXX-g++} accepts -g, ac_cv_prog_cxx_g, -[echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* -])]) - -dnl Test whether the Fortran 77 compiler can accept the `-g' option to -dnl enable debugging. -dnl -dnl AC_PROG_F77_G() -AC_DEFUN(AC_PROG_F77_G, -[AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g, -[cat > conftest.f << EOF - program conftest - end -EOF -if test -z "`$F77 -g -c conftest.f 2>&1`"; then - ac_cv_prog_f77_g=yes -else - ac_cv_prog_f77_g=no -fi -rm -f conftest* -])]) - -AC_DEFUN(AC_PROG_GCC_TRADITIONAL, -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_CPP])dnl -if test $ac_cv_prog_gcc = yes; then - AC_CACHE_CHECK(whether ${CC-cc} needs -traditional, - ac_cv_prog_gcc_traditional, -[ ac_pattern="Autoconf.*'x'" - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TIOCGETP], - ac_cv_prog_gcc_traditional=yes, ac_cv_prog_gcc_traditional=no) - - if test $ac_cv_prog_gcc_traditional = no; then - AC_EGREP_CPP($ac_pattern, [#include -Autoconf TCGETA], - ac_cv_prog_gcc_traditional=yes) - fi]) - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi -]) - -AC_DEFUN(AC_PROG_CC_C_O, -[if test "x$CC" != xcc; then - AC_MSG_CHECKING(whether $CC and cc understand -c and -o together) -else - AC_MSG_CHECKING(whether cc understands -c and -o together) -fi -set dummy $CC; ac_cc="`echo [$]2 | -changequote(, )dnl - sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" -changequote([, ])dnl -AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o, -[echo 'foo(){}' > conftest.c -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC' -if AC_TRY_EVAL(ac_try) && - test -f conftest.o && AC_TRY_EVAL(ac_try); -then - eval ac_cv_prog_cc_${ac_cc}_c_o=yes - if test "x$CC" != xcc; then - # Test first that cc exists at all. - if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then - ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC' - if AC_TRY_EVAL(ac_try) && - test -f conftest.o && AC_TRY_EVAL(ac_try); - then - # cc works too. - : - else - # cc exists but doesn't like -o. - eval ac_cv_prog_cc_${ac_cc}_c_o=no - fi - fi - fi -else - eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f conftest* -])dnl -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) - AC_DEFINE(NO_MINUS_C_MINUS_O) -fi -]) - -dnl Test if the Fortran 77 compiler accepts the options `-c' and `-o' -dnl simultaneously, and define `F77_NO_MINUS_C_MINUS_O' if it does not. -dnl -dnl The usefulness of this macro is questionable, as I can't really see -dnl why anyone would use it. The only reason I include it is for -dnl completeness, since a similar test exists for the C compiler. -dnl -dnl AC_PROG_F77_C_O -AC_DEFUN(AC_PROG_F77_C_O, -[AC_BEFORE([$0], [AC_PROG_F77])dnl -AC_MSG_CHECKING(whether $F77 understand -c and -o together) -set dummy $F77; ac_f77="`echo [$]2 | -changequote(, )dnl -sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" -changequote([, ])dnl -AC_CACHE_VAL(ac_cv_prog_f77_${ac_f77}_c_o, -[cat > conftest.f << EOF - program conftest - end -EOF -# We do the `AC_TRY_EVAL' test twice because some compilers refuse to -# overwrite an existing `.o' file with `-o', although they will create -# one. -ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC' -if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then - eval ac_cv_prog_f77_${ac_f77}_c_o=yes -else - eval ac_cv_prog_f77_${ac_f77}_c_o=no -fi -rm -f conftest* -])dnl -if eval "test \"`echo '$ac_cv_prog_f77_'${ac_f77}_c_o`\" = yes"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) - AC_DEFINE(F77_NO_MINUS_C_MINUS_O) -fi -]) - -dnl Define SET_MAKE to set ${MAKE} if make doesn't. -AC_DEFUN(AC_PROG_MAKE_SET, -[AC_MSG_CHECKING(whether ${MAKE-make} sets \${MAKE}) -set dummy ${MAKE-make}; ac_make=`echo "[$]2" | sed 'y%./+-%__p_%'` -AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set, -[cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -changequote(, )dnl -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -changequote([, ])dnl -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake])dnl -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - AC_MSG_RESULT(yes) - SET_MAKE= -else - AC_MSG_RESULT(no) - SET_MAKE="MAKE=${MAKE-make}" -fi -AC_SUBST([SET_MAKE])dnl -]) - -AC_DEFUN(AC_PROG_RANLIB, -[AC_CHECK_PROG(RANLIB, ranlib, ranlib, :)]) - -dnl Check for mawk first since it's generally faster. -AC_DEFUN(AC_PROG_AWK, -[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )]) - -AC_DEFUN(AC_PROG_YACC, -[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)]) - -AC_DEFUN(AC_PROG_CPP, -[AC_MSG_CHECKING(how to run the C preprocessor) -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -AC_CACHE_VAL(ac_cv_prog_CPP, -[ # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. -dnl Use a header file that comes with gcc, so configuring glibc -dnl with a fresh cross-compiler works. - AC_TRY_CPP([#include -Syntax Error], , - CPP="${CC-cc} -E -traditional-cpp" - AC_TRY_CPP([#include -Syntax Error], , - CPP="${CC-cc} -nologo -E" - AC_TRY_CPP([#include -Syntax Error], , CPP=/lib/cpp))) - ac_cv_prog_CPP="$CPP"])dnl - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -AC_MSG_RESULT($CPP) -AC_SUBST(CPP)dnl -]) - -AC_DEFUN(AC_PROG_CXXCPP, -[AC_MSG_CHECKING(how to run the C++ preprocessor) -if test -z "$CXXCPP"; then -AC_CACHE_VAL(ac_cv_prog_CXXCPP, -[AC_LANG_SAVE[]dnl -AC_LANG_CPLUSPLUS[]dnl - CXXCPP="${CXX-g++} -E" - AC_TRY_CPP([#include ], , CXXCPP=/lib/cpp) - ac_cv_prog_CXXCPP="$CXXCPP" -AC_LANG_RESTORE[]dnl -fi])dnl -CXXCPP="$ac_cv_prog_CXXCPP" -AC_MSG_RESULT($CXXCPP) -AC_SUBST(CXXCPP)dnl -]) - -dnl Require finding the C or C++ preprocessor, whichever is the -dnl current language. -AC_DEFUN(AC_REQUIRE_CPP, -[ifelse(AC_LANG, C, [AC_REQUIRE([AC_PROG_CPP])], [AC_REQUIRE([AC_PROG_CXXCPP])])]) - -AC_DEFUN(AC_PROG_LEX, -[AC_CHECK_PROG(LEX, flex, flex, lex) -if test -z "$LEXLIB" -then - case "$LEX" in - flex*) ac_lib=fl ;; - *) ac_lib=l ;; - esac - AC_CHECK_LIB($ac_lib, yywrap, LEXLIB="-l$ac_lib") -fi -AC_SUBST(LEXLIB)]) - -dnl Check if lex declares yytext as a char * by default, not a char[]. -undefine([AC_DECL_YYTEXT]) -AC_DEFUN(AC_DECL_YYTEXT, -[AC_REQUIRE_CPP()dnl -AC_REQUIRE([AC_PROG_LEX])dnl -AC_CACHE_CHECK(lex output file root, ac_cv_prog_lex_root, -[# The minimal lex program is just a single line: %%. But some broken lexes -# (Solaris, I think it was) want two %% lines, so accommodate them. -echo '%% -%%' | $LEX -if test -f lex.yy.c; then - ac_cv_prog_lex_root=lex.yy -elif test -f lexyy.c; then - ac_cv_prog_lex_root=lexyy -else - AC_MSG_ERROR(cannot find output from $LEX; giving up) -fi]) -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root -AC_SUBST(LEX_OUTPUT_ROOT)dnl - -AC_CACHE_CHECK(whether yytext is a pointer, ac_cv_prog_lex_yytext_pointer, -[# POSIX says lex can declare yytext either as a pointer or an array; the -# default is implementation-dependent. Figure out which it is, since -# not all implementations provide the %pointer and %array declarations. -ac_cv_prog_lex_yytext_pointer=no -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c -ac_save_LIBS="$LIBS" -LIBS="$LIBS $LEXLIB" -AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, , ac_cv_prog_lex_yytext_pointer=yes) -LIBS="$ac_save_LIBS" -rm -f "${LEX_OUTPUT_ROOT}.c" -]) -dnl -if test $ac_cv_prog_lex_yytext_pointer = yes; then - AC_DEFINE(YYTEXT_POINTER) -fi -]) - -AC_DEFUN(AC_PROG_INSTALL, -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -AC_MSG_CHECKING(for a BSD compatible install) -if test -z "$INSTALL"; then -AC_CACHE_VAL(ac_cv_path_install, -[ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" -])dnl - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -dnl We do special magic for INSTALL instead of AC_SUBST, to get -dnl relative paths right. -AC_MSG_RESULT($INSTALL) - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -AC_SUBST(INSTALL_PROGRAM)dnl - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -AC_SUBST(INSTALL_DATA)dnl -]) - -AC_DEFUN(AC_PROG_LN_S, -[AC_MSG_CHECKING(whether ln -s works) -AC_CACHE_VAL(ac_cv_prog_LN_S, -[rm -f conftestdata -if ln -s X conftestdata 2>/dev/null -then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" -else - ac_cv_prog_LN_S=ln -fi])dnl -LN_S="$ac_cv_prog_LN_S" -if test "$ac_cv_prog_LN_S" = "ln -s"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi -AC_SUBST(LN_S)dnl -]) - -define(AC_RSH, -[errprint(__file__:__line__: [$0] has been removed; replace it with equivalent code -)m4exit(4)]) - - -dnl ### Checks for header files - - -AC_DEFUN(AC_HEADER_STDC, -[AC_REQUIRE_CPP()dnl -AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc, -[AC_TRY_CPP([#include -#include -#include -#include ], ac_cv_header_stdc=yes, ac_cv_header_stdc=no) - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no) -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -AC_TRY_RUN([#include -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } -], , ac_cv_header_stdc=no, :) -fi]) -if test $ac_cv_header_stdc = yes; then - AC_DEFINE(STDC_HEADERS) -fi -]) - -AC_DEFUN(AC_UNISTD_H, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])dnl -AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))]) - -AC_DEFUN(AC_USG, -[AC_OBSOLETE([$0], - [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl -AC_MSG_CHECKING([for BSD string and memory functions]) -AC_TRY_LINK([#include ], [rindex(0, 0); bzero(0, 0);], - [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); AC_DEFINE(USG)])]) - - -dnl If memchr and the like aren't declared in , include . -dnl To avoid problems, don't check for gcc2 built-ins. -AC_DEFUN(AC_MEMORY_H, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl -AC_MSG_CHECKING(whether string.h declares mem functions) -AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no) -AC_MSG_RESULT($ac_found) -if test $ac_found = no; then - AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)]) -fi -]) - -AC_DEFUN(AC_HEADER_MAJOR, -[AC_CACHE_CHECK(whether sys/types.h defines makedev, - ac_cv_header_sys_types_h_makedev, -[AC_TRY_LINK([#include ], [return makedev(0, 0);], - ac_cv_header_sys_types_h_makedev=yes, ac_cv_header_sys_types_h_makedev=no) -]) - -if test $ac_cv_header_sys_types_h_makedev = no; then -AC_CHECK_HEADER(sys/mkdev.h, [AC_DEFINE(MAJOR_IN_MKDEV)]) - - if test $ac_cv_header_sys_mkdev_h = no; then -AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS)]) - fi -fi -]) - -AC_DEFUN(AC_HEADER_DIRENT, -[ac_header_dirent=no -AC_CHECK_HEADERS_DIRENT(dirent.h sys/ndir.h sys/dir.h ndir.h, - [ac_header_dirent=$ac_hdr; break]) -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then -AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir") -else -AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx") -fi -]) - -dnl Like AC_CHECK_HEADER, except also make sure that HEADER-FILE -dnl defines the type `DIR'. dirent.h on NextStep 3.2 doesn't. -dnl AC_CHECK_HEADER_DIRENT(HEADER-FILE, ACTION-IF-FOUND) -AC_DEFUN(AC_CHECK_HEADER_DIRENT, -[ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING([for $1 that defines DIR]) -AC_CACHE_VAL(ac_cv_header_dirent_$ac_safe, -[AC_TRY_COMPILE([#include -#include <$1>], [DIR *dirp = 0;], - eval "ac_cv_header_dirent_$ac_safe=yes", - eval "ac_cv_header_dirent_$ac_safe=no")])dnl -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - AC_MSG_RESULT(yes) - $2 -else - AC_MSG_RESULT(no) -fi -]) - -dnl Like AC_CHECK_HEADERS, except succeed only for a HEADER-FILE that -dnl defines `DIR'. -dnl AC_CHECK_HEADERS_DIRENT(HEADER-FILE... [, ACTION]) -define(AC_CHECK_HEADERS_DIRENT, -[for ac_hdr in $1 -do -AC_CHECK_HEADER_DIRENT($ac_hdr, -[changequote(, )dnl - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -changequote([, ])dnl - AC_DEFINE_UNQUOTED($ac_tr_hdr) $2])dnl -done]) - -AC_DEFUN(AC_DIR_HEADER, -[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - AC_CHECK_HEADER_DIRENT($ac_hdr, [ac_header_dirent=$ac_hdr; break]) -done - -case "$ac_header_dirent" in -dirent.h) AC_DEFINE(DIRENT) ;; -sys/ndir.h) AC_DEFINE(SYSNDIR) ;; -sys/dir.h) AC_DEFINE(SYSDIR) ;; -ndir.h) AC_DEFINE(NDIR) ;; -esac - -AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, -[AC_TRY_RUN([#include -#include <$ac_header_dirent> -int closedir(); main() { exit(closedir(opendir(".")) != 0); }], - ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) -if test $ac_cv_func_closedir_void = yes; then - AC_DEFINE(VOID_CLOSEDIR) -fi -]) - -AC_DEFUN(AC_HEADER_STAT, -[AC_CACHE_CHECK(whether stat file-mode macros are broken, - ac_cv_header_stat_broken, -[AC_EGREP_CPP([You lose], [#include -#include - -#if defined(S_ISBLK) && defined(S_IFDIR) -# if S_ISBLK (S_IFDIR) -You lose. -# endif -#endif - -#if defined(S_ISBLK) && defined(S_IFCHR) -# if S_ISBLK (S_IFCHR) -You lose. -# endif -#endif - -#if defined(S_ISLNK) && defined(S_IFREG) -# if S_ISLNK (S_IFREG) -You lose. -# endif -#endif - -#if defined(S_ISSOCK) && defined(S_IFREG) -# if S_ISSOCK (S_IFREG) -You lose. -# endif -#endif -], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)]) -if test $ac_cv_header_stat_broken = yes; then - AC_DEFINE(STAT_MACROS_BROKEN) -fi -]) - -AC_DEFUN(AC_DECL_SYS_SIGLIST, -[AC_CACHE_CHECK([for sys_siglist declaration in signal.h or unistd.h], - ac_cv_decl_sys_siglist, -[AC_TRY_COMPILE([#include -#include -/* NetBSD declares sys_siglist in unistd.h. */ -#ifdef HAVE_UNISTD_H -#include -#endif], [char *msg = *(sys_siglist + 1);], - ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)]) -if test $ac_cv_decl_sys_siglist = yes; then - AC_DEFINE(SYS_SIGLIST_DECLARED) -fi -]) - -AC_DEFUN(AC_HEADER_SYS_WAIT, -[AC_CACHE_CHECK([for sys/wait.h that is POSIX.1 compatible], - ac_cv_header_sys_wait_h, -[AC_TRY_COMPILE([#include -#include -#ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif], [int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;], -ac_cv_header_sys_wait_h=yes, ac_cv_header_sys_wait_h=no)]) -if test $ac_cv_header_sys_wait_h = yes; then - AC_DEFINE(HAVE_SYS_WAIT_H) -fi -]) - - -dnl ### Checks for typedefs - - -AC_DEFUN(AC_TYPE_GETGROUPS, -[AC_REQUIRE([AC_TYPE_UID_T])dnl -AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups, -[AC_TRY_RUN( -changequote(<<, >>)dnl -<< -/* Thanks to Mike Rendell for this test. */ -#include -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) -main() -{ - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short but getgroups modifies an array of ints. */ - exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); -} ->>, -changequote([, ])dnl - ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int, - ac_cv_type_getgroups=cross) -if test $ac_cv_type_getgroups = cross; then - dnl When we can't run the test program (we are cross compiling), presume - dnl that has either an accurate prototype for getgroups or none. - dnl Old systems without prototypes probably use int. - AC_EGREP_HEADER([getgroups.*int.*gid_t], unistd.h, - ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int) -fi]) -AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups) -]) - -AC_DEFUN(AC_TYPE_UID_T, -[AC_CACHE_CHECK(for uid_t in sys/types.h, ac_cv_type_uid_t, -[AC_EGREP_HEADER(uid_t, sys/types.h, - ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)]) -if test $ac_cv_type_uid_t = no; then - AC_DEFINE(uid_t, int) - AC_DEFINE(gid_t, int) -fi -]) - -AC_DEFUN(AC_TYPE_SIZE_T, -[AC_CHECK_TYPE(size_t, unsigned)]) - -AC_DEFUN(AC_TYPE_PID_T, -[AC_CHECK_TYPE(pid_t, int)]) - -AC_DEFUN(AC_TYPE_OFF_T, -[AC_CHECK_TYPE(off_t, long)]) - -AC_DEFUN(AC_TYPE_MODE_T, -[AC_CHECK_TYPE(mode_t, int)]) - -dnl Note that identifiers starting with SIG are reserved by ANSI C. -AC_DEFUN(AC_TYPE_SIGNAL, -[AC_CACHE_CHECK([return type of signal handlers], ac_cv_type_signal, -[AC_TRY_COMPILE([#include -#include -#ifdef signal -#undef signal -#endif -#ifdef __cplusplus -extern "C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif -], -[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)]) -AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal) -]) - - -dnl ### Checks for functions - - -AC_DEFUN(AC_FUNC_CLOSEDIR_VOID, -[AC_REQUIRE([AC_HEADER_DIRENT])dnl -AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void, -[AC_TRY_RUN([#include -#include <$ac_header_dirent> -int closedir(); main() { exit(closedir(opendir(".")) != 0); }], - ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)]) -if test $ac_cv_func_closedir_void = yes; then - AC_DEFINE(CLOSEDIR_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_FNMATCH, -[AC_CACHE_CHECK(for working fnmatch, ac_cv_func_fnmatch_works, -# Some versions of Solaris or SCO have a broken fnmatch function. -# So we run a test program. If we are cross-compiling, take no chance. -# Thanks to John Oleynick and Franc,ois Pinard for this test. -[AC_TRY_RUN([main() { exit (fnmatch ("a*", "abc", 0) != 0); }], -ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no, -ac_cv_func_fnmatch_works=no)]) -if test $ac_cv_func_fnmatch_works = yes; then - AC_DEFINE(HAVE_FNMATCH) -fi -]) - -AC_DEFUN(AC_FUNC_MMAP, -[AC_CHECK_HEADERS(unistd.h) -AC_CHECK_FUNCS(getpagesize) -AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, -[AC_TRY_RUN([ -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the filesystem buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propogated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ -#include -#include -#include - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); -} -], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no, -ac_cv_func_mmap_fixed_mapped=no)]) -if test $ac_cv_func_mmap_fixed_mapped = yes; then - AC_DEFINE(HAVE_MMAP) -fi -]) - -AC_DEFUN(AC_FUNC_GETPGRP, -[AC_CACHE_CHECK(whether getpgrp takes no argument, ac_cv_func_getpgrp_void, -[AC_TRY_RUN([ -/* - * If this system has a BSD-style getpgrp(), - * which takes a pid argument, exit unsuccessfully. - * - * Snarfed from Chet Ramey's bash pgrp.c test program - */ -#include -#include - -int pid; -int pg1, pg2, pg3, pg4; -int ng, np, s, child; - -main() -{ - pid = getpid(); - pg1 = getpgrp(0); - pg2 = getpgrp(); - pg3 = getpgrp(pid); - pg4 = getpgrp(1); - - /* - * If all of these values are the same, it's pretty sure that - * we're on a system that ignores getpgrp's first argument. - */ - if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) - exit(0); - - child = fork(); - if (child < 0) - exit(1); - else if (child == 0) { - np = getpid(); - /* - * If this is Sys V, this will not work; pgrp will be - * set to np because setpgrp just changes a pgrp to be - * the same as the pid. - */ - setpgrp(np, pg1); - ng = getpgrp(0); /* Same result for Sys V and BSD */ - if (ng == pg1) { - exit(1); - } else { - exit(0); - } - } else { - wait(&s); - exit(s>>8); - } -} -], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no, - AC_MSG_ERROR(cannot check getpgrp if cross compiling)) -]) -if test $ac_cv_func_getpgrp_void = yes; then - AC_DEFINE(GETPGRP_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_SETPGRP, -[AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void, -AC_TRY_RUN([ -#ifdef HAVE_UNISTD_H -#include -#endif - -/* - * If this system has a BSD-style setpgrp, which takes arguments, exit - * successfully. - */ -main() -{ - if (setpgrp(1,1) == -1) - exit(0); - else - exit(1); -} -], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes, - AC_MSG_ERROR(cannot check setpgrp if cross compiling)) -) -if test $ac_cv_func_setpgrp_void = yes; then - AC_DEFINE(SETPGRP_VOID) -fi -]) - -AC_DEFUN(AC_FUNC_VPRINTF, -[AC_CHECK_FUNC(vprintf, AC_DEFINE(HAVE_VPRINTF)) -if test "$ac_cv_func_vprintf" != yes; then -AC_CHECK_FUNC(_doprnt, AC_DEFINE(HAVE_DOPRNT)) -fi -]) - -AC_DEFUN(AC_FUNC_VFORK, -[AC_REQUIRE([AC_TYPE_PID_T])dnl -AC_CHECK_HEADER(vfork.h, AC_DEFINE(HAVE_VFORK_H)) -AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works, -[AC_TRY_RUN([/* Thanks to Paul Eggert for this test. */ -#include -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_VFORK_H -#include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. - The compiler is told about this with #include , - but some compilers (e.g. gcc -O) don't grok . - Test for this by using a static variable whose address - is put into a register that is clobbered by the vfork. */ -static -#ifdef __cplusplus -sparc_address_test (int arg) -#else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} -main() { - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. - This test uses lots of local variables, at least - as many local variables as main has allocated so far - including compiler temporaries. 4 locals are enough for - gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. - A buggy compiler should reuse the register of parent - for one of the local variables, since it will think that - parent can't possibly be used any more in this routine. - Assigning to the local variable will thus munge parent - in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), - vfork doesn't separate parent from child file descriptors. - If the child closes a descriptor before it execs or exits, - this munges the parent's descriptor as well. - Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - exit( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -}], -ac_cv_func_vfork_works=yes, ac_cv_func_vfork_works=no, AC_CHECK_FUNC(vfork) -ac_cv_func_vfork_works=$ac_cv_func_vfork)]) -if test $ac_cv_func_vfork_works = no; then - AC_DEFINE(vfork, fork) -fi -]) - -AC_DEFUN(AC_FUNC_WAIT3, -[AC_CACHE_CHECK(for wait3 that fills in rusage, ac_cv_func_wait3_rusage, -[AC_TRY_RUN([#include -#include -#include -#include -/* HP-UX has wait3 but does not fill in rusage at all. */ -main() { - struct rusage r; - int i; - /* Use a field that we can force nonzero -- - voluntary context switches. - For systems like NeXT and OSF/1 that don't set it, - also use the system CPU time. And page faults (I/O) for Linux. */ - r.ru_nvcsw = 0; - r.ru_utime.tv_sec = 0; - r.ru_utime.tv_usec = 0; - r.ru_stime.tv_sec = 0; - r.ru_stime.tv_usec = 0; - r.ru_majflt = r.ru_minflt = 0; - switch (fork()) { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ - _exit(0); - case -1: _exit(0); /* What can we do? */ - default: /* Parent. */ - wait3(&i, 0, &r); - sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ - exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } -}], ac_cv_func_wait3_rusage=yes, ac_cv_func_wait3_rusage=no, -ac_cv_func_wait3_rusage=no)]) -if test $ac_cv_func_wait3_rusage = yes; then - AC_DEFINE(HAVE_WAIT3) -fi -]) - -AC_DEFUN(AC_FUNC_ALLOCA, -[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally. -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h, -[AC_TRY_LINK([#include ], [char *p = alloca(2 * sizeof(int));], - ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)]) -if test $ac_cv_header_alloca_h = yes; then - AC_DEFINE(HAVE_ALLOCA_H) -fi - -AC_CACHE_CHECK([for alloca], ac_cv_func_alloca_works, -[AC_TRY_LINK([ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif -], [char *p = (char *) alloca(1);], - ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)]) -if test $ac_cv_func_alloca_works = yes; then - AC_DEFINE(HAVE_ALLOCA) -fi - -if test $ac_cv_func_alloca_works = no; then - # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - ALLOCA=alloca.${ac_objext} - AC_DEFINE(C_ALLOCA) - -AC_CACHE_CHECK(whether alloca needs Cray hooks, ac_cv_os_cray, -[AC_EGREP_CPP(webecray, -[#if defined(CRAY) && ! defined(CRAY2) -webecray -#else -wenotbecray -#endif -], ac_cv_os_cray=yes, ac_cv_os_cray=no)]) -if test $ac_cv_os_cray = yes; then -for ac_func in _getb67 GETB67 getb67; do - AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func) - break]) -done -fi - -AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, -[AC_TRY_RUN([find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} -main () -{ - exit (find_stack_direction() < 0); -}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1, - ac_cv_c_stack_direction=0)]) -AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) -fi -AC_SUBST(ALLOCA)dnl -]) - -AC_DEFUN(AC_FUNC_GETLOADAVG, -[ac_have_func=no # yes means we've found a way to get the load average. - -# Some systems with -lutil have (and need) -lkvm as well, some do not. -# On Solaris, -lkvm requires nlist from -lelf, so check that first -# to get the right answer into the cache. -AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS") -AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS") -# Check for the 4.4BSD definition of getloadavg. -AC_CHECK_LIB(util, getloadavg, - [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) - -if test $ac_have_func = no; then - # There is a commonly available library for RS/6000 AIX. - # Since it is not a standard part of AIX, it might be installed locally. - ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" - AC_CHECK_LIB(getloadavg, getloadavg, - LIBS="-lgetloadavg $LIBS", LIBS="$ac_getloadavg_LIBS") -fi - -# Make sure it is really in the library, if we think we found it. -AC_REPLACE_FUNCS(getloadavg) - -if test $ac_cv_func_getloadavg = yes; then - AC_DEFINE(HAVE_GETLOADAVG) - ac_have_func=yes -else - # Figure out what our getloadavg.c needs. - ac_have_func=no - AC_CHECK_HEADER(sys/dg_sys_info.h, - [ac_have_func=yes; AC_DEFINE(DGUX) - AC_CHECK_LIB(dgc, dg_sys_info)]) - - # We cannot check for , because Solaris 2 does not use dwarf (it - # uses stabs), but it is still SVR4. We cannot check for because - # Irix 4.0.5F has the header but not the library. - if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then - ac_have_func=yes; AC_DEFINE(SVR4) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADER(inq_stats/cpustats.h, - [ac_have_func=yes; AC_DEFINE(UMAX) - AC_DEFINE(UMAX4_3)]) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADER(sys/cpustats.h, - [ac_have_func=yes; AC_DEFINE(UMAX)]) - fi - - if test $ac_have_func = no; then - AC_CHECK_HEADERS(mach/mach.h) - fi - - AC_CHECK_HEADER(nlist.h, - [AC_DEFINE(NLIST_STRUCT) - AC_CACHE_CHECK([for n_un in struct nlist], ac_cv_struct_nlist_n_un, - [AC_TRY_COMPILE([#include ], - [struct nlist n; n.n_un.n_name = 0;], - ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)]) - if test $ac_cv_struct_nlist_n_un = yes; then - AC_DEFINE(NLIST_NAME_UNION) - fi - ])dnl -fi # Do not have getloadavg in system libraries. - -# Some definitions of getloadavg require that the program be installed setgid. -dnl FIXME Don't hardwire the path of getloadavg.c in the top-level directory. -AC_CACHE_CHECK(whether getloadavg requires setgid, - ac_cv_func_getloadavg_setgid, -[AC_EGREP_CPP([Yowza Am I SETGID yet], -[#include "$srcdir/getloadavg.c" -#ifdef LDAV_PRIVILEGED -Yowza Am I SETGID yet -#endif], - ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)]) -if test $ac_cv_func_getloadavg_setgid = yes; then - NEED_SETGID=true; AC_DEFINE(GETLOADAVG_PRIVILEGED) -else - NEED_SETGID=false -fi -AC_SUBST(NEED_SETGID)dnl - -if test $ac_cv_func_getloadavg_setgid = yes; then - AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem, -[changequote(, )dnl - # On Solaris, /dev/kmem is a symlink. Get info on the real file. - ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` - # If we got an error (system does not support symlinks), try without -L. - test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` - ac_cv_group_kmem=`echo $ac_ls_output \ - | sed -ne 's/[ ][ ]*/ /g; - s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; - / /s/.* //;p;'` -changequote([, ])dnl -]) - KMEM_GROUP=$ac_cv_group_kmem -fi -AC_SUBST(KMEM_GROUP)dnl -]) - -AC_DEFUN(AC_FUNC_UTIME_NULL, -[AC_CACHE_CHECK(whether utime accepts a null argument, ac_cv_func_utime_null, -[rm -f conftestdata; > conftestdata -# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. -AC_TRY_RUN([#include -#include -main() { -struct stat s, t; -exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 -&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime -&& t.st_mtime - s.st_mtime < 120)); -}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no, - ac_cv_func_utime_null=no) -rm -f core core.* *.core]) -if test $ac_cv_func_utime_null = yes; then - AC_DEFINE(HAVE_UTIME_NULL) -fi -]) - -AC_DEFUN(AC_FUNC_STRCOLL, -[AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works, -[AC_TRY_RUN([#include -main () -{ - exit (strcoll ("abc", "def") >= 0 || - strcoll ("ABC", "DEF") >= 0 || - strcoll ("123", "456") >= 0); -}], ac_cv_func_strcoll_works=yes, ac_cv_func_strcoll_works=no, -ac_cv_func_strcoll_works=no)]) -if test $ac_cv_func_strcoll_works = yes; then - AC_DEFINE(HAVE_STRCOLL) -fi -]) - -AC_DEFUN(AC_FUNC_SETVBUF_REVERSED, -[AC_CACHE_CHECK(whether setvbuf arguments are reversed, - ac_cv_func_setvbuf_reversed, -[AC_TRY_RUN([#include -/* If setvbuf has the reversed format, exit 0. */ -main () { - /* This call has the arguments reversed. - A reversed system may check and see that the address of main - is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ - if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) - exit(1); - putc('\r', stdout); - exit(0); /* Non-reversed systems segv here. */ -}], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no) -rm -f core core.* *.core]) -if test $ac_cv_func_setvbuf_reversed = yes; then - AC_DEFINE(SETVBUF_REVERSED) -fi -]) - -AC_DEFUN(AC_FUNC_GETMNTENT, -[# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. -AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS", - [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS", - [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])]) -AC_CHECK_FUNC(getmntent, [AC_DEFINE(HAVE_GETMNTENT)])]) - -AC_DEFUN(AC_FUNC_STRFTIME, -[AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)], -[# strftime is in -lintl on SCO UNIX. -AC_CHECK_LIB(intl, strftime, -[AC_DEFINE(HAVE_STRFTIME) -LIBS="-lintl $LIBS"])])]) - -AC_DEFUN(AC_FUNC_MEMCMP, -[AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean, -[AC_TRY_RUN([ -main() -{ - char c0 = 0x40, c1 = 0x80, c2 = 0x81; - exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); -} -], ac_cv_func_memcmp_clean=yes, ac_cv_func_memcmp_clean=no, -ac_cv_func_memcmp_clean=no)]) -test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" -AC_SUBST(LIBOBJS)dnl -]) - -AC_DEFUN(AC_FUNC_SELECT_ARGTYPES, -[AC_MSG_CHECKING([types of arguments for select()]) - AC_CACHE_VAL(ac_cv_func_select_arg234,dnl - [AC_CACHE_VAL(ac_cv_func_select_arg1,dnl - [AC_CACHE_VAL(ac_cv_func_select_arg5,dnl - [for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do - for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do - for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do - AC_TRY_COMPILE(dnl -[#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_TIME_H -#include -#endif -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#ifdef HAVE_SYS_SOCKET_H -#include -#endif -extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl - [ac_not_found=no ; break 3],ac_not_found=yes) - done - done - done - ])dnl AC_CACHE_VAL - ])dnl AC_CACHE_VAL - ])dnl AC_CACHE_VAL - if test "$ac_not_found" = yes; then - ac_cv_func_select_arg1=int - ac_cv_func_select_arg234='int *' - ac_cv_func_select_arg5='struct timeval *' - fi - AC_MSG_RESULT([$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5]) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG1,$ac_cv_func_select_arg1) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG234,($ac_cv_func_select_arg234)) - AC_DEFINE_UNQUOTED(SELECT_TYPE_ARG5,($ac_cv_func_select_arg5)) -]) - - -dnl ### Checks for structure members - - -AC_DEFUN(AC_HEADER_TIME, -[AC_CACHE_CHECK([whether time.h and sys/time.h may both be included], - ac_cv_header_time, -[AC_TRY_COMPILE([#include -#include -#include ], -[struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)]) -if test $ac_cv_header_time = yes; then - AC_DEFINE(TIME_WITH_SYS_TIME) -fi -]) - -AC_DEFUN(AC_STRUCT_TM, -[AC_CACHE_CHECK([whether struct tm is in sys/time.h or time.h], - ac_cv_struct_tm, -[AC_TRY_COMPILE([#include -#include ], -[struct tm *tp; tp->tm_sec;], - ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)]) -if test $ac_cv_struct_tm = sys/time.h; then - AC_DEFINE(TM_IN_SYS_TIME) -fi -]) - -AC_DEFUN(AC_STRUCT_TIMEZONE, -[AC_REQUIRE([AC_STRUCT_TM])dnl -AC_CACHE_CHECK([for tm_zone in struct tm], ac_cv_struct_tm_zone, -[AC_TRY_COMPILE([#include -#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;], - ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)]) -if test "$ac_cv_struct_tm_zone" = yes; then - AC_DEFINE(HAVE_TM_ZONE) -else - AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, -[AC_TRY_LINK( -changequote(<<, >>)dnl -<<#include -#ifndef tzname /* For SGI. */ -extern char *tzname[]; /* RS6000 and others reject char **tzname. */ -#endif>>, -changequote([, ])dnl -[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) - if test $ac_cv_var_tzname = yes; then - AC_DEFINE(HAVE_TZNAME) - fi -fi -]) - -AC_DEFUN(AC_STRUCT_ST_BLOCKS, -[AC_CACHE_CHECK([for st_blocks in struct stat], ac_cv_struct_st_blocks, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_blocks;], -ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)]) -if test $ac_cv_struct_st_blocks = yes; then - AC_DEFINE(HAVE_ST_BLOCKS) -else - LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" -fi -AC_SUBST(LIBOBJS)dnl -]) - -AC_DEFUN(AC_STRUCT_ST_BLKSIZE, -[AC_CACHE_CHECK([for st_blksize in struct stat], ac_cv_struct_st_blksize, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_blksize;], -ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)]) -if test $ac_cv_struct_st_blksize = yes; then - AC_DEFINE(HAVE_ST_BLKSIZE) -fi -]) - -AC_DEFUN(AC_STRUCT_ST_RDEV, -[AC_CACHE_CHECK([for st_rdev in struct stat], ac_cv_struct_st_rdev, -[AC_TRY_COMPILE([#include -#include ], [struct stat s; s.st_rdev;], -ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)]) -if test $ac_cv_struct_st_rdev = yes; then - AC_DEFINE(HAVE_ST_RDEV) -fi -]) - - -dnl ### Checks for compiler characteristics - - -AC_DEFUN(AC_C_CROSS, -[AC_OBSOLETE([$0], [; it has been merged into AC_PROG_CC])]) - -AC_DEFUN(AC_C_CHAR_UNSIGNED, -[AC_CACHE_CHECK(whether char is unsigned, ac_cv_c_char_unsigned, -[if test "$GCC" = yes; then - # GCC predefines this symbol on systems where it applies. -AC_EGREP_CPP(yes, -[#ifdef __CHAR_UNSIGNED__ - yes -#endif -], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) -else -AC_TRY_RUN( -[/* volatile prevents gcc2 from optimizing the test away on sparcs. */ -#if !defined(__STDC__) || __STDC__ != 1 -#define volatile -#endif -main() { - volatile char c = 255; exit(c < 0); -}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no) -fi]) -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then - AC_DEFINE(__CHAR_UNSIGNED__) -fi -]) - -AC_DEFUN(AC_C_LONG_DOUBLE, -[AC_CACHE_CHECK(for long double, ac_cv_c_long_double, -[if test "$GCC" = yes; then - ac_cv_c_long_double=yes -else -AC_TRY_RUN([int main() { -/* The Stardent Vistra knows sizeof(long double), but does not support it. */ -long double foo = 0.0; -/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ -exit(sizeof(long double) < sizeof(double)); }], -ac_cv_c_long_double=yes, ac_cv_c_long_double=no) -fi]) -if test $ac_cv_c_long_double = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE) -fi -]) - -AC_DEFUN(AC_INT_16_BITS, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl -AC_MSG_CHECKING(whether int is 16 bits) -AC_TRY_RUN([main() { exit(sizeof(int) != 2); }], - [AC_MSG_RESULT(yes) - AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no)) -]) - -AC_DEFUN(AC_LONG_64_BITS, -[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl -AC_MSG_CHECKING(whether long int is 64 bits) -AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }], - [AC_MSG_RESULT(yes) - AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no)) -]) - -AC_DEFUN(AC_C_BIGENDIAN, -[AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian, -[ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -AC_TRY_COMPILE([#include -#include ], [ -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif], [# It does; now see whether it defined to BIG_ENDIAN or not. -AC_TRY_COMPILE([#include -#include ], [ -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)]) -if test $ac_cv_c_bigendian = unknown; then -AC_TRY_RUN([main () { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long l; - char c[sizeof (long)]; - } u; - u.l = 1; - exit (u.c[sizeof (long) - 1] == 1); -}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes) -fi]) -if test $ac_cv_c_bigendian = yes; then - AC_DEFINE(WORDS_BIGENDIAN) -fi -]) - -dnl Do nothing if the compiler accepts the inline keyword. -dnl Otherwise define inline to __inline__ or __inline if one of those work, -dnl otherwise define inline to be empty. -AC_DEFUN(AC_C_INLINE, -[AC_CACHE_CHECK([for inline], ac_cv_c_inline, -[ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - AC_TRY_COMPILE(, [} $ac_kw foo() {], [ac_cv_c_inline=$ac_kw; break]) -done -]) -case "$ac_cv_c_inline" in - inline | yes) ;; - no) AC_DEFINE(inline, ) ;; - *) AC_DEFINE_UNQUOTED(inline, $ac_cv_c_inline) ;; -esac -]) - -AC_DEFUN(AC_C_CONST, -[dnl This message is consistent in form with the other checking messages, -dnl and with the result message. -AC_CACHE_CHECK([for working const], ac_cv_c_const, -[AC_TRY_COMPILE(, -changequote(<<, >>)dnl -<< -/* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; -/* SunOS 4.1.1 cc rejects this. */ -char const *const *ccp; -char **p; -/* NEC SVR4.0.2 mips cc rejects this. */ -struct point {int x, y;}; -static struct point const zero = {0,0}; -/* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in an arm - of an if-expression whose if-part is not a constant expression */ -const char *g = "string"; -ccp = &g + (g ? g-g : 0); -/* HPUX 7.0 cc rejects these. */ -++ccp; -p = (char**) ccp; -ccp = (char const *const *) p; -{ /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; -} -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; -} -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; -} -{ /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} ->>, -changequote([, ])dnl -ac_cv_c_const=yes, ac_cv_c_const=no)]) -if test $ac_cv_c_const = no; then - AC_DEFINE(const, ) -fi -]) - -AC_DEFUN(AC_C_STRINGIZE, [ -AC_REQUIRE([AC_PROG_CPP]) -AC_MSG_CHECKING([for preprocessor stringizing operator]) -AC_CACHE_VAL(ac_cv_c_stringize, -AC_EGREP_CPP([#teststring],[ -#define x(y) #y - -char *s = x(teststring); -], ac_cv_c_stringize=no, ac_cv_c_stringize=yes)) -if test "${ac_cv_c_stringize}" = yes -then - AC_DEFINE(HAVE_STRINGIZE) -fi -AC_MSG_RESULT([${ac_cv_c_stringize}]) -])dnl - -define(AC_ARG_ARRAY, -[errprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments -)m4exit(4)]) - -dnl Check the object extension used by the compiler: typically .o or -dnl .obj. If this is called, some other behaviour will change, -dnl determined by ac_objext. -AC_DEFUN(AC_OBJEXT, -[AC_MSG_CHECKING([for object suffix]) -AC_CACHE_VAL(ac_cv_objext, -[rm -f conftest* -echo 'int i = 1;' > conftest.$ac_ext -if AC_TRY_EVAL(ac_compile); then - for ac_file in conftest.*; do - case $ac_file in - *.c) ;; - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; - esac - done -else - AC_MSG_ERROR([installation or configuration problem; compiler does not work]) -fi -rm -f conftest*]) -AC_MSG_RESULT($ac_cv_objext) -OBJEXT=$ac_cv_objext -ac_objext=$ac_cv_objext -AC_SUBST(OBJEXT)]) - -dnl Determine the linker flags (e.g. `-L' and `-l') for the Fortran 77 -dnl intrinsic and run-time libraries that are required to successfully -dnl link a Fortran 77 program or shared library. The output variable -dnl FLIBS is set to these flags. -dnl -dnl This macro is intended to be used in those situations when it is -dnl necessary to mix, e.g. C++ and Fortran 77, source code into a single -dnl program or shared library. -dnl -dnl For example, if object files from a C++ and Fortran 77 compiler must -dnl be linked together, then the C++ compiler/linker must be used for -dnl linking (since special C++-ish things need to happen at link time -dnl like calling global constructors, instantiating templates, enabling -dnl exception support, etc.). -dnl -dnl However, the Fortran 77 intrinsic and run-time libraries must be -dnl linked in as well, but the C++ compiler/linker doesn't know how to -dnl add these Fortran 77 libraries. Hence, the macro -dnl `AC_F77_LIBRARY_LDFLAGS' was created to determine these Fortran 77 -dnl libraries. -dnl -dnl This macro was packaged in its current form by Matthew D. Langston -dnl . However, nearly all of this macro -dnl came from the `OCTAVE_FLIBS' macro in `octave-2.0.13/aclocal.m4', -dnl and full credit should go to John W. Eaton for writing this -dnl extremely useful macro. Thank you John. -dnl -dnl AC_F77_LIBRARY_LDFLAGS() -AC_DEFUN(AC_F77_LIBRARY_LDFLAGS, -[AC_MSG_CHECKING([for Fortran 77 libraries]) -AC_REQUIRE([AC_PROG_F77]) -AC_REQUIRE([AC_CANONICAL_HOST]) -AC_CACHE_VAL(ac_cv_flibs, -[changequote(, )dnl -dnl Write a minimal program and compile it with -v. I don't know what -dnl to do if your compiler doesn't have -v... -echo " END" > conftest.f -foutput=`${F77} -v -o conftest conftest.f 2>&1` -dnl -dnl The easiest thing to do for xlf output is to replace all the commas -dnl with spaces. Try to only do that if the output is really from xlf, -dnl since doing that causes problems on other systems. -dnl -xlf_p=`echo $foutput | grep xlfentry` -if test -n "$xlf_p"; then - foutput=`echo $foutput | sed 's/,/ /g'` -fi -dnl -ld_run_path=`echo $foutput | \ - sed -n -e 's/^.*LD_RUN_PATH *= *\([^ ]*\).*/\1/p'` -dnl -dnl We are only supposed to find this on Solaris systems... -dnl Uh, the run path should be absolute, shouldn't it? -dnl -case "$ld_run_path" in - /*) - if test "$ac_cv_prog_gcc" = yes; then - ld_run_path="-Xlinker -R -Xlinker $ld_run_path" - else - ld_run_path="-R $ld_run_path" - fi - ;; - *) - ld_run_path= - ;; -esac -dnl -flibs= -lflags= -dnl -dnl If want_arg is set, we know we want the arg to be added to the list, -dnl so we don't have to examine it. -dnl -want_arg= -dnl -for arg in $foutput; do - old_want_arg=$want_arg - want_arg= -dnl -dnl None of the options that take arguments expect the argument to -dnl start with a -, so pretend we didn't see anything special. -dnl - if test -n "$old_want_arg"; then - case "$arg" in - -*) - old_want_arg= - ;; - esac - fi - case "$old_want_arg" in - '') - case $arg in - /*.a) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - lflags="$lflags $arg" - fi - ;; - -bI:*) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - if test "$ac_cv_prog_gcc" = yes; then - lflags="$lflags -Xlinker $arg" - else - lflags="$lflags $arg" - fi - fi - ;; - -lang* | -lcrt0.o | -lc | -lgcc) - arg= - ;; - -[lLR]) - want_arg=$arg - arg= - ;; - -[lLR]*) - exists=false - for f in $lflags; do - if test x$arg = x$f; then - exists=true - fi - done - if $exists; then - arg= - else - case "$arg" in - -lkernel32) - case "$canonical_host_type" in - *-*-cygwin*) - arg= - ;; - *) - lflags="$lflags $arg" - ;; - esac - ;; - -lm) - ;; - *) - lflags="$lflags $arg" - ;; - esac - fi - ;; - -u) - want_arg=$arg - arg= - ;; - -Y) - want_arg=$arg - arg= - ;; - *) - arg= - ;; - esac - ;; - -[lLR]) - arg="$old_want_arg $arg" - ;; - -u) - arg="-u $arg" - ;; - -Y) -dnl -dnl Should probably try to ensure unique directory options here too. -dnl This probably only applies to Solaris systems, and then will only -dnl work with gcc... -dnl - arg=`echo $arg | sed -e 's%^P,%%'` - SAVE_IFS=$IFS - IFS=: - list= - for elt in $arg; do - list="$list -L$elt" - done - IFS=$SAVE_IFS - arg="$list" - ;; - esac -dnl - if test -n "$arg"; then - flibs="$flibs $arg" - fi -done -if test -n "$ld_run_path"; then - flibs_result="$ld_run_path $flibs" -else - flibs_result="$flibs" -fi -changequote([, ])dnl -ac_cv_flibs="$flibs_result"]) -FLIBS="$ac_cv_flibs" -AC_SUBST(FLIBS)dnl -AC_MSG_RESULT($FLIBS) -]) - - -dnl ### Checks for operating system services - - -AC_DEFUN(AC_SYS_INTERPRETER, -[# Pull the hash mark out of the macro call to avoid m4 problems. -ac_msg="whether #! works in shell scripts" -AC_CACHE_CHECK($ac_msg, ac_cv_sys_interpreter, -[echo '#! /bin/cat -exit 69 -' > conftest -chmod u+x conftest -(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) -if test $? -ne 69; then - ac_cv_sys_interpreter=yes -else - ac_cv_sys_interpreter=no -fi -rm -f conftest]) -interpval="$ac_cv_sys_interpreter" -]) - -define(AC_HAVE_POUNDBANG, -[errprint(__file__:__line__: [$0 has been replaced by AC_SYS_INTERPRETER, taking no arguments -])m4exit(4)]) - -AC_DEFUN(AC_SYS_LONG_FILE_NAMES, -[AC_CACHE_CHECK(for long file names, ac_cv_sys_long_file_names, -[ac_cv_sys_long_file_names=yes -# Test for long file names in all the places we know might matter: -# . the current directory, where building will happen -# $prefix/lib where we will be installing things -# $exec_prefix/lib likewise -# eval it to expand exec_prefix. -# $TMPDIR if set, where it might want to write temporary files -# if $TMPDIR is not set: -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise -if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then - ac_tmpdirs="$TMPDIR" -else - ac_tmpdirs='/tmp /var/tmp /usr/tmp' -fi -for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do - test -d $ac_dir || continue - test -w $ac_dir || continue # It is less confusing to not echo anything here. - (echo 1 > $ac_dir/conftest9012345) 2>/dev/null - (echo 2 > $ac_dir/conftest9012346) 2>/dev/null - val=`cat $ac_dir/conftest9012345 2>/dev/null` - if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then - ac_cv_sys_long_file_names=no - rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null - break - fi - rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null -done]) -if test $ac_cv_sys_long_file_names = yes; then - AC_DEFINE(HAVE_LONG_FILE_NAMES) -fi -]) - -AC_DEFUN(AC_SYS_RESTARTABLE_SYSCALLS, -[AC_CACHE_CHECK(for restartable system calls, ac_cv_sys_restartable_syscalls, -[AC_TRY_RUN( -[/* Exit 0 (true) if wait returns something other than -1, - i.e. the pid of the child, which means that wait was restarted - after getting the signal. */ -#include -#include -ucatch (isig) { } -main () { - int i = fork (), status; - if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } - signal (SIGINT, ucatch); - status = wait(&i); - if (status == -1) wait(&i); - exit (status == -1); -} -], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)]) -if test $ac_cv_sys_restartable_syscalls = yes; then - AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS) -fi -]) - -AC_DEFUN(AC_PATH_X, -[AC_REQUIRE_CPP()dnl Set CPP; we run AC_PATH_X_DIRECT conditionally. -# If we find X, set shell vars x_includes and x_libraries to the -# paths, otherwise set no_x=yes. -# Uses ac_ vars as temps to allow command line to override cache and checks. -# --without-x overrides everything else, but does not touch the cache. -AC_MSG_CHECKING(for X) - -AC_ARG_WITH(x, [ --with-x use the X Window System]) -# $have_x is `yes', `no', `disabled', or empty when we do not yet know. -if test "x$with_x" = xno; then - # The user explicitly disabled X. - have_x=disabled -else - if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then - # Both variables are already set. - have_x=yes - else -AC_CACHE_VAL(ac_cv_have_x, -[# One or both of the vars are not set, and there is no cached value. -ac_x_includes=NO ac_x_libraries=NO -AC_PATH_X_XMKMF -AC_PATH_X_DIRECT -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then - # Didn't find X anywhere. Cache the known absence of X. - ac_cv_have_x="have_x=no" -else - # Record where we found X for the cache. - ac_cv_have_x="have_x=yes \ - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" -fi])dnl - fi - eval "$ac_cv_have_x" -fi # $with_x != no - -if test "$have_x" != yes; then - AC_MSG_RESULT($have_x) - no_x=yes -else - # If each of the values was on the command line, it overrides each guess. - test "x$x_includes" = xNONE && x_includes=$ac_x_includes - test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries - # Update the cache value to reflect the command line values. - ac_cv_have_x="have_x=yes \ - ac_x_includes=$x_includes ac_x_libraries=$x_libraries" - AC_MSG_RESULT([libraries $x_libraries, headers $x_includes]) -fi -]) - -dnl Internal subroutine of AC_PATH_X. -dnl Set ac_x_includes and/or ac_x_libraries. -AC_DEFUN(AC_PATH_X_XMKMF, -[rm -fr conftestdir -if mkdir conftestdir; then - cd conftestdir - # Make sure to not put "make" in the Imakefile rules, since we grep it out. - cat > Imakefile <<'EOF' -acfindx: - @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' -EOF - if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl; do - if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && - test -f $ac_im_libdir/libX11.$ac_extension; then - ac_im_usrlibdir=$ac_im_libdir; break - fi - done - # Screen out bogus values from the imake configuration. They are - # bogus both because they are the default anyway, and because - # using them would break gcc on systems where it needs fixed includes. - case "$ac_im_incroot" in - /usr/include) ;; - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; - esac - case "$ac_im_usrlibdir" in - /usr/lib | /lib) ;; - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; - esac - fi - cd .. - rm -fr conftestdir -fi -]) - -dnl Internal subroutine of AC_PATH_X. -dnl Set ac_x_includes and/or ac_x_libraries. -AC_DEFUN(AC_PATH_X_DIRECT, -[if test "$ac_x_includes" = NO; then - # Guess where to find include files, by looking for this one X11 .h file. - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h - - # First, try using that file with no special directory specified. -AC_TRY_CPP([#include <$x_direct_test_include>], -[# We can compile using X headers with no special include directory. -ac_x_includes=], -[# Look for the header file in a standard set of common directories. -# Check X11 before X11Rn because it is often a symlink to the current release. - for ac_dir in \ - /usr/X11/include \ - /usr/X11R6/include \ - /usr/X11R5/include \ - /usr/X11R4/include \ - \ - /usr/include/X11 \ - /usr/include/X11R6 \ - /usr/include/X11R5 \ - /usr/include/X11R4 \ - \ - /usr/local/X11/include \ - /usr/local/X11R6/include \ - /usr/local/X11R5/include \ - /usr/local/X11R4/include \ - \ - /usr/local/include/X11 \ - /usr/local/include/X11R6 \ - /usr/local/include/X11R5 \ - /usr/local/include/X11R4 \ - \ - /usr/X386/include \ - /usr/x386/include \ - /usr/XFree86/include/X11 \ - \ - /usr/include \ - /usr/local/include \ - /usr/unsupported/include \ - /usr/athena/include \ - /usr/local/x11r5/include \ - /usr/lpp/Xamples/include \ - \ - /usr/openwin/include \ - /usr/openwin/share/include \ - ; \ - do - if test -r "$ac_dir/$x_direct_test_include"; then - ac_x_includes=$ac_dir - break - fi - done]) -fi # $ac_x_includes = NO - -if test "$ac_x_libraries" = NO; then - # Check for the libraries. - - test -z "$x_direct_test_library" && x_direct_test_library=Xt - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc - - # See if we find them without any special options. - # Don't add to $LIBS permanently. - ac_save_LIBS="$LIBS" - LIBS="-l$x_direct_test_library $LIBS" -AC_TRY_LINK(, [${x_direct_test_function}()], -[LIBS="$ac_save_LIBS" -# We can link X programs with no special library path. -ac_x_libraries=], -[LIBS="$ac_save_LIBS" -# First see if replacing the include by lib works. -# Check X11 before X11Rn because it is often a symlink to the current release. -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ - /usr/X11/lib \ - /usr/X11R6/lib \ - /usr/X11R5/lib \ - /usr/X11R4/lib \ - \ - /usr/lib/X11 \ - /usr/lib/X11R6 \ - /usr/lib/X11R5 \ - /usr/lib/X11R4 \ - \ - /usr/local/X11/lib \ - /usr/local/X11R6/lib \ - /usr/local/X11R5/lib \ - /usr/local/X11R4/lib \ - \ - /usr/local/lib/X11 \ - /usr/local/lib/X11R6 \ - /usr/local/lib/X11R5 \ - /usr/local/lib/X11R4 \ - \ - /usr/X386/lib \ - /usr/x386/lib \ - /usr/XFree86/lib/X11 \ - \ - /usr/lib \ - /usr/local/lib \ - /usr/unsupported/lib \ - /usr/athena/lib \ - /usr/local/x11r5/lib \ - /usr/lpp/Xamples/lib \ - /lib/usr/lib/X11 \ - \ - /usr/openwin/lib \ - /usr/openwin/share/lib \ - ; \ -do -dnl Don't even attempt the hair of trying to link an X program! - for ac_extension in a so sl; do - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then - ac_x_libraries=$ac_dir - break 2 - fi - done -done]) -fi # $ac_x_libraries = NO -]) - -dnl Find additional X libraries, magic flags, etc. -AC_DEFUN(AC_PATH_XTRA, -[AC_REQUIRE([AC_PATH_X])dnl -if test "$no_x" = yes; then - # Not all programs may use this symbol, but it does not hurt to define it. - AC_DEFINE(X_DISPLAY_MISSING) - X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= -else - if test -n "$x_includes"; then - X_CFLAGS="$X_CFLAGS -I$x_includes" - fi - - # It would also be nice to do this for all -L options, not just this one. - if test -n "$x_libraries"; then - X_LIBS="$X_LIBS -L$x_libraries" -dnl FIXME banish uname from this macro! - # For Solaris; some versions of Sun CC require a space after -R and - # others require no space. Words are not sufficient . . . . - case "`(uname -sr) 2>/dev/null`" in - "SunOS 5"*) - AC_MSG_CHECKING(whether -R must be followed by a space) - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" - AC_TRY_LINK(, , ac_R_nospace=yes, ac_R_nospace=no) - if test $ac_R_nospace = yes; then - AC_MSG_RESULT(no) - X_LIBS="$X_LIBS -R$x_libraries" - else - LIBS="$ac_xsave_LIBS -R $x_libraries" - AC_TRY_LINK(, , ac_R_space=yes, ac_R_space=no) - if test $ac_R_space = yes; then - AC_MSG_RESULT(yes) - X_LIBS="$X_LIBS -R $x_libraries" - else - AC_MSG_RESULT(neither works) - fi - fi - LIBS="$ac_xsave_LIBS" - esac - fi - - # Check for system-dependent libraries X programs must link with. - # Do this before checking for the system-independent R6 libraries - # (-lICE), since we may need -lsocket or whatever for X linking. - - if test "$ISC" = yes; then - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" - else - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X - # libraries were built with DECnet support. And karl@cs.umb.edu says - # the Alpha needs dnet_stub (dnet does not exist). - AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) - if test $ac_cv_lib_dnet_dnet_ntoa = no; then - AC_CHECK_LIB(dnet_stub, dnet_ntoa, - [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"]) - fi - - # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, - # to get the SysV transport functions. - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) - # needs -lnsl. - # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to dickey@clark.net. - AC_CHECK_FUNC(gethostbyname) - if test $ac_cv_func_gethostbyname = no; then - AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") - fi - - # lieder@skyler.mavd.honeywell.com says without -lsocket, - # socket/setsockopt and other routines are undefined under SCO ODT - # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary - # on later versions), says simon@lia.di.epfl.ch: it contains - # gethostby* variants that don't use the nameserver (or something). - # -lsocket must be given before -lnsl if both are needed. - # We assume that if connect needs -lnsl, so does gethostbyname. - AC_CHECK_FUNC(connect) - if test $ac_cv_func_connect = no; then - AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , - $X_EXTRA_LIBS) - fi - - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. - AC_CHECK_FUNC(remove) - if test $ac_cv_func_remove = no; then - AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") - fi - - # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. - AC_CHECK_FUNC(shmat) - if test $ac_cv_func_shmat = no; then - AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc") - fi - fi - - # Check for libraries that X11R6 Xt/Xaw programs need. - ac_save_LDFLAGS="$LDFLAGS" - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" - # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to - # check for ICE first), but we must link in the order -lSM -lICE or - # we get undefined symbols. So assume we have SM if we have ICE. - # These have to be linked with before -lX11, unlike the other - # libraries we check for below, so use a different variable. - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. - AC_CHECK_LIB(ICE, IceConnectionNumber, - [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) - LDFLAGS="$ac_save_LDFLAGS" - -fi -AC_SUBST(X_CFLAGS)dnl -AC_SUBST(X_PRE_LIBS)dnl -AC_SUBST(X_LIBS)dnl -AC_SUBST(X_EXTRA_LIBS)dnl -]) - -dnl The old Cygwin32 macro is deprecated. -AC_DEFUN(AC_CYGWIN32, -[AC_OBSOLETE([$0], [; instead use AC_CYGWIN])dnl -AC_CYGWIN]) - -dnl Check for Cygwin. This is a way to set the right value for -dnl EXEEXT. -AC_DEFUN(AC_CYGWIN, -[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin, -[AC_TRY_COMPILE(,[ -#ifndef __CYGWIN__ -#define __CYGWIN__ __CYGWIN32__ -#endif -return __CYGWIN__;], -ac_cv_cygwin=yes, ac_cv_cygwin=no) -rm -f conftest*]) -CYGWIN= -test "$ac_cv_cygwin" = yes && CYGWIN=yes]) - -dnl Check for mingw32. This is another way to set the right value for -dnl EXEEXT. -AC_DEFUN(AC_MINGW32, -[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -ac_cv_mingw32=yes, ac_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$ac_cv_mingw32" = yes && MINGW32=yes]) - -dnl Check for EMX/OS2. This is another way to set the right value for -dnl EXEEXT. -AC_DEFUN(AC_EMXOS2, -[AC_CACHE_CHECK(for EMX/OS2 environment, ac_cv_emxos2, -[AC_TRY_COMPILE(,[return __EMX__;], -ac_cv_emxos2=yes, ac_cv_emxos2=no) -rm -f conftest*]) -AC_CACHE_VAL(ac_cv_libpre, -if test "$ac_cv_emxos2" = yes ; then - ac_cv_libpre= -else - ac_cv_libpre=lib -fi -) -EMXOS2= -test "$ac_cv_emxos2" = yes && EMXOS2=yes]) - -dnl Check for the extension used for executables. This knows that we -dnl add .exe for Cygwin or mingw32. Otherwise, it compiles a test -dnl executable. If this is called, the executable extensions will be -dnl automatically used by link commands run by the configure script. -AC_DEFUN(AC_EXEEXT, -[AC_REQUIRE([AC_CYGWIN]) -AC_REQUIRE([AC_MINGW32]) -AC_REQUIRE([AC_EMXOS2]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(ac_cv_exeext, -[if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then - ac_cv_exeext=.exe -else - rm -f conftest* - echo 'int main () { return 0; }' > conftest.$ac_ext - ac_cv_exeext= - if AC_TRY_EVAL(ac_link); then - for file in conftest.*; do - case $file in - *.c | *.o | *.obj) ;; - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; - esac - done - else - ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` - ret=$? - nf=`echo "$ccout" | grep 'not found'` - if test $ret = 127 -a -n "$nf" ; then # Korn Shell - ccout="" - fi - if test ! -n "$ccout" ; then - AC_MSG_ERROR([installation or configuration problem: C compiler ${CC-cc} not found.]) - fi - AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.]) - fi - rm -f conftest* - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no -fi]) -EXEEXT="" -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} -AC_MSG_RESULT(${ac_cv_exeext}) -dnl Setting ac_exeext will implicitly change the ac_link command. -ac_exeext=$EXEEXT -AC_SUBST(EXEEXT)]) - - -dnl ### Checks for UNIX variants -dnl These are kludges which should be replaced by a single POSIX check. -dnl They aren't cached, to discourage their use. - - -AC_DEFUN(AC_AIX, -[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_MSG_CHECKING(for AIX) -AC_EGREP_CPP(yes, -[#ifdef _AIX - yes -#endif -], [AC_MSG_RESULT(yes); AC_DEFINE(_ALL_SOURCE)], AC_MSG_RESULT(no)) -]) - -AC_DEFUN(AC_MINIX, -[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=) -if test "$MINIX" = yes; then - AC_DEFINE(_POSIX_SOURCE) - AC_DEFINE(_POSIX_1_SOURCE, 2) - AC_DEFINE(_MINIX) -fi -]) - -AC_DEFUN(AC_ISC_POSIX, -[AC_REQUIRE([AC_PROG_CC])dnl -AC_BEFORE([$0], [AC_TRY_COMPILE])dnl -AC_BEFORE([$0], [AC_TRY_RUN])dnl -AC_MSG_CHECKING(for POSIXized ISC) -if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1 -then - AC_MSG_RESULT(yes) - ISC=yes # If later tests want to check for ISC. - AC_DEFINE(_POSIX_SOURCE) - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi -else - AC_MSG_RESULT(no) - ISC= -fi -]) - -AC_DEFUN(AC_XENIX_DIR, -[AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl -AC_REQUIRE([AC_DIR_HEADER])dnl -AC_MSG_CHECKING(for Xenix) -AC_EGREP_CPP(yes, -[#if defined(M_XENIX) && !defined(M_UNIX) - yes -#endif -], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=]) -if test "$XENIX" = yes; then - # Make sure -ldir precedes -lx. - test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS" - LIBS="$LIBS -lx" -fi -]) - -AC_DEFUN(AC_DYNIX_SEQ, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl -AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS") -]) - -AC_DEFUN(AC_IRIX_SUN, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl -AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS") -]) - -AC_DEFUN(AC_SCO_INTL, -[AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl -AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS") -]) diff -Nru smake-1.2a41/conf/autoconf smake-1.2a49/conf/autoconf --- smake-1.2a41/conf/autoconf 2003-09-13 14:04:52.000000000 +0100 +++ smake-1.2a49/conf/autoconf 1970-01-01 01:00:00.000000000 +0100 @@ -1,160 +0,0 @@ -#! /bin/sh -# autoconf -- create `configure' using m4 macros -# Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# If given no args, create `configure' from template file `configure.in'. -# With one arg, create a configure script on standard output from -# the given template file. - -usage="\ -Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir] - [-l dir] [--localdir=dir] [--version] [template-file]" - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -: ${AC_MACRODIR=/usr/local/share/autoconf} -#: ${M4=/usr/local/bin/m4} -: ${M4=/opt/sfw/bin/gm4} -: ${AWK=nawk} -case "${M4}" in -/*) # Handle the case that m4 has moved since we were configured. - # It may have been found originally in a build directory. - test -f "${M4}" || M4=m4 ;; -esac - -: ${TMPDIR=/tmp} -tmpout=${TMPDIR}/acout.$$ -localdir= -show_version=no - -while test $# -gt 0 ; do - case "${1}" in - -h | --help | --h* ) - echo "${usage}" 1>&2; exit 0 ;; - --localdir=* | --l*=* ) - localdir="`echo \"${1}\" | sed -e 's/^[^=]*=//'`" - shift ;; - -l | --localdir | --l*) - shift - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } - localdir="${1}" - shift ;; - --macrodir=* | --m*=* ) - AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`" - shift ;; - -m | --macrodir | --m* ) - shift - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } - AC_MACRODIR="${1}" - shift ;; - --version | --v* ) - show_version=yes; shift ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "${usage}" 1>&2; exit 1 ;; - * ) - break ;; - esac -done - -if test $show_version = yes; then - version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \ - $AC_MACRODIR/acgeneral.m4` - echo "Autoconf version $version" - exit 0 -fi - -case $# in - 0) infile=configure.in ;; - 1) infile="$1" ;; - *) echo "$usage" >&2; exit 1 ;; -esac - -trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15 - -tmpin=${TMPDIR}/acin.$$ # Always set this, to avoid bogus errors from some rm's. -if test z$infile = z-; then - infile=$tmpin - cat > $infile -elif test ! -r "$infile"; then - echo "autoconf: ${infile}: No such file or directory" >&2 - exit 1 -fi - -if test -n "$localdir"; then - use_localdir="-I$localdir -DAC_LOCALDIR=$localdir" -else - use_localdir= -fi - -# Use the frozen version of Autoconf if available. -r= f= -# Some non-GNU m4's don't reject the --help option, so give them /dev/null. -case `$M4 --help < /dev/null 2>&1` in -*reload-state*) test -r $AC_MACRODIR/autoconf.m4f && { r=--reload f=f; } ;; -*traditional*) ;; -*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin; exit 1 ;; -esac - -$M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout || - { rm -f $tmpin $tmpout; exit 2; } - -# You could add your own prefixes to pattern if you wanted to check for -# them too, e.g. pattern='\(AC_\|ILT_\)', except that UNIX sed doesn't do -# alternation. -pattern="AC_" - -status=0 -if grep "^[^#]*${pattern}" $tmpout > /dev/null 2>&1; then - echo "autoconf: Undefined macros:" >&2 - sed -n "s/^[^#]*\\(${pattern}[_A-Za-z0-9]*\\).*/\\1/p" $tmpout | - while read macro; do - grep -n "^[^#]*$macro" $infile /dev/null - test $? -eq 1 && echo >&2 "***BUG in Autoconf--please report*** $macro" - done | sort -u >&2 - status=1 -fi - -if test $# -eq 0; then - exec 4> configure; chmod +x configure -else - exec 4>&1 -fi - -# Put the real line numbers into configure to make config.log more helpful. -$AWK ' -/__oline__/ { printf "%d:", NR + 1 } - { print } -' $tmpout | sed ' -/__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/ -' >&4 - -rm -f $tmpout - -exit $status diff -Nru smake-1.2a41/conf/autoconf.m4 smake-1.2a49/conf/autoconf.m4 --- smake-1.2a41/conf/autoconf.m4 1999-01-05 13:27:52.000000000 +0000 +++ smake-1.2a49/conf/autoconf.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -dnl Driver that loads the Autoconf macro files. -dnl Requires GNU m4. -dnl This file is part of Autoconf. -dnl Copyright (C) 1994 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl Written by David MacKenzie. -dnl -include(acgeneral.m4)dnl -builtin(include, acspecific.m4)dnl -builtin(include, acoldnames.m4)dnl -dnl Do not sinclude acsite.m4 here, because it may not be installed -dnl yet when Autoconf is frozen. -dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. diff -Nru smake-1.2a41/conf/autoheader.m4 smake-1.2a49/conf/autoheader.m4 --- smake-1.2a41/conf/autoheader.m4 1999-01-05 13:28:37.000000000 +0000 +++ smake-1.2a49/conf/autoheader.m4 1970-01-01 01:00:00.000000000 +0100 @@ -1,110 +0,0 @@ -dnl Driver and redefinitions of some Autoconf macros for autoheader. -dnl This file is part of Autoconf. -dnl Copyright (C) 1994, 1995 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl Written by Roland McGrath. -dnl -include(acgeneral.m4)dnl -builtin(include, acspecific.m4)dnl -builtin(include, acoldnames.m4)dnl - -dnl These are alternate definitions of some macros, which produce -dnl strings in the output marked with "@@@" so we can easily extract -dnl the information we want. The `#' at the end of the first line of -dnl each definition seems to be necessary to prevent m4 from eating -dnl the newline, which makes the @@@ not always be at the beginning of -dnl a line. - -define([AC_CHECK_FUNCS], [# -@@@funcs="$funcs $1"@@@ -ifelse([$2], , , [ -# If it was found, we do: -$2 -# If it was not found, we do: -$3 -]) -]) - -define([AC_CHECK_HEADERS], [# -@@@headers="$headers $1"@@@ -ifelse([$2], , , [ -# If it was found, we do: -$2 -# If it was not found, we do: -$3 -]) -]) - -define([AC_CHECK_HEADERS_DIRENT], [# -@@@headers="$headers $1"@@@ -]) - -define([AC_CHECK_LIB], [# - ifelse([$3], , [ -@@@libs="$libs $1"@@@ -], [ -# If it was found, we do: -$3 -# If it was not found, we do: -$4 -]) -]) - -define([AC_HAVE_LIBRARY], [# -changequote(<<, >>)dnl -define(<>, dnl -patsubst(patsubst($1, <>, <<\1>>), <<-l>>, <<>>))dnl -changequote([, ])dnl - ifelse([$2], , [ -@@@libs="$libs AC_LIB_NAME"@@@ -], [ -# If it was found, we do: -$2 -# If it was not found, we do: -$3 -]) -]) - -define([AC_CHECK_SIZEOF], [# -@@@types="$types,$1"@@@ -]) - -define([AC_CONFIG_HEADER], [# -define([AC_CONFIG_H], patsubst($1, [ .*$], []))dnl -@@@config_h=AC_CONFIG_H@@@ -]) - -define([AC_DEFINE], [# -ifelse([$3],,[# -@@@syms="$syms $1"@@@ -], [# -@@@verbatim="$verbatim -/* $3 */ -#undef $1 -"@@@ -])]) - -define([AC_DEFINE_UNQUOTED], [# -ifelse([$3],,[# -@@@syms="$syms $1"@@@ -], [# -@@@verbatim="$verbatim -/* $3 */ -#undef $1 -"@@@ -])]) diff -Nru smake-1.2a41/conf/config.guess smake-1.2a49/conf/config.guess --- smake-1.2a41/conf/config.guess 2006-06-29 14:15:03.000000000 +0100 +++ smake-1.2a49/conf/config.guess 1970-01-01 01:00:00.000000000 +0100 @@ -1,981 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. -# -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Written by Per Bothner . -# The master version of this file is at the FSF in /home/gd/gnu/lib. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit system type (host/target name). -# -# Only a few systems have been added to this list; please add others -# (but try to keep the structure clean). -# - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - cat <dummy.s - .globl main - .ent main -main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - ${CC-cc} dummy.s -o dummy 2>/dev/null - if test "$?" = 0 ; then - ./dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - fi - rm -f dummy.s dummy - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-cbm-sysv4 - exit 0;; - amiga:NetBSD:*:*) - echo m68k-cbm-netbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - arm32:NetBSD:*:*) - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - SR2?01:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - atari*:NetBSD:*:*) - echo m68k-atari-netbsd${UNAME_RELEASE} - exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:NetBSD:*:*) - echo m68k-sun-netbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:NetBSD:*:*) - echo m68k-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - macppc:NetBSD:*:*) - echo powerpc-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - sed 's/^ //' << EOF >dummy.c - int main (argc, argv) int argc; char **argv; { - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - ${CC-cc} dummy.c -o dummy \ - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - sed 's/^ //' << EOF >dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:4) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=4.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 | 9000/820 | 9000/800 ) - sed 's/^ //' << EOF >dummy.c - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy` - rm -f dummy.c dummy - esac - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - sed 's/^ //' << EOF >dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i?86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; - F300:UNIX_System_V:*:*) - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - F301:UNIX_System_V:*:*) - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` - exit 0 ;; - hp3[0-9][05]:NetBSD:*:*) - echo m68k-hp-netbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; - *:NetBSD:*:*) - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - x86:Interix*:3*) - echo i586-pc-interix3 - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; - *:Linux:*:*) - # uname on the ARM produces all sorts of strangeness, and we need to - # filter it out. - case "$UNAME_MACHINE" in - arm* | sa110*) UNAME_MACHINE="arm" ;; - esac - - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. - ld_help_string=`ld --help 2>&1` - ld_supported_emulations=`echo $ld_help_string \ - | sed -ne '/supported emulations:/!d - s/[ ][ ]*/ /g - s/.*supported emulations: *// - s/ .*// - p'` - case "$ld_supported_emulations" in - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; - esac - - if test "${UNAME_MACHINE}" = "alpha" ; then - sed 's/^ //' <dummy.s - .globl main - .ent main - main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - LIBC="" - ${CC-cc} dummy.s -o dummy 2>/dev/null - if test "$?" = 0 ; then - ./dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - - objdump --private-headers dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f dummy.s dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 - elif test "${UNAME_MACHINE}" = "mips" ; then - cat >dummy.c </dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - else - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; - esac - # Determine whether the default compiler is a.out or elf - cat >dummy.c < -main(argc, argv) - int argc; - char *argv[]; -{ -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} -EOF - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - fi ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) - echo i386-sequent-sysv4 - exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:MS-DOS:5:50) - # DJGPP v2 - echo ${UNAME_MACHINE}-pc-msdos - exit 0 ;; - i?86:*:5:*) - # Fixed at (any) Pentium or better - UNAME_MACHINE=i586 - if [ ${UNAME_SYSTEM} = "UnixWare" ] || - [ ${UNAME_SYSTEM} = "OpenUNIX" ]; then - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - pc:*:*:*) - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - i?86:LynxOS:2.*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:*:6*) - echo mips-sony-newsos6 - exit 0 ;; - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - "Power Macintosh":Rhapsody:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - "Power Macintosh":"Mac OS":*) - echo powerpc-apple-macosx${UNAME_RELEASE} - exit 0 ;; - "Power Macintosh":"Darwin":*) - echo powerpc-apple-macosx${UNAME_RELEASE} - exit 0 ;; - *:OS/2:*:*) - echo "i386-pc-os2_emx" - exit 0;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -cat >dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -#if !defined (ultrix) - printf ("vax-dec-bsd\n"); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 -rm -f dummy.c dummy - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -if [ x$CONFIG_NOFAIL = xTRUE ]; then - echo unknownCPU-unknownMFR-unknownOS - exit 0 -fi - -#echo '(Unable to guess system type)' 1>&2 - -exit 1 diff -Nru smake-1.2a41/conf/config.sub smake-1.2a49/conf/config.sub --- smake-1.2a41/conf/config.sub 2006-06-29 14:11:48.000000000 +0100 +++ smake-1.2a49/conf/config.sub 1970-01-01 01:00:00.000000000 +0100 @@ -1,972 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script, version 1.1. -# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -if [ x$1 = x ] -then - echo Configuration name missing. 1>&2 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 - echo "or $0 ALIAS" 1>&2 - echo where ALIAS is a recognized configuration type. 1>&2 - exit 1 -fi - -# First pass through any local machine types. -case $1 in - *local*) - echo $1 - exit 0 - ;; - *) - ;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - linux-gnu*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple) - os= - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0? \ - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ - | mipstx39 | mipstx39el \ - | sparc | sparclet | sparclite | sparc64 | v850) - basic_machine=$basic_machine-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i[34567]86) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0?-* \ - | ia64-* \ - | alpha-* | alphaev5-* | alphaev56-* | alphaev6-* | we32k-* | cydra-* \ - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mipstx39-* | mipstx39el-* \ - | f301-* \ - | x86-* | x86_64-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-cbm - ;; - amigaos | amigados) - basic_machine=m68k-cbm - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-cbm - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | ymp) - basic_machine=ymp-cray - os=-unicos - ;; - cray2) - basic_machine=cray2-cray - os=-unicos - ;; - [ctj]90-cray) - basic_machine=c90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - os=-mvs - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i[34567]86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i[34567]86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i[34567]86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - miniframe) - basic_machine=m68000-convergent - ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - np1) - basic_machine=np1-gould - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc-unknown) - basic_machine=parisc-unknown - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | nexen) - basic_machine=i586-pc - ;; - pentiumpro | p6 | k6 | 6x86) - basic_machine=i686-pc - ;; - pentiumii | pentium2) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | nexen-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | k6-* | 6x86-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=rs6000-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - xmp) - basic_machine=xmp-cray - os=-unicos - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sparc) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -os2* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -macos* ) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -ctix* | -uts*) - os=-sysv - ;; - -ns2 ) - os=-nextstep2 - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - # For sys5.3 apollo - -sys5.3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -xenix) - os=-xenix - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-semi) - os=-aout - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f301-fujitsu) - os=-uxpv - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -hpux*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -vxsim* | -vxworks*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os diff -Nru smake-1.2a41/conf/configure smake-1.2a49/conf/configure --- smake-1.2a41/conf/configure 2007-03-06 15:02:56.000000000 +0000 +++ smake-1.2a49/conf/configure 1970-01-01 01:00:00.000000000 +0100 @@ -1,14017 +0,0 @@ -#! /bin/sh - -# From configure.in Revision - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#serial 18 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --disable-largefile omit support for large files" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -cc=* | --cc=* ) - CC="$ac_optarg" ; echo using $CC as compiler ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=xconfig.h.in - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:761: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - -echo $ac_n "checking if /bin/sh is bash""... $ac_c" 1>&6 -echo "configure:783: checking if /bin/sh is bash" >&5 -if eval "test \"`echo '$''{'ac_cv_shell_is_bash'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - -ac_err=`< /dev/null sh -version 2> /dev/null | grep bash` -if test -n "$ac_err"; then - ac_cv_shell_is_bash=yes -else - ac_cv_shell_is_bash=no -fi - -fi - -echo "$ac_t""$ac_cv_shell_is_bash" 1>&6 -if test $ac_cv_shell_is_bash = yes; then - cat >> confdefs.h <<\EOF -#define SHELL_IS_BASH 1 -EOF - -fi -echo $ac_n "checking for object suffix""... $ac_c" 1>&6 -echo "configure:805: checking for object suffix" >&5 -if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - rm -f conftest* -echo 'int i = 1;' > conftest.$ac_ext -if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - for ac_file in conftest.*; do - case $ac_file in - *.c) ;; - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; - esac - done -else - { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_objext" 1>&6 -OBJEXT=$ac_cv_objext -ac_objext=$ac_cv_objext - -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:829: checking for Cygwin environment" >&5 -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_cygwin=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_cygwin=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_cygwin" 1>&6 -CYGWIN= -test "$ac_cv_cygwin" = yes && CYGWIN=yes -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:862: checking for mingw32 environment" >&5 -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_mingw32" 1>&6 -MINGW32= -test "$ac_cv_mingw32" = yes && MINGW32=yes -echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 -echo "configure:891: checking for EMX/OS2 environment" >&5 -if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_emxos2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_emxos2=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_emxos2" 1>&6 -if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$ac_cv_emxos2" = yes ; then - ac_cv_libpre= -else - ac_cv_libpre=lib -fi - -fi - -EMXOS2= -test "$ac_cv_emxos2" = yes && EMXOS2=yes - - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:934: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then - ac_cv_exeext=.exe -else - rm -f conftest* - echo 'int main () { return 0; }' > conftest.$ac_ext - ac_cv_exeext= - if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then - for file in conftest.*; do - case $file in - *.c | *.o | *.obj) ;; - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; - esac - done - else - ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` - ret=$? - nf=`echo "$ccout" | grep 'not found'` - if test $ret = 127 -a -n "$nf" ; then # Korn Shell - ccout="" - fi - if test ! -n "$ccout" ; then - { echo "configure: error: installation or configuration problem: C compiler ${CC-cc} not found." 1>&2; exit 1; } - fi - { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } - fi - rm -f conftest* - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no -fi -fi - -EXEEXT="" -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} -echo "$ac_t""${ac_cv_exeext}" 1>&6 -ac_exeext=$EXEEXT - -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:974: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1056: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:1084: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - - -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1112: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then - : -else - cat > conftest.$ac_ext < -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -echo $ac_n "checking for UNIX-98 compliant inttypes.h""... $ac_c" 1>&6 -echo "configure:1216: checking for UNIX-98 compliant inttypes.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; -int64_t ll; uint64_t ull; -intptr_t ip; uintptr_t uip; -; return 0; } -EOF -if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_inttypes=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_inttypes=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_inttypes" 1>&6 -if test $ac_cv_header_inttypes = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_INTTYPES_H 1 -EOF - -fi -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:1254: checking for $ac_hdr that defines DIR" >&5 -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include <$ac_hdr> -int main() { -DIR *dirp = 0; -; return 0; } -EOF -if { (eval echo configure:1267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:1292: checking for opendir in -ldir" >&5 -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldir $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -ldir" -else - echo "$ac_t""no" 1>&6 -fi - -else -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:1333: checking for opendir in -lx" >&5 -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lx $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -lx" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:1375: checking whether stat file-mode macros are broken" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include - -#if defined(S_ISBLK) && defined(S_IFDIR) -# if S_ISBLK (S_IFDIR) -You lose. -# endif -#endif - -#if defined(S_ISBLK) && defined(S_IFCHR) -# if S_ISBLK (S_IFCHR) -You lose. -# endif -#endif - -#if defined(S_ISLNK) && defined(S_IFREG) -# if S_ISLNK (S_IFREG) -You lose. -# endif -#endif - -#if defined(S_ISSOCK) && defined(S_IFREG) -# if S_ISSOCK (S_IFREG) -You lose. -# endif -#endif - -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "You lose" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_header_stat_broken=yes -else - rm -rf conftest* - ac_cv_header_stat_broken=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 -if test $ac_cv_header_stat_broken = yes; then - cat >> confdefs.h <<\EOF -#define STAT_MACROS_BROKEN 1 -EOF - -fi - -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:1431: checking whether time.h and sys/time.h may both be included" >&5 -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -int main() { -struct tm *tp; -; return 0; } -EOF -if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_time=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_time=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_time" 1>&6 -if test $ac_cv_header_time = yes; then - cat >> confdefs.h <<\EOF -#define TIME_WITH_SYS_TIME 1 -EOF - -fi - -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:1466: checking for sys/wait.h that is POSIX.1 compatible" >&5 -if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif -int main() { -int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; -; return 0; } -EOF -if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_sys_wait_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_wait_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 -if test $ac_cv_header_sys_wait_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SYS_WAIT_H 1 -EOF - -fi - -echo $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6 -echo "configure:1508: checking if select needs nonstd include files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_slect_nonstd_hdr=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_slect_nonstd_hdr=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6 -if test $ac_cv_header_slect_nonstd_hdr = yes; then - cat >> confdefs.h <<\EOF -#define SELECT_NONSTD_HDR 1 -EOF - -fi -echo $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6 -echo "configure:1541: checking if sys/select.h is needed for select" >&5 -if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_need_sys_select_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_need_sys_select_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6 -if test $ac_cv_header_need_sys_select_h = yes; then - cat >> confdefs.h <<\EOF -#define NEED_SYS_SELECT_H 1 -EOF - -fi -echo $ac_n "checking if sys/socket.h is needed for select""... $ac_c" 1>&6 -echo "configure:1578: checking if sys/socket.h is needed for select" >&5 -if eval "test \"`echo '$''{'ac_cv_header_need_sys_socket_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_need_sys_socket_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_need_sys_socket_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_need_sys_socket_h" 1>&6 -if test $ac_cv_header_need_sys_socket_h = yes; then - cat >> confdefs.h <<\EOF -#define NEED_SYS_SOCKET_H 1 -EOF - -fi -for ac_hdr in stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h sys/file.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1618: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in getopt.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1658: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in limits.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1698: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in a.out.h aouthdr.h elf.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1738: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in malloc.h termios.h termio.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1778: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in pwd.h grp.h sys/acl.h acllib.h acl/libacl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1818: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in shadow.h syslog.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1858: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1898: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/syscall.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1938: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in mach/machine.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1978: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in mntent.h sys/mntent.h sys/mnttab.h sys/mount.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2018: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in wait.h sys/resource.h procfs.h sys/procfs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2058: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/utsname.h sys/priocntl.h sys/rtpriocntl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2098: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2138: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/shm.h sys/ipc.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2178: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2218: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/types.h sys/stat.h types.h stat.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2258: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/stypes.h sys/filedesc.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2298: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in poll.h sys/poll.h sys/select.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2338: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in netdb.h sys/socket.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2378: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in ieeefp.h fp.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2418: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in values.h float.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2458: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in arpa/inet.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2498: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in bsd/dev/scsireg.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2538: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/bsdtty.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2578: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in OS.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2618: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in ext2fs/ext2_fs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2658: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in attr/xattr.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2698: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in crt_externs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2738: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in fnmatch.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2778: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in libintl.h locale.h langinfo.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2818: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in wchar.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2858: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in priv.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2898: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in exec_attr.h secdb.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2938: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in direct.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2978: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in pthread.h thread.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3018: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - - -echo $ac_n "checking for header file containing major(), minor() and makedev()""... $ac_c" 1>&6 -echo "configure:3056: checking for header file containing major(), minor() and makedev()" >&5 -if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_header_makedev=none -cat > conftest.$ac_ext < -#include -int main() { -int i = major(0); i = minor(0); i = makedev(0,0); -; return 0; } -EOF -if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_makedev=sys/mkdev.h -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -if test $ac_cv_header_makedev = none; then - cat > conftest.$ac_ext < -#include -int main() { -int i = major(0); i = minor(0); i = makedev(0,0); -; return 0; } -EOF -if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_makedev=sys/sysmacros.h -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -fi - -echo "$ac_t""$ac_cv_header_makedev" 1>&6 -if test $ac_cv_header_makedev = sys/mkdev.h; then - cat >> confdefs.h <<\EOF -#define MAJOR_IN_MKDEV 1 -EOF - -fi -if test $ac_cv_header_makedev = sys/sysmacros.h; then - cat >> confdefs.h <<\EOF -#define MAJOR_IN_SYSMACROS 1 -EOF - -fi - - -echo $ac_n "checking bits in minor device number""... $ac_c" 1>&6 -echo "configure:3115: checking bits in minor device number" >&5 -if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - FILE *f=fopen("conftestval", "w"); - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - if (!f) exit(1); - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } - fprintf(f, "%d\n", m); - exit(0); -} -EOF -if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_dev_minor_bits=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_dev_minor_bits=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_dev_minor_bits" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3200: checking whether bits in minor device numbers are non contiguous" >&5 -if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } -exit (m == c);} -EOF -if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_dev_minor_noncontig=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_dev_minor_noncontig=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6 -if test $ac_cv_dev_minor_noncontig = yes; then - cat >> confdefs.h <<\EOF -#define DEV_MINOR_NONCONTIG 1 -EOF - -fi - -echo $ac_n "checking for _filbuf()""... $ac_c" 1>&6 -echo "configure:3283: checking for _filbuf()" >&5 -if eval "test \"`echo '$''{'ac_cv_func__filbuf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -_filbuf(f); -_flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func__filbuf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func__filbuf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func__filbuf" 1>&6 -if test $ac_cv_func__filbuf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE__FILBUF 1 -EOF - -fi -echo $ac_n "checking for __filbuf()""... $ac_c" 1>&6 -echo "configure:3328: checking for __filbuf()" >&5 -if eval "test \"`echo '$''{'ac_cv_func___filbuf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -__filbuf(f); -__flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func___filbuf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func___filbuf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func___filbuf" 1>&6 -if test $ac_cv_func___filbuf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___FILBUF 1 -EOF - -fi -echo $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6 -echo "configure:3373: checking for USG derived STDIO" >&5 -if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -#ifdef HAVE___FILBUF -__filbuf(f); -__flsbuf(c, f); -#else -# ifdef HAVE__FILBUF -_filbuf(f); -_flsbuf(c, f); -# else -no filbuf() -# endif -#endif -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_header_usg_stdio=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_usg_stdio=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_usg_stdio" 1>&6 -if test $ac_cv_header_usg_stdio = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_USG_STDIO 1 -EOF - -fi -echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6 -echo "configure:3427: checking for errno definition in errno.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -errno = 0; -; return 0; } -EOF -if { (eval echo configure:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_errno_def=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_errno_def=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_errno_def" 1>&6 -if test $ac_cv_header_errno_def = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ERRNO_DEF 1 -EOF - -fi - -echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3460: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} - -; return 0; } -EOF -if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_c_const" 1>&6 -if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF -#define const -EOF - -fi - -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:3535: checking whether byte ordering is bigendian" >&5 -if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -cat > conftest.$ac_ext < -#include -int main() { - -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif -; return 0; } -EOF -if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - # It does; now see whether it defined to BIG_ENDIAN or not. -cat > conftest.$ac_ext < -#include -int main() { - -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif -; return 0; } -EOF -if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_bigendian=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_bigendian=no -fi -rm -f conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -if test $ac_cv_c_bigendian = unknown; then -if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_bigendian=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bigendian=yes -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_c_bigendian" 1>&6 -if test $ac_cv_c_bigendian = yes; then - cat >> confdefs.h <<\EOF -#define WORDS_BIGENDIAN 1 -EOF - -fi - -echo $ac_n "checking whether bitorder in bitfields is htol""... $ac_c" 1>&6 -echo "configure:3625: checking whether bitorder in bitfields is htol" >&5 -if eval "test \"`echo '$''{'ac_cv_c_bitfields_htol'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_bitfields_htol=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bitfields_htol=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_c_bitfields_htol" 1>&6 -if test $ac_cv_c_bitfields_htol = yes; then - cat >> confdefs.h <<\EOF -#define BITFIELDS_HTOL 1 -EOF - -fi -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:3671: checking return type of signal handlers" >&5 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#ifdef signal -#undef signal -#endif -#ifdef __cplusplus -extern "C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif - -int main() { -int i; -; return 0; } -EOF -if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_signal=void -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_signal=int -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_signal" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3712: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_uid_t=yes -else - rm -rf conftest* - ac_cv_type_uid_t=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 -if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF -#define uid_t int -EOF - - cat >> confdefs.h <<\EOF -#define gid_t int -EOF - -fi - -echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:3746: checking type of array argument to getgroups" >&5 -if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_type_getgroups=cross -else - cat > conftest.$ac_ext < -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) -main() -{ - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short but getgroups modifies an array of ints. */ - exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); -} - -EOF -if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_getgroups=gid_t -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_getgroups=int -fi -rm -fr conftest* -fi - -if test $ac_cv_type_getgroups = cross; then - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_getgroups=gid_t -else - rm -rf conftest* - ac_cv_type_getgroups=int -fi -rm -f conftest* - -fi -fi - -echo "$ac_t""$ac_cv_type_getgroups" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3817: checking for type long long" >&5 -if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_longlong=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_longlong=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_longlong" 1>&6 -if test $ac_cv_type_longlong = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LONGLONG 1 -EOF - -fi -echo $ac_n "checking for type __int64""... $ac_c" 1>&6 -echo "configure:3849: checking for type __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_type___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type___int64=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type___int64=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type___int64" 1>&6 -if test $ac_cv_type___int64 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___INT64 1 -EOF - -fi -echo $ac_n "checking for prototypes""... $ac_c" 1>&6 -echo "configure:3881: checking for prototypes" >&5 -if eval "test \"`echo '$''{'ac_cv_type_prototypes'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_prototypes=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_prototypes=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_type_prototypes" 1>&6 -if test $ac_cv_type_prototypes = yes; then - cat >> confdefs.h <<\EOF -#define PROTOTYPES 1 -EOF - -fi -echo $ac_n "checking if compiler allows dynamic arrays""... $ac_c" 1>&6 -echo "configure:3921: checking if compiler allows dynamic arrays" >&5 -if eval "test \"`echo '$''{'ac_cv_dyn_arrays'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_dyn_arrays=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_dyn_arrays=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_dyn_arrays" 1>&6 -if test $ac_cv_dyn_arrays = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DYN_ARRAYS 1 -EOF - -fi - -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:3954: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_uid_t=yes -else - rm -rf conftest* - ac_cv_type_uid_t=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 -if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF -#define uid_t int -EOF - - cat >> confdefs.h <<\EOF -#define gid_t int -EOF - -fi - -echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3988: checking for size_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_size_t=yes -else - rm -rf conftest* - ac_cv_type_size_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_size_t" 1>&6 -if test $ac_cv_type_size_t = no; then - cat >> confdefs.h <<\EOF -#define size_t unsigned -EOF - -fi - -echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 -echo "configure:4021: checking for ssize_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_ssize_t=yes -else - rm -rf conftest* - ac_cv_type_ssize_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 -if test $ac_cv_type_ssize_t = no; then - cat >> confdefs.h <<\EOF -#define ssize_t int -EOF - -fi - -echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:4054: checking for pid_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_pid_t=yes -else - rm -rf conftest* - ac_cv_type_pid_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_pid_t" 1>&6 -if test $ac_cv_type_pid_t = no; then - cat >> confdefs.h <<\EOF -#define pid_t int -EOF - -fi - -echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:4087: checking for off_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_off_t=yes -else - rm -rf conftest* - ac_cv_type_off_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_off_t" 1>&6 -if test $ac_cv_type_off_t = no; then - cat >> confdefs.h <<\EOF -#define off_t long -EOF - -fi - -echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:4120: checking for mode_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_mode_t=yes -else - rm -rf conftest* - ac_cv_type_mode_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_mode_t" 1>&6 -if test $ac_cv_type_mode_t = no; then - cat >> confdefs.h <<\EOF -#define mode_t int -EOF - -fi - -echo $ac_n "checking for time_t""... $ac_c" 1>&6 -echo "configure:4153: checking for time_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#ifdef TIME_WITH_SYS_TIME_H -# include -# include -#else -#ifdef HAVE_SYS_TIME_H -# include -#else -# include -#endif -#endif -int main() { -time_t t; -; return 0; } -EOF -if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_time_t=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_time_t=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_time_t" 1>&6 -if test $ac_cv_type_time_t = no; then - cat >> confdefs.h <<\EOF -#define time_t long -EOF - -fi -echo $ac_n "checking for caddr_t""... $ac_c" 1>&6 -echo "configure:4196: checking for caddr_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_caddr_t=yes -else - rm -rf conftest* - ac_cv_type_caddr_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_caddr_t" 1>&6 -if test $ac_cv_type_caddr_t = no; then - cat >> confdefs.h <<\EOF -#define caddr_t char * -EOF - -fi - -echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 -echo "configure:4229: checking for daddr_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_daddr_t=yes -else - rm -rf conftest* - ac_cv_type_daddr_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 -if test $ac_cv_type_daddr_t = no; then - cat >> confdefs.h <<\EOF -#define daddr_t long -EOF - -fi - -echo $ac_n "checking for dev_t""... $ac_c" 1>&6 -echo "configure:4262: checking for dev_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_dev_t=yes -else - rm -rf conftest* - ac_cv_type_dev_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_dev_t" 1>&6 -if test $ac_cv_type_dev_t = no; then - cat >> confdefs.h <<\EOF -#define dev_t unsigned short -EOF - -fi - -echo $ac_n "checking for major_t""... $ac_c" 1>&6 -echo "configure:4295: checking for major_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_major_t=yes -else - rm -rf conftest* - ac_cv_type_major_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_major_t" 1>&6 -if test $ac_cv_type_major_t = no; then - cat >> confdefs.h <<\EOF -#define major_t dev_t -EOF - -fi - -echo $ac_n "checking for minor_t""... $ac_c" 1>&6 -echo "configure:4328: checking for minor_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_minor_t=yes -else - rm -rf conftest* - ac_cv_type_minor_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_minor_t" 1>&6 -if test $ac_cv_type_minor_t = no; then - cat >> confdefs.h <<\EOF -#define minor_t dev_t -EOF - -fi - -echo $ac_n "checking for ino_t""... $ac_c" 1>&6 -echo "configure:4361: checking for ino_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_ino_t=yes -else - rm -rf conftest* - ac_cv_type_ino_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_ino_t" 1>&6 -if test $ac_cv_type_ino_t = no; then - cat >> confdefs.h <<\EOF -#define ino_t unsigned long -EOF - -fi - -echo $ac_n "checking for nlink_t""... $ac_c" 1>&6 -echo "configure:4394: checking for nlink_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])nlink_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_nlink_t=yes -else - rm -rf conftest* - ac_cv_type_nlink_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_nlink_t" 1>&6 -if test $ac_cv_type_nlink_t = no; then - cat >> confdefs.h <<\EOF -#define nlink_t unsigned long -EOF - -fi - -echo $ac_n "checking for blksize_t""... $ac_c" 1>&6 -echo "configure:4427: checking for blksize_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_blksize_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])blksize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_blksize_t=yes -else - rm -rf conftest* - ac_cv_type_blksize_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_blksize_t" 1>&6 -if test $ac_cv_type_blksize_t = no; then - cat >> confdefs.h <<\EOF -#define blksize_t long -EOF - -fi - -echo $ac_n "checking for blkcnt_t""... $ac_c" 1>&6 -echo "configure:4460: checking for blkcnt_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_blkcnt_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])blkcnt_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_blkcnt_t=yes -else - rm -rf conftest* - ac_cv_type_blkcnt_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_blkcnt_t" 1>&6 -if test $ac_cv_type_blkcnt_t = no; then - cat >> confdefs.h <<\EOF -#define blkcnt_t Intmax_t -EOF - -fi - -echo $ac_n "checking for clock_t""... $ac_c" 1>&6 -echo "configure:4493: checking for clock_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_clock_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* - * time.h is needed because of a bug in Next Step. - * Next Step needs time.h for clock_t - */ -#ifdef TIME_WITH_SYS_TIME -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#else -#ifdef HAVE_SYS_TIME_H -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -#else -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#endif -#endif -#ifdef HAVE_SYS_TIMES_H -#include -#endif - -int main() { -clock_t t; -; return 0; } -EOF -if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_clock_t=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_clock_t=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_clock_t" 1>&6 -if test $ac_cv_type_clock_t = no; then - cat >> confdefs.h <<\EOF -#define clock_t long -EOF - -fi -echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:4556: checking for socklen_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -#include -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_socklen_t=yes -else - rm -rf conftest* - ac_cv_type_socklen_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 -if test $ac_cv_type_socklen_t = no; then - cat >> confdefs.h <<\EOF -#define socklen_t int -EOF - -fi - -echo $ac_n "checking for u_char""... $ac_c" 1>&6 -echo "configure:4590: checking for u_char" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_char=yes -else - rm -rf conftest* - ac_cv_type_u_char=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_char" 1>&6 -if test $ac_cv_type_u_char = no; then - cat >> confdefs.h <<\EOF -#define u_char unsigned char -EOF - -fi - -echo $ac_n "checking for u_short""... $ac_c" 1>&6 -echo "configure:4623: checking for u_short" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_short=yes -else - rm -rf conftest* - ac_cv_type_u_short=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_short" 1>&6 -if test $ac_cv_type_u_short = no; then - cat >> confdefs.h <<\EOF -#define u_short unsigned short -EOF - -fi - -echo $ac_n "checking for u_int""... $ac_c" 1>&6 -echo "configure:4656: checking for u_int" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_int=yes -else - rm -rf conftest* - ac_cv_type_u_int=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_int" 1>&6 -if test $ac_cv_type_u_int = no; then - cat >> confdefs.h <<\EOF -#define u_int unsigned int -EOF - -fi - -echo $ac_n "checking for u_long""... $ac_c" 1>&6 -echo "configure:4689: checking for u_long" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_long=yes -else - rm -rf conftest* - ac_cv_type_u_long=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_long" 1>&6 -if test $ac_cv_type_u_long = no; then - cat >> confdefs.h <<\EOF -#define u_long unsigned long -EOF - -fi - - -echo $ac_n "checking size of char""... $ac_c" 1>&6 -echo "configure:4723: checking size of char" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(char)); - exit(0); -} -EOF -if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_char=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_char=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_char" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4762: checking size of short int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(short int)); - exit(0); -} -EOF -if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_short_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_short_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4801: checking size of int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); - exit(0); -} -EOF -if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4840: checking size of long int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long int)); - exit(0); -} -EOF -if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_long_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4879: checking size of long long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long long)); - exit(0); -} -EOF -if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_long_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4918: checking size of __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(__int64)); - exit(0); -} -EOF -if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof___int64=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof___int64=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4957: checking size of char *" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(char *)); - exit(0); -} -EOF -if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_char_p=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_char_p=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4997: checking size of unsigned char" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned char)); - exit(0); -} -EOF -if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_char=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_char=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5036: checking size of unsigned short int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned short int)); - exit(0); -} -EOF -if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_short_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_short_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5075: checking size of unsigned int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned int)); - exit(0); -} -EOF -if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5114: checking size of unsigned long int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long int)); - exit(0); -} -EOF -if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5153: checking size of unsigned long long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long long)); - exit(0); -} -EOF -if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5192: checking size of unsigned __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned __int64)); - exit(0); -} -EOF -if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned___int64=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned___int64=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned___int64" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5231: checking size of unsigned char *" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned char *)); - exit(0); -} -EOF -if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_char_p=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_char_p=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5271: checking if char is unsigned" >&5 -if eval "test \"`echo '$''{'ac_cv_type_char_unsigned'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_type_char_unsigned=no -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_char_unsigned=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_char_unsigned=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_type_char_unsigned" 1>&6 -if test $ac_cv_type_char_unsigned = yes; then - cat >> confdefs.h <<\EOF -#define CHAR_IS_UNSIGNED 1 -EOF - -fi -echo $ac_n "checking if va_list is an array""... $ac_c" 1>&6 -echo "configure:5312: checking if va_list is an array" >&5 -if eval "test \"`echo '$''{'ac_cv_type_va_list_array'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif - -int main() { - -va_list a, b; - -a = b; -; return 0; } -EOF -if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_type_va_list_array=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_va_list_array=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_va_list_array" 1>&6 -if test $ac_cv_type_va_list_array = yes; then - cat >> confdefs.h <<\EOF -#define VA_LIST_IS_ARRAY 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_type""... $ac_c" 1>&6 -echo "configure:5353: checking if struct mtget contains mt_type" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_type'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_type = 0; -; return 0; } -EOF -if { (eval echo configure:5366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_type=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_type=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_type" 1>&6 -if test $ac_cv_struct_mtget_type = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_TYPE 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_model""... $ac_c" 1>&6 -echo "configure:5386: checking if struct mtget contains mt_model" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_model'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_model = 0; -; return 0; } -EOF -if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_model=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_model=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_model" 1>&6 -if test $ac_cv_struct_mtget_model = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_MODEL 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg""... $ac_c" 1>&6 -echo "configure:5419: checking if struct mtget contains mt_dsreg" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg = 0; -; return 0; } -EOF -if { (eval echo configure:5432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg" 1>&6 -if test $ac_cv_struct_mtget_dsreg = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg1""... $ac_c" 1>&6 -echo "configure:5452: checking if struct mtget contains mt_dsreg1" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg1 = 0; -; return 0; } -EOF -if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg1=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg1=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg1" 1>&6 -if test $ac_cv_struct_mtget_dsreg1 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG1 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg2""... $ac_c" 1>&6 -echo "configure:5485: checking if struct mtget contains mt_dsreg2" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg2 = 0; -; return 0; } -EOF -if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg2=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg2" 1>&6 -if test $ac_cv_struct_mtget_dsreg2 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG2 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_gstat""... $ac_c" 1>&6 -echo "configure:5518: checking if struct mtget contains mt_gstat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_gstat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_gstat = 0; -; return 0; } -EOF -if { (eval echo configure:5531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_gstat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_gstat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_gstat" 1>&6 -if test $ac_cv_struct_mtget_gstat = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_GSTAT 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_erreg""... $ac_c" 1>&6 -echo "configure:5551: checking if struct mtget contains mt_erreg" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_erreg'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_erreg = 0; -; return 0; } -EOF -if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_erreg=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_erreg=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_erreg" 1>&6 -if test $ac_cv_struct_mtget_erreg = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_ERREG 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_resid""... $ac_c" 1>&6 -echo "configure:5584: checking if struct mtget contains mt_resid" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_resid'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_resid = 0; -; return 0; } -EOF -if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_resid=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_resid=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_resid" 1>&6 -if test $ac_cv_struct_mtget_resid = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_RESID 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_fileno""... $ac_c" 1>&6 -echo "configure:5617: checking if struct mtget contains mt_fileno" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_fileno'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_fileno = 0; -; return 0; } -EOF -if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_fileno=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_fileno=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_fileno" 1>&6 -if test $ac_cv_struct_mtget_fileno = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_FILENO 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_blkno""... $ac_c" 1>&6 -echo "configure:5650: checking if struct mtget contains mt_blkno" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_blkno'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_blkno = 0; -; return 0; } -EOF -if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_blkno=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_blkno=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_blkno" 1>&6 -if test $ac_cv_struct_mtget_blkno = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_BLKNO 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_flags""... $ac_c" 1>&6 -echo "configure:5683: checking if struct mtget contains mt_flags" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_flags'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_flags = 0; -; return 0; } -EOF -if { (eval echo configure:5696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_flags=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_flags=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_flags" 1>&6 -if test $ac_cv_struct_mtget_flags = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_FLAGS 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_bf""... $ac_c" 1>&6 -echo "configure:5716: checking if struct mtget contains mt_bf" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_bf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_bf = 0; -; return 0; } -EOF -if { (eval echo configure:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_bf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_bf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_bf" 1>&6 -if test $ac_cv_struct_mtget_bf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_BF 1 -EOF - -fi -echo $ac_n "checking if struct rusage is declared in sys/resource.h""... $ac_c" 1>&6 -echo "configure:5749: checking if struct rusage is declared in sys/resource.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_rusage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct rusage r; -; return 0; } -EOF -if { (eval echo configure:5762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_rusage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_rusage=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_rusage" 1>&6 -if test $ac_cv_struct_rusage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRUCT_RUSAGE 1 -EOF - -fi -echo $ac_n "checking if struct siginfo contains si_utime""... $ac_c" 1>&6 -echo "configure:5782: checking if struct siginfo contains si_utime" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_si_utime'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct siginfo si; si.si_utime = 0; -; return 0; } -EOF -if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_si_utime=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_si_utime=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_si_utime" 1>&6 -if test $ac_cv_struct_si_utime = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SI_UTIME 1 -EOF - -fi -echo $ac_n "checking if struct sockaddr_storage is declared in socket.h""... $ac_c" 1>&6 -echo "configure:5815: checking if struct sockaddr_storage is declared in socket.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -struct sockaddr_storage ss; ss.ss_family = 0; -; return 0; } -EOF -if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_sockaddr_storage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_sockaddr_storage=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 -if test $ac_cv_struct_sockaddr_storage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SOCKADDR_STORAGE 1 -EOF - -fi -echo $ac_n "checking if an illegal declaration for union semun in sys/sem.h exists""... $ac_c" 1>&6 -echo "configure:5847: checking if an illegal declaration for union semun in sys/sem.h exists" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_union_semun'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -int main() { -union semun s; -; return 0; } -EOF -if { (eval echo configure:5861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_union_semun=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_union_semun=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_union_semun" 1>&6 -if test $ac_cv_struct_union_semun = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNION_SEMUN 1 -EOF - -fi -echo $ac_n "checking if union wait is declared in wait.h or sys/wait.h""... $ac_c" 1>&6 -echo "configure:5881: checking if union wait is declared in wait.h or sys/wait.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_union_wait'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if defined(HAVE_WAIT_H) -# include -#else -#include -#endif -int main() { -union wait w; -; return 0; } -EOF -if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_union_wait=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_union_wait=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_union_wait" 1>&6 -if test $ac_cv_struct_union_wait = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNION_WAIT 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_spare1""... $ac_c" 1>&6 -echo "configure:5918: checking if struct stat contains st_spare1" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_spare1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_spare1 = 0; -; return 0; } -EOF -if { (eval echo configure:5931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_spare1=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_spare1=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_spare1" 1>&6 -if test $ac_cv_struct_st_spare1 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_SPARE1 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atimensec""... $ac_c" 1>&6 -echo "configure:5951: checking if struct stat contains st_atimensec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_atimensec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atimensec = 0; -; return 0; } -EOF -if { (eval echo configure:5964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_atimensec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_atimensec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_atimensec" 1>&6 -if test $ac_cv_struct_st_atimensec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ATIMENSEC 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atim.tv_nsec""... $ac_c" 1>&6 -echo "configure:5984: checking if struct stat contains st_atim.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_nsec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atim.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:5997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_nsec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_nsec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_nsec" 1>&6 -if test $ac_cv_struct_st_nsec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_NSEC 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atim.st__tim.tv_nsec""... $ac_c" 1>&6 -echo "configure:6017: checking if struct stat contains st_atim.st__tim.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st__tim'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atim.st__tim.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:6030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st__tim=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st__tim=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st__tim" 1>&6 -if test $ac_cv_struct_st__tim = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST__TIM 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atimespec.tv_nsec""... $ac_c" 1>&6 -echo "configure:6050: checking if struct stat contains st_atimespec.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_atimespec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atimespec.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:6063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_atimespec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_atimespec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_atimespec" 1>&6 -if test $ac_cv_struct_st_atimespec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ATIMESPEC 1 -EOF - -fi -echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 -echo "configure:6083: checking for st_blksize in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blksize; -; return 0; } -EOF -if { (eval echo configure:6096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blksize=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blksize=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 -if test $ac_cv_struct_st_blksize = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLKSIZE 1 -EOF - -fi - -echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 -echo "configure:6117: checking for st_blocks in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blocks; -; return 0; } -EOF -if { (eval echo configure:6130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blocks=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blocks=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 -if test $ac_cv_struct_st_blocks = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLOCKS 1 -EOF - -else - LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" -fi - -echo $ac_n "checking if struct stat contains st_fstype""... $ac_c" 1>&6 -echo "configure:6153: checking if struct stat contains st_fstype" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_fstype'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_fstype[0] = 0; -; return 0; } -EOF -if { (eval echo configure:6166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_fstype=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_fstype=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_fstype" 1>&6 -if test $ac_cv_struct_st_fstype = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_FSTYPE 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_aclcnt""... $ac_c" 1>&6 -echo "configure:6186: checking if struct stat contains st_aclcnt" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_aclcnt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_aclcnt = 0; -; return 0; } -EOF -if { (eval echo configure:6199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_aclcnt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_aclcnt=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_aclcnt" 1>&6 -if test $ac_cv_struct_st_aclcnt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ACLCNT 1 -EOF - -fi -echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 -echo "configure:6219: checking for st_rdev in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_rdev; -; return 0; } -EOF -if { (eval echo configure:6232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_rdev=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_rdev=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 -if test $ac_cv_struct_st_rdev = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_RDEV 1 -EOF - -fi - -echo $ac_n "checking if struct stat contains st_flags""... $ac_c" 1>&6 -echo "configure:6253: checking if struct stat contains st_flags" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_flags'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_flags = 0; -; return 0; } -EOF -if { (eval echo configure:6266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_flags=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_flags=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_flags" 1>&6 -if test $ac_cv_struct_st_flags = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_FLAGS 1 -EOF - -fi -echo $ac_n "checking if struct dirent contains d_ino""... $ac_c" 1>&6 -echo "configure:6286: checking if struct dirent contains d_ino" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_ino'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ -# include -# define _FOUND_DIR_ -# else /* This is a Pre POSIX system */ - -# define dirent direct - -# if defined(HAVE_SYS_DIR_H) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif -# endif /* HAVE_DIRENT_H */ - -int main() { -struct dirent d; d.d_ino = 0; -; return 0; } -EOF -if { (eval echo configure:6330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_dirent_d_ino=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_dirent_d_ino=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_dirent_d_ino" 1>&6 -if test $ac_cv_struct_dirent_d_ino = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DIRENT_D_INO 1 -EOF - -fi - -echo $ac_n "checking if stat is declared""... $ac_c" 1>&6 -echo "configure:6351: checking if stat is declared" >&5 -if eval "test \"`echo '$''{'ac_cv_have_decl_stat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -#ifndef stat - char *p = (char *) stat; -#endif -; return 0; } -EOF -if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_decl_stat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_decl_stat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_have_decl_stat" 1>&6 - ac_tr_decl=HAVE_DECL_`echo stat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -if test $ac_cv_have_decl_stat = yes; then - cat >> confdefs.h <&6 -echo "configure:6389: checking if lstat is declared" >&5 -if eval "test \"`echo '$''{'ac_cv_have_decl_lstat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -#ifndef lstat - char *p = (char *) lstat; -#endif -; return 0; } -EOF -if { (eval echo configure:6406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_decl_lstat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_decl_lstat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_have_decl_lstat" 1>&6 - ac_tr_decl=HAVE_DECL_`echo lstat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -if test $ac_cv_have_decl_lstat = yes; then - cat >> confdefs.h <&6 -echo "configure:6429: checking for wait3 that fills in rusage" >&5 -if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_wait3_rusage=no -else - cat > conftest.$ac_ext < -#include -#include -#include -/* HP-UX has wait3 but does not fill in rusage at all. */ -main() { - struct rusage r; - int i; - /* Use a field that we can force nonzero -- - voluntary context switches. - For systems like NeXT and OSF/1 that don't set it, - also use the system CPU time. And page faults (I/O) for Linux. */ - r.ru_nvcsw = 0; - r.ru_utime.tv_sec = 0; - r.ru_utime.tv_usec = 0; - r.ru_stime.tv_sec = 0; - r.ru_stime.tv_usec = 0; - r.ru_majflt = r.ru_minflt = 0; - switch (fork()) { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ - _exit(0); - case -1: _exit(0); /* What can we do? */ - default: /* Parent. */ - wait3(&i, 0, &r); - sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ - exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } -} -EOF -if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_wait3_rusage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_wait3_rusage=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6 -if test $ac_cv_func_wait3_rusage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_WAIT3 1 -EOF - -fi - -echo $ac_n "checking for mlock""... $ac_c" 1>&6 -echo "configure:6495: checking for mlock" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mlock'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ - if (mlock(0, 0) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -} -EOF -if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mlock=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mlock=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mlock" 1>&6 -if test $ac_cv_func_mlock = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MLOCK 1 -EOF - -fi -echo $ac_n "checking for mlockall""... $ac_c" 1>&6 -echo "configure:6545: checking for mlockall" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mlockall'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -int -main() -{ - if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -} - -EOF -if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mlockall=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mlockall=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mlockall" 1>&6 -if test $ac_cv_func_mlockall = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MLOCKALL 1 -EOF - -fi -echo $ac_n "checking for va_copy""... $ac_c" 1>&6 -echo "configure:6598: checking for va_copy" >&5 -if eval "test \"`echo '$''{'ac_cv_func_va_copy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif -int main() { - -va_list a, b; - -va_copy(a, b); -; return 0; } -EOF -if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_va_copy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_va_copy=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_va_copy" 1>&6 -if test $ac_cv_func_va_copy = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_VA_COPY 1 -EOF - -fi -echo $ac_n "checking for __va_copy""... $ac_c" 1>&6 -echo "configure:6638: checking for __va_copy" >&5 -if eval "test \"`echo '$''{'ac_cv_func__va_copy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif -int main() { - -va_list a, b; - -__va_copy(a, b); -; return 0; } -EOF -if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func__va_copy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func__va_copy=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func__va_copy" 1>&6 -if test $ac_cv_func__va_copy = yes; then - cat >> confdefs.h <<\EOF -#define HAVE__VA_COPY 1 -EOF - -fi -echo $ac_n "checking for working ecvt() ""... $ac_c" 1>&6 -echo "configure:6678: checking for working ecvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_ecvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_ecvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_ecvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_ecvt" 1>&6 -if test $ac_cv_func_ecvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ECVT 1 -EOF - -fi -echo $ac_n "checking for working fcvt() ""... $ac_c" 1>&6 -echo "configure:6728: checking for working fcvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_fcvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_fcvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_fcvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_fcvt" 1>&6 -if test $ac_cv_func_fcvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FCVT 1 -EOF - -fi -echo $ac_n "checking for working gcvt() ""... $ac_c" 1>&6 -echo "configure:6778: checking for working gcvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_gcvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_gcvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_gcvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_gcvt" 1>&6 -if test $ac_cv_func_gcvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_GCVT 1 -EOF - -fi -echo $ac_n "checking for __dtoa""... $ac_c" 1>&6 -echo "configure:6828: checking for __dtoa" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dtoa'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_dtoa=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_dtoa=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_dtoa" 1>&6 -if test $ac_cv_func_dtoa = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DTOA 1 -EOF - -fi -echo $ac_n "checking for __dtoa that needs result ptr""... $ac_c" 1>&6 -echo "configure:6861: checking for __dtoa that needs result ptr" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dtoa_r'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_dtoa_r=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_dtoa_r=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_dtoa_r" 1>&6 -if test $ac_cv_func_dtoa_r = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DTOA_R 1 -EOF - -fi -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6915: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6954: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 -echo "configure:7007: checking for mmap that needs ptr to size" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_sizep=no -else - cat > conftest.$ac_ext < -#include -#include -#include -#include - -#ifndef MAP_FILE -#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -jmp_buf jenv; - -int -intr() -{ - signal(SIGSEGV, intr); - longjmp(jenv, 1); -} - -int -main() -{ - char *data, *data2; - int i, pagesize, ps; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - - /* - * Keep a copy, Apollo modifies the value... - */ - ps = pagesize; - - /* - * Apollo mmap() is not a syscall but a library function and fails - * if it tries to dereference 'ps'. We must use setjmp in order to - * catch the failure. - */ - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 != (char *)-1) - exit(1); - - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 == (char *)-1) - exit(1); - - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_sizep=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_sizep=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 -if test $ac_cv_func_mmap_sizep = yes; then - cat >> confdefs.h <<\EOF -#define _MMAP_WITH_SIZEP 1 -EOF - -fi - -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7182: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7221: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:7274: checking for working mmap" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat > conftest.$ac_ext < -#include -#include - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_fixed_mapped=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 -if test $ac_cv_func_mmap_fixed_mapped = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MMAP 1 -EOF - -fi - -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7457: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7496: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 -echo "configure:7549: checking for mmap that needs ptr to size" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_sizep=no -else - cat > conftest.$ac_ext < -#include -#include -#include -#include - -#ifndef MAP_FILE -#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -jmp_buf jenv; - -int -intr() -{ - signal(SIGSEGV, intr); - longjmp(jenv, 1); -} - -int -main() -{ - char *data, *data2; - int i, pagesize, ps; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - - /* - * Keep a copy, Apollo modifies the value... - */ - ps = pagesize; - - /* - * Apollo mmap() is not a syscall but a library function and fails - * if it tries to dereference 'ps'. We must use setjmp in order to - * catch the failure. - */ - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 != (char *)-1) - exit(1); - - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 == (char *)-1) - exit(1); - - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_sizep=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_sizep=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 -if test $ac_cv_func_mmap_sizep = yes; then - cat >> confdefs.h <<\EOF -#define _MMAP_WITH_SIZEP 1 -EOF - -fi - -echo $ac_n "checking if mmap works to get shared memory""... $ac_c" 1>&6 -echo "configure:7721: checking if mmap works to get shared memory" >&5 -if eval "test \"`echo '$''{'ac_cv_func_smmap'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_smmap=no -else - cat > conftest.$ac_ext < -#include - -#ifndef MAP_ANONYMOUS -# ifdef MAP_ANON -# define MAP_ANONYMOUS MAP_ANON -# endif -#endif - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -char * -mkshare() -{ - int size = 8192; - int f; - char *addr; - -#ifdef MAP_ANONYMOUS /* HP/UX */ - f = -1; - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); -#else - if ((f = open("/dev/zero", 2)) < 0) - exit(1); - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); -#endif - if (addr == (char *)-1) - exit(1); - close(f); - - return (addr); -} - -int -main() -{ - char *addr; - - addr = mkshare(); - *addr = 'I'; - - switch (fork()) { - - case -1: - printf("help\n"); exit(1); - - case 0: /* child */ - *addr = 'N'; - _exit(0); - break; - default: /* parent */ - wait(0); - sleep(1); - break; - } - - if (*addr != 'N') - exit(1); - exit(0); -} - -EOF -if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_smmap=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_smmap=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_smmap" 1>&6 -if test $ac_cv_func_smmap = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SMMAP 1 -EOF - -fi -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:7825: checking for working alloca.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -char *p = alloca(2 * sizeof(int)); -; return 0; } -EOF -if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_header_alloca_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_alloca_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 -if test $ac_cv_header_alloca_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ALLOCA_H 1 -EOF - -fi - -echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:7858: checking for alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif - -int main() { -char *p = (char *) alloca(1); -; return 0; } -EOF -if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_alloca_works=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_alloca_works=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 -if test $ac_cv_func_alloca_works = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ALLOCA 1 -EOF - -fi - -if test $ac_cv_func_alloca_works = no; then - # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - ALLOCA=alloca.${ac_objext} - cat >> confdefs.h <<\EOF -#define C_ALLOCA 1 -EOF - - -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:7923: checking whether alloca needs Cray hooks" >&5 -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5 | - egrep "webecray" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_os_cray=yes -else - rm -rf conftest* - ac_cv_os_cray=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_os_cray" 1>&6 -if test $ac_cv_os_cray = yes; then -for ac_func in _getb67 GETB67 getb67; do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7953: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <&6 -fi - -done -fi - -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:8008: checking stack direction for C alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat > conftest.$ac_ext < addr) ? 1 : -1; -} -main () -{ - exit (find_stack_direction() < 0); -} -EOF -if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_stack_direction=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_stack_direction=-1 -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 -cat >> confdefs.h <&6 -echo "configure:8057: checking if quotactl is an ioctl" >&5 -if eval "test \"`echo '$''{'ac_cv_func_quotaioctl'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct quotctl q; ioctl(0, Q_QUOTACTL, &q) -; return 0; } -EOF -if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_quotaioctl=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_quotaioctl=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_quotaioctl" 1>&6 -if test $ac_cv_func_quotaioctl = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_QUOTAIOCTL 1 -EOF - -fi -echo $ac_n "checking for file locking via fcntl""... $ac_c" 1>&6 -echo "configure:8090: checking for file locking via fcntl" >&5 -if eval "test \"`echo '$''{'ac_cv_func_fcntl_lock'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -struct flock fl; -fcntl(0, F_SETLK, &fl); -; return 0; } -EOF -if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_fcntl_lock=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_fcntl_lock=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_fcntl_lock" 1>&6 -if test $ac_cv_func_fcntl_lock = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_LOCKF 1 -EOF - -fi -echo $ac_n "checking for uname""... $ac_c" 1>&6 -echo "configure:8126: checking for uname" >&5 -if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -struct utsname un; -uname(&un); -; return 0; } -EOF -if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_uname=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_uname=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_uname" 1>&6 -if test $ac_cv_func_uname = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNAME 1 -EOF - -fi -ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:8160: checking for vfork.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_VFORK_H 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - -echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:8195: checking for working vfork" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - echo $ac_n "checking for vfork""... $ac_c" 1>&6 -echo "configure:8201: checking for vfork" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char vfork(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_vfork) || defined (__stub___vfork) -choke me -#else -vfork(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_vfork=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_vfork=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 -fi - -ac_cv_func_vfork_works=$ac_cv_func_vfork -else - cat > conftest.$ac_ext < -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_VFORK_H -#include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. - The compiler is told about this with #include , - but some compilers (e.g. gcc -O) don't grok . - Test for this by using a static variable whose address - is put into a register that is clobbered by the vfork. */ -static -#ifdef __cplusplus -sparc_address_test (int arg) -#else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} -main() { - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. - This test uses lots of local variables, at least - as many local variables as main has allocated so far - including compiler temporaries. 4 locals are enough for - gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. - A buggy compiler should reuse the register of parent - for one of the local variables, since it will think that - parent can't possibly be used any more in this routine. - Assigning to the local variable will thus munge parent - in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), - vfork doesn't separate parent from child file descriptors. - If the child closes a descriptor before it execs or exits, - this munges the parent's descriptor as well. - Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - exit( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -EOF -if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_vfork_works=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_vfork_works=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 -if test $ac_cv_func_vfork_works = no; then - cat >> confdefs.h <<\EOF -#define vfork fork -EOF - -fi - -echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 -echo "configure:8369: checking for sys_siglist" >&5 -if eval "test \"`echo '$''{'ac_cv_func_sys_siglist'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_sys_siglist=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_sys_siglist=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_sys_siglist" 1>&6 -if test $ac_cv_func_sys_siglist = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SYS_SIGLIST 1 -EOF - -fi -echo $ac_n "checking for BSD compliant getpgrp""... $ac_c" 1>&6 -echo "configure:8409: checking for BSD compliant getpgrp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_bsd_getpgrp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_bsd_getpgrp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_bsd_getpgrp=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_bsd_getpgrp" 1>&6 -if test $ac_cv_func_bsd_getpgrp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BSD_GETPGRP 1 -EOF - -fi -echo $ac_n "checking for BSD compliant setpgrp""... $ac_c" 1>&6 -echo "configure:8453: checking for BSD compliant setpgrp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_bsd_setpgrp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif -int -main() -{ errno = 0; -/* - * Force illegal pid on BSD - */ -if (setpgrp(-1, 100) < 0 && errno == ESRCH) - exit(0); -exit(1);} -EOF -if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_bsd_setpgrp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_bsd_setpgrp=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_bsd_setpgrp" 1>&6 -if test $ac_cv_func_bsd_setpgrp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BSD_SETPGRP 1 -EOF - -fi -echo $ac_n "checking for C99 compliant isinf""... $ac_c" 1>&6 -echo "configure:8500: checking for C99 compliant isinf" >&5 -if eval "test \"`echo '$''{'ac_cv_func_c99_isinf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - double d; -#ifndef isinf -The isinf macro is not defined -#endif -return (isinf(d)); - -; return 0; } -EOF -if { (eval echo configure:8517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_func_c99_isinf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_c99_isinf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_c99_isinf" 1>&6 -if test $ac_cv_func_c99_isinf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_C99_ISINF 1 -EOF - -fi -echo $ac_n "checking for C99 compliant isnan""... $ac_c" 1>&6 -echo "configure:8537: checking for C99 compliant isnan" >&5 -if eval "test \"`echo '$''{'ac_cv_func_c99_isnan'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - double d; -#ifndef isnan -The isnan macro is not defined -#endif -return (isnan(d)); - -; return 0; } -EOF -if { (eval echo configure:8554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_func_c99_isnan=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_c99_isnan=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_c99_isnan" 1>&6 -if test $ac_cv_func_c99_isnan = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_C99_ISNAN 1 -EOF - -fi -echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 -echo "configure:8574: checking for sigsetjmp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_sigsetjmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - -sigjmp_buf jb; -sigsetjmp(jb, 1); -; return 0; } -EOF -if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_sigsetjmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_sigsetjmp=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_sigsetjmp" 1>&6 -if test $ac_cv_func_sigsetjmp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGSETJMP 1 -EOF - -fi -echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6 -echo "configure:8609: checking for siglongjmp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - -sigjmp_buf jb; -sigsetjmp(jb, 1); -siglongjmp(jb, 1); -; return 0; } -EOF -if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_siglongjmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_siglongjmp=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_siglongjmp" 1>&6 -if test $ac_cv_func_siglongjmp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGLONGJMP 1 -EOF - -fi -for ac_func in access eaccess euidaccess -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8647: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in brk sbrk strerror nice memmove flock lockf fchdir statvfs quotactl -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8702: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in dup2 -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8757: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getcwd shmat semget -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8812: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in lstat readlink symlink link rename mkfifo mknod -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8867: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setreuid setresuid seteuid setuid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8922: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setregid setresgid setegid setgid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8977: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpid getppid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9032: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpgid setpgid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9087: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpgrp setpgrp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9142: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getspnam getspwnam -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9197: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sync fsync fork wait4 waitid waitpid getrusage getrlimit setrlimit ulimit -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9252: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in execl execle execlp execv execve execvp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9307: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in gethostid gethostname getdomainname getpagesize getdtablesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9362: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in gettimeofday settimeofday time stime gethrtime -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9417: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ftime tzset mktime gmtime localtime timegm timelocal -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9472: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ctime cftime ascftime strftime -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9527: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in poll select chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9582: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ecvt_r fcvt_r gcvt_r -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9637: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in econvert fconvert gconvert -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9692: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in isinf isnan -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9747: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in rand drand48 -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9802: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setpriority DosSetPriority -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9857: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in DosAllocSharedMem -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9912: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in seekdir fdopendir -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9967: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in openat attropen fstatat fchownat futimesat renameat unlinkat -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10022: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in popen pclose _popen _pclose -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10077: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in strsignal str2sig sig2str -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10132: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in killpg sigrelse sigprocmask sigsetmask sigset -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10187: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in usleep yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10242: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in tcgetattr tcsetattr tcgetpgrp tcsetpgrp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10297: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in putenv setenv snprintf strcasecmp strncpy strlcpy strdup -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10352: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in valloc -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10407: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in madvise -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10462: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in mktemp mkstemp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10517: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in chflags fchflags fflagstostr strtofflags -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10572: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in fnmatch -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10627: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in truncate ftruncate -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10682: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getppriv setppriv priv_set -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10737: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in clone_area create_area delete_area -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10792: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - - -echo $ac_n "checking if we may not define our own malloc()""... $ac_c" 1>&6 -echo "configure:10847: checking if we may not define our own malloc()" >&5 -if eval "test \"`echo '$''{'ac_cv_no_user_malloc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_no_user_malloc=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_no_user_malloc=yes -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_no_user_malloc" 1>&6 -if test $ac_cv_no_user_malloc = yes; then - cat >> confdefs.h <<\EOF -#define NO_USER_MALLOC 1 -EOF - -fi -echo $ac_n "checking for working extern long timezone ""... $ac_c" 1>&6 -echo "configure:10903: checking for working extern long timezone " >&5 -if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_var_timezone=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_var_timezone=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_var_timezone" 1>&6 -if test $ac_cv_var_timezone = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_VAR_TIMEZONE 1 -EOF - -fi - -echo $ac_n "checking if link() allows hard links on symlinks""... $ac_c" 1>&6 -echo "configure:10945: checking if link() allows hard links on symlinks" >&5 -if eval "test \"`echo '$''{'ac_cv_hard_symlinks'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_hard_symlinks=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_hard_symlinks=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_hard_symlinks" 1>&6 -if test $ac_cv_hard_symlinks = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_HARD_SYMLINKS 1 -EOF - -fi -echo $ac_n "checking if link() does not folow symlinks""... $ac_c" 1>&6 -echo "configure:10997: checking if link() does not folow symlinks" >&5 -if eval "test \"`echo '$''{'ac_cv_link_nofollow'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include - -main() -{ - int ret = 0; - int f; - struct stat sb; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - f = creat("confdefs.f1", 0666); - close(f); - if (symlink("confdefs.f1", "confdefs.l1") < 0) - ret = 1; - if (link("confdefs.l1", "confdefs.h1") < 0) - ret = 1; - - stat("confdefs.f1", &sb); - if (sb.st_nlink == 2) - ret = 1; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - exit(ret); -} -EOF -if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_link_nofollow=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_link_nofollow=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_link_nofollow" 1>&6 -if test $ac_cv_link_nofollow = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LINK_NOFOLLOW 1 -EOF - -fi -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:11064: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking if access() does implement E_OK""... $ac_c" 1>&6 -echo "configure:11101: checking if access() does implement E_OK" >&5 -if eval "test \"`echo '$''{'ac_cv_access_e_ok'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -# endif -#ifndef R_OK -#define R_OK 4 /* Test for Read permission */ -#define W_OK 2 /* Test for Write permission */ -#define X_OK 1 /* Test for eXecute permission */ -#define F_OK 0 /* Test for existence of File */ -#endif - -#ifndef E_OK -#ifdef EFF_ONLY_OK -#define E_OK EFF_ONLY_OK /* Irix */ -#else -#ifdef EUID_OK -#define E_OK EUID_OK /* UNICOS (0400) */ -#else -#define E_OK 010 /* Test effective uids */ -#endif -#endif -#endif - -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ -#ifdef _MSC_VER -/* - * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will - * cause an exception that results in a popup window. For this reason, the test - * is disabled for "cl", it would not work anyway. - */ - int ret = 1; -#else - int ret = 0; - - if (access(".", F_OK) != 0) - ret = 1; - else if (access(".", E_OK|F_OK) != 0) - ret = 1; - else if (access(".", (R_OK<<4)|F_OK) == 0) - ret = 1; -#endif - - exit(ret); -} -EOF -if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_access_e_ok=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_access_e_ok=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_access_e_ok" 1>&6 -if test $ac_cv_access_e_ok = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ACCESS_E_OK 1 -EOF - -fi - -echo $ac_n "checking for fseeko()""... $ac_c" 1>&6 -echo "configure:11185: checking for fseeko()" >&5 -if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_fseeko=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_fseeko=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_fseeko" 1>&6 -if test $ac_cv_func_fseeko = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FSEEKO 1 -EOF - -fi -echo $ac_n "checking for ftello()""... $ac_c" 1>&6 -echo "configure:11217: checking for ftello()" >&5 -if eval "test \"`echo '$''{'ac_cv_func_ftello'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -return !ftello; -; return 0; } -EOF -if { (eval echo configure:11229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_ftello=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_ftello=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_ftello" 1>&6 -if test $ac_cv_func_ftello = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FTELLO 1 -EOF - -fi - -echo $ac_n "checking for rcmd in -lsocket""... $ac_c" 1>&6 -echo "configure:11250: checking for rcmd in -lsocket" >&5 -ac_lib_var=`echo socket'_'rcmd | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_socket="-lsocket" -else - echo "$ac_t""no" 1>&6 -fi - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_socket" -echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 -echo "configure:11292: checking for inet_ntoa in -lnsl" >&5 -ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lnsl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_nsl="-lnsl" -else - echo "$ac_t""no" 1>&6 -fi - -LIBS="$LIBS $lib_nsl" -for ac_func in rcmd socket socketpair -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11335: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getservbyname inet_ntoa -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11390: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getaddrinfo getnameinfo -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11445: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -ac_save_LIBS="$LIBS" -echo $ac_n "checking for res_init in -lc""... $ac_c" 1>&6 -echo "configure:11501: checking for res_init in -lc" >&5 -ac_lib_var=`echo c'_'res_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_resolv="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6 -echo "configure:11539: checking for res_init in -lresolv" >&5 -ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lresolv $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_resolv="-lresolv" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -LIBS="$ac_save_LIBS" - -# Check whether --enable-largefile or --disable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval="$enable_largefile" - : -fi - - if test "$enable_largefile" != no; then - - echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 -echo "configure:11591: checking for special C compiler options needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_largefile_CC=no - largefile_cc_opt="" - if test "$GCC" != yes; then - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_save_CC="${CC-cc}" - CC="$CC -n32" - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_largefile_CC=' -n32' -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* - CC="$ac_save_CC" -fi -rm -f conftest* - fi -fi - -echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 - if test "$ac_cv_sys_largefile_CC" != no; then - CC="$CC$ac_cv_sys_largefile_CC" - largefile_cc_opt="$ac_cv_sys_largefile_CC" - fi - - echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 -echo "configure:11663: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_file_offset_bits=no - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_file_offset_bits=64 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 - if test "$ac_cv_sys_file_offset_bits" != no; then - cat >> confdefs.h <&6 -echo "configure:11730: checking for _LARGE_FILES value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_large_files=no - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_large_files=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_large_files" 1>&6 - if test "$ac_cv_sys_large_files" != no; then - cat >> confdefs.h <&6 -echo "configure:11797: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_largefile_source=no - cat > conftest.$ac_ext < -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_largefile_source=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 - if test "$ac_cv_sys_largefile_source" != no; then - cat >> confdefs.h <&6 -echo "configure:11848: checking if system supports Large Files at all" >&5 -if eval "test \"`echo '$''{'ac_cv_largefiles'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -/* - * Check that off_t can represent 2**63 - 1 correctly. - * We can't simply "#define LARGE_OFF_T 9223372036854775807", - * since some C++ compilers masquerading as C compilers - * incorrectly reject 9223372036854775807. - */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -return !fseeko; -return !ftello; -; return 0; } -EOF -if { (eval echo configure:11873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_largefiles=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_largefiles=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_largefiles" 1>&6 - if test $ac_cv_largefiles = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LARGEFILES 1 -EOF - - fi - -cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 -echo "configure:11916: checking for crypt in -lc" >&5 -ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_crypt="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:11954: checking for crypt in -lcrypt" >&5 -ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lcrypt $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_crypt="-lcrypt" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_crypt" -for ac_func in crypt -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12001: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 -echo "configure:12056: checking for gettext in -lc" >&5 -ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_intl="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 -echo "configure:12094: checking for gettext in -lintl" >&5 -ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lintl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_intl="-lintl" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_lib_intl" -for ac_func in gettext -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12141: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -if test $ac_cv_header_camlib_h = yes; then - scsi_lib=-lcam - lib_scsi=-lcam -fi - -if test "$ac_cv_header_sys_acl_h" = yes; then - - echo "checking for Posix Access Control List support" 1>&6 -echo "configure:12203: checking for Posix Access Control List support" >&5 - echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 -echo "configure:12205: checking for acl_get_file in -lacl" >&5 -ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lacl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lacl" -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for acl_get_file in -lpacl""... $ac_c" 1>&6 -echo "configure:12245: checking for acl_get_file in -lpacl" >&5 -ac_lib_var=`echo pacl'_'acl_get_file | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpacl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lpacl" -else - echo "$ac_t""no" 1>&6 -fi - - - if test ".$lib_acl" != .; then - lib_acl_test="$lib_acl" - fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - for ac_func in acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12294: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - for ac_func in acl_extended_file -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12349: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" - - echo "checking for Solaris Access Control List support" 1>&6 -echo "configure:12404: checking for Solaris Access Control List support" >&5 - echo $ac_n "checking for acltotext in -lsec""... $ac_c" 1>&6 -echo "configure:12406: checking for acltotext in -lsec" >&5 -ac_lib_var=`echo sec'_'acltotext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsec $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lsec" -else - echo "$ac_t""no" 1>&6 -fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - for ac_func in acl facl aclfromtext acltotext -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12450: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" - - - echo "checking for HP-UX Access Control List support" 1>&6 -echo "configure:12506: checking for HP-UX Access Control List support" >&5 - for ac_func in getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12510: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - - -fi - -if test "$ac_cv_header_attr_xattr_h" = yes; then - echo "checking for Linux flavor Extended Attribute support" 1>&6 -echo "configure:12568: checking for Linux flavor Extended Attribute support" >&5 - echo $ac_n "checking for getxattr in -lattr""... $ac_c" 1>&6 -echo "configure:12570: checking for getxattr in -lattr" >&5 -ac_lib_var=`echo attr'_'getxattr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lattr $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_attr="-lattr" -else - echo "$ac_t""no" 1>&6 -fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_attr" - for ac_func in getxattr setxattr listxattr lgetxattr lsetxattr llistxattr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12614: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" -fi - -echo "checking for RBAC support" 1>&6 -echo "configure:12670: checking for RBAC support" >&5 -echo $ac_n "checking for getuserattr in -lsecdb""... $ac_c" 1>&6 -echo "configure:12672: checking for getuserattr in -lsecdb" >&5 -ac_lib_var=`echo secdb'_'getuserattr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsecdb $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_secdb="-lsecdb" -else - echo "$ac_t""no" 1>&6 -fi - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_secdb" -for ac_func in getauthattr getuserattr getexecattr getprofattr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12716: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -for ac_func in thr_yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12773: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - -echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:12827: checking for pthread_create in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpthread $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_pthread="-lpthread" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:12865: checking for pthread_create in -lc" >&5 -ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_pthread="" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_pthread" -for ac_func in pthread_create pthread_kill -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12912: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in pthread_mutex_lock pthread_cond_wait pthread_spin_lock -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12967: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6 -echo "configure:13022: checking for clock_gettime in -lc" >&5 -ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6 -echo "configure:13060: checking for clock_gettime in -lrt" >&5 -ac_lib_var=`echo rt'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lrt $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="-lrt" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6 -echo "configure:13098: checking for clock_gettime in -lposix4" >&5 -ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lposix4 $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="-lposix4" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_rt" -for ac_func in clock_gettime clock_settime clock_getres -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13147: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sched_getparam sched_setparam sched_getscheduler sched_setscheduler -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13202: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sched_yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13257: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in nanosleep -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13312: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for /dev/tty""... $ac_c" 1>&6 -echo "configure:13367: checking for /dev/tty" >&5 -if test -r /dev/tty; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_TTY 1 -EOF - -else - echo no -fi -echo $ac_n "checking for /dev/null""... $ac_c" 1>&6 -echo "configure:13378: checking for /dev/null" >&5 -if test -r /dev/null; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_NULL 1 -EOF - -else - echo no -fi -echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6 -echo "configure:13389: checking for /dev/zero" >&5 -if test -r /dev/zero; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_ZERO 1 -EOF - -else - echo no -fi - -echo $ac_n "checking if Linux include file linux/ext2_fs.h is broken""... $ac_c" 1>&6 -echo "configure:13401: checking if Linux include file linux/ext2_fs.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_linux_ext2_fs_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_linux_ext2_fs_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_linux_ext2_fs_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_linux_ext2_fs_h" 1>&6 -if test $ac_cv_broken_linux_ext2_fs_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_LINUX_EXT2_FS_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken""... $ac_c" 1>&6 -echo "configure:13436: checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_linux_ext2_fs_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_linux_ext2_fs_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_linux_ext2_fs_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_linux_ext2_fs_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_LINUX_EXT2_FS_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file scsi/scsi.h is broken""... $ac_c" 1>&6 -echo "configure:13473: checking if Linux include file scsi/scsi.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_scsi_scsi_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_scsi_scsi_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_scsi_scsi_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_scsi_scsi_h" 1>&6 -if test $ac_cv_broken_scsi_scsi_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SCSI_SCSI_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken""... $ac_c" 1>&6 -echo "configure:13508: checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_scsi_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_scsi_scsi_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_scsi_scsi_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_scsi_scsi_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_scsi_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_SCSI_SCSI_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file scsi/sg.h is broken""... $ac_c" 1>&6 -echo "configure:13545: checking if Linux include file scsi/sg.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_scsi_sg_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_scsi_sg_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_scsi_sg_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_scsi_sg_h" 1>&6 -if test $ac_cv_broken_scsi_sg_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SCSI_SG_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken""... $ac_c" 1>&6 -echo "configure:13581: checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_sg_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#include -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_scsi_sg_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_scsi_sg_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_scsi_sg_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_sg_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_SCSI_SG_H 1 -EOF - -fi - -if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then - may_linux_src_include=no -fi -if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then - may_linux_src_include=no -fi -if test .$may_linux_src_include = .no; then - echo - echo "Warning: *** /usr/src/linux/include contains broken include files ***" - echo "Warning: *** /usr/src/linux/include is not used this reason ***" - echo "Warning: This may result in the inability to use recent Linux kernel interfaces" - echo -fi - - - - - - - - - - - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -DEFS=-DHAVE_CONFIG_H - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir - -trap 'rm -fr `echo "rules.cnf xconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@OBJEXT@%$OBJEXT%g -s%@EXEEXT@%$EXEEXT%g -s%@CPP@%$CPP%g -s%@RANLIB@%$RANLIB%g -s%@SET_MAKE@%$SET_MAKE%g -s%@LIBOBJS@%$LIBOBJS%g -s%@ALLOCA@%$ALLOCA%g -s%@may_linux_src_include@%$may_linux_src_include%g -s%@largefile_cc_opt@%$largefile_cc_opt%g -s%@lib_crypt@%$lib_crypt%g -s%@lib_resolv@%$lib_resolv%g -s%@lib_intl@%$lib_intl%g -s%@scsi_lib@%$scsi_lib%g -s%@lib_scsi@%$lib_scsi%g -s%@lib_acl@%$lib_acl%g -s%@lib_acl_test@%$lib_acl_test%g -s%@lib_attr@%$lib_attr%g -s%@lib_secdb@%$lib_secdb%g -s%@lib_pthread@%$lib_pthread%g -s%@lib_rt@%$lib_rt%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' -ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='$%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in - -EOF - -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -cat > conftest.hdr <<\EOF -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% -EOF - -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. - -rm -f conftest.tail -while : -do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS - echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals -done -rm -f conftest.vals - -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h - else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - fi - rm -f $ac_file - mv conftest.h $ac_file - fi -fi; done - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff -Nru smake-1.2a41/conf/configure.in smake-1.2a49/conf/configure.in --- smake-1.2a41/conf/configure.in 2007-03-06 15:05:43.000000000 +0000 +++ smake-1.2a49/conf/configure.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,459 +0,0 @@ -dnl @(#)configure.in 1.118 07/03/06 Copyright 1998-2003 J. Schilling -dnl Process this file with autoconf to produce a configure script. -AC_REVISION($Revision$)dnl - -AC_INIT(xconfig.h.in) -AC_CONFIG_HEADER(xconfig.h) -AC_CANONICAL_HOST - -dnl Checks for programs. -AC_SHELL_BASH -dnl CC=${CC-cc} -dnl AC_PROG_CC -AC_OBJEXT -AC_EXEEXT -AC_PROG_CPP -dnl AC_PROG_INSTALL -AC_PROG_RANLIB -AC_PROG_MAKE_SET - -dnl Checks for header files. -AC_HEADER_STDC -AC_HEADER_INTTYPES -AC_HEADER_DIRENT -AC_HEADER_STAT -AC_HEADER_TIME -AC_HEADER_SYS_WAIT -dnl check whether select() needs sys/select.h -AC_HEADER_SYS_SELECT -dnl check whether select() needs sys/socket.h (BeOS) -AC_HEADER_SELECT2 -AC_CHECK_HEADERS(stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h sys/file.h) -AC_CHECK_HEADERS(getopt.h) -AC_CHECK_HEADERS(limits.h) -AC_CHECK_HEADERS(a.out.h aouthdr.h elf.h) -AC_CHECK_HEADERS(malloc.h termios.h termio.h) -AC_CHECK_HEADERS(pwd.h grp.h sys/acl.h acllib.h acl/libacl.h) -AC_CHECK_HEADERS(shadow.h syslog.h) -AC_CHECK_HEADERS(sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h) -AC_CHECK_HEADERS(sys/syscall.h) -AC_CHECK_HEADERS(mach/machine.h) -AC_CHECK_HEADERS(mntent.h sys/mntent.h sys/mnttab.h sys/mount.h) -AC_CHECK_HEADERS(wait.h sys/resource.h procfs.h sys/procfs.h) -AC_CHECK_HEADERS(sys/utsname.h sys/priocntl.h sys/rtpriocntl.h) -AC_CHECK_HEADERS(sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h) -AC_CHECK_HEADERS(sys/shm.h sys/ipc.h) -AC_CHECK_HEADERS(sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h) -AC_CHECK_HEADERS(sys/types.h sys/stat.h types.h stat.h) -AC_CHECK_HEADERS(sys/stypes.h sys/filedesc.h) -AC_CHECK_HEADERS(poll.h sys/poll.h sys/select.h) -AC_CHECK_HEADERS(netdb.h sys/socket.h) -AC_CHECK_HEADERS(ieeefp.h fp.h) -AC_CHECK_HEADERS(values.h float.h) -AC_CHECK_HEADERS(arpa/inet.h) -AC_CHECK_HEADERS(bsd/dev/scsireg.h) -dnl Check for HP-UX sys/bsdtty.h (needed for TIOCGPGRP) -AC_CHECK_HEADERS(sys/bsdtty.h) -dnl Check for BeOS kernel definitions (e.g. B_PAGE_SIZE) -AC_CHECK_HEADERS(OS.h) -dnl Check for moving Linux targets caused by missing concepts -AC_CHECK_HEADERS(ext2fs/ext2_fs.h) -dnl Check for Linux Extended File Attributes definitions -AC_CHECK_HEADERS(attr/xattr.h) -dnl Check for Mas OS X ac, av, env delarations -AC_CHECK_HEADERS(crt_externs.h) -AC_CHECK_HEADERS(fnmatch.h) -AC_CHECK_HEADERS(libintl.h locale.h langinfo.h) -AC_CHECK_HEADERS(wchar.h) -AC_CHECK_HEADERS(priv.h) -AC_CHECK_HEADERS(exec_attr.h secdb.h) -AC_CHECK_HEADERS(direct.h) -AC_CHECK_HEADERS(pthread.h thread.h) - -dnl from aclocal.m4 (uses AC_TRY_COMPILE) -AC_HEADER_MAKEDEV - -dnl don't use GNU original -dnl from GNU acspecific.m4 (uses AC_CHECK_HEADER) -dnl AC_HEADER_MAJOR - -AC_CHECK_MINOR_BITS -AC_CHECK_MINOR_NONCONTIG - -AC_HEADER_USG_STDIO -AC_HEADER_ERRNO_DEF - -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_C_BIGENDIAN -AC_C_BITFIELDS -AC_TYPE_SIGNAL -AC_TYPE_GETGROUPS -AC_TYPE_LONGLONG -AC_TYPE___INT64 -AC_TYPE_PROTOTYPES -dnl AC_USER_MALLOC must be past AC_CHECK_FUNCS(strdup) -AC_DYN_ARRAYS - -AC_TYPE_UID_T -AC_TYPE_SIZE_T -AC_CHECK_TYPE(ssize_t, int) -AC_TYPE_PID_T -AC_TYPE_OFF_T -AC_TYPE_MODE_T -AC_TYPE_TIME_T -AC_CHECK_TYPE(caddr_t, char *) -AC_CHECK_TYPE(daddr_t, long) -AC_CHECK_TYPE(dev_t, unsigned short) -AC_CHECK_TYPE(major_t, dev_t) -AC_CHECK_TYPE(minor_t, dev_t) -AC_CHECK_TYPE(ino_t, unsigned long) -AC_CHECK_TYPE(nlink_t, unsigned long) -AC_CHECK_TYPE(blksize_t, long) -AC_CHECK_TYPE(blkcnt_t, Intmax_t) -AC_TYPE_CLOCK_T -AC_TYPE_SOCKLEN_T - -dnl These types are present on all UNIX systems but should be avoided -dnl for portability. -dnl On Apollo/Domain OS we don't have them.... -dnl Better include and use Uchar, Uint & Ulong -AC_CHECK_TYPE(u_char, unsigned char) -AC_CHECK_TYPE(u_short, unsigned short) -AC_CHECK_TYPE(u_int, unsigned int) -AC_CHECK_TYPE(u_long, unsigned long) - -AC_CHECK_SIZEOF(char) -AC_CHECK_SIZEOF(short int) -AC_CHECK_SIZEOF(int) -AC_CHECK_SIZEOF(long int) -AC_CHECK_SIZEOF(long long) -AC_CHECK_SIZEOF(__int64) -AC_CHECK_SIZEOF(char *) - -AC_CHECK_SIZEOF(unsigned char) -AC_CHECK_SIZEOF(unsigned short int) -AC_CHECK_SIZEOF(unsigned int) -AC_CHECK_SIZEOF(unsigned long int) -AC_CHECK_SIZEOF(unsigned long long) -AC_CHECK_SIZEOF(unsigned __int64) -AC_CHECK_SIZEOF(unsigned char *) - -dnl # AC_TYPE_SIZE_T_ # Defines HAVE_SIZE_T / NO_SIZE_T -AC_TYPE_CHAR -AC_TYPE_VA_LIST -AC_STRUCT_MTGET_TYPE -AC_STRUCT_MTGET_MODEL -AC_STRUCT_MTGET_DSREG -AC_STRUCT_MTGET_DSREG1 -AC_STRUCT_MTGET_DSREG2 -AC_STRUCT_MTGET_GSTAT -AC_STRUCT_MTGET_ERREG -AC_STRUCT_MTGET_RESID -AC_STRUCT_MTGET_FILENO -AC_STRUCT_MTGET_BLKNO -AC_STRUCT_MTGET_FLAGS -AC_STRUCT_MTGET_BF -AC_STRUCT_RUSAGE -AC_STRUCT_SI_UTIME -AC_STRUCT_SOCKADDR_STORAGE -AC_STRUCT_UNION_SEMUN -AC_STRUCT_UNION_WAIT -AC_STRUCT_ST_SPARE1 -AC_STRUCT_ST_ATIMENSEC -AC_STRUCT_ST_NSEC -AC_STRUCT_ST__TIM -AC_STRUCT_ST_ATIMESPEC -AC_STRUCT_ST_BLKSIZE -AC_STRUCT_ST_BLOCKS -AC_STRUCT_ST_FSTYPE -AC_STRUCT_ST_ACLCNT -AC_STRUCT_ST_RDEV -AC_STRUCT_ST_FLAGS -AC_STRUCT_DIRENT_D_INO - -AC_CHECK_DECLARE([ -#include -#include ], stat) -AC_CHECK_DECLARE([ -#include -#include ], lstat) - - -dnl Checks for library functions. -AC_FUNC_WAIT3 -AC_FUNC_MLOCK -AC_FUNC_MLOCKALL -AC_FUNC_VA_COPY -AC_FUNC__VA_COPY -AC_FUNC_ECVT -AC_FUNC_FCVT -AC_FUNC_GCVT -AC_FUNC_DTOA -AC_FUNC_DTOA_R -jsAC_FUNC_MMAP -AC_MMAP_SIZEP -AC_FUNC_SMMAP -AC_FUNC_ALLOCA -AC_FUNC_QUOTAIOCTL -AC_FUNC_FCNTL_LOCKF -AC_FUNC_UNAME -AC_FUNC_VFORK -AC_FUNC_SYS_SIGLIST -AC_FUNC_BSD_GETPGRP -AC_FUNC_BSD_SETPGRP -AC_FUNC_C99_ISINF -AC_FUNC_C99_ISNAN -AC_FUNC_SIGSETJMP -AC_FUNC_SIGLONGJMP -AC_CHECK_FUNCS(access eaccess euidaccess) -AC_CHECK_FUNCS(brk sbrk strerror nice memmove flock lockf fchdir statvfs quotactl) -AC_CHECK_FUNCS(dup2) -AC_CHECK_FUNCS(getcwd shmat semget) -AC_CHECK_FUNCS(lstat readlink symlink link rename mkfifo mknod) -AC_CHECK_FUNCS(setreuid setresuid seteuid setuid) -AC_CHECK_FUNCS(setregid setresgid setegid setgid) -AC_CHECK_FUNCS(getpid getppid) -AC_CHECK_FUNCS(getpgid setpgid) -AC_CHECK_FUNCS(getpgrp setpgrp) -dnl getspwnam() on HP-UX is in libsec.a -AC_CHECK_FUNCS(getspnam getspwnam) -AC_CHECK_FUNCS(sync fsync fork wait4 waitid waitpid getrusage getrlimit setrlimit ulimit) -AC_CHECK_FUNCS(execl execle execlp execv execve execvp) -AC_CHECK_FUNCS(gethostid gethostname getdomainname getpagesize getdtablesize) -AC_CHECK_FUNCS(gettimeofday settimeofday time stime gethrtime) -AC_CHECK_FUNCS(ftime tzset mktime gmtime localtime timegm timelocal) -AC_CHECK_FUNCS(ctime cftime ascftime strftime) -AC_CHECK_FUNCS(poll select chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes) -dnl AC_CHECK_FUNCS(ecvt fcvt gcvt) -AC_CHECK_FUNCS(ecvt_r fcvt_r gcvt_r) -AC_CHECK_FUNCS(econvert fconvert gconvert) -AC_CHECK_FUNCS(isinf isnan) -AC_CHECK_FUNCS(rand drand48) -AC_CHECK_FUNCS(setpriority DosSetPriority) -AC_CHECK_FUNCS(DosAllocSharedMem) -AC_CHECK_FUNCS(seekdir fdopendir) -AC_CHECK_FUNCS(openat attropen fstatat fchownat futimesat renameat unlinkat) -AC_CHECK_FUNCS(popen pclose _popen _pclose) -AC_CHECK_FUNCS(strsignal str2sig sig2str) -AC_CHECK_FUNCS(killpg sigrelse sigprocmask sigsetmask sigset) -AC_CHECK_FUNCS(usleep yield) -AC_CHECK_FUNCS(tcgetattr tcsetattr tcgetpgrp tcsetpgrp) -AC_CHECK_FUNCS(putenv setenv snprintf strcasecmp strncpy strlcpy strdup) -AC_CHECK_FUNCS(valloc) -AC_CHECK_FUNCS(madvise) -AC_CHECK_FUNCS(mktemp mkstemp) -AC_CHECK_FUNCS(chflags fchflags fflagstostr strtofflags) -AC_CHECK_FUNCS(fnmatch) -AC_CHECK_FUNCS(truncate ftruncate) -AC_CHECK_FUNCS(getppriv setppriv priv_set) -AC_CHECK_FUNCS(clone_area create_area delete_area) - - -dnl Checks for typedefs, structures, and compiler characteristics. -dnl that need results from the AC_CHECK_FUNCS() calls. -AC_USER_MALLOC -AC_VAR_TIMEZONE - -dnl Checks for OS characteristics. -AC_HARD_SYMLINKS -AC_LINK_NOFOLLOW -AC_ACCESS_E_OK - -dnl Need to check this in default compilation mode to find out -dnl whether this platform supports both functions by default too. -dnl We cannot use the standard tests because they would find -dnl that fseeko()/ftello() are present in small file mode on -dnl Limnux while there is no prototype for these functions. -AC_SMALL_FSEEKO -AC_SMALL_FTELLO - -dnl ??? AC_CHECK_LIB(socket, socket, lib_socket="-lsocket") -dnl -AC_CHECK_LIB(socket, rcmd, lib_socket="-lsocket") -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_socket" -AC_CHECK_LIB(nsl, inet_ntoa, lib_nsl="-lnsl") -LIBS="$LIBS $lib_nsl" -AC_CHECK_FUNCS(rcmd socket socketpair) -AC_CHECK_FUNCS(getservbyname inet_ntoa) -AC_CHECK_FUNCS(getaddrinfo getnameinfo) -LIBS="$ac_save_LIBS" - -ac_save_LIBS="$LIBS" -AC_CHECK_LIB(c, res_init, lib_resolv="", - [AC_CHECK_LIB(resolv, res_init, lib_resolv="-lresolv")]) -LIBS="$ac_save_LIBS" - -dnl Check for largefile support -dnl Do this last to make sure that no large file definition -dnl in confdefs.h will modify our results -AC_SYS_LARGEFILE -dnl Warning do not run this test. it interferes with the test -dnl AC_CHECK_FUNCS(fseeko ftello) from above. -dnl The test AC_HAVE_LARGEFILES will check whether ftello/fseeko -dnl are available in Large File mode -dnl AC_FUNC_FSEEKO -AC_HAVE_LARGEFILES - -AC_DEFINE_UNQUOTED_STRING(HOST_ALIAS,$host_alias) -AC_DEFINE_UNQUOTED_STRING(HOST_SUB,$host) -AC_DEFINE_UNQUOTED_STRING(HOST_CPU,$host_cpu) -AC_DEFINE_UNQUOTED_STRING(HOST_VENDOR,$host_vendor) -AC_DEFINE_UNQUOTED_STRING(HOST_OS,$host_os) - -dnl AC_CHECK_LIB(crypt, crypt, lib_crypt="-lcrypt") - -AC_CHECK_LIB(c, crypt, lib_crypt="", - [AC_CHECK_LIB(crypt, crypt, lib_crypt="-lcrypt")]) - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_crypt" -AC_CHECK_FUNCS(crypt) -LIBS="$ac_save_LIBS" - -AC_CHECK_LIB(c, gettext, lib_intl="", - [AC_CHECK_LIB(intl, gettext, lib_intl="-lintl")]) - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_lib_intl" -AC_CHECK_FUNCS(gettext) -LIBS="$ac_save_LIBS" - -if test $ac_cv_header_camlib_h = yes; then - scsi_lib=-lcam - lib_scsi=-lcam -fi - -if test "$ac_cv_header_sys_acl_h" = yes; then - - AC_CHECKING(for Posix Access Control List support) - AC_CHECK_LIB(acl, acl_get_file, lib_acl="-lacl") - AC_CHECK_LIB(pacl, acl_get_file, lib_acl="-lpacl") - - if test ".$lib_acl" != .; then - lib_acl_test="$lib_acl" - fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - AC_CHECK_FUNCS(acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file) - AC_CHECK_FUNCS(acl_extended_file) - LIBS="$ac_save_LIBS" - - AC_CHECKING(for Solaris Access Control List support) - AC_CHECK_LIB(sec, acltotext, lib_acl="-lsec") - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - AC_CHECK_FUNCS(acl facl aclfromtext acltotext) - LIBS="$ac_save_LIBS" - - dnl On Solaris, there is no need for lib_acl_test ad acl(2) is in -libc - - AC_CHECKING(for HP-UX Access Control List support) - AC_CHECK_FUNCS(getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry) - - dnl XXX lib_acl_test: How do we test for ACLs on HP-UX? - -fi - -if test "$ac_cv_header_attr_xattr_h" = yes; then - AC_CHECKING(for Linux flavor Extended Attribute support) - AC_CHECK_LIB(attr, getxattr, lib_attr="-lattr") - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_attr" - AC_CHECK_FUNCS(getxattr setxattr listxattr lgetxattr lsetxattr llistxattr) - LIBS="$ac_save_LIBS" -fi - -AC_CHECKING(for RBAC support) -AC_CHECK_LIB(secdb, getuserattr, lib_secdb="-lsecdb") -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_secdb" -AC_CHECK_FUNCS(getauthattr getuserattr getexecattr getprofattr) -LIBS="$ac_save_LIBS" - -AC_CHECK_FUNCS(thr_yield) - -AC_CHECK_LIB(pthread, pthread_create, lib_pthread="-lpthread", - [AC_CHECK_LIB(c, pthread_create, lib_pthread="")]) - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_pthread" -AC_CHECK_FUNCS(pthread_create pthread_kill) -AC_CHECK_FUNCS(pthread_mutex_lock pthread_cond_wait pthread_spin_lock) -LIBS="$ac_save_LIBS" - -AC_CHECK_LIB(c, clock_gettime, lib_rt="", - [AC_CHECK_LIB(rt, clock_gettime, lib_rt="-lrt", - [AC_CHECK_LIB(posix4, clock_gettime, lib_rt="-lposix4")])]) - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_rt" -AC_CHECK_FUNCS(clock_gettime clock_settime clock_getres) -AC_CHECK_FUNCS(sched_getparam sched_setparam sched_getscheduler sched_setscheduler) -AC_CHECK_FUNCS(sched_yield) -AC_CHECK_FUNCS(nanosleep) -LIBS="$ac_save_LIBS" - -dnl Misc OS checks. -AC_MSG_CHECKING(for /dev/tty) -if test -r /dev/tty; then - echo yes - AC_DEFINE(HAVE_DEV_TTY) -else - echo no -fi -AC_MSG_CHECKING(for /dev/null) -if test -r /dev/null; then - echo yes - AC_DEFINE(HAVE_DEV_NULL) -else - echo no -fi -AC_MSG_CHECKING(for /dev/zero) -if test -r /dev/zero; then - echo yes - AC_DEFINE(HAVE_DEV_ZERO) -else - echo no -fi - -dnl Checks for OS madness. -AC_BROKEN_LINUX_EXT2_FS_H -AC_BROKEN_SRC_LINUX_EXT2_FS_H -AC_BROKEN_SCSI_SCSI_H -AC_BROKEN_SRC_SCSI_SCSI_H -AC_BROKEN_SCSI_SG_H -AC_BROKEN_SRC_SCSI_SG_H - -if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then - may_linux_src_include=no -fi -if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then - may_linux_src_include=no -fi -if test .$may_linux_src_include = .no; then - echo - echo "Warning: *** /usr/src/linux/include contains broken include files ***" - echo "Warning: *** /usr/src/linux/include is not used this reason ***" - echo "Warning: This may result in the inability to use recent Linux kernel interfaces" - echo -fi -AC_SUBST(may_linux_src_include) - -AC_SUBST(largefile_cc_opt) - -AC_SUBST(lib_crypt) -AC_SUBST(lib_resolv) -AC_SUBST(lib_intl) -AC_SUBST(scsi_lib) -AC_SUBST(lib_scsi) -AC_SUBST(lib_acl) -AC_SUBST(lib_acl_test) -AC_SUBST(lib_attr) -AC_SUBST(lib_secdb) -AC_SUBST(lib_pthread) -AC_SUBST(lib_rt) - -AC_OUTPUT(rules.cnf) diff -Nru smake-1.2a41/conf/install-sh smake-1.2a49/conf/install-sh --- smake-1.2a41/conf/install-sh 2005-05-03 14:04:43.000000000 +0100 +++ smake-1.2a49/conf/install-sh 2009-01-29 20:31:01.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # -# @(#)install-sh 1.7 05/05/03 1999 J. Schilling +# @(#)install-sh 1.11 09/01/29 1999-2009 J. Schilling # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). @@ -8,7 +8,7 @@ # non root user by J. Schilling # # Copyright 1991 by the Massachusetts Institute of Technology -# Copyright 1999 by J. Schilling +# Copyright 1999-2009 by J. Schilling # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that @@ -61,6 +61,7 @@ src="" dst="" dir_arg="" +noclobber="" # # Check if we are 'root' to avoid chown as non root user @@ -77,7 +78,7 @@ # Win95 has no user 'root' and chown succeeds always. # Unfortunately, there is also no user 'bin' and chown complains about # user 'bin' being non-existant. -# Check if the fie is now really owned by 'root' to avoid the Win95 probems +# Check if the file is now really owned by 'root' to avoid the Win95 probems # if [ $rootflag = TRUE ]; then ls -l ${dsttmp} 2> /dev/null | grep root > /dev/null || rootflag=FALSE @@ -87,6 +88,23 @@ while [ x"$1" != x ]; do case $1 in + -help) + echo "Usage: install-sh [options] srcfile dstfile" + echo " install-sh [options] srcfile dstdir" + echo " install-sh [options] -d dstdir" + echo "Options:" + echo " -c copy srcfile rather than renaming it" + echo " -d dir create dir" + echo " -noclobber do not replace existing files" + echo " -m mode install new files with 'mode'" + echo " -o owner install new files with 'owner'" + echo " -g group install new files with 'group'" + echo " -s strip file after installing" + echo " -t=sed-cmd sed command to transform the basename" + echo " -b=suff file name suffix for -t" + exit + continue;; + -c) instcmd="$cpprog" shift continue;; @@ -95,7 +113,27 @@ shift continue;; + -noclobber) noclobber=true + shift + continue;; + -m) chmodcmd="$chmodprog $2" + Asuidflag=FALSE + Ssuidflag=FALSE + if [ $rootflag = FALSE ] ; then + echo "$2" | grep '[1-7][0-7][0-7][0-7]$' > /dev/null && Asuidflag=TRUE + echo "$2" | grep '[st]' > /dev/null && Ssuidflag=TRUE + fi + if [ $Asuidflag = TRUE ]; then + nmode=`echo "$2" | sed 's/\(.*\)\([0-7][0-7][0-7]\)/\2/'` + chmodcmd="$chmodprog $nmode" + echo "install: -m option with suid/sticky available only to root -- ignored" + fi + if [ $Ssuidflag = TRUE ]; then + nmode=`echo "$2" | sed 's/\(.*\)/\1,a-st/'` + chmodcmd="$chmodprog $nmode" + echo "install: -m option with suid/sticky available only to root -- ignored" + fi shift shift continue;; @@ -259,6 +297,14 @@ true fi +# Check whether we might clobber an existing file + + if [ "$noclobber" -a -r "$dstdir/$dstfile" ]; then + echo "File '$dstdir/$dstfile' exists" + echo "Will not overwrite '$dstdir/$dstfile'." + exit + fi + # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# diff -Nru smake-1.2a41/conf/Makefile smake-1.2a49/conf/Makefile --- smake-1.2a41/conf/Makefile 2006-10-31 14:03:53.000000000 +0000 +++ smake-1.2a49/conf/Makefile 2007-10-24 17:28:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)Makefile 1.5 06/10/31 +#ident @(#)Makefile 1.6 07/10/24 ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -25,6 +25,14 @@ PCONFFILES= $(CONFFILES:%=$(OINCSDIR)/%) +_INSMODEI= $(_UNIQ)$(INSMODE) +__INSMODEI= $(_INSMODEI:$(_UNIQ)=$(INSMODEF)) +INSMODEI= $(__INSMODEI:$(_UNIQ)%=%) + +INSDIR= include/schily/$(OARCH) +TARGET= xconfig.h +PTARGET= ../incs/$(OARCH)/xconfig.h + all: config clobber: @@ -48,4 +56,3 @@ $(OTHERTARGETS): @echo "$@: nothing to make" - diff -Nru smake-1.2a41/conf/makeinc smake-1.2a49/conf/makeinc --- smake-1.2a41/conf/makeinc 2005-05-01 22:32:44.000000000 +0100 +++ smake-1.2a49/conf/makeinc 2008-10-12 19:15:19.000000000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh # -# @(#)makeinc 1.4 05/05/01 Copyright 1998 J. Schilling +# @(#)makeinc 1.5 08/10/12 Copyright 1998 J. Schilling ########################################################################### # Copyright 1998 by J. Schilling ########################################################################### @@ -17,14 +17,17 @@ # ./RULES/sun4c-sunos-gcc.rul # ########################################################################### -# Copyright Jörg Schilling. All rights reserved. -# # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# See the file CDDL.Schily.txt in this distribution or -# http://opensource.org/licenses/cddl1.php for details. +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -MAILADDR=schilling@fokus.fhg.de +MAILADDR=joerg.schilling@fokus.fraunhofer.de ########################################################################### # Option processing diff -Nru smake-1.2a41/conf/mkdep-msc-interix.sh smake-1.2a49/conf/mkdep-msc-interix.sh --- smake-1.2a41/conf/mkdep-msc-interix.sh 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/conf/mkdep-msc-interix.sh 2007-04-24 17:05:17.000000000 +0100 @@ -0,0 +1,80 @@ +#!/bin/sh +#ident "@(#)mkdep-msc-interix.sh 1.4 07/04/24 " +########################################################################### +# Copyright 1999,2006-2007 by J. Schilling +########################################################################### +# +# Create dependency list with Microsoft's cl from Interix +# +########################################################################### +# +# This script will probably not work correctly with a list of C-files +# but as we don't need it with 'smake' or 'gmake' it seems to be sufficient. +# +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +FILES= + +for i in "$@"; do + + case "$i" in + + -*) # ignore options + ;; + + *.c | *.C | *.cc | *.cxx | *.cpp) + + if [ ! -z "$FILES" ]; then + FILES="$FILES " + fi + # base name from $i + base=`echo $i | sed -e 's;[^/]*/;;'` + FILES="$FILES$base" + ;; + esac +done + +OFILES=`echo "$FILES" | sed -e 's;\([^.]*\)\.[cC]$;\1.obj;g' -e 's;\([^.]*\)\.cc$;\1.obj;g' -e 's;\([^.]*\)\.c..$;\1.obj;g' ` + +echo ".SPACE_IN_NAMES: true" +cl.exe -E -nologo 2> /dev/null "$@" | grep '^\#line' | cut -d\" -f2 | sort -u | \ + sed ' +s,^a:,/dev/fs/A, +s,^b:,/dev/fs/B, +s,^c:,/dev/fs/C, +s,^d:,/dev/fs/D, +s,^e:,/dev/fs/E, +s,^f:,/dev/fs/F, +s,^g:,/dev/fs/G, +s,^h:,/dev/fs/H, +s,^i:,/dev/fs/I, +s,^j:,/dev/fs/J, +s,^k:,/dev/fs/K, +s,^l:,/dev/fs/L, +s,^m:,/dev/fs/M, +s,^n:,/dev/fs/N, +s,^o:,/dev/fs/O, +s,^p:,/dev/fs/P, +s,^q:,/dev/fs/Q, +s,^r:,/dev/fs/R, +s,^s:,/dev/fs/S, +s,^t:,/dev/fs/T, +s,^u:,/dev/fs/U, +s,^v:,/dev/fs/V, +s,^w:,/dev/fs/W, +s,^x:,/dev/fs/X, +s,^y:,/dev/fs/Y, +s,^z:,/dev/fs/Z, +s,\([A-Z]\):,/dev/fs/\1, +s,\\\\,/,g +s/\([^\]\) /\1\\ /g' | sed -e "s;^;$OFILES: ;" +echo ".SPACE_IN_NAMES:" diff -Nru smake-1.2a41/conf/oarch.sh smake-1.2a49/conf/oarch.sh --- smake-1.2a41/conf/oarch.sh 2007-03-06 14:51:04.000000000 +0000 +++ smake-1.2a49/conf/oarch.sh 2009-10-31 20:03:00.000000000 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# @(#)oarch.sh 1.11 07/03/06 Copyright 2005-2007 J. Schilling +# @(#)oarch.sh 1.15 09/10/31 Copyright 2005-2009 J. Schilling ########################################################################### # Written 2005 by J. Schilling ########################################################################### @@ -36,6 +36,16 @@ cflag=FALSE oflag=FALSE pflag=FALSE +if [ .$1 = .-help ]; then + echo "Usage: oarch.sh [options]" + echo "Options:" + echo " -debug Print debugging information" + echo " -c Print C_ARCH instrad of OARCH" + echo " -o Print O_ARCH instrad of OARCH" + echo " -p Print PARCH instrad of OARCH" + echo " -x Print XARCH instrad of OARCH" + exit +fi if [ .$1 = .-debug ]; then dbgflag=TRUE fi @@ -52,12 +62,16 @@ pflag=TRUE fi -MACHCMD="((mach || uname -p || true) 2> /dev/null)" -ARCHCMD="((arch || /usr/ucb/arch || true) 2> /dev/null)" +# +# '((' does not work because of a parser bug in ksh on Interix. +# This is why we use '( (' here. +# +MACHCMD="( (mach || uname -p || true) 2> /dev/null)" +ARCHCMD="( (arch || /usr/ucb/arch || true) 2> /dev/null)" -XP_ARCH=`eval ${MACHCMD} | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-'` -XK_ARCH=`uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-'` -XM_ARCH=`eval ${ARCHCMD} | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-'` +XP_ARCH=`eval ${MACHCMD} | tr '[A-Z]' '[a-z]' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` +XK_ARCH=`uname -m | tr '[A-Z]' '[a-z]' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` +XM_ARCH=`eval ${ARCHCMD} | tr '[A-Z]' '[a-z]' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` #echo XP_ARCH $XP_ARCH #echo XK_ARCH $XK_ARCH @@ -78,8 +92,10 @@ M_ARCH="${K_ARCH}" fi -OSNAME=`uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-'` -OSREL=`uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-'` +OSNAME=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` +OSHOST=`uname -n | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` +OSREL=`uname -r | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` +OSVERS=`uname -v | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-'` O_ARCH="$OSNAME" @@ -141,6 +157,18 @@ O_ARCH=unixware fi +########################################################################### +# +# Interix: Avoid to have something like "Intel_x86_Family15_Model4_Stepping1" +# in $(OARCH), we rather use $(K_ARCH) which is e.g. "x86". +# XXX If this is changed, both files in DEFAULTS/ and DEFAULTS_ENG as +# XXX well as the file conf/oarch.sh need to be changed. +# +########################################################################### +if [ ."$OSNAME" = .interix ]; then + P_ARCH=${K_ARCH} +fi + MARCH="$M_ARCH" if [ ."$ARCH" != . ]; then MARCH="$ARCH" @@ -182,11 +210,14 @@ if [ $dbgflag = TRUE ]; then #echo xx"$P_ARCH" + echo C_ARCH " $C_ARCH" echo P_ARCH " $P_ARCH" echo K_ARCH " $K_ARCH" echo M_ARCH " $M_ARCH" echo OSNAME " $OSNAME" + echo OSHOST " $OSHOST" echo OSREL " $OSREL" + echo OSVERS " $OSVERS" echo OARCH " $OARCH" echo XARCH " $XARCH" exit diff -Nru smake-1.2a41/conf/post.html smake-1.2a49/conf/post.html --- smake-1.2a41/conf/post.html 2007-02-10 12:58:32.000000000 +0000 +++ smake-1.2a49/conf/post.html 2008-10-12 20:16:22.000000000 +0100 @@ -1,10 +1,10 @@


-FhG +FhG FhG FOKUS BerliOS - + Schily -Schily's Home +Schily's Home VED powered diff -Nru smake-1.2a41/conf/rules.cnf.in smake-1.2a49/conf/rules.cnf.in --- smake-1.2a41/conf/rules.cnf.in 2007-01-24 13:45:39.000000000 +0000 +++ smake-1.2a49/conf/rules.cnf.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -# @(#)rules.cnf.in 1.12 07/01/24 Copyright 1998-2003 J. Schilling - -EXEEXT= @EXEEXT@ -OBJEXT= @OBJEXT@ - -LARGEFILE_CC_OPT= @largefile_cc_opt@ - -MAY_LINUX_SRC_INCLUDE= @may_linux_src_include@ - -SCSILIB= @scsi_lib@ -LIB_SCSI= @lib_scsi@ -LIB_RESOLV= @lib_resolv@ -LIB_CRYPT= @lib_crypt@ -LIB_INTL= @lib_intl@ -LIB_ACL= @lib_acl@ -LIB_ACL_TEST= @lib_acl_test@ -LIB_ATTR = @lib_attr@ -LIB_SECDB = @lib_secdb@ -LIB_PTHREAD = @lib_pthread@ -LIB_RT = @lib_rt@ diff -Nru smake-1.2a41/conf/src-get smake-1.2a49/conf/src-get --- smake-1.2a41/conf/src-get 2005-07-07 14:11:22.000000000 +0100 +++ smake-1.2a49/conf/src-get 2009-07-08 23:34:29.000000000 +0100 @@ -1,17 +1,20 @@ #!/bin/sh -# @(#)src-get 1.18 05/07/07 Copyright 2005 J. Schilling +# @(#)src-get 1.20 09/07/09 Copyright 2005-2009 J. Schilling ########################################################################### -# Written 2005 by J. Schilling +# Written 2005-2009 by J. Schilling ########################################################################### # A source package controlling system which should behave similar to # the Debian apt-get command. ########################################################################### -# Copyright Jörg Schilling. All rights reserved. -# # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# See the file CDDL.Schily.txt in this distribution or -# http://opensource.org/licenses/cddl1.php for details. +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### # @@ -56,6 +59,7 @@ echo " list list installable packages" echo " shell start a SHELL with a clean environment" echo " compile do a full compilation from SRCROOT with a clean environment" + echo " version print the 'srg-get' version" } if [ $# -lt 1 ]; then @@ -65,8 +69,15 @@ cmd=$1 shift -echo "cmd: $cmd" -echo "args: $@" +case "$cmd" in + *version*) + ;; + + *) + echo "cmd: $cmd" + echo "args: $@" + ;; +esac excode=255 trap 'rm -rf /tmp/.d.$$; if [ -f ./$do_wget_file ]; then rm -f ./$do_wget_file; fi; exit 1' 1 2 15 @@ -333,7 +344,12 @@ NO_SRCROOT=no-SRCROOT-directory-found if get_srcroot; then - echo SRCROOT: $SRCROOT + case "$cmd" in + + *version*) ;; + + *) echo SRCROOT: $SRCROOT;; + esac else SRCROOT="$NO_SRCROOT" fi @@ -346,9 +362,11 @@ exit 1 fi if [ ! -z "`ls`" ]; then - echo "Current directory not empty." 1>&2 - echo "Will not install makefile system." 1>&2 - exit 1 + if [ "`ls`" != src-get ]; then + echo "Current directory not empty." 1>&2 + echo "Will not install makefile system." 1>&2 + exit 1 + fi fi do_wget ftp://ftp.berlios.de/pub/makefiles/testing/makefiles.tar${ZIP_SUFFIX} ${UNZIP} < makefiles.tar${ZIP_SUFFIX} | tar xf - @@ -426,9 +444,15 @@ exit 1 ;; - -help|*) echo "@(#)src-get 1.18 05/07/07 Copyright 2005 J. Schilling" + version|-version|--version) + echo "src-get 1.20 09/07/09 Copyright 2005-2009 J. Schilling" + exit 0 + ;; + + -help|*) echo "@(#)src-get 1.20 09/07/09 Copyright 2005-2009 J. Schilling" usage exit 0 ;; + esac diff -Nru smake-1.2a41/conf/xconfig.h.in smake-1.2a49/conf/xconfig.h.in --- smake-1.2a41/conf/xconfig.h.in 2007-03-06 15:05:43.000000000 +0000 +++ smake-1.2a49/conf/xconfig.h.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,687 +0,0 @@ -/* @(#)xconfig.h.in 1.115 07/03/06 Copyright 1998-2003 J. Schilling */ -/* - * Dynamic autoconf C-include code. - * - * Copyright (c) 1998-2003 J. Schilling - */ - -/* - * Header Files - */ -#undef PROTOTYPES /* if Compiler supports ANSI C prototypes */ -#undef HAVE_STDIO_H /* to use stdio.h */ -#undef HAVE_STDARG_H /* to use stdarg.h, else use varargs.h NOTE: SaberC on a Sun has prototypes but no stdarg.h */ -#undef HAVE_VARARGS_H /* to use use varargs.h NOTE: The free HP-UX C-compiler has stdarg.h but no PROTOTYPES */ -#undef HAVE_STDLIB_H /* to use general utility defines (malloc(), size_t ...) and general C library prototypes */ -#undef HAVE_STDDEF_H /* to use offsetof(), ptrdiff_t, wchar>t, size_t */ -#undef HAVE_STRING_H /* to get NULL and ANSI C string function prototypes */ -#undef HAVE_STRINGS_H /* to get BSD string function prototypes */ -#undef STDC_HEADERS /* if ANSI compliant stdlib.h, stdarg.h, string.h, float.h are present */ -#undef HAVE_UNISTD_H /* to get POSIX syscall prototypes XXX sys/file.h fcntl.h (unixstd/fctl)XXX*/ -#undef HAVE_GETOPT_H /* to get getopt() prototype from getopt.h instead of unistd.h */ -#undef HAVE_LIMITS_H /* to get POSIX numeric limits constants */ -#undef HAVE_A_OUT_H /* if a.out.h is present (may be a system using a.out format) */ -#undef HAVE_AOUTHDR_H /* if aouthdr.h is present. This is a COFF system */ -#undef HAVE_ELF_H /* if elf.h is present. This is an ELF system */ -#undef HAVE_FCNTL_H /* to access, O_XXX constants for open(), otherwise use sys/file.h */ -#undef HAVE_SYS_FILE_H /* to use O_XXX constants for open() and flock() defs */ -#undef HAVE_INTTYPES_H /* to use UNIX-98 inttypes.h */ -#undef HAVE_DIRENT_H /* to use POSIX dirent.h */ -#undef HAVE_SYS_DIR_H /* to use BSD sys/dir.h */ -#undef HAVE_NDIR_H /* to use ndir.h */ -#undef HAVE_SYS_NDIR_H /* to use sys/ndir.h */ -#undef HAVE_ALLOCA_H /* if alloca.h exists */ -#undef HAVE_MALLOC_H /* if malloc.h exists */ -#undef HAVE_TERMIOS_H /* to use POSIX termios.h */ -#undef HAVE_TERMIO_H /* to use SVR4 termio.h */ -#undef HAVE_PWD_H /* if pwd.h exists */ -#undef HAVE_GRP_H /* if grp.h exists */ -#undef HAVE_SYS_ACL_H /* to use for ACL definitions */ -#undef HAVE_ACLLIB_H /* if HP-UX is present */ -#undef HAVE_ACL_LIBACL_H /* if Linux is present */ -#undef HAVE_SHADOW_H /* if shadow.h exists */ -#undef HAVE_SYSLOG_H /* if syslog.h exists */ -#undef HAVE_SYS_TIME_H /* may include sys/time.h for struct timeval */ -#undef TIME_WITH_SYS_TIME /* may include both time.h and sys/time.h */ -#undef HAVE_TIMES /* to use times() and sys/times.h */ -#undef HAVE_SYS_TIMES_H /* may include sys/times.h for struct tms */ -#undef HAVE_UTIME /* to use AT&T utime() and utimbuf */ -#undef HAVE_UTIMES /* to use BSD utimes() and sys/time.h */ -#undef HAVE_FUTIMES /* to use BSD futimes() and sys/time.h */ -#undef HAVE_LUTIMES /* to use BSD lutimes() and sys/time.h */ -#undef HAVE_UTIME_H /* to use utime.h for the utimbuf structure declaration, else declare struct utimbuf yourself */ -#undef HAVE_SYS_UTIME_H /* to use sys/utime.h if utime.h does not exist */ -#undef HAVE_SYS_IOCTL_H /* if sys/ioctl.h is present */ -#undef HAVE_SYS_FILIO_H /* if sys/ioctl.h is present */ -#undef HAVE_SYS_PARAM_H /* if sys/param.h is present */ -#undef HAVE_MACH_MACHINE_H /* if mach/machine.h is present */ -#undef HAVE_MNTENT_H /* if mntent.h is present */ -#undef HAVE_SYS_MNTENT_H /* if sys/mntent.h is present */ -#undef HAVE_SYS_MNTTAB_H /* if sys/mnttab.h is present */ -#undef HAVE_SYS_MOUNT_H /* if sys/mount.h is present */ -#undef HAVE_WAIT_H /* to use wait.h for prototypes and union wait */ -#undef HAVE_SYS_WAIT_H /* else use sys/wait.h */ -#undef HAVE_SYS_RESOURCE_H /* to use sys/resource.h for rlimit() and wait3() */ -#undef HAVE_PROCFS_H /* to use procfs.h instead of sys/procfs.h (Solaris forces profcs-2) */ -#undef HAVE_SYS_PROCFS_H /* to use sys/procfs.h for wait3() emulation */ -#undef HAVE_SYS_SYSTEMINFO_H /* to use SVr4 sysinfo() */ -#undef HAVE_SYS_SYSCTL_H /* to use BSD sysctl() */ -#undef HAVE_SYS_UTSNAME_H /* to use uname() */ -#undef HAVE_SYS_PRIOCNTL_H /* to use SVr4 priocntl() instead of nice()/setpriority() */ -#undef HAVE_SYS_RTPRIOCNTL_H /* if the system supports SVr4 real time classes */ -#undef HAVE_SYS_SYSCALL_H /* to use syscall() */ -#undef HAVE_SYS_MTIO_H /* to use mtio definitions from sys/mtio.h */ -#undef HAVE_SYS_TAPE_H /* to use mtio definitions from AIX sys/tape.h */ -#undef HAVE_SYS_MMAN_H /* to use definitions for mmap()/madvise()... from sys/mman.h */ -#undef HAVE_SYS_SHM_H /* to use definitions for shmget() ... from sys/shm.h */ -#undef HAVE_SYS_IPC_H /* to use definitions for shmget() ... from sys/ipc.h */ -#undef MAJOR_IN_MKDEV /* if we should include sys/mkdev.h to get major()/minor()/makedev() */ -#undef MAJOR_IN_SYSMACROS /* if we should include sys/sysmacros.h to get major()/minor()/makedev() */ -#undef HAVE_SYS_DKIO_H /* if we may include sys/dkio.h for disk ioctls */ -#undef HAVE_SYS_DKLABEL_H /* if we may include sys/dklabel.h for disk label */ -#undef HAVE_SUN_DKIO_H /* if we may include sun/dkio.h for disk ioctls */ -#undef HAVE_SUN_DKLABEL_H /* if we may include sun/dklabel.h for disk label */ -#undef HAVE_SYS_TYPES_H /* if we may include sys/types.h (the standard) */ -#undef HAVE_SYS_STYPES_H /* if we may include sys/stypes.h (JOS) */ -#undef HAVE_SYS_FILEDESC_H /* if we may include sys/filedesc.h (JOS) */ -#undef HAVE_SYS_STAT_H /* if we may include sys/stat.h (the standard) */ -#undef HAVE_TYPES_H /* if we may include types.h (rare cases e.g. ATARI TOS) */ -#undef HAVE_STAT_H /* if we may include stat.h (rare cases e.g. ATARI TOS) */ -#undef HAVE_POLL_H /* if we may include poll.h to use poll() */ -#undef HAVE_SYS_POLL_H /* if we may include sys/poll.h to use poll() */ -#undef HAVE_SYS_SELECT_H /* if we may have sys/select.h nonstandard use for select() on some systems*/ -#undef NEED_SYS_SELECT_H /* if we need sys/select.h to use select() (this is nonstandard) */ -#undef HAVE_NETDB_H /* if we have netdb.h for get*by*() and rcmd() */ -#undef HAVE_SYS_SOCKET_H /* if we have sys/socket.h for socket() */ -#undef NEED_SYS_SOCKET_H /* if we need sys/socket.h to use select() (this is nonstandard) */ -#undef HAVE_LINUX_PG_H /* if we may include linux/pg.h for PP ATAPI sypport */ -#undef HAVE_CAMLIB_H /* if we may include camlib.h for CAM SCSI transport definitions */ -#undef HAVE_IEEEFP_H /* if we may include ieeefp.h for finite()/isnand() */ -#undef HAVE_FP_H /* if we may include fp.h for FINITE()/IS_INF()/IS_NAN() */ -#undef HAVE_VALUES_H /* if we may include values.h for MAXFLOAT */ -#undef HAVE_FLOAT_H /* if we may include float.h for FLT_MAX */ -#undef HAVE__FILBUF /* if we have _filbuf() for USG derived STDIO */ -#undef HAVE___FILBUF /* if we have __filbuf() for USG derived STDIO */ -#undef HAVE_USG_STDIO /* if we have USG derived STDIO */ -#undef HAVE_ERRNO_DEF /* if we have errno definition in */ -#undef HAVE_VFORK_H /* if we should include vfork.h for vfork() definitions */ -#undef HAVE_ARPA_INET_H /* if we have arpa/inet.h (missing on BeOS) */ - /* BeOS has inet_ntoa() in */ -#undef HAVE_BSD_DEV_SCSIREG_H /* if we have a NeXT Step compatible sg driver */ -#undef HAVE_SYS_BSDTTY_H /* if we have sys/bsdtty.h on HP-UX for TIOCGPGRP */ -#undef HAVE_OS_H /* if we have the BeOS kernel definitions in OS.h */ -#undef HAVE_EXT2FS_EXT2_FS_H /* if we have the Linux moving target ext2fs/ext2_fs.h */ -#undef HAVE_ATTR_XATTR_H /* if we have the Linux Extended File Attr definitions in attr/xattr.h */ -#undef HAVE_CRT_EXTERNS_H /* if we have the Mac OS X env definitions in crt_externs.h */ -#undef HAVE_FNMATCH_H /* if we may include fnmatch.h */ -#undef HAVE_DIRECT_H /* if we may include direct.h (MSVC for getcwd()/chdir()/mkdir()/rmdir()) */ - -#undef HAVE_LIBINTL_H /* if we may include libintl.h */ -#undef HAVE_LOCALE_H /* if we may include locale.h */ -#undef HAVE_LANGINFO_H /* if we may include langinfo.h */ -#undef HAVE_WCHAR_H /* if we may include wchar.h */ -#undef HAVE_PRIV_H /* if we may include priv.h */ -#undef HAVE_EXEC_ATTR_H /* if we may include exec_attr.h */ -#undef HAVE_SECDB_H /* if we may include secdb.h */ -#undef HAVE_PTHREAD_H /* if we may include pthread.h */ -#undef HAVE_THREAD_H /* if we may include thread.h */ - -/* - * Convert to SCHILY name - */ -#ifdef STDC_HEADERS -# ifndef HAVE_STDC_HEADERS -# define HAVE_STDC_HEADERS -# endif -#endif - -#ifdef HAVE_ELF_H -#define HAVE_ELF /* This system uses ELF */ -#else -# ifdef HAVE_AOUTHDR_H -# define HAVE_COFF /* This system uses COFF */ -# else -# ifdef HAVE_A_OUT_H -# define HAVE_AOUT /* This system uses AOUT */ -# endif -# endif -#endif - -/* - * Function declarations - */ -#undef HAVE_DECL_STAT /* Whether defines extern stat(); */ -#undef HAVE_DECL_LSTAT /* Whether defines extern lstat(); */ - -/* - * Library Functions - */ -#undef HAVE_ACCESS /* access() is present in libc */ -#undef HAVE_EACCESS /* eaccess() is present in libc */ -#undef HAVE_EUIDACCESS /* euidaccess() is present in libc */ -#undef HAVE_ACCESS_E_OK /* access() implements E_OK (010) for effective UIDs */ -#undef HAVE_CRYPT /* crypt() is present in libc or libcrypt */ -#undef HAVE_STRERROR /* strerror() is present in libc */ -#undef HAVE_MEMMOVE /* memmove() is present in libc */ -#undef HAVE_MADVISE /* madvise() is present in libc */ -#undef HAVE_MLOCK /* mlock() is present in libc */ -#undef HAVE_MLOCKALL /* working mlockall() is present in libc */ -#undef HAVE_MMAP /* working mmap() is present in libc */ -#undef _MMAP_WITH_SIZEP /* mmap() needs address of size parameter */ -#undef HAVE_FLOCK /* *BSD flock() is present in libc */ -#undef HAVE_LOCKF /* lockf() is present in libc (XOPEN) */ -#undef HAVE_FCNTL_LOCKF /* file locking via fcntl() is present in libc */ -#undef HAVE_FCHDIR /* fchdir() is present in libc */ -#undef HAVE_FDOPENDIR /* fdopendir() is present in libc */ -#undef HAVE_OPENAT /* openat() is present in libc */ -#undef HAVE_ATTROPEN /* attropen() is present in libc */ -#undef HAVE_FSTATAT /* fstatat() is present in libc */ -#undef HAVE_FCHOWNAT /* fchownat() is present in libc */ -#undef HAVE_FUTIMESAT /* futimesat() is present in libc */ -#undef HAVE_RENAMEAT /* renameat() is present in libc */ -#undef HAVE_UNLINKAT /* unlinkat() is present in libc */ -#undef HAVE_POPEN /* popen() is present in libc */ -#undef HAVE_PCLOSE /* pclose() is present in libc */ -#undef HAVE__POPEN /* _popen() is present in libc */ -#undef HAVE__PCLOSE /* _pclose() is present in libc */ -#undef HAVE_STATVFS /* statvfs() is present in libc */ -#undef HAVE_QUOTACTL /* quotactl() is present in libc */ -#undef HAVE_QUOTAIOCTL /* use ioctl(f, Q_QUOTACTL, &q) instead of quotactl() */ -#undef HAVE_GETPID /* getpid() is present in libc */ -#undef HAVE_GETPPID /* getppid() is present in libc */ -#undef HAVE_SETREUID /* setreuid() is present in libc */ -#undef HAVE_SETRESUID /* setresuid() is present in libc */ -#undef HAVE_SETEUID /* seteuid() is present in libc */ -#undef HAVE_SETUID /* setuid() is present in libc */ -#undef HAVE_SETREGID /* setregid() is present in libc */ -#undef HAVE_SETRESGID /* setresgid() is present in libc */ -#undef HAVE_SETEGID /* setegid() is present in libc */ -#undef HAVE_SETGID /* setgid() is present in libc */ -#undef HAVE_GETPGID /* getpgid() is present in libc (POSIX) */ -#undef HAVE_SETPGID /* setpgid() is present in libc (POSIX) */ -#undef HAVE_GETPGRP /* getpgrp() is present in libc (ANY) */ -#undef HAVE_SETPGRP /* setpgrp() is present in libc (ANY) */ -#undef HAVE_BSD_GETPGRP /* getpgrp() in libc is BSD-4.2 compliant */ -#undef HAVE_BSD_SETPGRP /* setpgrp() in libc is BSD-4.2 compliant */ -#undef HAVE_GETSPNAM /* getspnam() in libc (SVR4 compliant) */ -#undef HAVE_GETSPWNAM /* getspwnam() in libsec.a (HP-UX) */ -#undef HAVE_SYNC /* sync() is present in libc */ -#undef HAVE_FSYNC /* fsync() is present in libc */ -#undef HAVE_TCGETATTR /* tcgetattr() is present in libc */ -#undef HAVE_TCSETATTR /* tcsetattr() is present in libc */ -#undef HAVE_TCGETPGRP /* tcgetpgrp() is present in libc */ -#undef HAVE_TCSETPGRP /* tcsetpgrp() is present in libc */ -#undef HAVE_WAIT3 /* working wait3() is present in libc */ -#undef HAVE_WAIT4 /* wait4() is present in libc */ -#undef HAVE_WAITID /* waitid() is present in libc */ -#undef HAVE_WAITPID /* waitpid() is present in libc */ -#undef HAVE_GETHOSTID /* gethostid() is present in libc */ -#undef HAVE_GETHOSTNAME /* gethostname() is present in libc */ -#undef HAVE_GETDOMAINNAME /* getdomainname() is present in libc */ -#undef HAVE_GETPAGESIZE /* getpagesize() is present in libc */ -#undef HAVE_GETDTABLESIZE /* getdtablesize() is present in libc */ -#undef HAVE_GETRUSAGE /* getrusage() is present in libc */ -#undef HAVE_GETRLIMIT /* getrlimit() is present in libc */ -#undef HAVE_SETRLIMIT /* setrlimit() is present in libc */ -#undef HAVE_ULIMIT /* ulimit() is present in libc */ -#undef HAVE_GETTIMEOFDAY /* gettimeofday() is present in libc */ -#undef HAVE_SETTIMEOFDAY /* settimeofday() is present in libc */ -#undef HAVE_VAR_TIMEZONE /* extern long timezone is present in libc */ -#undef HAVE_TIME /* time() is present in libc */ -#undef HAVE_GMTIME /* gmtime() is present in libc */ -#undef HAVE_LOCALTIME /* localtime() is present in libc */ -#undef HAVE_MKTIME /* mktime() is present in libc */ -#undef HAVE_TIMEGM /* timegm() is present in libc */ -#undef HAVE_TIMELOCAL /* timelocal() is present in libc */ -#undef HAVE_FTIME /* ftime() is present in libc */ -#undef HAVE_STIME /* stime() is present in libc */ -#undef HAVE_TZSET /* tzset() is present in libc */ -#undef HAVE_CTIME /* ctime() is present in libc */ -#undef HAVE_CFTIME /* cftime() is present in libc */ -#undef HAVE_ASCFTIME /* ascftime() is present in libc */ -#undef HAVE_STRFTIME /* strftime() is present in libc */ -#undef HAVE_GETHRTIME /* gethrtime() is present in libc */ -#undef HAVE_POLL /* poll() is present in libc */ -#undef HAVE_SELECT /* select() is present in libc */ -#undef HAVE_CHMOD /* chmod() is present in libc */ -#undef HAVE_FCHMOD /* fchmod() is present in libc */ -#undef HAVE_LCHMOD /* lchmod() is present in libc */ -#undef HAVE_CHOWN /* chown() is present in libc */ -#undef HAVE_FCHOWN /* fchown() is present in libc */ -#undef HAVE_LCHOWN /* lchown() is present in libc */ -#undef HAVE_TRUNCATE /* truncate() is present in libc */ -#undef HAVE_FTRUNCATE /* ftruncate() is present in libc */ -#undef HAVE_BRK /* brk() is present in libc */ -#undef HAVE_SBRK /* sbrk() is present in libc */ -#undef HAVE_VA_COPY /* va_copy() is present in varargs.h/stdarg.h */ -#undef HAVE__VA_COPY /* __va_copy() is present in varargs.h/stdarg.h */ -#undef HAVE_DTOA /* BSD-4.4 __dtoa() is present in libc */ -#undef HAVE_DTOA_R /* BSD-4.4 __dtoa() with result ptr (reentrant) */ -#undef HAVE_DUP2 /* dup2() is present in libc */ -#undef HAVE_GETCWD /* POSIX getcwd() is present in libc */ -#undef HAVE_SMMAP /* may map anonymous memory to get shared mem */ -#undef HAVE_SHMAT /* shmat() is present in libc */ -#undef HAVE_SEMGET /* semget() is present in libc */ -#undef HAVE_LSTAT /* lstat() is present in libc */ -#undef HAVE_READLINK /* readlink() is present in libc */ -#undef HAVE_SYMLINK /* symlink() is present in libc */ -#undef HAVE_LINK /* link() is present in libc */ -#undef HAVE_HARD_SYMLINKS /* link() allows hard links on symlinks */ -#undef HAVE_LINK_NOFOLLOW /* link() does not follow symlinks when hard linking symlinks */ -#undef HAVE_RENAME /* rename() is present in libc */ -#undef HAVE_MKFIFO /* mkfifo() is present in libc */ -#undef HAVE_MKNOD /* mknod() is present in libc */ -#undef HAVE_ECVT /* ecvt() is present in libc */ -#undef HAVE_FCVT /* fcvt() is present in libc */ -#undef HAVE_GCVT /* gcvt() is present in libc */ -#undef HAVE_ECVT_R /* ecvt_r() is present in libc */ -#undef HAVE_FCVT_R /* fcvt_r() is present in libc */ -#undef HAVE_GCVT_R /* gcvt_r() is present in libc */ -#undef HAVE_ECONVERT /* econvert() is present in libc */ -#undef HAVE_FCONVERT /* fconvert() is present in libc */ -#undef HAVE_GCONVERT /* gconvert() is present in libc */ -#undef HAVE_ISINF /* isinf() is present in libc */ -#undef HAVE_ISNAN /* isnan() is present in libc */ -#undef HAVE_C99_ISINF /* isinf() is present in math.h/libc */ -#undef HAVE_C99_ISNAN /* isnan() is present in math.h/libc */ -#undef HAVE_RAND /* rand() is present in libc */ -#undef HAVE_DRAND48 /* drand48() is present in libc */ -#undef HAVE_SETPRIORITY /* setpriority() is present in libc */ -#undef HAVE_NICE /* nice() is present in libc */ -#undef HAVE_DOSSETPRIORITY /* DosSetPriority() is present in libc */ -#undef HAVE_DOSALLOCSHAREDMEM /* DosAllocSharedMem() is present in libc */ -#undef HAVE_SEEKDIR /* seekdir() is present in libc */ -#undef HAVE_PUTENV /* putenv() is present in libc (preferred function) */ -#undef HAVE_SETENV /* setenv() is present in libc (use instead of putenv()) */ -#undef HAVE_UNAME /* uname() is present in libc */ -#undef HAVE_SNPRINTF /* snprintf() is present in libc */ -#undef HAVE_STRCASECMP /* strcasecmp() is present in libc */ -#undef HAVE_STRNCPY /* strncpy() is present in libc */ -#undef HAVE_STRLCPY /* strlcpy() is present in libc */ -#undef HAVE_STRDUP /* strdup() is present in libc */ -#undef HAVE_STRSIGNAL /* strsignal() is present in libc */ -#undef HAVE_STR2SIG /* str2sig() is present in libc */ -#undef HAVE_SIG2STR /* sig2str() is present in libc */ -#undef HAVE_SIGSETJMP /* sigsetjmp() is present in libc */ -#undef HAVE_SIGLONGJMP /* siglongjmp() is present in libc */ -#undef HAVE_KILLPG /* killpg() is present in libc */ -#undef HAVE_SIGRELSE /* sigrelse() is present in libc */ -#undef HAVE_SIGPROCMASK /* sigprocmask() is present in libc (POSIX) */ -#undef HAVE_SIGSETMASK /* sigsetmask() is present in libc (BSD) */ -#undef HAVE_SIGSET /* sigset() is present in libc (POSIX) */ -#undef HAVE_SYS_SIGLIST /* char *sys_siglist[] is present in libc */ -#undef HAVE_USLEEP /* usleep() is present in libc */ -#undef HAVE_FORK /* fork() is present in libc */ -#undef HAVE_EXECL /* execl() is present in libc */ -#undef HAVE_EXECLE /* execle() is present in libc */ -#undef HAVE_EXECLP /* execlp() is present in libc */ -#undef HAVE_EXECV /* execv() is present in libc */ -#undef HAVE_EXECVE /* execve() is present in libc */ -#undef HAVE_EXECVP /* execvp() is present in libc */ -#undef HAVE_ALLOCA /* alloca() is present (else use malloc())*/ -#undef HAVE_VALLOC /* valloc() is present in libc (else use malloc())*/ -#undef vfork - -#undef HAVE_CHFLAGS /* chflags() is present in libc */ -#undef HAVE_FCHFLAGS /* fchflags() is present in libc */ -#undef HAVE_FFLAGSTOSTR /* fflagstostr() is present in libc */ -#undef HAVE_STRTOFFLAGS /* strtofflags() is present in libc */ - -#undef HAVE_GETTEXT /* gettext() is present in -lintl */ - -#undef HAVE_FNMATCH /* fnmatch() is present in libc */ - -#undef HAVE_MKTEMP /* mktemp() is present in libc */ -#undef HAVE_MKSTEMP /* mkstemp() is present in libc */ - -#undef HAVE_GETPPRIV /* getppriv() is present in libc */ -#undef HAVE_SETPPRIV /* setppriv() is present in libc */ -#undef HAVE_PRIV_SET /* priv_set() is present in libc */ - -#undef HAVE_GETAUTHATTR /* getauthattr() is present in -lsec */ -#undef HAVE_GETUSERATTR /* getuserattr() is present in -lsec */ -#undef HAVE_GETEXECATTR /* getexecattr() is present in -lsec */ -#undef HAVE_GETPROFATTR /* getprofattr() is present in -lsec */ - -#undef HAVE_CLONE_AREA /* clone_area() is present in libc */ -#undef HAVE_CREATE_AREA /* create_area() is present in libc */ -#undef HAVE_DELETE_AREA /* delete_area() is present in libc */ - -#undef HAVE_YIELD /* yield() is present in libc */ -#undef HAVE_THR_YIELD /* thr_yield() is present in libc */ - -#undef HAVE_PTHREAD_CREATE /* pthread_create() is present in libpthread */ -#undef HAVE_PTHREAD_KILL /* pthread_kill() is present in libpthread */ -#undef HAVE_PTHREAD_MUTEX_LOCK /* pthread_mutex_lock() is present in libpthread */ -#undef HAVE_PTHREAD_COND_WAIT /* pthread_cond_wait() is present in libpthread */ -#undef HAVE_PTHREAD_SPIN_LOCK /* pthread_spin_lock() is present in libpthread */ - -#undef HAVE_CLOCK_GETTIME /* clock_gettime() is present in librt */ -#undef HAVE_CLOCK_SETTIME /* clock_settime() is present in librt */ -#undef HAVE_CLOCK_GETRES /* clock_getres() is present in librt */ -#undef HAVE_SCHED_GETPARAM /* sched_getparam() is present in librt */ -#undef HAVE_SCHED_SETPARAM /* sched_setparam() is present in librt */ -#undef HAVE_SCHED_GETSCHEDULER /* sched_getscheduler() is present in librt */ -#undef HAVE_SCHED_SETSCHEDULER /* sched_setscheduler() is present in librt */ -#undef HAVE_SCHED_YIELD /* sched_yield() is present in librt */ -#undef HAVE_NANOSLEEP /* nanosleep() is present in librt */ - -/* - * Misc OS stuff - */ -#undef HAVE_DEV_TTY /* /dev/tty present */ -#undef HAVE_DEV_NULL /* /dev/null present */ -#undef HAVE_DEV_ZERO /* /dev/zero present */ - -/* - * Misc OS programs - */ -#undef SHELL_IS_BASH /* /bin/sh is bash */ - -/* - * OS madness - */ -#undef HAVE_BROKEN_LINUX_EXT2_FS_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_LINUX_EXT2_FS_H /* whether /usr/src/linux/include/linux/ext2_fs.h is broken */ -#undef HAVE_BROKEN_SCSI_SCSI_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_SCSI_SCSI_H /* whether /usr/src/linux/include/scsi/scsi.h is broken */ -#undef HAVE_BROKEN_SCSI_SG_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_SCSI_SG_H /* whether /usr/src/linux/include/scsi/sg.h is broken */ - -/* - * Linux Extended File Attributes - */ -#undef HAVE_GETXATTR /* getxattr() */ -#undef HAVE_SETXATTR /* setxattr() */ -#undef HAVE_LISTXATTR /* listxattr() */ -#undef HAVE_LGETXATTR /* lgetxattr() */ -#undef HAVE_LSETXATTR /* lsetxattr() */ -#undef HAVE_LLISTXATTR /* llistxattr() */ - -/* - * Important: This must be a result from a check _before_ the Large File test - * has been run. It then tells us whether these functions are - * available even when not in Large File mode. - * - * Do not run the AC_FUNC_FSEEKO test from the GNU tar Large File test - * siute. It will use the same cache names and interfere with our test. - * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure - * they are placed before the large file tests. - */ -#undef HAVE_FSEEKO /* fseeko() is present in default compile mode */ -#undef HAVE_FTELLO /* ftello() is present in default compile mode */ - -#undef HAVE_RCMD /* rcmd() is present in libc/libsocket */ -#undef HAVE_SOCKET /* socket() is present in libc/libsocket */ -#undef HAVE_SOCKETPAIR /* socketpair() is present in libc/libsocket */ -#undef HAVE_GETSERVBYNAME /* getservbyname() is present in libc/libsocket */ -#undef HAVE_INET_NTOA /* inet_ntoa() is present in libc/libsocket */ -#undef HAVE_GETADDRINFO /* getaddrinfo() is present in libc/libsocket */ -#undef HAVE_GETNAMEINFO /* getnameinfo() is present in libc/libsocket */ - -#if defined(HAVE_QUOTACTL) || defined(HAVE_QUOTAIOCTL) -# define HAVE_QUOTA /* The system inludes quota */ -#endif - -/* - * We need to test for the include files too because Apollo Domain/OS has a - * libc that includes the functions but the includes files are not visible - * from the BSD compile environment. - */ -#if defined(HAVE_SHMAT) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) -# define HAVE_USGSHM /* USG shared memory is present */ -#endif -#if defined(HAVE_SEMGET) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) -# define HAVE_USGSEM /* USG semaphores are present */ -#endif - -#if defined(HAVE_GETPGRP) && !defined(HAVE_BSD_GETPGRP) -#define HAVE_POSIX_GETPGRP 1 /* getpgrp() in libc is POSIX compliant */ -#endif -#if defined(HAVE_SETPGRP) && !defined(HAVE_BSD_SETPGRP) -#define HAVE_POSIX_SETPGRP 1 /* setpgrp() in libc is POSIX compliant */ -#endif - -/* - * Structures - */ -#undef HAVE_MTGET_TYPE /* if struct mtget contains mt_type (drive type) */ -#undef HAVE_MTGET_MODEL /* if struct mtget contains mt_model (drive type) */ -#undef HAVE_MTGET_DSREG /* if struct mtget contains mt_dsreg (drive status) */ -#undef HAVE_MTGET_DSREG1 /* if struct mtget contains mt_dsreg1 (drive status msb) */ -#undef HAVE_MTGET_DSREG2 /* if struct mtget contains mt_dsreg2 (drive status lsb) */ -#undef HAVE_MTGET_GSTAT /* if struct mtget contains mt_gstat (generic status) */ -#undef HAVE_MTGET_ERREG /* if struct mtget contains mt_erreg (error register) */ -#undef HAVE_MTGET_RESID /* if struct mtget contains mt_resid (residual count) */ -#undef HAVE_MTGET_FILENO /* if struct mtget contains mt_fileno (file #) */ -#undef HAVE_MTGET_BLKNO /* if struct mtget contains mt_blkno (block #) */ -#undef HAVE_MTGET_FLAGS /* if struct mtget contains mt_flags (flags) */ -#undef HAVE_MTGET_BF /* if struct mtget contains mt_bf (optimum blocking factor) */ -#undef HAVE_STRUCT_RUSAGE /* have struct rusage in sys/resource.h */ -#undef HAVE_SI_UTIME /* if struct siginfo contains si_utime */ -#undef HAVE_UNION_SEMUN /* have an illegal definition for union semun in sys/sem.h */ -#undef HAVE_UNION_WAIT /* have union wait in wait.h */ -#undef HAVE_DIRENT_D_INO /* have d_ino in struct dirent */ -/* - * SCO UnixWare has st_atim.st__tim.tv_nsec but the st_atim.tv_nsec tests also - * succeeds. If you use st_atim.tv_nsec on UnixWare, you get a warning about - * illegal structure usage. For this reason, your code needs to have - * #ifdef HAVE_ST__TIM before #ifdef HAVE_ST_NSEC. - */ -#undef HAVE_ST_SPARE1 /* if struct stat contains st_spare1 (usecs) */ -#undef HAVE_ST_ATIMENSEC /* if struct stat contains st_atimensec (nanosecs) */ -#undef HAVE_ST_NSEC /* if struct stat contains st_atim.tv_nsec (nanosecs) */ -#undef HAVE_ST__TIM /* if struct stat contains st_atim.st__tim.tv_nsec (nanosecs) */ -#undef HAVE_ST_ATIMESPEC /* if struct stat contains st_atimespec.tv_nsec (nanosecs) */ -#undef HAVE_ST_BLKSIZE /* if struct stat contains st_blksize */ -#undef HAVE_ST_BLOCKS /* if struct stat contains st_blocks */ -#undef HAVE_ST_FSTYPE /* if struct stat contains st_fstype */ -#undef HAVE_ST_ACLCNT /* if struct stat contains st_aclcnt */ -#undef HAVE_ST_RDEV /* if struct stat contains st_rdev */ -#undef HAVE_ST_FLAGS /* if struct stat contains st_flags */ -#undef STAT_MACROS_BROKEN /* if the macros S_ISDIR, S_ISREG .. don't work */ - -#undef DEV_MINOR_BITS /* # if bits needed to hold minor device number */ -#undef DEV_MINOR_NONCONTIG /* if bits in minor device number are noncontiguous */ - -#undef HAVE_SOCKADDR_STORAGE /* if socket.h defines struct sockaddr_storage */ - - -/* - * Byteorder/Bitorder - */ -#define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ -#undef WORDS_BIGENDIAN /* If using network byte order */ -#define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ -#undef BITFIELDS_HTOL /* If high bits come first in structures */ - -/* - * Types/Keywords - */ -#undef SIZEOF_CHAR -#undef SIZEOF_SHORT_INT -#undef SIZEOF_INT -#undef SIZEOF_LONG_INT -#undef SIZEOF_LONG_LONG -#undef SIZEOF___INT64 -#undef SIZEOF_CHAR_P -#undef SIZEOF_UNSIGNED_CHAR -#undef SIZEOF_UNSIGNED_SHORT_INT -#undef SIZEOF_UNSIGNED_INT -#undef SIZEOF_UNSIGNED_LONG_INT -#undef SIZEOF_UNSIGNED_LONG_LONG -#undef SIZEOF_UNSIGNED___INT64 -#undef SIZEOF_UNSIGNED_CHAR_P - -#undef HAVE_LONGLONG /* Compiler defines long long type */ -#undef HAVE___INT64 /* Compiler defines __int64 type */ -#undef CHAR_IS_UNSIGNED /* Compiler defines char to be unsigned */ - -#undef const /* Define to empty if const doesn't work */ -#undef uid_t /* To be used if uid_t is not present */ -#undef gid_t /* To be used if gid_t is not present */ -#undef size_t /* To be used if size_t is not present */ -#undef ssize_t /* To be used if ssize_t is not present */ -#undef pid_t /* To be used if pid_t is not present */ -#undef off_t /* To be used if off_t is not present */ -#undef mode_t /* To be used if mode_t is not present */ -#undef time_t /* To be used if time_t is not present */ -#undef caddr_t /* To be used if caddr_t is not present */ -#undef daddr_t /* To be used if daddr_t is not present */ -#undef dev_t /* To be used if dev_t is not present */ -#undef major_t /* To be used if major_t is not present */ -#undef minor_t /* To be used if minor_t is not present */ -#undef ino_t /* To be used if ino_t is not present */ -#undef nlink_t /* To be used if nlink_t is not present */ -#undef blksize_t /* To be used if blksize_t is not present */ -#undef blkcnt_t /* To be used if blkcnt_t is not present */ -/* - * Important: Next Step needs time.h for clock_t (because of a bug) - */ -#undef clock_t /* To be used if clock_t is not present */ -#undef socklen_t /* To be used if socklen_t is not present */ - -/* - * These types are present on all UNIX systems but should be avoided - * for portability. - * On Apollo/Domain OS we don't have them.... - * - * Better include and use Uchar, Uint & Ulong - */ -#undef u_char /* To be used if u_char is not present */ -#undef u_short /* To be used if u_short is not present */ -#undef u_int /* To be used if u_int is not present */ -#undef u_long /* To be used if u_long is not present */ - -/*#undef HAVE_SIZE_T*/ -/*#undef NO_SIZE_T*/ -#undef VA_LIST_IS_ARRAY /* va_list is an array */ -#undef GETGROUPS_T -#define GID_T GETGROUPS_T - -/* - * Define as the return type of signal handlers (int or void). - */ -#undef RETSIGTYPE - -/* - * Defines needed to get large file support. - */ -#ifdef USE_LARGEFILES - -#undef HAVE_LARGEFILES - -#ifdef HAVE_LARGEFILES /* If we have working largefiles at all */ - /* This is not defined with glibc-2.1.3 */ - -#undef _FILE_OFFSET_BITS /* # of bits in off_t if settable */ -#undef _LARGEFILE_SOURCE /* To make ftello() visible (HP-UX 10.20). */ -#undef _LARGE_FILES /* Large file defined on AIX-style hosts. */ -#undef _XOPEN_SOURCE /* To make ftello() visible (glibc 2.1.3). */ - /* XXX We don't use this because glibc2.1.3*/ - /* XXX is bad anyway. If we define */ - /* XXX _XOPEN_SOURCE we will loose caddr_t */ - -#undef HAVE_FSEEKO /* Do we need this? If HAVE_LARGEFILES is */ - /* defined, we have fseeko() */ - -#endif /* HAVE_LARGEFILES */ -#endif /* USE_LARGEFILES */ - -#ifdef USE_ACL /* Enable/disable ACL support */ -/* - * POSIX ACL support - */ -#undef HAVE_ACL_GET_FILE /* acl_get_file() function */ -#undef HAVE_ACL_SET_FILE /* acl_set_file() function */ -#undef HAVE_ACL_FROM_TEXT /* acl_from_text() function */ -#undef HAVE_ACL_TO_TEXT /* acl_to_text() function */ -#undef HAVE_ACL_FREE /* acl_free() function */ -#undef HAVE_ACL_DELETE_DEF_FILE /* acl_delete_def_file() function */ -#undef HAVE_ACL_EXTENDED_FILE /* acl_extended_file() function (Linux only)*/ - -#if defined(HAVE_ACL_GET_FILE) && defined(HAVE_ACL_SET_FILE) && \ - defined(HAVE_ACL_FROM_TEXT) && defined(HAVE_ACL_TO_TEXT) && \ - defined(HAVE_ACL_FREE) -# define HAVE_POSIX_ACL 1 /* POSIX ACL's present */ -#endif - -/* - * Sun ACL support. - * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. - */ -#undef HAVE_ACL /* acl() function */ -#undef HAVE_FACL /* facl() function */ -#undef HAVE_ACLFROMTEXT /* aclfromtext() function */ -#undef HAVE_ACLTOTEXT /* acltotext() function */ - -#if defined(HAVE_ACL) && defined(HAVE_FACL) && \ - defined(HAVE_ACLFROMTEXT) && defined(HAVE_ACLTOTEXT) -# define HAVE_SUN_ACL 1 /* Sun ACL's present */ -#endif - -/* - * HP-UX ACL support. - * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. - */ -#undef HAVE_GETACL /* getacl() function */ -#undef HAVE_FGETACL /* fgetacl() function */ -#undef HAVE_SETACL /* setacl() function */ -#undef HAVE_FSETACL /* fsetacl() function */ -#undef HAVE_STRTOACL /* strtoacl() function */ -#undef HAVE_ACLTOSTR /* acltostr() function */ -#undef HAVE_CPACL /* cpacl() function */ -#undef HAVE_FCPACL /* fcpacl() function */ -#undef HAVE_CHOWNACL /* chownacl() function */ -#undef HAVE_SETACLENTRY /* setaclentry() function */ -#undef HAVE_FSETACLENTRY /* fsetaclentry() function */ - -#if defined(HAVE_GETACL) && defined(HAVE_FGETACL) && \ - defined(HAVE_SETACL) && defined(HAVE_FSETACL) && \ - defined(HAVE_STRTOACL) && defined(HAVE_ACLTOTEXT) -# define HAVE_HP_ACL 1 /* HP-UX ACL's present */ -#endif - -/* - * Global definition whether ACL support is present. - * As HP-UX differs too much from other implementations, HAVE_HP_ACL is not - * included in HAVE_ANY_ACL. - */ -#if defined(HAVE_POSIX_ACL) || defined(HAVE_SUN_ACL) -# define HAVE_ANY_ACL 1 /* Any ACL implementation present */ -#endif - -#endif /* USE_ACL */ - -/* - * Misc CC / LD related stuff - */ -#undef NO_USER_MALLOC /* If we cannot define our own malloc() */ -#undef HAVE_DYN_ARRAYS /* If the compiler allows dynamic sized arrays */ - -/* - * Strings that help to maintain OS/platform id's in C-programs - */ -#undef HOST_ALIAS /* Output from config.guess (orig) */ -#undef HOST_SUB /* Output from config.sub (modified) */ -#undef HOST_CPU /* CPU part from HOST_SUB */ -#undef HOST_VENDOR /* VENDOR part from HOST_SUB */ -#undef HOST_OS /* CPU part from HOST_SUB */ - - -/* - * Begin restricted code for quality assurance. - * - * Warning: you are not allowed to include the #define below if you are not - * using the Schily makefile system or if you modified the autoconfiguration - * tests. - * - * If you only added other tests you are allowed to keep this #define. - * - * This restiction is introduced because this way, I hope that people - * contribute to the project instead of creating branches. - */ -#define IS_SCHILY_XCONFIG -/* - * End restricted code for quality assurance. - */ diff -Nru smake-1.2a41/debian/changelog smake-1.2a49/debian/changelog --- smake-1.2a41/debian/changelog 2010-02-28 21:12:11.000000000 +0000 +++ smake-1.2a49/debian/changelog 2010-02-28 21:12:11.000000000 +0000 @@ -1,3 +1,15 @@ +smake (1.2a49-0ubuntu1) karmic; urgency=low + + * new upstream release + + -- Brandon Snider Sun, 28 Feb 2010 22:58:16 -0500 + +smake (1.2a41-0ubuntu2) intrepid; urgency=low + + * reintroduce package to intrepid + + -- Reinhard Tartler Sat, 27 Sep 2008 21:36:38 +0200 + smake (1.2a41-0ubuntu1) gutsy; urgency=low * New upstream release diff -Nru smake-1.2a41/DEFAULTS/Defaults.aix smake-1.2a49/DEFAULTS/Defaults.aix --- smake-1.2a41/DEFAULTS/Defaults.aix 2006-07-21 13:51:57.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.aix 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.aix 1.5 09/06/04 " ########################################################################### # # global definitions for IBM AIX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.amigaos smake-1.2a49/DEFAULTS/Defaults.amigaos --- smake-1.2a41/DEFAULTS/Defaults.amigaos 2006-07-21 13:52:05.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.amigaos 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.amigaos 1.5 09/06/04 " ########################################################################### # # global definitions for AmigaOS Systems using CC=gcc @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.beos smake-1.2a49/DEFAULTS/Defaults.beos --- smake-1.2a41/DEFAULTS/Defaults.beos 2006-07-21 13:52:11.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.beos 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.beos 1.5 09/06/04 " ########################################################################### # # global definitions for BeOS Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.bsd-os smake-1.2a49/DEFAULTS/Defaults.bsd-os --- smake-1.2a41/DEFAULTS/Defaults.bsd-os 2006-07-21 13:52:18.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.bsd-os 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.bsd-os 1.4 08/12/26 " ########################################################################### # # global definitions for BSD/OS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.bsd-os3 smake-1.2a49/DEFAULTS/Defaults.bsd-os3 --- smake-1.2a41/DEFAULTS/Defaults.bsd-os3 2006-07-21 13:52:23.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.bsd-os3 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.bsd-os3 1.4 08/12/26 " ########################################################################### # # global definitions for BSD/OS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.cygwin32_nt smake-1.2a49/DEFAULTS/Defaults.cygwin32_nt --- smake-1.2a41/DEFAULTS/Defaults.cygwin32_nt 2007-02-13 14:45:27.000000000 +0000 +++ smake-1.2a49/DEFAULTS/Defaults.cygwin32_nt 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)Defaults.cygwin32_nt 1.2 07/02/13 " +#ident "@(#)Defaults.cygwin32_nt 1.5 08/12/26 " ########################################################################### # # global definitions for Cygnus GCC for WINNT Systems @@ -31,7 +31,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib LDPATH= -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) RUNPATH= ########################################################################### @@ -41,6 +41,7 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # @@ -55,10 +56,16 @@ # We do it here because otherwise cc-config would not work. # This kind of hack may not work for other platforms. # +_PLATFORM= cygwin VC=7 _VC_SETUP= $(_UNIQ)$(VC_SETUP) -__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)-setup) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-msc.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS/Defaults.cygwin32_wow64 smake-1.2a49/DEFAULTS/Defaults.cygwin32_wow64 --- smake-1.2a41/DEFAULTS/Defaults.cygwin32_wow64 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.cygwin32_wow64 2009-07-29 13:42:42.000000000 +0100 @@ -0,0 +1,72 @@ +#ident "%W% %E% %Q%" +########################################################################### +# +# global definitions for Cygnus GCC for WINNT Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +#LDPATH= -L/opt/schily/lib +LDPATH= +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= root + +# +# This is not the correct place for doing this, +# the correct place is RULES/cc-msc.rul. +# We do it here because otherwise cc-config would not work. +# This kind of hack may not work for other platforms. +# +_PLATFORM= cygwin +VC=7 +VC=9 + +_VC_SETUP= $(_UNIQ)$(VC_SETUP) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) +VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) + +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-msc.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### +include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS/Defaults.darwin smake-1.2a49/DEFAULTS/Defaults.darwin --- smake-1.2a41/DEFAULTS/Defaults.darwin 2006-07-21 13:52:34.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.darwin 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.darwin 1.3 08/12/26 " ########################################################################### # # global definitions for Mac OS X Darwin Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,6 +39,7 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS/Defaults.dgux smake-1.2a49/DEFAULTS/Defaults.dgux --- smake-1.2a41/DEFAULTS/Defaults.dgux 2006-07-21 13:52:40.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.dgux 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.dgux3 smake-1.2a49/DEFAULTS/Defaults.dgux3 --- smake-1.2a41/DEFAULTS/Defaults.dgux3 2006-07-21 13:52:40.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.dgux3 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux3 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.dgux4 smake-1.2a49/DEFAULTS/Defaults.dgux4 --- smake-1.2a41/DEFAULTS/Defaults.dgux4 2006-07-21 13:52:40.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.dgux4 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux4 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.domainos smake-1.2a49/DEFAULTS/Defaults.domainos --- smake-1.2a41/DEFAULTS/Defaults.domainos 2006-07-21 13:52:55.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.domainos 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.domainos 1.5 09/06/04 " ########################################################################### # # global definitions for Apollo Domain/OS Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.dragonfly smake-1.2a49/DEFAULTS/Defaults.dragonfly --- smake-1.2a41/DEFAULTS/Defaults.dragonfly 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.dragonfly 2008-12-26 20:51:09.000000000 +0000 @@ -0,0 +1,49 @@ +#ident "@(#)Defaults.dragonfly 1.5 08/12/26 " +########################################################################### +# +# global definitions for FreeBSD Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +DEFCCOM= cc +#DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include /usr/local/include +LDPATH= -L/opt/schily/lib -L/usr/local/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.freebsd smake-1.2a49/DEFAULTS/Defaults.freebsd --- smake-1.2a41/DEFAULTS/Defaults.freebsd 2006-07-21 13:53:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.freebsd 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.freebsd 1.5 08/12/26 " ########################################################################### # # global definitions for FreeBSD Systems @@ -28,9 +28,9 @@ ########################################################################### CWARNOPTS= -DEFINCDIRS= $(SRCROOT)/include -LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +DEFINCDIRS= $(SRCROOT)/include /usr/local/include +LDPATH= -L/opt/schily/lib -L/usr/local/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.freemint smake-1.2a49/DEFAULTS/Defaults.freemint --- smake-1.2a41/DEFAULTS/Defaults.freemint 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.freemint 2008-12-26 20:51:09.000000000 +0000 @@ -0,0 +1,49 @@ +#ident @(#)Defaults.freemint 1.3 08/12/26 +########################################################################### +# +# global definitions for FreeMiNT on ATARI computers +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +#LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.gnu smake-1.2a49/DEFAULTS/Defaults.gnu --- smake-1.2a41/DEFAULTS/Defaults.gnu 2006-07-21 13:53:05.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.gnu 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.gnu 1.5 09/06/04 " ########################################################################### # # global definitions for GNU (hurd) Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include /usr/src/linux/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.haiku smake-1.2a49/DEFAULTS/Defaults.haiku --- smake-1.2a41/DEFAULTS/Defaults.haiku 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.haiku 2009-07-25 16:36:53.000000000 +0100 @@ -0,0 +1,50 @@ +#ident "@(#)Defaults.haiku 1.3 09/07/25 " +########################################################################### +# +# global definitions for Haiku Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /boot/opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.hp-ux smake-1.2a49/DEFAULTS/Defaults.hp-ux --- smake-1.2a41/DEFAULTS/Defaults.hp-ux 2006-07-21 13:53:10.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.hp-ux 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.hp-ux 1.5 09/06/04 " ########################################################################### # # global definitions for HP/UX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.interix smake-1.2a49/DEFAULTS/Defaults.interix --- smake-1.2a41/DEFAULTS/Defaults.interix 2006-07-21 13:53:14.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.interix 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.interix 1.6 09/06/04 " ########################################################################### # # global definitions for Interix Systems (WIN-NT with SFU) using CC=gcc @@ -13,6 +13,16 @@ ########################################################################### # +# Avoid to have something like "Intel_x86_Family15_Model4_Stepping1" +# in $(OARCH), we rather use $(K_ARCH) which is e.g. "x86". +# XXX If this is changed, both files in DEFAULTS/ and DEFAULTS_ENG as +# XXX well as the file conf/oarch.sh need to be changed. +# +########################################################################### +P_ARCH= $(K_ARCH) + +########################################################################### +# # Link mode for libraries that are part of the makefile system: # If DEFLINKMODE is set to "static", no dynamic linking will be used # If DEFLINKMODE is set to "dynamic", dynamic linking will be used @@ -30,7 +40,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib --rpath $(OLIBSDIR) +#RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib --rpath $(OLIBSDIR) +RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib ########################################################################### # @@ -39,10 +50,31 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin + +# +# This is not the correct place for doing this, +# the correct place is RULES/cc-ms*.rul. +# We do it here because otherwise cc-config would not work. +# This kind of hack may not work for other platforms. +# +_PLATFORM= interix +VC=7 + +_VC_SETUP= $(_UNIQ)$(VC_SETUP) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) +VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) + +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-ms*.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### +include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS/Defaults.irix smake-1.2a49/DEFAULTS/Defaults.irix --- smake-1.2a41/DEFAULTS/Defaults.irix 2006-07-21 13:53:18.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.irix 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.irix 1.5 09/06/04 " ########################################################################### # # global definitions for Silicon Graphics Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.linux smake-1.2a49/DEFAULTS/Defaults.linux --- smake-1.2a41/DEFAULTS/Defaults.linux 2007-01-12 12:14:46.000000000 +0000 +++ smake-1.2a49/DEFAULTS/Defaults.linux 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.linux 1.7 09/06/04 " ########################################################################### # # global definitions for Linux Systems @@ -28,15 +28,28 @@ ########################################################################### CWARNOPTS= +########################################################################### +# +# Unhide POSIX extensions from /usr/include/ +# +########################################################################### +OSDEFS += -D_GNU_SOURCE + +########################################################################### +# +# LINUX_SRC_INCLUDE is used in RULES/*-linux-*cc*.rul +# +########################################################################### LINUX_INCL_PATH= /usr/src/linux/include _LINUX_SRC_INCLUDE= $(_UNIQ)$(MAY_LINUX_SRC_INCLUDE) __LINUX_SRC_INCLUDE= $(_LINUX_SRC_INCLUDE:$(_UNIQ)=$(LINUX_INCL_PATH)) LINUX_SRC_INCLUDE= $(__LINUX_SRC_INCLUDE:$(_UNIQ)no%=%) -DEFINCDIRS= $(SRCROOT)/include $(LINUX_SRC_INCLUDE) +DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -45,10 +58,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.mac-os10 smake-1.2a49/DEFAULTS/Defaults.mac-os10 --- smake-1.2a41/DEFAULTS/Defaults.mac-os10 2006-07-21 13:53:29.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.mac-os10 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.mac-os10 1.3 08/12/26 " ########################################################################### # # global definitions for Mac OS X Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,6 +39,7 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS/Defaults.mingw32_nt smake-1.2a49/DEFAULTS/Defaults.mingw32_nt --- smake-1.2a41/DEFAULTS/Defaults.mingw32_nt 2006-07-21 13:53:34.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.mingw32_nt 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.mingw32_nt 1.4 08/12/26 " ########################################################################### # # global definitions for Win32/Mingw32 systems @@ -31,7 +31,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib LDPATH= -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) RUNPATH= ########################################################################### @@ -41,10 +41,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.ms-dos smake-1.2a49/DEFAULTS/Defaults.ms-dos --- smake-1.2a41/DEFAULTS/Defaults.ms-dos 2006-07-21 13:53:39.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.ms-dos 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.ms-dos 1.5 09/06/04 " ########################################################################### # # global definitions for MSDOS/DJGPP v2 Systems using CC=gcc @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.netbsd smake-1.2a49/DEFAULTS/Defaults.netbsd --- smake-1.2a41/DEFAULTS/Defaults.netbsd 2006-07-21 13:53:43.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.netbsd 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.netbsd 1.4 08/12/26 " ########################################################################### # # global definitions for NetBSD Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.newsos6 smake-1.2a49/DEFAULTS/Defaults.newsos6 --- smake-1.2a41/DEFAULTS/Defaults.newsos6 2006-07-21 13:53:47.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.newsos6 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.newsos6 1.5 09/06/04 " ########################################################################### # # global definitions for Sony NEWS-OS 6.x @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.nextstep smake-1.2a49/DEFAULTS/Defaults.nextstep --- smake-1.2a41/DEFAULTS/Defaults.nextstep 2006-07-21 13:53:53.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.nextstep 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.nextstep 1.4 08/12/26 " ########################################################################### # # global definitions for NeXT Step Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.openbsd smake-1.2a49/DEFAULTS/Defaults.openbsd --- smake-1.2a41/DEFAULTS/Defaults.openbsd 2006-07-21 13:53:57.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.openbsd 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.openbsd 1.4 08/12/26 " ########################################################################### # # global definitions for OpenBSD Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.openserver smake-1.2a49/DEFAULTS/Defaults.openserver --- smake-1.2a41/DEFAULTS/Defaults.openserver 2006-07-21 13:54:02.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.openserver 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.openserver 1.3 08/12/26 " ########################################################################### # # global definitions for SCO OpenServer 5 Systems @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /usr/local INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.openvms smake-1.2a49/DEFAULTS/Defaults.openvms --- smake-1.2a41/DEFAULTS/Defaults.openvms 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.openvms 2009-10-31 20:21:59.000000000 +0000 @@ -0,0 +1,50 @@ +#ident "@(#)Defaults.openvms 1.1 09/10/31 " +########################################################################### +# +# global definitions for OpenVMS +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +DEFCCOM= cc +#DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.os2 smake-1.2a49/DEFAULTS/Defaults.os2 --- smake-1.2a41/DEFAULTS/Defaults.os2 2006-07-21 13:54:06.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.os2 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.os2 1.5 09/06/04 " ########################################################################### # # global definitions for OS/2 Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.osf1 smake-1.2a49/DEFAULTS/Defaults.osf1 --- smake-1.2a41/DEFAULTS/Defaults.osf1 2006-07-21 13:54:11.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.osf1 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.osf1 1.5 09/06/04 " ########################################################################### # # global definitions for Digital UNIX (OSF1) Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.qnx smake-1.2a49/DEFAULTS/Defaults.qnx --- smake-1.2a41/DEFAULTS/Defaults.qnx 2006-07-21 13:54:16.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.qnx 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.qnx 1.4 08/12/26 " ########################################################################### # # global definitions for QNX Systems @@ -33,7 +33,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -42,10 +42,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.rhapsody smake-1.2a49/DEFAULTS/Defaults.rhapsody --- smake-1.2a41/DEFAULTS/Defaults.rhapsody 2006-07-21 13:54:21.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.rhapsody 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.rhapsody 1.3 08/12/26 " ########################################################################### # # global definitions for NeXT Step (Apple Rhapsody) Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,6 +39,7 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS/Defaults.sunos4 smake-1.2a49/DEFAULTS/Defaults.sunos4 --- smake-1.2a41/DEFAULTS/Defaults.sunos4 2006-07-21 13:54:24.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.sunos4 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.sunos4 1.4 08/12/26 " ########################################################################### # # global definitions for SunOS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will not work on SunOS +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will not work on SunOS ########################################################################### # @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.sunos5 smake-1.2a49/DEFAULTS/Defaults.sunos5 --- smake-1.2a41/DEFAULTS/Defaults.sunos5 2006-07-21 13:54:30.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.sunos5 2009-06-04 22:10:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.sunos5 1.5 09/06/04 " ########################################################################### # # global definitions for Solaris Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,10 +40,11 @@ ########################################################################### INS_BASE= /opt/schily INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.syllable smake-1.2a49/DEFAULTS/Defaults.syllable --- smake-1.2a41/DEFAULTS/Defaults.syllable 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.syllable 2009-06-04 22:10:45.000000000 +0100 @@ -0,0 +1,50 @@ +#ident "@(#)Defaults.syllable 1.2 09/06/04 " +########################################################################### +# +# global definitions for Syllable Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include /ainc +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/Defaults.unixware smake-1.2a49/DEFAULTS/Defaults.unixware --- smake-1.2a41/DEFAULTS/Defaults.unixware 2006-07-21 13:54:35.000000000 +0100 +++ smake-1.2a49/DEFAULTS/Defaults.unixware 2008-12-26 20:51:09.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.unixware 1.3 08/12/26 " ########################################################################### # # global definitions for SCO UnixWare Systems @@ -39,10 +39,11 @@ ########################################################################### INS_BASE= /usr/local INS_KBASE= / +INS_RBASE= / # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS/vc6-cygwin-setup smake-1.2a49/DEFAULTS/vc6-cygwin-setup --- smake-1.2a41/DEFAULTS/vc6-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc6-cygwin-setup 2009-05-16 16:01:59.000000000 +0100 @@ -0,0 +1,44 @@ +# @(#)vc6-cygwin-setup 1.4 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc6-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +VSCommonDir=C:\Programme\Microsoft Visual Studio\Common +VSCommonPath=/cygdrive/c/Programme/Microsoft Visual Studio/Common +export VSCommonDir + +MSDevDir=C:\Programme\Microsoft Visual Studio\Common\msdev98 +MSDevPath=/cygdrive/c/Programme/Microsoft Visual Studio/Common/msdev98 +export MSDevDir + +MSVCDir=C:\Programme\Microsoft Visual Studio\VC98 +MSVCPath=/cygdrive/c/Programme/Microsoft Visual Studio/VC98 +export MSVCDir + +VcOsDir=WIN95 +VcOsDir=WINNT +export VcOsDir + +PATH :=${MSDevPath}\BIN:${MSVCPath}\BIN:${VSCommonPath}\TOOLS\${VcOsDir}:${VSCommonPath}\TOOLS:${PATH} +export PATH + +INCLUDE :=${MSVCDir}\ATL\INCLUDE;${MSVCDir}\INCLUDE;${MSVCDir}\\MFC\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${MSVCDir}\LIB;${MSVCDir}\MFC\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc6-interix-setup smake-1.2a49/DEFAULTS/vc6-interix-setup --- smake-1.2a41/DEFAULTS/vc6-interix-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc6-interix-setup 2007-04-20 13:53:13.000000000 +0100 @@ -0,0 +1,40 @@ +# @(#)vc6-interix-setup 1.4 07/04/20 Copyright 2006 J. Schilling + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +VSCommonDir=C:\Programme\Microsoft Visual Studio\Common +VSCommonPath=/dev/fs/C/Programme/Microsoft Visual Studio/Common +export VSCommonDir + +MSDevDir=C:\Programme\Microsoft Visual Studio\Common\msdev98 +MSDevPath=/dev/fs/C/Programme/Microsoft Visual Studio/Common/msdev98 +export MSDevDir + +MSVCDir=C:\Programme\Microsoft Visual Studio\VC98 +MSVCPath=/dev/fs/C/Programme/Microsoft Visual Studio/VC98 +export MSVCDir + +VcOsDir=WIN95 +VcOsDir=WINNT +export VcOsDir + +PATH :=${MSDevPath}\BIN:${MSVCPath}\BIN:${VSCommonPath}\TOOLS\${VcOsDir}:${VSCommonPath}\TOOLS:${PATH} +export PATH + +INCLUDE :=${MSVCDir}\ATL\INCLUDE;${MSVCDir}\INCLUDE;${MSVCDir}\\MFC\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${MSVCDir}\LIB;${MSVCDir}\MFC\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc6-setup smake-1.2a49/DEFAULTS/vc6-setup --- smake-1.2a41/DEFAULTS/vc6-setup 2007-01-26 13:27:18.000000000 +0000 +++ smake-1.2a49/DEFAULTS/vc6-setup 2009-05-16 16:01:59.000000000 +0100 @@ -1,4 +1,8 @@ -# @(#)vc6-setup 1.3 07/01/26 Copyright 2006 J. Schilling +# @(#)vc6-setup 1.4 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc6-cygwin-setup as we cannot rely on hard links +# # # Disable warnings for nonportable variable assignements. diff -Nru smake-1.2a41/DEFAULTS/vc7_64-cygwin-setup smake-1.2a49/DEFAULTS/vc7_64-cygwin-setup --- smake-1.2a41/DEFAULTS/vc7_64-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc7_64-cygwin-setup 2009-05-16 16:10:39.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7_64-cygwin-setup 1.1 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7_64-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +#VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +#VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation on an English Windows XP 64 Bit host +# +VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN/amd64:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB\amd64;${VCINSTALLDIR}\PlatformSDK\LIB\amd64;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc7_64-setup smake-1.2a49/DEFAULTS/vc7_64-setup --- smake-1.2a41/DEFAULTS/vc7_64-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc7_64-setup 2009-05-16 16:10:39.000000000 +0100 @@ -0,0 +1,46 @@ +# @(#)vc7_64-setup 1.1 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7_64-cygwin-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation on a German Windows (32Bit) host, to be used +# for cross compiling stuff (no autoconf run) +# +#VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +#VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation on an English Windows XP 64 Bit host +# +VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN/amd64:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB\amd64;${VCINSTALLDIR}\PlatformSDK\LIB\amd64;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc7-cygwin-setup smake-1.2a49/DEFAULTS/vc7-cygwin-setup --- smake-1.2a41/DEFAULTS/vc7-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc7-cygwin-setup 2009-05-16 16:01:59.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7-cygwin-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc7-interix-setup smake-1.2a49/DEFAULTS/vc7-interix-setup --- smake-1.2a41/DEFAULTS/vc7-interix-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc7-interix-setup 2007-04-24 15:24:21.000000000 +0100 @@ -0,0 +1,41 @@ +# @(#)vc7-interix-setup 1.7 07/04/24 Copyright 2006 J. Schilling + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +VSINS=/dev/fs/C/Programme/Microsoft Visual Studio 8 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8 +VSINS=/dev/fs/C/Program Files/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/bin:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\include;${VCINSTALLDIR}\PlatformSDK\Include;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc7-setup smake-1.2a49/DEFAULTS/vc7-setup --- smake-1.2a41/DEFAULTS/vc7-setup 2007-01-26 13:27:18.000000000 +0000 +++ smake-1.2a49/DEFAULTS/vc7-setup 2009-05-16 16:01:59.000000000 +0100 @@ -1,4 +1,8 @@ -# @(#)vc7-setup 1.4 07/01/26 Copyright 2006 J. Schilling +# @(#)vc7-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7-cygwin-setup as we cannot rely on hard links +# # # Disable warnings for nonportable variable assignements. diff -Nru smake-1.2a41/DEFAULTS/vc9-cygwin-setup smake-1.2a49/DEFAULTS/vc9-cygwin-setup --- smake-1.2a41/DEFAULTS/vc9-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc9-cygwin-setup 2009-07-29 13:39:03.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc9-cygwin-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 9.0 +VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 9.0 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio 9.0 +VSINS=/cygdrive/c/Program Files(x86)/Microsoft Visual Studio 9.0 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/bin:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\include;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\lib;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS/vc9-setup smake-1.2a49/DEFAULTS/vc9-setup --- smake-1.2a41/DEFAULTS/vc9-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS/vc9-setup 2009-07-29 13:39:03.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc9-cygwin-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 9.0 +VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 9.0 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files(x86)\Microsoft Visual Studio 9.0 +VSINS=/cygdrive/c/Program Files(x86)/Microsoft Visual Studio 9.0 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/bin:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\include;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\lib;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.aix smake-1.2a49/DEFAULTS_ENG/Defaults.aix --- smake-1.2a41/DEFAULTS_ENG/Defaults.aix 2006-07-21 13:55:31.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.aix 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.aix 1.5 09/06/04 " ########################################################################### # # global definitions for IBM AIX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.amigaos smake-1.2a49/DEFAULTS_ENG/Defaults.amigaos --- smake-1.2a41/DEFAULTS_ENG/Defaults.amigaos 2006-07-21 13:55:36.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.amigaos 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.amigaos 1.5 09/06/04 " ########################################################################### # # global definitions for AmigaOS Systems using CC=gcc @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.beos smake-1.2a49/DEFAULTS_ENG/Defaults.beos --- smake-1.2a41/DEFAULTS_ENG/Defaults.beos 2006-07-21 13:55:40.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.beos 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.beos 1.5 09/06/04 " ########################################################################### # # global definitions for BeOS Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.bsd-os smake-1.2a49/DEFAULTS_ENG/Defaults.bsd-os --- smake-1.2a41/DEFAULTS_ENG/Defaults.bsd-os 2006-07-21 13:55:44.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.bsd-os 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.bsd-os 1.4 08/12/26 " ########################################################################### # # global definitions for BSD/OS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.bsd-os3 smake-1.2a49/DEFAULTS_ENG/Defaults.bsd-os3 --- smake-1.2a41/DEFAULTS_ENG/Defaults.bsd-os3 2006-07-21 13:55:48.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.bsd-os3 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.bsd-os3 1.4 08/12/26 " ########################################################################### # # global definitions for BSD/OS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.cygwin32_nt smake-1.2a49/DEFAULTS_ENG/Defaults.cygwin32_nt --- smake-1.2a41/DEFAULTS_ENG/Defaults.cygwin32_nt 2007-02-13 14:46:50.000000000 +0000 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.cygwin32_nt 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)Defaults.cygwin32_nt 1.2 07/02/13 " +#ident "@(#)Defaults.cygwin32_nt 1.5 08/12/26 " ########################################################################### # # global definitions for Cygnus GCC for WINNT Systems @@ -31,7 +31,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib LDPATH= -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) RUNPATH= ########################################################################### @@ -41,8 +41,10 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # @@ -57,10 +59,16 @@ # We do it here because otherwise cc-config would not work. # This kind of hack may not work for other platforms. # +_PLATFORM= cygwin VC=7 _VC_SETUP= $(_UNIQ)$(VC_SETUP) -__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)-setup) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-msc.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.cygwin32_wow64 smake-1.2a49/DEFAULTS_ENG/Defaults.cygwin32_wow64 --- smake-1.2a41/DEFAULTS_ENG/Defaults.cygwin32_wow64 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.cygwin32_wow64 2009-07-28 22:55:31.000000000 +0100 @@ -0,0 +1,74 @@ +#ident "@(#)Defaults.cygwin32_wow64 1.5 08/12/26 " +########################################################################### +# +# global definitions for Cygnus GCC for WINNT Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +#LDPATH= -L/opt/schily/lib +LDPATH= +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= + +########################################################################### +# +# Installation config stuff +# +########################################################################### +#INS_BASE= /opt/schily +#INS_KBASE= / +#INS_RBASE= / +INS_BASE= /tmp/schily +INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= root + +# +# This is not the correct place for doing this, +# the correct place is RULES/cc-msc.rul. +# We do it here because otherwise cc-config would not work. +# This kind of hack may not work for other platforms. +# +_PLATFORM= cygwin +VC=7 + +_VC_SETUP= $(_UNIQ)$(VC_SETUP) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) +VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) + +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-msc.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### +include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.darwin smake-1.2a49/DEFAULTS_ENG/Defaults.darwin --- smake-1.2a41/DEFAULTS_ENG/Defaults.darwin 2006-07-21 13:55:57.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.darwin 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.darwin 1.3 08/12/26 " ########################################################################### # # global definitions for Mac OS X Darwin Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,8 +39,10 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.dgux smake-1.2a49/DEFAULTS_ENG/Defaults.dgux --- smake-1.2a41/DEFAULTS_ENG/Defaults.dgux 2006-07-21 13:56:02.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.dgux 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.dgux3 smake-1.2a49/DEFAULTS_ENG/Defaults.dgux3 --- smake-1.2a41/DEFAULTS_ENG/Defaults.dgux3 2006-07-21 13:56:02.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.dgux3 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux3 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.dgux4 smake-1.2a49/DEFAULTS_ENG/Defaults.dgux4 --- smake-1.2a41/DEFAULTS_ENG/Defaults.dgux4 2006-07-21 13:56:02.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.dgux4 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.dgux4 1.5 09/06/04 " ########################################################################### # # global definitions for Data General DGUX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.domainos smake-1.2a49/DEFAULTS_ENG/Defaults.domainos --- smake-1.2a41/DEFAULTS_ENG/Defaults.domainos 2006-07-21 13:56:14.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.domainos 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.domainos 1.5 09/06/04 " ########################################################################### # # global definitions for Apollo Domain/OS Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.dragonfly smake-1.2a49/DEFAULTS_ENG/Defaults.dragonfly --- smake-1.2a41/DEFAULTS_ENG/Defaults.dragonfly 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.dragonfly 2008-12-26 21:46:29.000000000 +0000 @@ -0,0 +1,52 @@ +#ident "@(#)Defaults.dragonfly 1.5 08/12/26 " +########################################################################### +# +# global definitions for FreeBSD Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +DEFCCOM= cc +#DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include /usr/local/include +LDPATH= -L/opt/schily/lib -L/usr/local/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work + +########################################################################### +# +# Installation config stuff +# +########################################################################### +#INS_BASE= /opt/schily +#INS_KBASE= / +#INS_RBASE= / +INS_BASE= /tmp/schily +INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.freebsd smake-1.2a49/DEFAULTS_ENG/Defaults.freebsd --- smake-1.2a41/DEFAULTS_ENG/Defaults.freebsd 2006-07-21 13:56:19.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.freebsd 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.freebsd 1.5 08/12/26 " ########################################################################### # # global definitions for FreeBSD Systems @@ -28,9 +28,9 @@ ########################################################################### #CWARNOPTS= -DEFINCDIRS= $(SRCROOT)/include -LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +DEFINCDIRS= $(SRCROOT)/include /usr/local/include +LDPATH= -L/opt/schily/lib -L/usr/local/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.freemint smake-1.2a49/DEFAULTS_ENG/Defaults.freemint --- smake-1.2a41/DEFAULTS_ENG/Defaults.freemint 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.freemint 2008-12-26 21:46:29.000000000 +0000 @@ -0,0 +1,52 @@ +#ident @(#)Defaults.freemint 1.3 08/12/26 +########################################################################### +# +# global definitions for FreeMiNT on ATARI computers +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +#LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work + +########################################################################### +# +# Installation config stuff +# +########################################################################### +#INS_BASE= /opt/schily +#INS_KBASE= / +#INS_RBASE= / +INS_BASE= /tmp/schily +INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.gnu smake-1.2a49/DEFAULTS_ENG/Defaults.gnu --- smake-1.2a41/DEFAULTS_ENG/Defaults.gnu 2006-07-21 13:56:23.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.gnu 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.gnu 1.5 09/06/04 " ########################################################################### # # global definitions for GNU (hurd) Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include /usr/src/linux/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.haiku smake-1.2a49/DEFAULTS_ENG/Defaults.haiku --- smake-1.2a41/DEFAULTS_ENG/Defaults.haiku 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.haiku 2009-06-04 22:11:00.000000000 +0100 @@ -0,0 +1,53 @@ +#ident "@(#)Defaults.haiku 1.2 09/06/04 " +########################################################################### +# +# global definitions for Haiku Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +#INS_BASE= /opt/schily +#INS_KBASE= / +#INS_RBASE= / +INS_BASE= /tmp/schily +INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.hp-ux smake-1.2a49/DEFAULTS_ENG/Defaults.hp-ux --- smake-1.2a41/DEFAULTS_ENG/Defaults.hp-ux 2006-07-21 13:56:27.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.hp-ux 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.hp-ux 1.5 09/06/04 " ########################################################################### # # global definitions for HP/UX Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.interix smake-1.2a49/DEFAULTS_ENG/Defaults.interix --- smake-1.2a41/DEFAULTS_ENG/Defaults.interix 2006-07-21 13:56:41.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.interix 2009-06-04 22:11:00.000000000 +0100 @@ -1,7 +1,7 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.interix 1.6 09/06/04 " ########################################################################### # -# global definitions for Interix Systems (WI-NT with SFU) using CC=gcc +# global definitions for Interix Systems (WIN-NT with SFU) using CC=gcc # ########################################################################### # @@ -13,6 +13,16 @@ ########################################################################### # +# Avoid to have something like "Intel_x86_Family15_Model4_Stepping1" +# in $(OARCH), we rather use $(K_ARCH) which is e.g. "x86". +# XXX If this is changed, both files in DEFAULTS/ and DEFAULTS_ENG as +# XXX well as the file conf/oarch.sh need to be changed. +# +########################################################################### +P_ARCH= $(K_ARCH) + +########################################################################### +# # Link mode for libraries that are part of the makefile system: # If DEFLINKMODE is set to "static", no dynamic linking will be used # If DEFLINKMODE is set to "dynamic", dynamic linking will be used @@ -30,7 +40,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib --rpath $(OLIBSDIR) +#RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib --rpath $(OLIBSDIR) +RUNPATH= --rpath $(INS_BASE)/lib --rpath /opt/schily/lib ########################################################################### # @@ -39,12 +50,34 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin + +# +# This is not the correct place for doing this, +# the correct place is RULES/cc-ms*.rul. +# We do it here because otherwise cc-config would not work. +# This kind of hack may not work for other platforms. +# +_PLATFORM= interix +VC=7 + +_VC_SETUP= $(_UNIQ)$(VC_SETUP) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) +VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) + +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from RULES/cc-ms*.rul +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### +include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.irix smake-1.2a49/DEFAULTS_ENG/Defaults.irix --- smake-1.2a41/DEFAULTS_ENG/Defaults.irix 2006-07-21 13:56:45.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.irix 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.irix 1.5 09/06/04 " ########################################################################### # # global definitions for Silicon Graphics Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.linux smake-1.2a49/DEFAULTS_ENG/Defaults.linux --- smake-1.2a41/DEFAULTS_ENG/Defaults.linux 2007-01-12 12:12:39.000000000 +0000 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.linux 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.linux 1.7 09/06/04 " ########################################################################### # # global definitions for Linux Systems @@ -28,15 +28,28 @@ ########################################################################### #CWARNOPTS= +########################################################################### +# +# LINUX_SRC_INCLUDE is used in RULES/*-linux-*cc*.rul +# +########################################################################### LINUX_INCL_PATH= /usr/src/linux/include _LINUX_SRC_INCLUDE= $(_UNIQ)$(MAY_LINUX_SRC_INCLUDE) __LINUX_SRC_INCLUDE= $(_LINUX_SRC_INCLUDE:$(_UNIQ)=$(LINUX_INCL_PATH)) LINUX_SRC_INCLUDE= $(__LINUX_SRC_INCLUDE:$(_UNIQ)no%=%) -DEFINCDIRS= $(SRCROOT)/include $(LINUX_SRC_INCLUDE) +DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Unhide POSIX extensions from /usr/include/ +# +########################################################################### +OSDEFS += -D_GNU_SOURCE ########################################################################### # @@ -45,12 +58,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.mac-os10 smake-1.2a49/DEFAULTS_ENG/Defaults.mac-os10 --- smake-1.2a41/DEFAULTS_ENG/Defaults.mac-os10 2006-07-21 13:56:54.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.mac-os10 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.mac-os10 1.3 08/12/26 " ########################################################################### # # global definitions for Mac OS X Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,8 +39,10 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.mingw32_nt smake-1.2a49/DEFAULTS_ENG/Defaults.mingw32_nt --- smake-1.2a41/DEFAULTS_ENG/Defaults.mingw32_nt 2006-07-21 13:56:58.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.mingw32_nt 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.mingw32_nt 1.4 08/12/26 " ########################################################################### # # global definitions for Win32/Mingw32 systems @@ -31,7 +31,7 @@ DEFINCDIRS= $(SRCROOT)/include #LDPATH= -L/opt/schily/lib LDPATH= -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) RUNPATH= ########################################################################### @@ -41,12 +41,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.ms-dos smake-1.2a49/DEFAULTS_ENG/Defaults.ms-dos --- smake-1.2a41/DEFAULTS_ENG/Defaults.ms-dos 2006-07-21 13:57:03.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.ms-dos 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.ms-dos 1.5 09/06/04 " ########################################################################### # # global definitions for MSDOS/DJGPP v2 Systems using CC=gcc @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.netbsd smake-1.2a49/DEFAULTS_ENG/Defaults.netbsd --- smake-1.2a41/DEFAULTS_ENG/Defaults.netbsd 2006-07-21 13:57:07.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.netbsd 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.netbsd 1.4 08/12/26 " ########################################################################### # # global definitions for NetBSD Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.newsos6 smake-1.2a49/DEFAULTS_ENG/Defaults.newsos6 --- smake-1.2a41/DEFAULTS_ENG/Defaults.newsos6 2006-07-21 13:57:11.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.newsos6 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.newsos6 1.5 09/06/04 " ########################################################################### # # global definitions for Sony NEWS-OS 6.x @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.nextstep smake-1.2a49/DEFAULTS_ENG/Defaults.nextstep --- smake-1.2a41/DEFAULTS_ENG/Defaults.nextstep 2006-07-21 13:57:16.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.nextstep 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.nextstep 1.4 08/12/26 " ########################################################################### # # global definitions for NeXT Step Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.openbsd smake-1.2a49/DEFAULTS_ENG/Defaults.openbsd --- smake-1.2a41/DEFAULTS_ENG/Defaults.openbsd 2006-07-21 13:57:21.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.openbsd 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.openbsd 1.4 08/12/26 " ########################################################################### # # global definitions for OpenBSD Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.openserver smake-1.2a49/DEFAULTS_ENG/Defaults.openserver --- smake-1.2a41/DEFAULTS_ENG/Defaults.openserver 2006-07-21 13:57:25.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.openserver 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.openserver 1.3 08/12/26 " ########################################################################### # # global definitions for SCO OpenServer 5 Systems @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /usr/local #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.openvms smake-1.2a49/DEFAULTS_ENG/Defaults.openvms --- smake-1.2a41/DEFAULTS_ENG/Defaults.openvms 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.openvms 2009-10-31 20:21:51.000000000 +0000 @@ -0,0 +1,50 @@ +#ident "@(#)Defaults.openvms 1.1 09/10/31 " +########################################################################### +# +# global definitions for OpenVMS +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +DEFCCOM= cc +#DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +INS_BASE= /opt/schily +INS_KBASE= / +INS_RBASE= / +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.os2 smake-1.2a49/DEFAULTS_ENG/Defaults.os2 --- smake-1.2a41/DEFAULTS_ENG/Defaults.os2 2006-07-21 13:57:29.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.os2 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.os2 1.5 09/06/04 " ########################################################################### # # global definitions for OS/2 Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.osf1 smake-1.2a49/DEFAULTS_ENG/Defaults.osf1 --- smake-1.2a41/DEFAULTS_ENG/Defaults.osf1 2006-07-21 13:57:34.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.osf1 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.osf1 1.5 09/06/04 " ########################################################################### # # global definitions for Digital UNIX (OSF1) Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.qnx smake-1.2a49/DEFAULTS_ENG/Defaults.qnx --- smake-1.2a41/DEFAULTS_ENG/Defaults.qnx 2006-07-21 13:57:38.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.qnx 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.qnx 1.4 08/12/26 " ########################################################################### # # global definitions for QNX Systems @@ -33,7 +33,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -42,12 +42,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.rhapsody smake-1.2a49/DEFAULTS_ENG/Defaults.rhapsody --- smake-1.2a41/DEFAULTS_ENG/Defaults.rhapsody 2006-07-21 13:57:43.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.rhapsody 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.rhapsody 1.3 08/12/26 " ########################################################################### # # global definitions for NeXT Step (Apple Rhapsody) Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= #-L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will probably not work +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will probably not work ########################################################################### # @@ -39,8 +39,10 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.sunos4 smake-1.2a49/DEFAULTS_ENG/Defaults.sunos4 --- smake-1.2a41/DEFAULTS_ENG/Defaults.sunos4 2006-07-21 13:57:47.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.sunos4 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.sunos4 1.4 08/12/26 " ########################################################################### # # global definitions for SunOS Systems @@ -30,7 +30,7 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -#RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) Will not work on SunOS +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) Will not work on SunOS ########################################################################### # @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.sunos5 smake-1.2a49/DEFAULTS_ENG/Defaults.sunos5 --- smake-1.2a41/DEFAULTS_ENG/Defaults.sunos5 2006-07-21 13:57:51.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.sunos5 2009-06-04 22:11:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.sunos5 1.5 09/06/04 " ########################################################################### # # global definitions for Solaris Systems @@ -30,7 +30,8 @@ DEFINCDIRS= $(SRCROOT)/include LDPATH= -L/opt/schily/lib -RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR) +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib ########################################################################### # @@ -39,12 +40,14 @@ ########################################################################### #INS_BASE= /opt/schily #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.syllable smake-1.2a49/DEFAULTS_ENG/Defaults.syllable --- smake-1.2a41/DEFAULTS_ENG/Defaults.syllable 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.syllable 2009-06-04 22:11:00.000000000 +0100 @@ -0,0 +1,53 @@ +#ident "@(#)Defaults.syllable 1.2 09/06/04 " +########################################################################### +# +# global definitions for Syllable Systems +# +########################################################################### +# +# Compiler stuff +# +########################################################################### +#DEFCCOM= cc +DEFCCOM= gcc + +########################################################################### +# +# Link mode for libraries that are part of the makefile system: +# If DEFLINKMODE is set to "static", no dynamic linking will be used +# If DEFLINKMODE is set to "dynamic", dynamic linking will be used +# +########################################################################### +DEFLINKMODE= static + +########################################################################### +# +# If the next line is commented out, compilation is done with max warn level +# If the next line is uncommented, compilation is done with minimal warnings +# +########################################################################### +#CWARNOPTS= + +DEFINCDIRS= $(SRCROOT)/include /ainc +LDPATH= -L/opt/schily/lib +#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR) +RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib + +########################################################################### +# +# Installation config stuff +# +########################################################################### +#INS_BASE= /opt/schily +#INS_KBASE= / +#INS_RBASE= / +INS_BASE= /tmp/schily +INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root +# +DEFUMASK= 002 +# +DEFINSMODEF= 444 +DEFINSMODEX= 755 +DEFINSUSR= root +DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/Defaults.unixware smake-1.2a49/DEFAULTS_ENG/Defaults.unixware --- smake-1.2a41/DEFAULTS_ENG/Defaults.unixware 2006-07-21 13:57:56.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/Defaults.unixware 2008-12-26 21:46:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Defaults.unixware 1.3 08/12/26 " ########################################################################### # # global definitions for SCO UnixWare Systems @@ -39,12 +39,14 @@ ########################################################################### #INS_BASE= /usr/local #INS_KBASE= / +#INS_RBASE= / INS_BASE= /tmp/schily INS_KBASE= /tmp/schily/root +INS_RBASE= /tmp/schily/root # DEFUMASK= 002 # DEFINSMODEF= 444 DEFINSMODEX= 755 -DEFINSUSR= bin +DEFINSUSR= root DEFINSGRP= bin diff -Nru smake-1.2a41/DEFAULTS_ENG/vc6-cygwin-setup smake-1.2a49/DEFAULTS_ENG/vc6-cygwin-setup --- smake-1.2a41/DEFAULTS_ENG/vc6-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc6-cygwin-setup 2009-05-16 16:01:59.000000000 +0100 @@ -0,0 +1,44 @@ +# @(#)vc6-cygwin-setup 1.4 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc6-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +VSCommonDir=C:\Programme\Microsoft Visual Studio\Common +VSCommonPath=/cygdrive/c/Programme/Microsoft Visual Studio/Common +export VSCommonDir + +MSDevDir=C:\Programme\Microsoft Visual Studio\Common\msdev98 +MSDevPath=/cygdrive/c/Programme/Microsoft Visual Studio/Common/msdev98 +export MSDevDir + +MSVCDir=C:\Programme\Microsoft Visual Studio\VC98 +MSVCPath=/cygdrive/c/Programme/Microsoft Visual Studio/VC98 +export MSVCDir + +VcOsDir=WIN95 +VcOsDir=WINNT +export VcOsDir + +PATH :=${MSDevPath}\BIN:${MSVCPath}\BIN:${VSCommonPath}\TOOLS\${VcOsDir}:${VSCommonPath}\TOOLS:${PATH} +export PATH + +INCLUDE :=${MSVCDir}\ATL\INCLUDE;${MSVCDir}\INCLUDE;${MSVCDir}\\MFC\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${MSVCDir}\LIB;${MSVCDir}\MFC\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc6-interix-setup smake-1.2a49/DEFAULTS_ENG/vc6-interix-setup --- smake-1.2a41/DEFAULTS_ENG/vc6-interix-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc6-interix-setup 2007-04-20 13:53:13.000000000 +0100 @@ -0,0 +1,40 @@ +# @(#)vc6-interix-setup 1.4 07/04/20 Copyright 2006 J. Schilling + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +VSCommonDir=C:\Programme\Microsoft Visual Studio\Common +VSCommonPath=/dev/fs/C/Programme/Microsoft Visual Studio/Common +export VSCommonDir + +MSDevDir=C:\Programme\Microsoft Visual Studio\Common\msdev98 +MSDevPath=/dev/fs/C/Programme/Microsoft Visual Studio/Common/msdev98 +export MSDevDir + +MSVCDir=C:\Programme\Microsoft Visual Studio\VC98 +MSVCPath=/dev/fs/C/Programme/Microsoft Visual Studio/VC98 +export MSVCDir + +VcOsDir=WIN95 +VcOsDir=WINNT +export VcOsDir + +PATH :=${MSDevPath}\BIN:${MSVCPath}\BIN:${VSCommonPath}\TOOLS\${VcOsDir}:${VSCommonPath}\TOOLS:${PATH} +export PATH + +INCLUDE :=${MSVCDir}\ATL\INCLUDE;${MSVCDir}\INCLUDE;${MSVCDir}\\MFC\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${MSVCDir}\LIB;${MSVCDir}\MFC\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc6-setup smake-1.2a49/DEFAULTS_ENG/vc6-setup --- smake-1.2a41/DEFAULTS_ENG/vc6-setup 2007-01-26 13:27:18.000000000 +0000 +++ smake-1.2a49/DEFAULTS_ENG/vc6-setup 2009-05-16 16:01:59.000000000 +0100 @@ -1,4 +1,8 @@ -# @(#)vc6-setup 1.3 07/01/26 Copyright 2006 J. Schilling +# @(#)vc6-setup 1.4 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc6-cygwin-setup as we cannot rely on hard links +# # # Disable warnings for nonportable variable assignements. diff -Nru smake-1.2a41/DEFAULTS_ENG/vc7_64-cygwin-setup smake-1.2a49/DEFAULTS_ENG/vc7_64-cygwin-setup --- smake-1.2a41/DEFAULTS_ENG/vc7_64-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc7_64-cygwin-setup 2009-05-16 16:10:39.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7_64-cygwin-setup 1.1 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7_64-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +#VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +#VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation on an English Windows XP 64 Bit host +# +VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN/amd64:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB\amd64;${VCINSTALLDIR}\PlatformSDK\LIB\amd64;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc7_64-setup smake-1.2a49/DEFAULTS_ENG/vc7_64-setup --- smake-1.2a41/DEFAULTS_ENG/vc7_64-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc7_64-setup 2009-05-16 16:10:39.000000000 +0100 @@ -0,0 +1,46 @@ +# @(#)vc7_64-setup 1.1 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7_64-cygwin-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation on a German Windows (32Bit) host, to be used +# for cross compiling stuff (no autoconf run) +# +#VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +#VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation on an English Windows XP 64 Bit host +# +VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN/amd64:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB\amd64;${VCINSTALLDIR}\PlatformSDK\LIB\amd64;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc7-cygwin-setup smake-1.2a49/DEFAULTS_ENG/vc7-cygwin-setup --- smake-1.2a41/DEFAULTS_ENG/vc7-cygwin-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc7-cygwin-setup 2009-05-16 16:01:59.000000000 +0100 @@ -0,0 +1,45 @@ +# @(#)vc7-cygwin-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7-setup as we cannot rely on hard links +# + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Programme/Microsoft Visual Studio 8 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8 +VSINS=/cygdrive/c/Program Files/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/BIN:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\INCLUDE;${VCINSTALLDIR}\PlatformSDK\INCLUDE;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc7-interix-setup smake-1.2a49/DEFAULTS_ENG/vc7-interix-setup --- smake-1.2a41/DEFAULTS_ENG/vc7-interix-setup 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/DEFAULTS_ENG/vc7-interix-setup 2007-04-24 15:24:21.000000000 +0100 @@ -0,0 +1,41 @@ +# @(#)vc7-interix-setup 1.7 07/04/24 Copyright 2006 J. Schilling + +# +# Disable warnings for nonportable variable assignements. +# We only use smake MS-WIN, so this is not a problem. +# +.NO_WARN: := + +# +# A German installation +# +VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8 +VSINS=/dev/fs/C/Programme/Microsoft Visual Studio 8 + +# +# An English installation +# +VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8 +VSINS=/dev/fs/C/Program Files/Microsoft Visual Studio 8 + +export VSINSTALLDIR + +VCINSTALLDIR :=${VSINSTALLDIR}\VC +export VCINSTALLDIR + +PATH :=${VSINS}/VC/bin:${VSINS}/Common7/IDE:${PATH} +export PATH + +INCLUDE :=${VCINSTALLDIR}\include;${VCINSTALLDIR}\PlatformSDK\Include;${INCLUDE} +export INCLUDE + +LIB :=${VCINSTALLDIR}\LIB;${VCINSTALLDIR}\PlatformSDK\LIB;${LIB} +export LIB + +VC_SETUP=dummy-setup +export VC_SETUP + +# +# Re-enable all warnings. +# +.NO_WARN: diff -Nru smake-1.2a41/DEFAULTS_ENG/vc7-setup smake-1.2a49/DEFAULTS_ENG/vc7-setup --- smake-1.2a41/DEFAULTS_ENG/vc7-setup 2007-01-26 13:27:18.000000000 +0000 +++ smake-1.2a49/DEFAULTS_ENG/vc7-setup 2009-05-16 16:01:59.000000000 +0100 @@ -1,4 +1,8 @@ -# @(#)vc7-setup 1.4 07/01/26 Copyright 2006 J. Schilling +# @(#)vc7-setup 1.5 09/05/16 Copyright 2006 J. Schilling + +# +# Keep in sync with vc7-cygwin-setup as we cannot rely on hard links +# # # Disable warnings for nonportable variable assignements. diff -Nru smake-1.2a41/inc/align_test.c smake-1.2a49/inc/align_test.c --- smake-1.2a41/inc/align_test.c 2006-09-25 22:38:38.000000000 +0100 +++ smake-1.2a49/inc/align_test.c 2009-11-07 19:22:15.000000000 +0000 @@ -1,12 +1,13 @@ -/* @(#)align_test.c 1.22 06/09/25 Copyright 1995 J. Schilling */ +/* @(#)align_test.c 1.26 09/11/07 Copyright 1995-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)align_test.c 1.22 06/09/25 Copyright 1995 J. Schilling"; +static UConst char sccsid[] = + "@(#)align_test.c 1.26 09/11/07 Copyright 1995-2009 J. Schilling"; #endif /* * Generate machine dependant align.h * - * Copyright (c) 1995 J. Schilling + * Copyright (c) 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,8 +21,7 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #undef NO_LONGLONG /* Make sure that Llong wil be long long */ #include @@ -72,14 +72,15 @@ #define ALIGN_longlong sizeof (Llong) #define ALIGN_float sizeof (float) #define ALIGN_double sizeof (double) +#define ALIGN_ldouble sizeof (long double) #define ALIGN_ptr sizeof (char *) #endif #ifdef CHECK_ALIGN -#include -#include +#include +#include LOCAL jmp_buf jb; LOCAL int check_align __PR((int (*)(char *, int), @@ -90,6 +91,9 @@ LOCAL int check_longlong __PR((char *, int)); LOCAL int check_float __PR((char *, int)); LOCAL int check_double __PR((char *, int)); +#ifdef HAVE_LONGDOUBLE +LOCAL int check_ldouble __PR((char *, int)); +#endif LOCAL int check_ptr __PR((char *, int)); LOCAL int speed_check __PR((char *, @@ -100,6 +104,9 @@ LOCAL void speed_longlong __PR((char *, int)); LOCAL void speed_float __PR((char *, int)); LOCAL void speed_double __PR((char *, int)); +#ifdef HAVE_LONGDOUBLE +LOCAL void speed_ldouble __PR((char *, int)); +#endif LOCAL void speed_ptr __PR((char *, int)); #define ALIGN_short check_align(check_short, speed_short, sizeof (short)) @@ -108,13 +115,14 @@ #define ALIGN_longlong check_align(check_longlong, speed_longlong, sizeof (Llong)) #define ALIGN_float check_align(check_float, speed_float, sizeof (float)) #define ALIGN_double check_align(check_double, speed_double, sizeof (double)) +#define ALIGN_ldouble check_align(check_ldouble, speed_ldouble, sizeof (long double)) #define ALIGN_ptr check_align(check_ptr, speed_ptr, sizeof (char *)) #endif #ifdef OFF_ALIGN -#define sm_off(s, m) ((int)&((s)0)->m) +#define sm_off(s, m) ((size_t)&((s)0)->m) LOCAL int off_short __PR((void)); LOCAL int off_int __PR((void)); @@ -122,6 +130,9 @@ LOCAL int off_longlong __PR((void)); LOCAL int off_float __PR((void)); LOCAL int off_double __PR((void)); +#ifdef HAVE_LONGDOUBLE +LOCAL int off_ldouble __PR((void)); +#endif LOCAL int off_ptr __PR((void)); #define ALIGN_short off_short() @@ -130,6 +141,7 @@ #define ALIGN_longlong off_longlong() #define ALIGN_float off_float() #define ALIGN_double off_double() +#define ALIGN_ldouble off_ldouble() #define ALIGN_ptr off_ptr() #endif @@ -170,7 +182,9 @@ LOCAL char ll[] = "long long"; LOCAL char fl[] = "float"; LOCAL char db[] = "double"; +LOCAL char ld[] = "long double"; LOCAL char pt[] = "pointer"; +LOCAL char mt[] = "max type"; #define xalign(x, a, m) (((char *)(x)) + ((a) - (((UIntptr_t)(x))&(m)))) @@ -182,6 +196,8 @@ char *p; int i; int s; + int amax = 0; + int smax = 0; #ifdef CHECK_ALIGN #ifdef SIGBUS @@ -189,7 +205,7 @@ #endif #endif - i = ((int)buf) % 1024; + i = ((size_t)buf) % 1024; i = 1024 - i; p = &buf[i]; buf_aligned = p; @@ -208,6 +224,10 @@ s = sizeof (short); i = ALIGN_short; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_SHORT %d\t/* %s(%s *)\t*/\n", i, al, sh); printf("#define ALIGN_SMASK %d\t/* %s(%s *)\t*/\n", i-1, ms, sh); @@ -216,6 +236,10 @@ s = sizeof (int); i = ALIGN_int; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_INT %d\t/* %s(%s *)\t\t*/\n", i, al, in); printf("#define ALIGN_IMASK %d\t/* %s(%s *)\t\t*/\n", i-1, ms, in); @@ -224,6 +248,10 @@ s = sizeof (long); i = ALIGN_long; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_LONG %d\t/* %s(%s *)\t\t*/\n", i, al, lo); printf("#define ALIGN_LMASK %d\t/* %s(%s *)\t\t*/\n", i-1, ms, lo); @@ -233,6 +261,10 @@ s = sizeof (Llong); i = ALIGN_longlong; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; #endif printf("\n"); printf("#define ALIGN_LLONG %d\t/* %s(%s *)\t*/\n", i, al, ll); @@ -242,6 +274,10 @@ s = sizeof (float); i = ALIGN_float; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_FLOAT %d\t/* %s(%s *)\t*/\n", i, al, fl); printf("#define ALIGN_FMASK %d\t/* %s(%s *)\t*/\n", i-1, ms, fl); @@ -250,19 +286,46 @@ s = sizeof (double); i = ALIGN_double; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_DOUBLE %d\t/* %s(%s *)\t*/\n", i, al, db); printf("#define ALIGN_DMASK %d\t/* %s(%s *)\t*/\n", i-1, ms, db); printf("#define SIZE_DOUBLE %d\t/* %s(%s)\t\t\t*/\n", s, so, db); +#ifdef HAVE_LONGDOUBLE + s = sizeof (long double); + i = ALIGN_ldouble; + i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; +#endif + printf("\n"); + printf("#define ALIGN_LDOUBLE %d\t/* %s(%s *)\t*/\n", i, al, ld); + printf("#define ALIGN_LDMASK %d\t/* %s(%s *)\t*/\n", i-1, ms, ld); + printf("#define SIZE_LDOUBLE %d\t/* %s(%s)\t\t\t*/\n", s, so, ld); + s = sizeof (char *); i = ALIGN_ptr; i = min_align(i); + if (i > amax) + amax = i; + if (s > smax) + smax = s; printf("\n"); printf("#define ALIGN_PTR %d\t/* %s(%s *)\t*/\n", i, al, pt); printf("#define ALIGN_PMASK %d\t/* %s(%s *)\t*/\n", i-1, ms, pt); printf("#define SIZE_PTR %d\t/* %s(%s)\t\t\t*/\n", s, so, pt); + printf("\n"); + printf("#define ALIGN_TMAX %d\t/* %s(%s *)\t*/\n", amax, al, mt); + printf("#define ALIGN_TMMASK %d\t/* %s(%s *)\t*/\n", amax-1, ms, mt); + printf("#define SIZE_TMAX %d\t/* %s(%s)\t\t\t*/\n", smax, so, mt); + printmacs(); return (0); } @@ -298,8 +361,14 @@ printf("#define daligned(a) xaligned(a, ALIGN_DMASK)\n"); printf("#define d2aligned(a, b) x2aligned(a, b, ALIGN_DMASK)\n"); printf("\n"); +printf("#define ldaligned(a) xaligned(a, ALIGN_LDMASK)\n"); +printf("#define ld2aligned(a, b) x2aligned(a, b, ALIGN_LDMASK)\n"); +printf("\n"); printf("#define paligned(a) xaligned(a, ALIGN_PMASK)\n"); printf("#define p2aligned(a, b) x2aligned(a, b, ALIGN_PMASK)\n"); +printf("\n"); +printf("#define maligned(a) xaligned(a, ALIGN_TMMASK)\n"); +printf("#define m2aligned(a, b) x2aligned(a, b, ALIGN_TMMASK)\n"); printf("\n\n"); printf("/*\n * There used to be a cast to an int but we get a warning from GCC.\n"); @@ -314,7 +383,9 @@ printf("#define llalign(x) xalign((x), ALIGN_LLONG, ALIGN_LLMASK)\n"); printf("#define falign(x) xalign((x), ALIGN_FLOAT, ALIGN_FMASK)\n"); printf("#define dalign(x) xalign((x), ALIGN_DOUBLE, ALIGN_DMASK)\n"); +printf("#define ldalign(x) xalign((x), ALIGN_LDOUBLE, ALIGN_LDMASK)\n"); printf("#define palign(x) xalign((x), ALIGN_PTR, ALIGN_PMASK)\n"); +printf("#define malign(x) xalign((x), ALIGN_TMAX, ALIGN_TMMASK)\n"); } #ifdef CHECK_ALIGN @@ -447,6 +518,20 @@ return (0); } +#ifdef HAVE_LONGDOUBLE +LOCAL int +check_ldouble(p, i) + char *p; + int i; +{ + long double *dp; + + dp = (long double *)&p[i]; + *dp = 1.0; + return (0); +} +#endif + LOCAL int check_ptr(p, i) char *p; @@ -552,6 +637,22 @@ *dp = i; } +#ifdef HAVE_LONGDOUBLE +LOCAL void +speed_ldouble(p, n) + char *p; + int n; +{ + long double *dp; + int i; + + dp = (long double *)&p[n]; + + for (i = 1000000; --i >= 0; ) + *dp = i; +} +#endif + LOCAL void speed_ptr(p, n) char *p; @@ -567,6 +668,7 @@ } #include +#include LOCAL int speed_check(p, sfunc, n) char *p; @@ -671,6 +773,20 @@ return (sm_off(struct sd *, d)); } +#ifdef HAVE_LONGDOUBLE +LOCAL int +off_ldouble() +{ + struct sd { + char c; + long double ld; + } sd; + sd.c = 0; /* fool C-compiler */ + + return (sm_off(struct sd *, ld)); +} +#endif + LOCAL int off_ptr() { diff -Nru smake-1.2a41/inc/avoffset.c smake-1.2a49/inc/avoffset.c --- smake-1.2a41/inc/avoffset.c 2007-02-22 13:36:44.000000000 +0000 +++ smake-1.2a49/inc/avoffset.c 2009-07-10 20:56:32.000000000 +0100 @@ -1,7 +1,8 @@ -/* @(#)avoffset.c 1.27 07/02/22 Copyright 1987, 1995-2004 J. Schilling */ +/* @(#)avoffset.c 1.30 09/07/10 Copyright 1987, 1995-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)avoffset.c 1.27 07/02/22 Copyright 1987, 1995-2004 J. Schilling"; +static UConst char sccsid[] = + "@(#)avoffset.c 1.30 09/07/10 Copyright 1987, 1995-2009 J. Schilling"; #endif /* * This program is a tool to generate the file "avoffset.h". @@ -12,7 +13,7 @@ * FP_INDIR - number of stack frames above main() * before encountering a NULL pointer. * - * Copyright (c) 1987, 1995-2004 J. Schilling + * Copyright (c) 1987, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -26,12 +27,11 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include #include -#include +#include #ifdef HAVE_SCANSTACK # include @@ -153,5 +153,7 @@ } } +#ifdef HAVE_SCANSTACK #define IS_AVOFFSET #include "getfp.c" +#endif diff -Nru smake-1.2a41/inc/getfp.c smake-1.2a49/inc/getfp.c --- smake-1.2a41/inc/getfp.c 2006-10-05 16:56:51.000000000 +0100 +++ smake-1.2a49/inc/getfp.c 2008-06-13 23:32:03.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)getfp.c 1.16 06/10/05 Copyright 1988-2003 J. Schilling */ +/* @(#)getfp.c 1.18 08/06/14 Copyright 1988-2008 J. Schilling */ /* * Get frame pointer * - * Copyright (c) 1988-2003 J. Schilling + * Copyright (c) 1988-2008 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -91,4 +91,13 @@ } #endif +#else /* HAVE_SCANSTACK */ + +EXPORT void ** +getfp() +{ + raisecond("getfp", 0); + return ((void **)0); +} + #endif /* HAVE_SCANSTACK */ diff -Nru smake-1.2a41/inc/Makefile smake-1.2a49/inc/Makefile --- smake-1.2a41/inc/Makefile 1999-08-28 16:49:03.000000000 +0100 +++ smake-1.2a49/inc/Makefile 2008-09-10 00:00:45.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "%W% %E% %Q%" +#ident "@(#)Makefile 1.3 08/09/10 " ########################################################################### SRCROOT= .. RULESDIR= RULES @@ -7,6 +7,10 @@ MK_FILES= align_test.mk avoffset.mk +align_test.c: + @echo " ==> MAKING SYMLINKS in ." && sh ./MKLINKS +$(ALLTARGETS): align_test.c + ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.mks ########################################################################### diff -Nru smake-1.2a41/inc/MKLINKS smake-1.2a49/inc/MKLINKS --- smake-1.2a41/inc/MKLINKS 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/inc/MKLINKS 2008-07-31 20:49:24.000000000 +0100 @@ -0,0 +1,30 @@ +#!/bin/sh +########################################################################### +#ident "@(#)MKLINKS 1.1 08/07/31 " +########################################################################### +# Written 2008 by J. Schilling +########################################################################### +# Copyright (c) 2008 J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +symlink="ln -s" +rm -f xxzzy.123 xxzzy.345 +echo test > xxzzy.123 +$symlink xxzzy.123 xxzzy.345 +test $? = 0 || symlink=cp +test -r xxzzy.345 || symlink=cp +rm -f xxzzy.123 xxzzy.345 +########################################################################### + +$symlink ../lib/align_test.c . +$symlink ../lib/avoffset.c . +$symlink ../lib/getfp.c . diff -Nru smake-1.2a41/include/schily/align.h smake-1.2a49/include/schily/align.h --- smake-1.2a41/include/schily/align.h 2006-09-26 13:18:17.000000000 +0100 +++ smake-1.2a49/include/schily/align.h 2009-06-06 00:07:39.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)align.h 1.3 06/09/26 Copyright 1995-2006 J. Schilling */ +/* @(#)align.h 1.7 09/06/06 Copyright 1995-2009 J. Schilling */ /* * Platform dependent definitions for aligning data. * - * Copyright (c) 1995-2006 J. Schilling + * Copyright (c) 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -45,6 +45,10 @@ #ifndef _SCHILY_ALIGN_H #define _SCHILY_ALIGN_H +#ifndef _SCHILY_MCONFIG_H +#include +#endif + #ifndef _SCHILY_UTYPES_H #include #endif @@ -55,10 +59,75 @@ * -I$(SRCROOT)/incs/$(OARCH)/ */ # include -#else +#else /* !SCHILY_BUILD */ /* - * XXX Here belongs the stuff for non-dynamic autoconfiguration. + * The stuff for static compilation. Include files from a previous + * dynamic autoconfiguration. */ +#ifdef __SUNOS5_SPARC_CC32 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_SPARC_CC64 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_SPARC_GCC32 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_SPARC_GCC64 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_X86_CC32 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_X86_CC64 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_X86_GCC32 +#include +#define __JS_ARCH_ALIGN_INCL +#endif +#ifdef __SUNOS5_X86_GCC64 +#include +#define __JS_ARCH_ALIGN_INCL +#endif + +#ifdef __HPUX_HPPA_CC32 +#include +#define __JS_ARCH_CONF_INCL #endif +#ifdef __HPUX_HPPA_CC64 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC32 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC64 +#include +#define __JS_ARCH_CONF_INCL +#endif + +#ifdef __MSWIN_X86_CL32 +#include +#define __JS_ARCH_ALIGN_INCL +#endif + +#ifdef __CYGWIN_X86_GCC +#include +#define __JS_ARCH_ALIGN_INCL +#endif + +#ifndef __JS_ARCH_ALIGN_INCL +Error unconfigured architecture +#endif + +#endif /* SCHILY_BUILD */ #endif /* _SCHILY_ALIGN_H */ diff -Nru smake-1.2a41/include/schily/align.mk smake-1.2a49/include/schily/align.mk --- smake-1.2a41/include/schily/align.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/align.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)align.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/alloca.mk smake-1.2a49/include/schily/alloca.mk --- smake-1.2a41/include/schily/alloca.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/alloca.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)alloca.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/archdefs.h smake-1.2a49/include/schily/archdefs.h --- smake-1.2a41/include/schily/archdefs.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/archdefs.h 2009-08-09 15:05:22.000000000 +0100 @@ -1,9 +1,9 @@ -/* @(#)archdefs.h 1.4 07/01/16 Copyright 2006-2007 J. Schilling */ +/* @(#)archdefs.h 1.8 09/08/09 Copyright 2006-2009 J. Schilling */ /* * Processor, instruction set and OS architecture specific defines. * The information is fetched from compiler predefinitions only. * - * Copyright (c) 2006-2007 J. Schilling + * Copyright (c) 2006-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,6 +20,11 @@ #ifndef _SCHILY_ARCHDEFS_H #define _SCHILY_ARCHDEFS_H +/* + * The code in this file only depends on compiler predefined macros. + * For this reason, it does not need to include schily/mconfig.h + */ + #if defined(sun) || defined(__sun) || defined(__sun__) #ifndef __sun #define __sun @@ -112,7 +117,7 @@ */ #if defined(__sun) && !defined(__SVR4) -#if defined(__mc6800) +#if defined(__mc68000) #ifdef __GNUC__ #define __SUNOS4_MC68000_GCC32 #define __JS_ARCH_DEFINED @@ -121,14 +126,14 @@ #define __SUNOS4_MC68000_CC32 #define __JS_ARCH_DEFINED #endif -#endif /* __mc6800 */ +#endif /* __mc68000 */ #if defined(__sparc) #ifdef __GNUC__ #define __SUNOS4_SPARC_GCC32 #define __JS_ARCH_DEFINED #endif -#if defined(__SUN_C) || defined (__SUNPRO_C) +#if defined(__SUN_C) || defined(__SUNPRO_C) #define __SUNOS4_SPARC_CC32 #define __JS_ARCH_DEFINED #endif @@ -151,7 +156,7 @@ #endif #define __JS_ARCH_DEFINED #endif -#if defined (__SUNPRO_C) +#if defined(__SUNPRO_C) #ifdef __sparcv9 #define __SUNOS5_SPARC_CC64 #else @@ -170,7 +175,7 @@ #endif #define __JS_ARCH_DEFINED #endif -#if defined (__SUNPRO_C) +#if defined(__SUNPRO_C) #ifdef __amd64 #define __SUNOS5_X86_CC64 #else @@ -183,6 +188,32 @@ #endif /* SunOS 5 */ /* + * HP-UX specific defines + */ +#if defined(__hpux) + +#if defined(__hppa) +#ifdef __GNUC__ +#ifdef __LP64__ /* This may be wrong! */ +#define __HPUX_HPPA_GCC64 +#else +#define __HPUX_HPPA_GCC32 +#endif +#define __JS_ARCH_DEFINED +#endif +#if !defined(__GNUC__) +#ifdef __LP64__ +#define __HPUX_HPPA_CC64 +#else +#define __HPUX_HPPA_CC32 +#endif +#define __JS_ARCH_DEFINED +#endif +#endif /* __hppa */ + +#endif /* HP-UX */ + +/* * MS-WIN specific defines * * cl defines one of: diff -Nru smake-1.2a41/include/schily/archdefs.mk smake-1.2a49/include/schily/archdefs.mk --- smake-1.2a41/include/schily/archdefs.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/archdefs.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)archdefs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/assert.h smake-1.2a49/include/schily/assert.h --- smake-1.2a41/include/schily/assert.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/assert.h 2009-08-07 18:06:21.000000000 +0100 @@ -0,0 +1,47 @@ +/* @(#)assert.h 1.1 09/08/07 Copyright 2009 J. Schilling */ +/* + * Abstraction code for assert.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_ASSERT_H +#define _SCHILY_ASSERT_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_ASSERT_H +#ifndef _INCL_ASSERT_H +#define _INCL_ASSERT_H +#include +#endif +#else /* !HAVE_ASSERT_H */ + +#undef assert + +#ifdef NDEBUG +#define assert(ignore) ((void) 0) +#else +#if defined(__STDC__) +#define assert(exp) (void)((exp) || (__assert(#exp, __FILE__, __LINE__), 0)) +#else +#define assert(exp) (void)((exp) || (__assert("exp", __FILE__, __LINE__), 0)) +#endif +#endif + +#endif /* !HAVE_ASSERT_H */ + +#endif /* _SCHILY_ASSERT_H */ diff -Nru smake-1.2a41/include/schily/assert.mk smake-1.2a49/include/schily/assert.mk --- smake-1.2a41/include/schily/assert.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/assert.mk 2009-08-07 18:06:21.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)assert.mk 1.1 09/08/07 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= assert.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/avoffset.h smake-1.2a49/include/schily/avoffset.h --- smake-1.2a41/include/schily/avoffset.h 2006-10-10 09:31:53.000000000 +0100 +++ smake-1.2a49/include/schily/avoffset.h 2007-12-01 19:16:32.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)avoffset.h 1.4 06/10/10 Copyright 1995-2006 J. Schilling */ +/* @(#)avoffset.h 1.7 07/12/01 Copyright 1995-2007 J. Schilling */ /* * Platform dependent definitions for stack scanning. * - * Copyright (c) 1995-2006 J. Schilling + * Copyright (c) 1995-2007 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -50,10 +50,75 @@ * -I$(SRCROOT)/incs/$(OARCH)/ */ # include -#else +#else /* !SCHILY_BUILD */ /* - * XXX Here belongs the stuff for non-dynamic autoconfiguration. + * The stuff for static compilation. Include files from a previous + * dynamic autoconfiguration. */ +#ifdef __SUNOS5_SPARC_CC32 +#include +#define __JS_ARCH_AVOFFSET_INCL #endif +#ifdef __SUNOS5_SPARC_CC64 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_SPARC_GCC32 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_SPARC_GCC64 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_X86_CC32 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_X86_CC64 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_X86_GCC32 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif +#ifdef __SUNOS5_X86_GCC64 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif + +#ifdef __HPUX_HPPA_CC32 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_CC64 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC32 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC64 +#include +#define __JS_ARCH_CONF_INCL +#endif + +#ifdef __MSWIN_X86_CL32 +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif + +#ifdef __CYGWIN_X86_GCC +#include +#define __JS_ARCH_AVOFFSET_INCL +#endif + +#ifndef __JS_ARCH_AVOFFSET_INCL +Error unconfigured architecture +#endif + +#endif /* SCHILY_BUILD */ #endif /* _SCHILY_AVOFFSET_H */ diff -Nru smake-1.2a41/include/schily/avoffset.mk smake-1.2a49/include/schily/avoffset.mk --- smake-1.2a41/include/schily/avoffset.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/avoffset.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)avoffset.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/btorder.mk smake-1.2a49/include/schily/btorder.mk --- smake-1.2a41/include/schily/btorder.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/btorder.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)btorder.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/ccomdefs.h smake-1.2a49/include/schily/ccomdefs.h --- smake-1.2a41/include/schily/ccomdefs.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/include/schily/ccomdefs.h 2009-11-15 23:01:11.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)ccomdefs.h 1.4 06/09/13 Copyright 2000 J. Schilling */ +/* @(#)ccomdefs.h 1.7 09/11/16 Copyright 2000-2009 J. Schilling */ /* * Various compiler dependant macros. * - * Copyright (c) 2000 J. Schilling + * Copyright (c) 2000-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -19,6 +19,10 @@ #ifndef _SCHILY_CCOMDEFS_H #define _SCHILY_CCOMDEFS_H +#ifndef _SCHILY_MCONFIG_H +#include +#endif + #ifdef __cplusplus extern "C" { #endif @@ -56,6 +60,17 @@ #endif /* GNUC */ +#if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 1 + +/* CSTYLED */ +#define UConst __attribute__ ((__used__)) const + +#else /* GNUC 3.2 */ + +#define UConst const + +#endif /* GNUC 3.2 */ + #ifdef __cplusplus } #endif diff -Nru smake-1.2a41/include/schily/ccomdefs.mk smake-1.2a49/include/schily/ccomdefs.mk --- smake-1.2a41/include/schily/ccomdefs.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/ccomdefs.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)ccomdefs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/checkerr.h smake-1.2a49/include/schily/checkerr.h --- smake-1.2a41/include/schily/checkerr.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/checkerr.h 2009-06-06 00:07:39.000000000 +0100 @@ -0,0 +1,78 @@ +/* @(#)checkerr.h 1.11 09/06/06 Copyright 2003-2009 J. Schilling */ +/* + * Generic error control for programs that do file i/o. + * The error control is usually used by archiving programs. + * + * The current version does not provide a stable interface. + * It does not support multi-threaded programs and it may call + * comerr() from the parser. If you use the code before there is + * an official stable and "library-compliant" interface, be careful + * and watch for changes. + * + * Copyright (c) 2003-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_CHECKERR_H +#define _SCHILY_CHECKERR_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_STANDARD_H +#include +#endif +#ifndef _SCHILY_UTYPES_H +#include +#endif + +/* + * Error conditions handled by error control. + */ +#define E_STAT 0x0001 /* Could not stat(2) file */ +#define E_GETACL 0x0002 /* Could not retrieve ACL info */ +#define E_OPEN 0x0004 /* Could not open file */ +#define E_READ 0x0008 /* Could not read file */ +#define E_WRITE 0x0010 /* Could not write file */ +#define E_GROW 0x0020 /* File did grow during backup */ +#define E_SHRINK 0x0040 /* File did shrink during backup */ +#define E_MISSLINK 0x0080 /* Missing hard link(s) for file */ +#define E_NAMETOOLONG 0x0100 /* File name too long for archive */ +#define E_FILETOOBIG 0x0200 /* File too big for archive */ +#define E_SPECIALFILE 0x0400 /* Improper file type for archive */ +#define E_READLINK 0x0800 /* Could not read symbolic link */ +#define E_GETXATTR 0x1000 /* Could not get xattr */ +#define E_CHDIR 0x2000 /* Could not chdir() */ + +#define E_SETTIME 0x10000 /* Could not set file times */ +#define E_SETMODE 0x20000 /* Could not set access modes */ +#define E_SECURITY 0x40000 /* Skipped for security reasons */ +#define E_LSECURITY 0x80000 /* Link skipped for security */ +#define E_SAMEFILE 0x100000 /* Skipped from/to identical */ +#define E_BADACL 0x200000 /* ACL string conversion error */ +#define E_SETACL 0x400000 /* Could not set ACL for file */ +#define E_SETXATTR 0x800000 /* Could not set xattr */ + +#define E_DIFF 0x10000000 /* Diffs encountered */ +#define E_WARN 0x20000000 /* Print this error but do exit(0) */ +#define E_ABORT 0x40000000 /* Abort on this error */ +#define E_EXT 0x80000000 /* Extended (TBD later) */ + +#define E_ALL (~(UInt32_t)(E_DIFF|E_ABORT)) + +extern int errconfig __PR((char *name)); +extern BOOL errhidden __PR((int etype, const char *fname)); +extern BOOL errwarnonly __PR((int etype, const char *fname)); +extern BOOL errabort __PR((int etype, const char *fname, BOOL doexit)); + +#endif /* _SCHILY_CHECKERR_H */ diff -Nru smake-1.2a41/include/schily/checkerr.mk smake-1.2a49/include/schily/checkerr.mk --- smake-1.2a41/include/schily/checkerr.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/checkerr.mk 2007-07-14 13:26:55.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)checkerr.mk 1.1 07/07/14 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= checkerr.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/ctype.h smake-1.2a49/include/schily/ctype.h --- smake-1.2a41/include/schily/ctype.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ctype.h 2009-07-10 20:32:46.000000000 +0100 @@ -0,0 +1,38 @@ +/* @(#)ctype.h 1.1 09/07/10 Copyright 2009 J. Schilling */ +/* + * Ctape abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_CTYPE_H +#define _SCHILY_CTYPE_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TYPES_H +#include +#endif + +#ifdef HAVE_CTYPE_H +#ifndef _INCL_CTYPE_H +#include +#define _INCL_CTYPE_H +#endif +#else + +#endif /* ! HAVE_CTYPE_H */ + +#endif /* _SCHILY_CTYPE_H */ diff -Nru smake-1.2a41/include/schily/ctype.mk smake-1.2a49/include/schily/ctype.mk --- smake-1.2a41/include/schily/ctype.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ctype.mk 2009-07-10 20:32:46.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)ctype.mk 1.1 09/07/10 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= ctype.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/dbgmalloc.h smake-1.2a49/include/schily/dbgmalloc.h --- smake-1.2a41/include/schily/dbgmalloc.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/dbgmalloc.h 2009-10-19 20:43:32.000000000 +0100 @@ -0,0 +1,54 @@ +/* @(#)dbgmalloc.h 1.3 09/10/19 Copyright 2009 J. Schilling */ +/* + * Definitions for libdmalloc + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_DBGMALLOC_H +#define _SCHILY_DBGMALLOC_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef DBG_MALLOC +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern void *dbg_malloc __PR((size_t size, char *file, int line)); +extern void *dbg_calloc __PR((size_t nelem, size_t elsize, char *file, int line)); +extern void *dbg_realloc __PR((void *t, size_t size, char *file, int line)); +#define malloc(s) dbg_malloc(s, __FILE__, __LINE__) +#define calloc(n, s) dbg_calloc(n, s, __FILE__, __LINE__) +#define realloc(t, s) dbg_realloc(t, s, __FILE__, __LINE__) + +#ifdef __cplusplus +} +#endif + +#endif /* DBG_MALLOC */ + +#include + +extern BOOL acheckdamage __PR((void)); +extern void freechecking __PR((BOOL val)); +extern void nomemraising __PR((BOOL val)); + + +#endif /* _SCHILY_DBGMALLOC_H */ diff -Nru smake-1.2a41/include/schily/dbgmalloc.mk smake-1.2a49/include/schily/dbgmalloc.mk --- smake-1.2a41/include/schily/dbgmalloc.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/dbgmalloc.mk 2009-10-15 23:56:05.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)dbgmalloc.mk 1.1 09/10/16 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= dbgmalloc.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/deflts.mk smake-1.2a49/include/schily/deflts.mk --- smake-1.2a41/include/schily/deflts.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/deflts.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)deflts.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/device.h smake-1.2a49/include/schily/device.h --- smake-1.2a41/include/schily/device.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/device.h 2009-11-15 23:01:50.000000000 +0000 @@ -1,4 +1,4 @@ -/* @(#)device.h 1.18 07/01/16 Copyright 1995-2007 J. Schilling */ +/* @(#)device.h 1.19 09/11/16 Copyright 1995-2007 J. Schilling */ /* * Generic header for users of major(), minor() and makedev() * @@ -83,6 +83,15 @@ # endif #endif +#ifndef _FOUND_MAJOR_ +# ifdef VMS +# define major(dev) (((((long)dev) >> 8) & 0xFF)) +# define minor(dev) ((((long)dev) & 0xFF)) +# define makedev(majo, mino) (((majo) << 8) | (mino)) +# define _FOUND_MAJOR_ +# endif /* VMS */ +#endif /* _FOUND_MAJOR_ */ + #ifdef __cplusplus extern "C" { #endif diff -Nru smake-1.2a41/include/schily/device.mk smake-1.2a49/include/schily/device.mk --- smake-1.2a41/include/schily/device.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/device.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)device.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/dirent.h smake-1.2a49/include/schily/dirent.h --- smake-1.2a41/include/schily/dirent.h 2007-02-22 17:13:05.000000000 +0000 +++ smake-1.2a49/include/schily/dirent.h 2009-05-24 12:07:46.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)dirent.h 1.23 07/02/22 Copyright 1987, 1998, 2000-2007 J. Schilling */ +/* @(#)dirent.h 1.28 09/05/24 Copyright 1987, 1998, 2000-2009 J. Schilling */ /* - * Copyright (c) 1987, 1998, 2000-2007 J. Schilling + * Copyright (c) 1987, 1998, 2000-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -56,11 +56,8 @@ # ifndef _SCHILY_STAT_H # include # endif -# ifdef HAVE_LIMITS_H -# ifndef _INCL_LIMITS_H -# include -# define _INCL_LIMITS_H -# endif +# ifndef _SCHILY_LIMITS_H +# include # endif # ifndef _SCHILY_PARAM_H # include @@ -107,25 +104,36 @@ /* * Don't use defaults here to allow recognition of problems. */ -# ifdef MAXNAMELEN +# if !defined(FOUND_DIRSIZE) && defined(MAXNAMELEN) # define DIRSIZE MAXNAMELEN /* From sys/param.h */ # define FOUND_DIRSIZE -# else -# ifdef MAXNAMLEN +# endif + +# if !defined(FOUND_DIRSIZE) && defined(MAXNAMLEN) # define DIRSIZE MAXNAMLEN /* From dirent.h */ # define FOUND_DIRSIZE -# else -# ifdef DIRSIZ +# endif + +# ifdef __never__ + /* + * DIRSIZ(dp) is a parameterized macro, we cannot use it here. + */ +# if !defined(FOUND_DIRSIZE) && defined(DIRSIZ) # define DIRSIZE DIRSIZ /* From sys/dir.h */ # define FOUND_DIRSIZE # endif +# endif /* __never__ */ + +# if !defined(FOUND_DIRSIZE) && defined(NAME_MAX) +# define DIRSIZE NAME_MAX /* From limits.h */ +# define FOUND_DIRSIZE # endif -# endif + # else /* !_FOUND_DIR_ */ # define NEED_DIRENT # define NEED_READDIR -# undef +# undef dirent # define dirent _direct # undef DIR_NAMELEN # define DIR_NAMELEN(dirent) strlen((dirent)->d_name) @@ -151,9 +159,8 @@ #ifdef NEED_READDIR -#ifndef _INCL_STDIO_H -#include -#define _INCL_STDIO_H +#ifndef _SCHILY_STDIO_H +#include #endif typedef struct __dirdesc { @@ -174,6 +181,10 @@ #endif /* NEED_READDIR */ +#if !defined(HAVE_DIRFD) && defined(HAVE_DIR_DD_FD) +# define dirfd(dirp) ((dirp)->dd_fd) +#endif + #ifdef __cplusplus } #endif diff -Nru smake-1.2a41/include/schily/dirent.mk smake-1.2a49/include/schily/dirent.mk --- smake-1.2a41/include/schily/dirent.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/dirent.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)dirent.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/dlfcn.h smake-1.2a49/include/schily/dlfcn.h --- smake-1.2a41/include/schily/dlfcn.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/dlfcn.h 2009-06-14 14:03:56.000000000 +0100 @@ -0,0 +1,96 @@ +/* @(#)dlfcn.h 1.2 09/06/14 Copyright 2009 J. Schilling */ +/* + * Abstraction from dlfcn.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_DLFCN_H +#define _SCHILY_DLFCN_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_DLFCN_H +#ifndef _INCL_DLFCN_H +#include /* POSIX */ +#define _INCL_DLFCN_H +#define FOUND_DLFCN_H +#endif +#endif + +#ifdef HAVE_DL_H +#ifndef FOUND_DLFCN_H +#ifndef _INCL_DL_H +#include /* HP-UX */ +#define _INCL_DL_H +#define FOUND_DLFCN_H +#endif +#endif +#endif + +/* + * dlopen() modes + */ +#ifndef RTLD_LAZY /* The only mode in SunOS-4.0 */ +#define RTLD_LAZY 0x00001 +#define RTLD_NOW 0x00002 +#define RTLD_GLOBAL 0x00100 +#define RTLD_LOCAL 0x00000 +#endif + +#ifdef __never_ +/* + * dlsym() speudo handles + * These handles are not valid on SunOS-4.0 + */ +#ifndef RTLD_NEXT +#define RTLD_NEXT (void *)-1 +#define RTLD_DEFAULT (void *)-2 +#define RTLD_SELF (void *)-3 +#endif +#endif + +/* + * dlsym() speudo handle for SunOS-4.0 + */ +#if defined(HAVE_DLSYM) && !defined(RTLD_SELF) +#define RTLD_SELF (void *)0 +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef HAVE_DLOPEN +extern void *dlopen __PR((const char *pathname, int mode)); +#endif +#ifndef HAVE_DLCLOSE +extern int dlclose __PR((void *handle)); +#endif +#ifndef HAVE_DLSYM +extern void *dlsym __PR((void *handle, const char *name)); +#endif +#ifndef HAVE_DLERROR +extern const char *dlerror __PR((void)); +#endif + +#ifdef __cplusplus +} +#endif + + + +#endif /* _SCHILY_DLFCN_H */ diff -Nru smake-1.2a41/include/schily/dlfcn.mk smake-1.2a49/include/schily/dlfcn.mk --- smake-1.2a41/include/schily/dlfcn.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/dlfcn.mk 2009-05-01 14:59:17.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)dlfcn.mk 1.1 09/05/01 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= dlfcn.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/errno.mk smake-1.2a49/include/schily/errno.mk --- smake-1.2a41/include/schily/errno.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/errno.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)errno.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/fcntl.mk smake-1.2a49/include/schily/fcntl.mk --- smake-1.2a41/include/schily/fcntl.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/fcntl.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)fcntl.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/fetchdir.h smake-1.2a49/include/schily/fetchdir.h --- smake-1.2a41/include/schily/fetchdir.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/fetchdir.h 2008-04-06 14:25:34.000000000 +0100 @@ -0,0 +1,41 @@ +/* @(#)fetchdir.h 1.5 08/04/06 Copyright 2002-2008 J. Schilling */ +/* + * Copyright (c) 2002-2008 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_FETCHDIR_H +#define _SCHILY_FETCHDIR_H + +#ifndef _SCHILY_DIRENT_H +#include /* Includes mconfig.h if needed */ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +extern char *fetchdir __PR((char *dir, int *entp, int *lenp, ino_t **inop)); +extern char *dfetchdir __PR((DIR *dir, char *dirname, int *entp, int *lenp, ino_t **inop)); +extern int fdircomp __PR((const void *p1, const void *p2)); +extern char **sortdir __PR((char *dir, int *entp)); +extern int cmpdir __PR((int ents1, int ents2, + char **ep1, char **ep2, + char **oa, char **od, + int *alenp, int *dlenp)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_FETCHDIR_H */ diff -Nru smake-1.2a41/include/schily/fetchdir.mk smake-1.2a49/include/schily/fetchdir.mk --- smake-1.2a41/include/schily/fetchdir.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/fetchdir.mk 2008-04-06 12:03:24.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)fetchdir.mk 1.1 08/04/06 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= fetchdir.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/find.h smake-1.2a49/include/schily/find.h --- smake-1.2a41/include/schily/find.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/find.h 2009-01-13 19:14:30.000000000 +0000 @@ -0,0 +1,108 @@ +/* @(#)find.h 1.20 09/01/13 Copyright 2005-2009 J. Schilling */ +/* + * Definitions for libfind users. + * + * Copyright (c) 2004-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_FIND_H +#define _SCHILY_FIND_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_STDIO_H +#include +#endif + +#ifndef _SCHILY_STANDARD_H +#include +#endif +#ifndef _SCHILY_STAT_H +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct find_args { + int Argc; /* A copy of argc */ + char **Argv; /* A copy of argv */ + FILE *std[3]; /* To redirect stdin/stdout/err */ + int primtype; /* The type of the last primary */ + BOOL found_action; /* -print/-ls/-exec found */ + int patlen; /* strlen() for longest pattern */ + int walkflags; /* Walkflags modifed by parser */ + int maxdepth; /* -mindepth arg */ + int mindepth; /* -maxdepth arg */ + struct plusargs *plusp; /* List of -exec {} + commands */ + void *jmp; /* Used internally by parser */ + int error; /* Error code from find_parse() */ +} finda_t; + +/* + * finda_t->primtype is set to ENDARGS by find_parse() if a complete expression + * could be parsed. + */ +#define FIND_ENDARGS 1000 /* Found End of Arg Vector */ +#define FIND_ERRARG 1001 /* Parser abort by -help or error */ + +/* + * Flags used for struct WALK->pflags: + */ +#define PF_ACL 0x00001 /* Check ACL from struct WALK->pflags */ +#define PF_HAS_ACL 0x10000 /* This file has ACL */ +#define PF_XATTR 0x00002 /* Check XATTR from struct WALK->pflags */ +#define PF_HAS_XATTR 0x20000 /* This file has XATTR */ + +#ifndef FIND_NODE +#define findn_t void +#endif + +#ifndef __squit_t_defined + +typedef struct { + sqfun_t quitfun; /* Function to query for shell signal quit */ + void *qfarg; /* Generic arg for shell builtin quit fun */ +} squit_t; + +#define __squit_t_defined +#endif + + +extern void find_argsinit __PR((finda_t *fap)); +extern void find_timeinit __PR((time_t __now)); +extern findn_t *find_printnode __PR((void)); +extern findn_t *find_addprint __PR((findn_t *np, finda_t *fap)); +extern void find_free __PR((findn_t *t, finda_t *fap)); +extern int find_token __PR((char *word)); +extern char *find_tname __PR((int op)); +extern findn_t *find_parse __PR((finda_t *fap)); +extern void find_firstprim __PR((int *pac, char *const **pav)); + +extern BOOL find_primary __PR((findn_t *t, int op)); +extern BOOL find_pname __PR((findn_t *t, char *word)); +extern BOOL find_expr __PR((char *f, char *ff, struct stat *fs, struct WALK *state, findn_t *t)); + +extern int find_plusflush __PR((void *p, struct WALK *state)); +extern void find_usage __PR((FILE *f)); +extern int find_main __PR((int ac, char **av, char **ev, FILE *std[3], squit_t *__quit)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_FIND_H */ diff -Nru smake-1.2a41/include/schily/find.mk smake-1.2a49/include/schily/find.mk --- smake-1.2a41/include/schily/find.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/find.mk 2008-04-06 13:07:50.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)find.mk 1.1 08/04/06 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= find.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/float.h smake-1.2a49/include/schily/float.h --- smake-1.2a41/include/schily/float.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/float.h 2009-08-07 23:18:33.000000000 +0100 @@ -0,0 +1,56 @@ +/* @(#)float.h 1.1 09/08/08 Copyright 2009 J. Schilling */ +/* + * Abstraction code for float.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_FLOAT_H +#define _SCHILY_FLOAT_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_FLOAT_H +#ifndef _INCL_FLOAT_H +#define _INCL_FLOAT_H +#include +#endif +#endif + +#ifdef HAVE_VALUES_H +#ifndef _INCL_VALUES_H +#define _INCL_VALUES_H +#include +#endif + +#ifndef FLT_MAX +#define FLT_MAX MAXFLOAT +#endif +#ifndef FLT_MIN +#define FLT_MIN MINFLOAT +#endif +#ifndef DBL_MAX +#define DBL_MAX MAXDOUBLE +#endif +#ifndef DBL_MIN +#define DBL_MIN MINDOUBLE +#endif + +#endif + + + +#endif /* _SCHILY_FLOAT_H */ diff -Nru smake-1.2a41/include/schily/float.mk smake-1.2a49/include/schily/float.mk --- smake-1.2a41/include/schily/float.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/float.mk 2009-08-07 23:18:33.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)float.mk 1.1 09/08/08 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= float.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/fnmatch.h smake-1.2a49/include/schily/fnmatch.h --- smake-1.2a41/include/schily/fnmatch.h 2006-10-10 09:24:15.000000000 +0100 +++ smake-1.2a49/include/schily/fnmatch.h 2009-05-05 22:06:34.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)fnmatch.h 8.6 06/10/10 2006 J. Schilling from 8.1 (Berkeley) */ +/* @(#)fnmatch.h 8.7 09/05/05 Copyright 2006-2009 J. Schilling from 8.1 (Berkeley) */ #ifndef _SCHILY_FNMATCH_H #define _SCHILY_FNMATCH_H @@ -6,7 +6,7 @@ #ifndef _SCHILY_MCONFIG_H #include #endif -#ifdef HAVE_FNMATCH +#ifdef HAVE_FNMATCH_H #include #else /* @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)fnmatch.h 8.6 (Berkeley) 10/10/06 + * @(#)fnmatch.h 8.7 (Berkeley) 05/05/09 */ #define FNM_NOMATCH 1 /* Match failed. */ diff -Nru smake-1.2a41/include/schily/fnmatch.mk smake-1.2a49/include/schily/fnmatch.mk --- smake-1.2a41/include/schily/fnmatch.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/fnmatch.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)fnmatch.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/fstream.h smake-1.2a49/include/schily/fstream.h --- smake-1.2a41/include/schily/fstream.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/fstream.h 2008-01-02 17:08:27.000000000 +0000 @@ -0,0 +1,63 @@ +/* @(#)fstream.h 1.14 08/01/02 Copyright 1985-2008 J. Schilling */ +/* + * Definitions for the file stream package + * + * Copyright (c) 1985-2008 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_FSTREAM_H +#define _SCHILY_FSTREAM_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define STR_SBUF_SIZE 127 /* Size of "static" stream buffer */ + +#ifdef WSTRINGS +typedef short CHAR; +#else +typedef char CHAR; +#endif + + +typedef struct fstream { + FILE *fstr_file; + CHAR *fstr_bp; + CHAR *fstr_buf; + int (*fstr_func) __PR((struct fstream *, FILE *)); + int (*fstr_rfunc) __PR((struct fstream *)); + CHAR fstr_sbuf[STR_SBUF_SIZE + 1]; +} fstream; + +typedef int (*fstr_fun) __PR((struct fstream *, FILE *)); +typedef int (*fstr_efun) __PR((char *)); +typedef int (*fstr_rfun) __PR((struct fstream *)); + +extern fstream *mkfstream __PR((FILE *f, fstr_fun, fstr_rfun, fstr_efun)); +extern void fsclose __PR((fstream *fsp)); +extern FILE *fssetfile __PR((fstream *fsp, FILE *f)); +extern int fsgetc __PR((fstream *fsp)); +extern void fspushstr __PR((fstream *fsp, char *ss)); +extern void fspushcha __PR((fstream *fsp, int c)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_FSTREAM_H */ diff -Nru smake-1.2a41/include/schily/fstream.mk smake-1.2a49/include/schily/fstream.mk --- smake-1.2a41/include/schily/fstream.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/fstream.mk 2008-01-02 11:28:57.000000000 +0000 @@ -0,0 +1,17 @@ +#ident @(#)fstream.mk 1.1 08/01/02 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= fstream.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/getargs.h smake-1.2a49/include/schily/getargs.h --- smake-1.2a41/include/schily/getargs.h 2006-12-02 20:00:03.000000000 +0000 +++ smake-1.2a49/include/schily/getargs.h 2007-07-01 23:32:54.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)getargs.h 1.16 06/12/02 Copyright 1985 J. Schilling */ +/* @(#)getargs.h 1.18 07/07/02 Copyright 1985-2007 J. Schilling */ /* * Definitions for getargs()/getallargs()/getfiles() * - * Copyright (c) 1985 J. Schilling + * Copyright (c) 1985-2007 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -22,13 +22,37 @@ #ifndef _SCHILY_MCONFIG_H #include #endif +#ifndef _SCHILY_UTYPES_H +#include +#endif #ifdef __cplusplus extern "C" { #endif -#define NOARGS 0 /* No more args */ +/* + * Return values for get*args()/get*files() + * + * This package calls options "flags", they are returned from get*args(). + * + * Note that NOTAFILE is not returned by the interface functions. + * NOTAFILE is however used as return code from the user's callback functions + * to signal that the current arg may be an option the callback function does + * not know and definitely is no file type argument. + * + * General rules for the return code of the interface functions + * get*args()/get*files(): + * + * > 0 A file type argument was found + * 0 All arguments have been parsed + * < 0 An error occured + * + * Flag and file arg processing should be terminated after getting a return + * code <= 0. + */ +#define FLAGDELIM 2 /* "--" stopped flag processing */ #define NOTAFLAG 1 /* Not a flag type argument */ +#define NOARGS 0 /* No more args */ #define BADFLAG (-1) /* Not a valid flag argument */ #define BADFMT (-2) /* Error in format string */ #define NOTAFILE (-3) /* Seems to be a flag type */ @@ -44,6 +68,33 @@ getpargfun ga_funcp; }; +struct ga_props { + UInt32_t ga_flags; + UInt32_t ga_oflags; + size_t ga_size; +}; + +#define GA_NO_PROPS (struct ga_props *)0 + +/* + * Definitions for ga_flags + */ +#define GAF_DEFAULT 0x00 /* The default behavior */ +#define GAF_NO_PLUS 0x01 /* Options may not start with '+' */ +#define GAF_NO_EQUAL 0x02 /* Disallow '=' between opt and val */ +#define GAF_NEED_DASH 0x04 /* Need dash before (-name=val), */ + /* name=val is not allowed */ +#define GAF_DELIM_DASHDASH 0x08 /* "--" stops even get?allargs() */ + +/* + * POSIX does not allow options in the form "+option", "-option=value" or + * "option=value". + * + * GAF_NO_PLUS do not allow options to start with a '+' + * GAF_NO_EQUAL do not allow options to contain '=' between name & val + */ +#define GAF_POSIX_DEFAULT (GAF_NO_PLUS | GAF_NO_EQUAL) + /* * Keep in sync with schily.h */ @@ -53,12 +104,23 @@ extern char *getargerror __PR((int)); /* + * The new list versions of the functions need struct ga_props and thus need + * getargs.h + */ +extern int getlallargs __PR((int *, char * const**, struct ga_props *, const char *, ...)); +extern int getlargs __PR((int *, char * const**, struct ga_props *, const char *, ...)); +extern int getlfiles __PR((int *, char * const**, struct ga_props *, const char *)); +extern int _getarginit __PR((struct ga_props *, size_t, UInt32_t)); + +#define getarginit(p, f) _getarginit(p, sizeof (struct ga_props), f) + +/* * The vector versions of the functions need struct ga_flags and thus need * getargs.h */ -extern int getvallargs __PR((int *, char * const**, struct ga_flags *, void *)); -extern int getvargs __PR((int *, char * const**, struct ga_flags *, void *)); -extern int getvfiles __PR((int *, char * const**, struct ga_flags *, void *)); +extern int getvallargs __PR((int *, char * const**, struct ga_flags *, struct ga_props *)); +extern int getvargs __PR((int *, char * const**, struct ga_flags *, struct ga_props *)); +extern int getvfiles __PR((int *, char * const**, struct ga_flags *, struct ga_props *)); #ifdef __cplusplus } diff -Nru smake-1.2a41/include/schily/getargs.mk smake-1.2a49/include/schily/getargs.mk --- smake-1.2a41/include/schily/getargs.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/getargs.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)getargs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/getcwd.h smake-1.2a49/include/schily/getcwd.h --- smake-1.2a41/include/schily/getcwd.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/include/schily/getcwd.h 2008-12-08 19:31:38.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)getcwd.h 1.4 06/09/13 Copyright 1998 J. Schilling */ +/* @(#)getcwd.h 1.5 08/12/08 Copyright 1998-2008 J. Schilling */ /* * Definitions for getcwd() * - * Copyright (c) 1998 J. Schilling + * Copyright (c) 1998-2008 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -22,6 +22,9 @@ #ifndef _SCHILY_MCONFIG_H #include #endif +#ifndef _SCHILY_UNISTD_H +#include +#endif #ifdef JOS # ifndef _INCL_SYS_STYPES_H diff -Nru smake-1.2a41/include/schily/getcwd.mk smake-1.2a49/include/schily/getcwd.mk --- smake-1.2a41/include/schily/getcwd.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/getcwd.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)getcwd.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/grp.h smake-1.2a49/include/schily/grp.h --- smake-1.2a41/include/schily/grp.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/grp.h 2009-07-10 20:34:11.000000000 +0100 @@ -0,0 +1,53 @@ +/* @(#)grp.h 1.1 09/07/10 Copyright 2009 J. Schilling */ +/* + * Group abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_GRP_H +#define _SCHILY_GRP_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TYPES_H +#include +#endif + +#ifdef HAVE_GRP_H +#ifndef _INCL_GRP_H +#include +#define _INCL_GRP_H +#endif +#else + +#ifdef __cplusplus +extern "C" { +#endif + +struct group { + char *gr_name; + char *gr_passwd; + gid_t gr_gid; + char **gr_mem; +}; + +#ifdef __cplusplus +} +#endif + +#endif /* ! HAVE_GRP_H */ + +#endif /* _SCHILY_GRP_H */ diff -Nru smake-1.2a41/include/schily/grp.mk smake-1.2a49/include/schily/grp.mk --- smake-1.2a41/include/schily/grp.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/grp.mk 2009-07-10 20:34:11.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)grp.mk 1.1 09/07/10 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= grp.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/hostname.h smake-1.2a49/include/schily/hostname.h --- smake-1.2a41/include/schily/hostname.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/hostname.h 2009-07-28 20:15:25.000000000 +0100 @@ -0,0 +1,83 @@ +/* @(#)hostname.h 1.18 09/07/28 Copyright 1995-2008 J. Schilling */ +/* + * This file has been separated from libport.h in order to avoid + * to include netdb.h in case gethostname() is not needed. + * + * Copyright (c) 1995-2008 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + + +#ifndef _SCHILY_HOSTNAME_H +#define _SCHILY_HOSTNAME_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TYPES_H +#include +#endif + +/* + * Try to get HOST_NAME_MAX for gethostname() from unistd.h or limits.h + */ +#ifndef _SCHILY_UNISTD_H +#include +#endif +#ifndef _SCHILY_LIMITS_H +#include +#endif + +#ifndef HOST_NAME_MAX +#if defined(HAVE_NETDB_H) && !defined(HOST_NOT_FOUND) && \ + !defined(_INCL_NETDB_H) +#include /* #defines MAXHOSTNAMELEN */ +#define _INCL_NETDB_H +#endif +#ifdef MAXHOSTNAMELEN +#define HOST_NAME_MAX MAXHOSTNAMELEN +#endif +#endif + +#ifndef HOST_NAME_MAX +#ifndef _SCHILY_PARAM_H +#include /* Include various defs needed with some OS */ +#endif /* Linux MAXHOSTNAMELEN */ +#ifdef MAXHOSTNAMELEN +#define HOST_NAME_MAX MAXHOSTNAMELEN +#endif +#endif + +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 255 +#endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN HOST_NAME_MAX +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef HAVE_GETHOSTNAME +extern int gethostname __PR((char *name, int namelen)); +#endif +#ifndef HAVE_GETDOMAINNAME +extern int getdomainname __PR((char *name, int namelen)); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_HOSTNAME_H */ diff -Nru smake-1.2a41/include/schily/hostname.mk smake-1.2a49/include/schily/hostname.mk --- smake-1.2a41/include/schily/hostname.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/hostname.mk 2008-12-20 15:28:27.000000000 +0000 @@ -0,0 +1,17 @@ +#ident @(#)hostname.mk 1.1 08/12/20 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= hostname.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/iconv.h smake-1.2a49/include/schily/iconv.h --- smake-1.2a41/include/schily/iconv.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/iconv.h 2008-01-02 17:09:16.000000000 +0000 @@ -0,0 +1,72 @@ +/* @(#)iconv.h 1.4 08/01/02 Copyright 2007 J. Schilling */ +/* + * Abstraction from iconv.h + * + * Copyright (c) 2007 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_ICONV_H +#define _SCHILY_ICONV_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_ICONV_H +#ifndef _INCL_ICONV_H +#include +#define _INCL_ICONV_H +#endif +#else +#undef USE_ICONV +#endif + +/* + * Libiconv on Cygwin is not autoconf-friendly. + * iconv.h #defined iconv to libiconv + * We would need a AC_CHECK_FUNC() macro that allows to specify includefiles. + */ +#if defined(HAVE_LIBICONV) && defined(HAVE_LIBICONV_OPEN) && \ + defined(HAVE_LIBICONV_CLOSE) && \ + defined(iconv) && defined(iconv_open) && defined(iconv_close) +# ifndef HAVE_ICONV +# define HAVE_ICONV +# endif +# ifndef HAVE_ICONV_OPEN +# define HAVE_ICONV_OPEN +# endif +# ifndef HAVE_ICONV_CLOSE +# define HAVE_ICONV_CLOSE +# endif +#endif + +#if !defined(HAVE_ICONV_OPEN) || !defined(HAVE_ICONV_CLOSE) +# undef HAVE_ICONV +#endif + +#ifndef HAVE_ICONV +#undef USE_ICONV +#endif + +#ifdef NO_ICONV +#undef USE_ICONV +#endif + +#ifndef USE_ICONV +#undef iconv_t +#define iconv_t char * +#endif + + +#endif /* _SCHILY_ICONV_H */ diff -Nru smake-1.2a41/include/schily/iconv.mk smake-1.2a49/include/schily/iconv.mk --- smake-1.2a41/include/schily/iconv.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/iconv.mk 2007-05-04 11:18:27.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)iconv.mk 1.1 07/05/04 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= iconv.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/idcache.h smake-1.2a49/include/schily/idcache.h --- smake-1.2a41/include/schily/idcache.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/idcache.h 2008-04-06 18:23:50.000000000 +0100 @@ -0,0 +1,35 @@ +/* @(#)idcache.h 1.2 08/04/06 Copyright 1993, 1995-2008 J. Schilling */ +/* + * Copyright (c) 1993, 1995-2008 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_IDCACHE_H +#define _SCHILY_IDCACHE_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_TYPES_H +#include +#endif + +extern BOOL ic_nameuid __PR((char *name, int namelen, uid_t uid)); +extern BOOL ic_uidname __PR((char *name, int namelen, uid_t *uidp)); +extern BOOL ic_namegid __PR((char *name, int namelen, gid_t gid)); +extern BOOL ic_gidname __PR((char *name, int namelen, gid_t *gidp)); +extern uid_t ic_uid_nobody __PR((void)); +extern gid_t ic_gid_nobody __PR((void)); + +#endif /* _SCHILY_IDCACHE_H */ diff -Nru smake-1.2a41/include/schily/idcache.mk smake-1.2a49/include/schily/idcache.mk --- smake-1.2a41/include/schily/idcache.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/idcache.mk 2008-04-06 16:07:24.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)idcache.mk 1.1 08/04/06 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= idcache.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/inet.h smake-1.2a49/include/schily/inet.h --- smake-1.2a41/include/schily/inet.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/inet.h 2009-08-04 19:36:17.000000000 +0100 @@ -0,0 +1,46 @@ +/* @(#)inet.h 1.2 09/08/04 Copyright 2009 J. Schilling */ +/* + * Inet abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_INET_H +#define _SCHILY_INET_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_ARPA_INET_H +#ifndef _INCL_ARPA_INET_H +#include +#define _INCL_ARPA_INET_H +#endif +#else /* !HAVE_ARPA_INET_H */ + +/* + * BeOS does not have + * but inet_ntaoa() is in + */ +#ifdef HAVE_NETDB_H +#ifndef _INCL_NETDB_H +#include +#define _INCL_NETDB_H +#endif +#endif /* HAVE_NETDB_H */ + +#endif /* !HAVE_ARPA_INET_H */ + +#endif /* _SCHILY_INET_H */ diff -Nru smake-1.2a41/include/schily/inet.mk smake-1.2a49/include/schily/inet.mk --- smake-1.2a41/include/schily/inet.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/inet.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)inet.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= inet.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/in.h smake-1.2a49/include/schily/in.h --- smake-1.2a41/include/schily/in.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/in.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)in.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * In abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_IN_H +#define _SCHILY_IN_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_NETINET_IN_H +#ifndef _INCL_NETINET_IN_H +#include +#define _INCL_NETINET_IN_H +#endif +#endif + +#endif /* _SCHILY_IN_H */ diff -Nru smake-1.2a41/include/schily/in.mk smake-1.2a49/include/schily/in.mk --- smake-1.2a41/include/schily/in.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/in.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)in.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= in.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/intcvt.mk smake-1.2a49/include/schily/intcvt.mk --- smake-1.2a41/include/schily/intcvt.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/intcvt.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)intcvt.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/ioctl.h smake-1.2a49/include/schily/ioctl.h --- smake-1.2a41/include/schily/ioctl.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ioctl.h 2007-05-24 12:02:25.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)ioctl.h 1.1 07/05/24 Copyright 2007 J. Schilling */ +/* + * Abstraction from sys/ioctl.h + * + * Copyright (c) 2007 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_IOCTL_H +#define _SCHILY_IOCTL_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_IOCTL_H +#ifndef _INCL_SYS_IOCTL_H +#include +#define _INCL_SYS_IOCTL_H +#endif +#endif + +#endif /* _SCHILY_IOCTL_H */ diff -Nru smake-1.2a41/include/schily/ioctl.mk smake-1.2a49/include/schily/ioctl.mk --- smake-1.2a41/include/schily/ioctl.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ioctl.mk 2007-05-24 11:50:38.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)ioctl.mk 1.1 07/05/24 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= ioctl.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/io.h smake-1.2a49/include/schily/io.h --- smake-1.2a41/include/schily/io.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/io.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,46 @@ +/* @(#)io.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * DOS io.h abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_IO_H +#define _SCHILY_IO_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_FCNTL_H +#include +#endif + +#ifndef NEED_O_BINARY +#if O_BINARY != 0 +#define NEED_O_BINARY +#endif +#endif + +#if defined(HAVE_IO_H) && defined(NEED_O_BINARY) +#ifndef _INCL_IO_H +#include +#define _INCL_IO_H +#endif +#else /* ! defined(HAVE_IO_H) && defined(NEED_O_BINARY) */ + +#define setmode(f, m) + +#endif + +#endif /* _SCHILY_IO_H */ diff -Nru smake-1.2a41/include/schily/io.mk smake-1.2a49/include/schily/io.mk --- smake-1.2a41/include/schily/io.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/io.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)io.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= io.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/ipc.h smake-1.2a49/include/schily/ipc.h --- smake-1.2a41/include/schily/ipc.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ipc.h 2009-08-08 00:14:43.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)ipc.h 1.1 09/08/08 Copyright 2009 J. Schilling */ +/* + * Abstraction code for ipc.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_IPC_H +#define _SCHILY_IPC_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_IPC_H +#ifndef _INCL_SYS_IPC_H +#define _INCL_SYS_IPC_H +#include +#endif +#endif + +#endif /* _SCHILY_IPC_H */ diff -Nru smake-1.2a41/include/schily/ipc.mk smake-1.2a49/include/schily/ipc.mk --- smake-1.2a41/include/schily/ipc.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/ipc.mk 2009-08-08 00:14:43.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)ipc.mk 1.1 09/08/08 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= ipc.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/jmpdefs.h smake-1.2a49/include/schily/jmpdefs.h --- smake-1.2a41/include/schily/jmpdefs.h 2007-02-20 09:47:55.000000000 +0000 +++ smake-1.2a49/include/schily/jmpdefs.h 2009-07-13 18:20:22.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)jmpdefs.h 1.7 07/02/20 Copyright 1999 J. Schilling */ +/* @(#)jmpdefs.h 1.9 09/07/13 Copyright 1998-2009 J. Schilling */ /* * Definitions that help to handle a jmp_buf * - * Copyright (c) 1998 J. Schilling + * Copyright (c) 1998-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -19,9 +19,12 @@ #ifndef _SCHILY_JMPDEFS_H #define _SCHILY_JMPDEFS_H -#ifndef _INCL_SETJMP_H -#define _INCL_SETJMP_H -#include +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_SETJMP_H +#include #endif #ifdef __cplusplus diff -Nru smake-1.2a41/include/schily/jmpdefs.mk smake-1.2a49/include/schily/jmpdefs.mk --- smake-1.2a41/include/schily/jmpdefs.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/jmpdefs.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)jmpdefs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/libport.h smake-1.2a49/include/schily/libport.h --- smake-1.2a41/include/schily/libport.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/libport.h 2009-10-22 22:18:55.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)libport.h 1.14 07/01/16 Copyright 1995-2007 J. Schilling */ +/* @(#)libport.h 1.20 09/10/22 Copyright 1995-2009 J. Schilling */ /* - * Copyright (c) 1995-2007 J. Schilling + * Copyright (c) 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -21,43 +21,25 @@ #ifndef _SCHILY_MCONFIG_H #include #endif -#ifndef _SCHILY_STANDARD_H -#include +#ifndef _SCHILY_TYPES_H +#include #endif -/* - * Try to get HOST_NAME_MAX for gethostname() - */ #ifndef _SCHILY_UNISTD_H #include #endif -#ifndef HOST_NAME_MAX -#if defined(HAVE_NETDB_H) && !defined(HOST_NOT_FOUND) && \ - !defined(_INCL_NETDB_H) -#include -#define _INCL_NETDB_H -#endif -#ifdef MAXHOSTNAMELEN -#define HOST_NAME_MAX MAXHOSTNAMELEN -#endif -#endif - -#ifndef HOST_NAME_MAX -#ifndef _SCHILY_PARAM_H -#include /* Include various defs needed with some OS */ -#endif /* Linux MAXHOSTNAMELEN */ -#ifdef MAXHOSTNAMELEN -#define HOST_NAME_MAX MAXHOSTNAMELEN -#endif +#ifdef __cplusplus +extern "C" { #endif -#ifndef HOST_NAME_MAX -#define HOST_NAME_MAX 255 +#if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_) || defined(size_t) +# ifndef FOUND_SIZE_T +# define FOUND_SIZE_T +# endif #endif - -#ifdef __cplusplus -extern "C" { +#if defined(_MSC_VER) && !defined(_SIZE_T_DEFINED) +# undef FOUND_SIZE_T #endif #ifdef OPENSERVER @@ -75,33 +57,95 @@ #ifndef HAVE_GETHOSTID extern long gethostid __PR((void)); #endif -#ifndef HAVE_GETHOSTNAME -extern int gethostname __PR((char *name, int namelen)); -#endif -#ifndef HAVE_GETDOMAINNAME -extern int getdomainname __PR((char *name, int namelen)); -#endif #ifndef HAVE_GETPAGESIZE -EXPORT int getpagesize __PR((void)); +extern int getpagesize __PR((void)); #endif #ifndef HAVE_USLEEP extern int usleep __PR((int usec)); #endif +#ifndef HAVE_STRCAT +extern char *strcat __PR((char *s1, const char *s2)); +#endif +#ifndef HAVE_STRCHR +extern char *strchr __PR((const char *s1, int c)); +#endif +#ifndef HAVE_STRCMP +extern int strcmp __PR((const char *s1, const char *s2)); +#endif +#ifndef HAVE_STRCPY +extern char *strcpy __PR((char *s1, const char *s2)); +#endif #if !defined(HAVE_STRDUP) || defined(__SVR4) extern char *strdup __PR((const char *s)); #endif -#ifndef HAVE_STRNCPY -extern char *strncpy __PR((char *s1, const char *s2, size_t len)); +#ifdef FOUND_SIZE_T +#ifndef HAVE_STRLEN +extern size_t strlen __PR((const char *s)); #endif #ifndef HAVE_STRLCPY extern size_t strlcpy __PR((char *s1, const char *s2, size_t len)); #endif +#ifndef HAVE_STRNCAT +extern char *strncat __PR((char *s1, const char *s2, size_t len)); +#endif +#ifndef HAVE_STRNCMP +extern int strncmp __PR((const char *s1, const char *s2, size_t len)); +#endif +#ifndef HAVE_STRNCPY +extern char *strncpy __PR((char *s1, const char *s2, size_t len)); +#endif +#endif /* FOUND_SIZE_T */ +#ifndef HAVE_STRRCHR +extern char *strrchr __PR((const char *s1, int c)); +#endif + +#ifdef _SCHILY_WCHAR_H +#ifndef HAVE_WCSCAT +extern wchar_t *wcscat __PR((wchar_t *s1, const wchar_t *s2)); +#endif +#ifndef HAVE_WCSCHR +extern wchar_t *wcschr __PR((const wchar_t *s1, wchar_t c)); +#endif +#ifndef HAVE_WCSCMP +extern int wcscmp __PR((const wchar_t *s1, const wchar_t *s2)); +#endif +#ifndef HAVE_WCSCPY +extern wchar_t *wcscpy __PR((wchar_t *s1, const wchar_t *s2)); +#endif +#ifndef HAVE_WCSDUP +extern wchar_t *wcsdup __PR((const wchar_t *s)); +#endif +#ifdef FOUND_SIZE_T +#ifndef HAVE_WCSLEN +extern size_t wcslen __PR((const wchar_t *s)); +#endif +#ifndef HAVE_WCSLCPY +extern size_t wcslcpy __PR((wchar_t *s1, const wchar_t *s2, size_t len)); +#endif +#ifndef HAVE_WCSNCAT +extern wchar_t *wcsncat __PR((wchar_t *s1, const wchar_t *s2, size_t len)); +#endif +#ifndef HAVE_WCSNCMP +extern int wcsncmp __PR((const wchar_t *s1, const wchar_t *s2, size_t len)); +#endif +#ifndef HAVE_WCSNCPY +extern wchar_t *wcsncpy __PR((wchar_t *s1, const wchar_t *s2, size_t len)); +#endif +#endif /* FOUND_SIZE_T */ +#ifndef HAVE_WCSRCHR +extern wchar_t *wcsrchr __PR((const wchar_t *s1, wchar_t c)); +#endif +#endif /* _SCHILY_WCHAR_H */ #ifndef HAVE_RENAME extern int rename __PR((const char *old, const char *new)); #endif +#ifndef HAVE_EACCESS +extern int eaccess __PR((char *name, int mode)); +#endif + #ifdef __cplusplus } #endif diff -Nru smake-1.2a41/include/schily/libport.mk smake-1.2a49/include/schily/libport.mk --- smake-1.2a41/include/schily/libport.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/libport.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)libport.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/librmt.mk smake-1.2a49/include/schily/librmt.mk --- smake-1.2a41/include/schily/librmt.mk 2006-12-17 21:52:11.000000000 +0000 +++ smake-1.2a49/include/schily/librmt.mk 2006-12-17 21:52:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)librmt.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/limits.h smake-1.2a49/include/schily/limits.h --- smake-1.2a41/include/schily/limits.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/limits.h 2009-05-24 11:56:38.000000000 +0100 @@ -0,0 +1,31 @@ +/* @(#)limits.h 1.1 09/05/24 Copyright 2009 J. Schilling */ +/* + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_LIMITS_H +#define _SCHILY_LIMITS_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_LIMITS_H +#ifndef _INCL_LIMITS_H +#include +#define _INCL_LIMITS_H +#endif +#endif + +#endif /* _SCHILY_LIMITS_H */ diff -Nru smake-1.2a41/include/schily/limits.mk smake-1.2a49/include/schily/limits.mk --- smake-1.2a41/include/schily/limits.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/limits.mk 2009-05-24 11:57:22.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)limits.mk 1.1 09/05/24 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= limits.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/locale.h smake-1.2a49/include/schily/locale.h --- smake-1.2a41/include/schily/locale.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/locale.h 2009-05-24 11:23:37.000000000 +0100 @@ -0,0 +1,50 @@ +/* @(#)locale.h 1.2 09/05/24 Copyright 2009 J. Schilling */ +/* + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_LOCALE_H +#define _SCHILY_LOCALE_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_LOCALE_H +#ifndef _INCL_LOCALE_H +#include /* LC_* definitions */ +#define _INCL_LOCALE_H +#endif +#ifndef USE_LOCALE +#define USE_LOCALE +#endif +#else +#undef USE_LOCALE +#endif + +#ifndef HAVE_SETLOCALE +#undef USE_LOCALE +#endif + +#ifdef NO_LOCALE +#undef USE_LOCALE +#endif + +#ifndef USE_LOCALE +#undef setlocale +#define setlocale(n, s) ((void *)0) +#endif + + +#endif /* _SCHILY_LOCALE_H */ diff -Nru smake-1.2a41/include/schily/locale.mk smake-1.2a49/include/schily/locale.mk --- smake-1.2a41/include/schily/locale.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/locale.mk 2009-05-23 15:22:31.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)locale.mk 1.1 09/05/23 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= locale.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/Makefile smake-1.2a49/include/schily/Makefile --- smake-1.2a41/include/schily/Makefile 2007-02-13 14:51:00.000000000 +0000 +++ smake-1.2a49/include/schily/Makefile 2009-07-10 20:32:22.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)Makefile 1.2 07/02/13 +#ident @(#)Makefile 1.21 09/07/10 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### @@ -9,18 +9,9 @@ INSDIR= include/schily TARGET= align.h -XMK_FILE= \ - align.mk alloca.mk archdefs.mk avoffset.mk btorder.mk \ - ccomdefs.mk deflts.mk device.mk dirent.mk errno.mk fcntl.mk \ - fnmatch.mk getargs.mk getcwd.mk intcvt.mk jmpdefs.mk jos_defs.mk \ - jos_io.mk jos_maxp.mk libport.mk librmt.mk maxpath.mk mconfig.mk \ - mman.mk mtio.mk nlsdefs.mk param.mk patmatch.mk prototyp.mk \ - rmtio.mk schily.mk schilyp.mk \ - sigblk.mk signal.mk standard.mk stat.mk \ - stdlib.mk stkframe.mk string.mk termcap.mk termios.mk time.mk \ - types.mk unistd.mk unls.mk utime.mk utypes.mk varargs.mk \ - wchar.mk wait.mk \ - xconfig.mk xmconfig.mk + +include Targets +XMK_FILE= $(X_MK_LIST) ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.aux diff -Nru smake-1.2a41/include/schily/math.h smake-1.2a49/include/schily/math.h --- smake-1.2a41/include/schily/math.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/math.h 2009-08-26 11:34:01.000000000 +0100 @@ -0,0 +1,34 @@ +/* @(#)math.h 1.1 09/08/26 Copyright 2009 J. Schilling */ +/* + * Abstraction from math.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_MATH_H +#define _SCHILY_MATH_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_MATH_H +#ifndef _INCL_MATH_H +#define _INCL_MATH_H +#include +#endif +#endif + + +#endif /* _SCHILY_MATH_H */ diff -Nru smake-1.2a41/include/schily/math.mk smake-1.2a49/include/schily/math.mk --- smake-1.2a41/include/schily/math.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/math.mk 2009-08-26 11:32:47.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)math.mk 1.1 09/08/26 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= math.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/maxpath.h smake-1.2a49/include/schily/maxpath.h --- smake-1.2a41/include/schily/maxpath.h 2007-02-22 20:12:51.000000000 +0000 +++ smake-1.2a49/include/schily/maxpath.h 2009-02-17 21:58:13.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)maxpath.h 1.8 07/02/22 Copyright 1985, 1995, 1998, 2001-2007 J. Schilling */ +/* @(#)maxpath.h 1.11 09/02/17 Copyright 1985, 1995, 1998, 2001-2009 J. Schilling */ /* * Definitions for dealing with statically limitations on pathnames * - * Copyright (c) 1985, 1995, 1998, 2001-2007 J. Schilling + * Copyright (c) 1985, 1995, 1998, 2001-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -75,13 +75,23 @@ # define FOUND_MAXFILENAME #endif +#ifdef __never__ +/* + * DIRSIZ(dp) is a parameterized macro, we cannot use it here. + */ #if !defined(FOUND_MAXFILENAME) && defined(DIRSIZ) # define MAXFILENAME DIRSIZ /* From sys/dir.h */ # define FOUND_MAXFILENAME #endif +#endif /* __never__ */ + +#if !defined(FOUND_MAXFILENAME) && defined(NAME_MAX) +# define MAXFILENAME NAME_MAX /* From limits.h */ +# define FOUND_MAXFILENAME +#endif #if !defined(FOUND_MAXFILENAME) && defined(FOUND_DIRSIZE) -# define MAXFILENAME DIRSIZE /* From dirdefs.h */ +# define MAXFILENAME DIRSIZE /* From schily/dirent.h */ # define FOUND_MAXFILENAME #endif @@ -93,5 +103,11 @@ # define FOUND_MAXFILENAME #endif +#ifndef NAME_MAX +#define NAME_MAX MAXFILENAME +#endif +#ifndef MAXNAMLEN +#define MAXNAMLEN MAXFILENAME +#endif #endif /* _SCHILY_MAXPATH_H */ diff -Nru smake-1.2a41/include/schily/maxpath.mk smake-1.2a49/include/schily/maxpath.mk --- smake-1.2a41/include/schily/maxpath.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/maxpath.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)maxpath.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/mconfig.h smake-1.2a49/include/schily/mconfig.h --- smake-1.2a41/include/schily/mconfig.h 2007-01-21 18:30:40.000000000 +0000 +++ smake-1.2a49/include/schily/mconfig.h 2009-10-17 19:52:18.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)mconfig.h 1.59 07/01/21 Copyright 1995-2006 J. Schilling */ +/* @(#)mconfig.h 1.66 09/10/17 Copyright 1995-2009 J. Schilling */ /* * definitions for machine configuration * - * Copyright (c) 1995-2006 J. Schilling + * Copyright (c) 1995-2009 J. Schilling * * This file must be included before any other file. * If this file is not included before stdio.h you will not be @@ -38,9 +38,12 @@ #ifdef NO_LARGEFILES #undef USE_LARGEFILES #endif +#ifdef NO_ACL +#undef USE_ACL +#endif /* - * Inside Processor, we get architecture specific defines + * Inside we get architecture specific Processor defines * fetched from compiler predefinitions only. */ #include @@ -51,6 +54,14 @@ */ #include +/* + * Make sure that neither HAVE_LARGEFILES nor USE_LARGEFILES is defined + * if the platform does not support large files. + */ +#ifndef HAVE_LARGEFILES +#undef USE_LARGEFILES +#endif + #ifdef __cplusplus extern "C" { #endif @@ -297,22 +308,23 @@ #endif /* __OPRINTF__ */ /*--------------------------------------------------------------------------*/ -/* - * If there is no flock defined by the system, use emulation - * through fcntl record locking. - */ -#ifndef HAVE_FLOCK -#define LOCK_SH 1 /* shared lock */ -#define LOCK_EX 2 /* exclusive lock */ -#define LOCK_NB 4 /* don't block when locking */ -#define LOCK_UN 8 /* unlock */ -#endif #ifndef _SCHILY_PROTOTYP_H #include #endif /* + * We use HAVE_LONGLONG as generalized test on whether "long long", "__in64" or + * something similar exist. + * + * In case that HAVE_LONGLONG is defined here, this is an indication that + * "long long" works. We define HAVE_LONG_LONG to keep this knowledge. + */ +#ifdef HAVE_LONGLONG +# define HAVE_LONG_LONG +#endif + +/* * Microsoft C defines _MSC_VER * use __int64 instead of long long and use 0i64 for a signed long long const * and 0ui64 for an unsigned long long const. @@ -323,9 +335,9 @@ * use long long * #endif * - * Be very careful here as MSVC does not implement long long but rather __int64 - * and once someone makes 'long long' 128 bits on a 64 bit machine, we need to - * check for a MSVC __int128 type. + * Be very careful here as older MSVC versions do not implement long long but + * rather __int64 and once someone makes 'long long' 128 bits on a 64 bit machine, + * we may need to check for a MSVC __int128 type. */ #ifndef HAVE_LONGLONG # if defined(HAVE___INT64) @@ -334,13 +346,16 @@ #endif /* - * gcc 2.x generally implements the long long type. + * gcc 2.x generally implements the "long long" type. */ #ifdef __GNUC__ # if __GNUC__ > 1 # ifndef HAVE_LONGLONG # define HAVE_LONGLONG # endif +# ifndef HAVE_LONG_LONG +# define HAVE_LONG_LONG +# endif # endif #endif @@ -500,6 +515,15 @@ # define near #endif +#ifdef DBG_MALLOC +/* + * We need to include this here already in order to make sure that + * every program that is based on mconfig.h will include schily/dbgmalloc.h + * in case that we specify -DDBD_MALLOC + */ +#include +#endif + #ifdef __cplusplus } #endif diff -Nru smake-1.2a41/include/schily/mconfig.mk smake-1.2a49/include/schily/mconfig.mk --- smake-1.2a41/include/schily/mconfig.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/mconfig.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)mconfig.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/md4.h smake-1.2a49/include/schily/md4.h --- smake-1.2a41/include/schily/md4.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/md4.h 2009-08-08 21:31:08.000000000 +0100 @@ -0,0 +1,58 @@ +/* @(#)md4.h 1.3 09/08/08 2009 J. Schilling */ +/* + * MD4 hash code taken from OpenBSD + * + * Portions Copyright (c) 2009 J. Schilling + */ +/* $OpenBSD: md4.h,v 1.15 2004/06/22 01:57:30 jfb Exp $ */ + +/* + * This code implements the MD4 message-digest algorithm. + * The algorithm is due to Ron Rivest. This code was + * written by Colin Plumb in 1993, no copyright is claimed. + * This code is in the public domain; do with it what you wish. + * Todd C. Miller modified the MD5 code to do MD4 based on RFC 1186. + * + * Equivalent code is available from RSA Data Security, Inc. + * This code has been tested against that, and is equivalent, + * except that you don't need to include two pages of legalese + * with every copy. + */ + +#ifndef _SCHILY_MD4_H +#define _SCHILY_MD4_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#include + +#define MD4_BLOCK_LENGTH 64 +#define MD4_DIGEST_LENGTH 16 +#define MD4_DIGEST_STRING_LENGTH (MD4_DIGEST_LENGTH * 2 + 1) + +typedef struct MD4Context { + UInt32_t state[4]; /* state */ + UInt32_t count[2]; /* number of bits, mod 2^64 */ + UInt8_t buffer[MD4_BLOCK_LENGTH]; /* input buffer */ +} MD4_CTX; + +#ifdef __cplusplus +extern "C" { +#endif + +extern void MD4Init __PR((MD4_CTX *)); +extern void MD4Update __PR((MD4_CTX *, const void *, size_t)); +extern void MD4Pad __PR((MD4_CTX *)); +extern void MD4Final __PR((UInt8_t [MD4_DIGEST_LENGTH], MD4_CTX *)); +extern void MD4Transform __PR((UInt32_t [4], const UInt8_t [MD4_BLOCK_LENGTH])); +extern char *MD4End __PR((MD4_CTX *, char *)); +extern char *MD4File __PR((const char *, char *)); +extern char *MD4FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *MD4Data __PR((const UInt8_t *, size_t, char *)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_MD4_H */ diff -Nru smake-1.2a41/include/schily/md4.mk smake-1.2a49/include/schily/md4.mk --- smake-1.2a41/include/schily/md4.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/md4.mk 2009-06-20 21:32:08.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)md4.mk 1.1 09/06/20 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= md4.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/md5.h smake-1.2a49/include/schily/md5.h --- smake-1.2a41/include/schily/md5.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/md5.h 2009-08-08 21:31:08.000000000 +0100 @@ -0,0 +1,58 @@ +/* @(#)md5.h 1.10 09/08/08 2008-2009 J. Schilling */ +/* + * MD5 hash code taken from OpenBSD + * + * Portions Copyright (c) 2008-2009 J. Schilling + */ + +/* $OpenBSD: md5.h,v 1.16 2004/06/22 01:57:30 jfb Exp $ */ + +/* + * This code implements the MD5 message-digest algorithm. + * The algorithm is due to Ron Rivest. This code was + * written by Colin Plumb in 1993, no copyright is claimed. + * This code is in the public domain; do with it what you wish. + * + * Equivalent code is available from RSA Data Security, Inc. + * This code has been tested against that, and is equivalent, + * except that you don't need to include two pages of legalese + * with every copy. + */ + +#ifndef _SCHILY_MD5_H +#define _SCHILY_MD5_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#include + +#define MD5_BLOCK_LENGTH 64 +#define MD5_DIGEST_LENGTH 16 +#define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1) + +typedef struct MD5Context { + UInt32_t state[4]; /* state */ + UInt32_t count[2]; /* number of bits, mod 2^64 */ + UInt8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */ +} MD5_CTX; + +#ifdef __cplusplus +extern "C" { +#endif + +extern void MD5Init __PR((MD5_CTX *)); +extern void MD5Update __PR((MD5_CTX *, const void *, size_t)); +extern void MD5Pad __PR((MD5_CTX *)); +extern void MD5Final __PR((UInt8_t [MD5_DIGEST_LENGTH], MD5_CTX *)); +extern void MD5Transform __PR((UInt32_t [4], const UInt8_t [MD5_BLOCK_LENGTH])); +extern char *MD5End __PR((MD5_CTX *, char *)); +extern char *MD5File __PR((const char *, char *)); +extern char *MD5FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *MD5Data __PR((const UInt8_t *, size_t, char *)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_MD5_H */ diff -Nru smake-1.2a41/include/schily/md5.mk smake-1.2a49/include/schily/md5.mk --- smake-1.2a41/include/schily/md5.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/md5.mk 2009-06-20 21:26:50.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)md5.mk 1.1 09/06/20 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= md5.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/mman.mk smake-1.2a49/include/schily/mman.mk --- smake-1.2a41/include/schily/mman.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/mman.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)mman.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/mtio.mk smake-1.2a49/include/schily/mtio.mk --- smake-1.2a41/include/schily/mtio.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/mtio.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)mtio.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/netdb.h smake-1.2a49/include/schily/netdb.h --- smake-1.2a41/include/schily/netdb.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/netdb.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)netdb.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Netdb abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_NETDB_H +#define _SCHILY_NETDB_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_NETDB_H +#ifndef _INCL_NETDB_H +#include +#define _INCL_NETDB_H +#endif +#endif + +#endif /* _SCHILY_NETDB_H */ diff -Nru smake-1.2a41/include/schily/netdb.mk smake-1.2a49/include/schily/netdb.mk --- smake-1.2a41/include/schily/netdb.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/netdb.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)netdb.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= netdb.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/nlsdefs.h smake-1.2a49/include/schily/nlsdefs.h --- smake-1.2a41/include/schily/nlsdefs.h 2006-12-28 00:16:23.000000000 +0000 +++ smake-1.2a49/include/schily/nlsdefs.h 2009-05-23 15:29:05.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)nlsdefs.h 1.2 06/12/28 Copyright 2004 J. Schilling */ +/* @(#)nlsdefs.h 1.3 09/05/23 Copyright 2004-2009 J. Schilling */ /* - * Copyright (c) 2004 J. Schilling + * Copyright (c) 2004-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -14,8 +14,8 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#ifndef _NLSDEFS_H -#define _NLSDEFS_H +#ifndef _SCHILY_NLSDEFS_H +#define _SCHILY_NLSDEFS_H #ifndef _SCHILY_MCONFIG_H #include @@ -30,12 +30,10 @@ #undef USE_NLS #endif -#ifdef HAVE_LOCALE_H -#ifndef _INCL_LOCALE_H -#include /* LC_* definitions */ -#define _INCL_LOCALE_H +#ifndef _SCHILY_LOCALE_H +#include /* LC_* definitions */ #endif -#else +#ifndef _INCL_LOCALE_H #undef USE_NLS #endif @@ -73,4 +71,4 @@ #define bind_textdomain_codeset(d, c) ((char *)0) #endif -#endif /* _NLSDEFS_H */ +#endif /* _SCHILY_NLSDEFS_H */ diff -Nru smake-1.2a41/include/schily/nlsdefs.mk smake-1.2a49/include/schily/nlsdefs.mk --- smake-1.2a41/include/schily/nlsdefs.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/nlsdefs.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)nlsdefs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/param.h smake-1.2a49/include/schily/param.h --- smake-1.2a41/include/schily/param.h 2007-01-22 17:29:44.000000000 +0000 +++ smake-1.2a49/include/schily/param.h 2009-07-14 00:15:43.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)param.h 1.3 07/01/22 Copyright 2006-2007 J. Schilling */ +/* @(#)param.h 1.5 09/07/14 Copyright 2006-2007 J. Schilling */ /* * Abstraction from sys/param.h * @@ -23,6 +23,19 @@ #include #endif +/* + * Let us include system defined types first. + */ +#ifndef _SCHILY_TYPES_H +#include +#endif +#ifndef _SCHILY_LIMITS_H +#include /* For _SC_CLK_TCK */ +#endif +#ifndef _SCHILY_UNISTD_H +#include /* For _SC_CLK_TCK */ +#endif + #ifdef HAVE_SYS_PARAM_H #ifndef _INCL_SYS_PARAM_H #include @@ -38,4 +51,19 @@ #define DEV_BSIZE 512 /* UNIX Device Block size */ #endif +/* + * NODEV may be in sys/param.h keep this definition past the include. + */ +#ifndef NODEV +#define NODEV ((dev_t)-1L) +#endif + +#ifndef HZ +#if defined(_SC_CLK_TCK) +#define HZ ((clock_t)sysconf(_SC_CLK_TCK)) +#else +#define HZ 100 +#endif +#endif + #endif /* _SCHILY_PARAM_H */ diff -Nru smake-1.2a41/include/schily/param.mk smake-1.2a49/include/schily/param.mk --- smake-1.2a41/include/schily/param.mk 2007-01-03 13:16:57.000000000 +0000 +++ smake-1.2a49/include/schily/param.mk 2007-01-03 13:16:57.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)param.mk 1.1 07/01/03 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/patmatch.h smake-1.2a49/include/schily/patmatch.h --- smake-1.2a41/include/schily/patmatch.h 2006-10-10 09:24:15.000000000 +0100 +++ smake-1.2a49/include/schily/patmatch.h 2009-05-30 20:49:41.000000000 +0100 @@ -1,11 +1,11 @@ -/* @(#)patmatch.h 1.12 06/10/10 Copyright 1985 J. Schilling */ +/* @(#)patmatch.h 1.13 09/05/30 Copyright 1985,1993-2009 J. Schilling */ #ifndef _SCHILY_PATMATCH_H #define _SCHILY_PATMATCH_H /* * Definitions for the pattern matching functions. * - * Copyright (c) 1985,1995 J. Schilling + * Copyright (c) 1985,1993-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -74,7 +74,7 @@ case LCLASS: case RCLASS: case START: case END: -#define MAXPAT 128 /* Maximum length of pattern */ +#define MAXPAT 128 /* Max length of pattern for opatmatch()/opatlmatch() */ extern int patcompile __PR((const unsigned char * __pat, int __patlen, int * __aux)); @@ -95,4 +95,24 @@ } #endif +#ifdef _SCHILY_WCHAR_H + +#ifdef __cplusplus +extern "C" { +#endif + +extern int patwcompile __PR((const wchar_t * __pat, int __patlen, int * __aux)); +extern wchar_t *patwmatch __PR((const wchar_t * __pat, const int * __aux, + const wchar_t * __str, int __soff, int __slen, + int __alt, int __state[])); +extern wchar_t *patwlmatch __PR((const wchar_t * __pat, const int * __aux, + const wchar_t * __str, int __soff, int __slen, + int __alt, int __state[])); + + +#ifdef __cplusplus +} +#endif +#endif /* _SCHILY_WCHAR_H */ + #endif /* _SCHILY_PATMATCH_H */ diff -Nru smake-1.2a41/include/schily/patmatch.mk smake-1.2a49/include/schily/patmatch.mk --- smake-1.2a41/include/schily/patmatch.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/patmatch.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)patmatch.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/priv.h smake-1.2a49/include/schily/priv.h --- smake-1.2a41/include/schily/priv.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/priv.h 2009-08-24 13:32:46.000000000 +0100 @@ -0,0 +1,57 @@ +/* @(#)priv.h 1.2 09/08/24 Copyright 2009 J. Schilling */ +/* + * Abstraction code for fine grained process privileges + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_PRIV_H +#define _SCHILY_PRIV_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +/* + * The Solaris process privileges interface. + */ +#if defined(HAVE_PRIV_H) && \ + defined(HAVE_GETPPRIV) && defined(HAVE_SETPPRIV) && \ + defined(HAVE_PRIV_SET) + +#define HAVE_SOLARIS_PPRIV + +#ifndef _INCL_PRIV_H +#define _INCL_PRIV_H +#include +#endif +#endif + +/* + * AIX implements an incompatible process privileges interface. + * On AIX, we have sys/priv.h, getppriv(), setppriv() but no priv_set(). + */ +#if defined(HAVE_SYS_PRIV_H) && \ + defined(HAVE_GETPPRIV) && defined(HAVE_SETPPRIV) && \ + defined(HAVE_PRIVBIT_SET) + +#define HAVE_AIX_PPRIV + +#ifndef _INCL_SYS_PRIV_H +#define _INCL_SYS_PRIV_H +#include +#endif +#endif + +#endif /* _SCHILY_PRIV_H */ diff -Nru smake-1.2a41/include/schily/priv.mk smake-1.2a49/include/schily/priv.mk --- smake-1.2a41/include/schily/priv.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/priv.mk 2009-08-07 18:04:57.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)priv.mk 1.1 09/08/07 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= priv.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/procfs.h smake-1.2a49/include/schily/procfs.h --- smake-1.2a41/include/schily/procfs.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/procfs.h 2009-08-07 22:46:31.000000000 +0100 @@ -0,0 +1,40 @@ +/* @(#)procfs.h 1.1 09/08/07 Copyright 2009 J. Schilling */ +/* + * Abstraction code for the process filesystem + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_PROCFS_H +#define _SCHILY_PROCFS_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_PROCFS_H +#ifndef _INCL_PROCFS_H +#define _INCL_PROCFS_H +#include +#endif +#else +#ifdef HAVE_SYS_PROCFS_H +#ifndef _INCL_SYS_PROCFS_H +#define _INCL_SYS_PROCFS_H +#include +#endif +#endif +#endif + +#endif /* _SCHILY_PROCFS_H */ diff -Nru smake-1.2a41/include/schily/procfs.mk smake-1.2a49/include/schily/procfs.mk --- smake-1.2a41/include/schily/procfs.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/procfs.mk 2009-08-07 22:46:31.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)procfs.mk 1.1 09/08/07 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= procfs.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/prototyp.h smake-1.2a49/include/schily/prototyp.h --- smake-1.2a41/include/schily/prototyp.h 2006-09-13 02:37:00.000000000 +0100 +++ smake-1.2a49/include/schily/prototyp.h 2009-06-23 18:24:07.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)prototyp.h 1.12 06/09/13 Copyright 1995 J. Schilling */ +/* @(#)prototyp.h 1.14 09/06/23 Copyright 1995-2009 J. Schilling */ /* * Definitions for dealing with ANSI / KR C-Compilers * - * Copyright (c) 1995 J. Schilling + * Copyright (c) 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -27,6 +27,8 @@ #ifndef _SCHILY_PROTOTYP_H #define _SCHILY_PROTOTYP_H +#include + #ifndef PROTOTYPES /* * If this has already been defined, @@ -88,4 +90,16 @@ # define __PR(a) () #endif +#if !defined(PROTOTYPES) && !defined(NO_CONST_DEFINE) +# ifndef const +# define const +# endif +# ifndef signed +# define signed +# endif +# ifndef volatile +# define volatile +# endif +#endif + #endif /* _SCHILY_PROTOTYP_H */ diff -Nru smake-1.2a41/include/schily/prototyp.mk smake-1.2a49/include/schily/prototyp.mk --- smake-1.2a41/include/schily/prototyp.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/prototyp.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)prototyp.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/pwd.h smake-1.2a49/include/schily/pwd.h --- smake-1.2a41/include/schily/pwd.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/pwd.h 2009-07-10 20:34:46.000000000 +0100 @@ -0,0 +1,56 @@ +/* @(#)pwd.h 1.1 09/07/10 Copyright 2009 J. Schilling */ +/* + * Passwd abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_PWD_H +#define _SCHILY_PWD_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TYPES_H +#include +#endif + +#ifdef HAVE_PWD_H +#ifndef _INCL_PWD_H +#include +#define _INCL_PWD_H +#endif +#else + +#ifdef __cplusplus +extern "C" { +#endif + +struct passwd { + char *pw_name; + char *pw_passwd; + uid_t pw_uid; + gid_t pw_gid; + char *pw_gecos; + char *pw_dir; + char *pw_shell; +}; + +#ifdef __cplusplus +} +#endif + +#endif /* ! HAVE_PWD_H */ + +#endif /* _SCHILY_PWD_H */ diff -Nru smake-1.2a41/include/schily/pwd.mk smake-1.2a49/include/schily/pwd.mk --- smake-1.2a41/include/schily/pwd.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/pwd.mk 2009-07-10 20:34:46.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)pwd.mk 1.1 09/07/10 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= pwd.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/resource.h smake-1.2a49/include/schily/resource.h --- smake-1.2a41/include/schily/resource.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/resource.h 2009-08-03 22:46:00.000000000 +0100 @@ -0,0 +1,101 @@ +/* @(#)resource.h 1.7 09/08/03 Copyright 1995-2009 J. Schilling */ +/* + * Abstraction from resource limits + * + * Missing parts for wait3() taken from SunOS + * + * Copyright (c) 1995-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_RESOURCE_H +#define _SCHILY_RESOURCE_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_TIME_H +#include +#endif + +/* + * Get definitions from system include files + */ +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif + +/* + * Now check which definitions are missing and define them localy. + */ + +#ifndef RUSAGE_SELF +/* + * Resource utilization information. + */ + +#define RUSAGE_SELF 0 +#define RUSAGE_CHILDREN -1 + +#endif /* RUSAGE_SELF */ + +#ifndef HAVE_STRUCT_RUSAGE + +struct rusage { + struct timeval ru_utime; /* user time used */ + struct timeval ru_stime; /* system time used */ + long ru_maxrss; +#define ru_first ru_ixrss + long ru_ixrss; /* XXX: 0 */ + long ru_idrss; /* XXX: sum of rm_asrss */ + long ru_isrss; /* XXX: 0 */ + long ru_minflt; /* any page faults not requiring I/O */ + long ru_majflt; /* any page faults requiring I/O */ + long ru_nswap; /* swaps */ + long ru_inblock; /* block input operations */ + long ru_oublock; /* block output operations */ + long ru_msgsnd; /* messages sent */ + long ru_msgrcv; /* messages received */ + long ru_nsignals; /* signals received */ + long ru_nvcsw; /* voluntary context switches */ + long ru_nivcsw; /* involuntary " */ +#define ru_last ru_nivcsw +}; +#endif /* HAVE_STRUCT_RUSAGE */ + +#ifndef RLIMIT_CPU +/* + * Resource limits + */ +#define RLIMIT_CPU 0 /* cpu time in milliseconds */ +#define RLIMIT_FSIZE 1 /* maximum file size */ +#define RLIMIT_DATA 2 /* data size */ +#define RLIMIT_STACK 3 /* stack size */ +#define RLIMIT_CORE 4 /* core file size */ +#define RLIMIT_RSS 5 /* resident set size */ + +#define RLIM_NLIMITS 6 /* number of resource limits */ + +#ifndef RLIM_INFINITY +#define RLIM_INFINITY 0x7fffffff +#endif + +struct rlimit { + int rlim_cur; /* current (soft) limit */ + int rlim_max; /* maximum value for rlim_cur */ +}; + +#endif /* RLIMIT_CPU */ + +#endif /* _SCHILY_RESOURCE_H */ diff -Nru smake-1.2a41/include/schily/resource.mk smake-1.2a49/include/schily/resource.mk --- smake-1.2a41/include/schily/resource.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/resource.mk 2009-08-03 22:47:49.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)resource.mk 1.1 09/08/03 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= resource.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/rmd160.h smake-1.2a49/include/schily/rmd160.h --- smake-1.2a41/include/schily/rmd160.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/rmd160.h 2009-08-08 22:28:45.000000000 +0100 @@ -0,0 +1,68 @@ +/* @(#)rmd160.h 1.3 09/08/08 2009 J. Schilling */ +/* + * RMD160 hash code taken from OpenBSD + * + * Portions Copyright (c) 2009 J. Schilling + */ +/* $OpenBSD: rmd160.h,v 1.16 2004/06/22 01:57:30 jfb Exp $ */ +/* + * Copyright (c) 2001 Markus Friedl. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _SCHILY_RMD160_H +#define _SCHILY_RMD160_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#include + +#define RMD160_BLOCK_LENGTH 64 +#define RMD160_DIGEST_LENGTH 20 +#define RMD160_DIGEST_STRING_LENGTH (RMD160_DIGEST_LENGTH * 2 + 1) + +/* RMD160 context. */ +typedef struct RMD160Context { + UInt32_t state[5]; /* state */ + UInt32_t count[2]; /* number of bits, mod 2^64 */ + UInt8_t buffer[RMD160_BLOCK_LENGTH]; /* input buffer */ +} RMD160_CTX; + +#ifdef __cplusplus +extern "C" { +#endif + +extern void RMD160Init __PR((RMD160_CTX *)); +extern void RMD160Transform __PR((UInt32_t [5], const UInt8_t [RMD160_BLOCK_LENGTH])); +extern void RMD160Update __PR((RMD160_CTX *, const UInt8_t *, size_t)); +extern void RMD160Pad __PR((RMD160_CTX *)); +extern void RMD160Final __PR((UInt8_t [RMD160_DIGEST_LENGTH], RMD160_CTX *)); +extern char *RMD160End __PR((RMD160_CTX *, char *)); +extern char *RMD160File __PR((const char *, char *)); +extern char *RMD160FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *RMD160Data __PR((const UInt8_t *, size_t, char *)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_RMD160_H */ diff -Nru smake-1.2a41/include/schily/rmd160.mk smake-1.2a49/include/schily/rmd160.mk --- smake-1.2a41/include/schily/rmd160.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/rmd160.mk 2009-08-08 21:32:15.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)rmd160.mk 1.1 09/08/08 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= rmd160.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/rmtio.mk smake-1.2a49/include/schily/rmtio.mk --- smake-1.2a41/include/schily/rmtio.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/rmtio.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)rmtio.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/schily.h smake-1.2a49/include/schily/schily.h --- smake-1.2a41/include/schily/schily.h 2007-02-26 15:17:56.000000000 +0000 +++ smake-1.2a49/include/schily/schily.h 2009-10-22 22:18:55.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)schily.h 1.66 07/02/26 Copyright 1985-2007 J. Schilling */ +/* @(#)schily.h 1.86 09/10/22 Copyright 1985-2009 J. Schilling */ /* * Definitions for libschily * @@ -18,7 +18,7 @@ * include ctype.h past schily/schily.h as OpenBSD does not follow POSIX * and defines EOF in ctype.h * - * Copyright (c) 1985-2007 J. Schilling + * Copyright (c) 1985-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -35,6 +35,10 @@ #ifndef _SCHILY_SCHILY_H #define _SCHILY_SCHILY_H +#ifndef _SCHILY_MCONFIG_H +#include +#endif + #ifndef _SCHILY_STANDARD_H #include #endif @@ -46,12 +50,12 @@ extern "C" { #endif -#if defined(_INCL_SYS_TYPES_H) || defined(off_t) +#if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_) || defined(off_t) # ifndef FOUND_OFF_T # define FOUND_OFF_T # endif #endif -#if defined(_INCL_SYS_TYPES_H) || defined(size_t) +#if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_) || defined(size_t) # ifndef FOUND_SIZE_T # define FOUND_SIZE_T # endif @@ -95,11 +99,74 @@ # define _openfd _openfd64 #endif +/* + * The official POSIX rule is not to define "new" interfaces that + * are in conflict with older interfaces of the same name. + * Our interfaces fexec*() have been defined and published in 1982. + * The new POSIX interfaces define a different interface and the + * new POSIX interfaces even use names that are not compatible with + * POSIX rules. The new POSIX interfaces in question should be called + * fdexec*() to follow the rules of other similar POSIX functions. + * Simiar problems exist with getline()/fgetline(). + */ +#if defined(HAVE_RAW_FEXECL) || defined(HAVE_RAW_FEXECLE) || \ + defined(HAVE_RAW_FEXECV) || defined(HAVE_RAW_FEXECVE) +#define RENAME_FEXEC +#endif +#if defined(HAVE_RAW_FSPAWNV) || defined(HAVE_RAW_FSPAWNL) || \ + defined(HAVE_RAW_FSPAWNV_NOWAIT) +#define RENAME_FSPAWN +#endif +#if defined(HAVE_RAW_GETLINE) || defined(HAVE_RAW_FGETLINE) +#define RENAME_GETLINE +#endif + +#ifdef __needed__ +#define RENAME_FEXEC +#define RENAME_FSPAWN +#define RENAME_GETLINE +#endif + +#if defined(RENAME_FEXEC) || defined(RENAME_FSPAWN) +#ifndef _SCHILY_UNISTD_H +#include /* Need to include before fexec*() protoypes */ +#endif +#endif + +#if defined(RENAME_GETLINE) +#ifndef _SCHILY_STDIO_H +#include /* Need to include before *getline() protoypes */ +#endif + +#endif + +#ifdef RENAME_FEXEC +#define fexecl js_fexecl +#define fexecle js_fexecle +#define fexecv js_fexecv +#define fexecve js_fexecve +#endif +#ifdef RENAME_FSPAWN +#define fspawnv js_fspawnv +#define fspawnv_nowait js_fspawnv_nowait +#define fspawnl js_fspawnl +#endif +#ifdef RENAME_GETLINE +#define getline js_getline +#define fgetline js_fgetline +#endif + #ifdef EOF /* stdio.h has been included */ + extern int _cvmod __PR((const char *, int *, int *)); extern FILE *_fcons __PR((FILE *, int, int)); extern FILE *fdup __PR((FILE *)); +#if !defined(fdown) || defined(PROTOTYPES) +/* + * We cannot declare fdown() with K&R in case that fdown() has been #define'd + */ extern int fdown __PR((FILE *)); +#endif extern int fexecl __PR((const char *, FILE *, FILE *, FILE *, const char *, ...)); extern int fexecle __PR((const char *, FILE *, FILE *, FILE *, @@ -110,24 +177,26 @@ extern int fexecve __PR((const char *, FILE *, FILE *, FILE *, char * const *, char * const *)); extern int fspawnv __PR((FILE *, FILE *, FILE *, int, char * const *)); -extern int fspawnl __PR((FILE *, FILE *, FILE *, - const char *, const char *, ...)); +extern int fspawnl __PR((FILE *, FILE *, FILE *, const char *, ...)); extern int fspawnv_nowait __PR((FILE *, FILE *, FILE *, const char *, int, char *const*)); extern int fgetline __PR((FILE *, char *, int)); extern int fgetstr __PR((FILE *, char *, int)); +extern int file_getraise __PR((FILE *)); extern void file_raise __PR((FILE *, int)); extern int fileclose __PR((FILE *)); extern FILE *fileluopen __PR((int, const char *)); extern FILE *fileopen __PR((const char *, const char *)); -#ifdef _INCL_SYS_TYPES_H +#ifdef _SCHILY_TYPES_H extern FILE *filemopen __PR((const char *, const char *, mode_t)); #endif #ifdef FOUND_OFF_T extern off_t filepos __PR((FILE *)); #endif -extern int fileread __PR((FILE *, void *, int)); -extern int ffileread __PR((FILE *, void *, int)); +#ifdef FOUND_SIZE_T +extern ssize_t fileread __PR((FILE *, void *, size_t)); +extern ssize_t ffileread __PR((FILE *, void *, size_t)); +#endif extern FILE *filereopen __PR((const char *, const char *, FILE *)); #ifdef FOUND_OFF_T extern int fileseek __PR((FILE *, off_t)); @@ -136,8 +205,10 @@ #ifdef S_IFMT extern int filestat __PR((FILE *, struct stat *)); #endif -extern int filewrite __PR((FILE *, void *, int)); -extern int ffilewrite __PR((FILE *, void *, int)); +#ifdef FOUND_SIZE_T +extern ssize_t filewrite __PR((FILE *, void *, size_t)); +extern ssize_t ffilewrite __PR((FILE *, void *, size_t)); +#endif extern int flush __PR((void)); extern int fpipe __PR((FILE **)); /*extern int fprintf __PR((FILE *, const char *, ...)) __printflike__(2, 3);*/ @@ -151,8 +222,7 @@ * We cannot define this or we may get into problems with DOS based systems. */ extern int spawnv __PR((FILE *, FILE *, FILE *, int, char * const *)); -extern int spawnl __PR((FILE *, FILE *, FILE *, - const char *, const char *, ...)); +extern int spawnl __PR((FILE *, FILE *, FILE *, const char *, ...)); extern int spawnv_nowait __PR((FILE *, FILE *, FILE *, const char *, int, char *const*)); #endif /* __never_def__ */ @@ -177,10 +247,27 @@ extern int gettnum __PR((char *arg, time_t *valp)); #endif -extern int _niread __PR((int, void *, int)); -extern int _niwrite __PR((int, void *, int)); -extern int _nixread __PR((int, void *, int)); -extern int _nixwrite __PR((int, void *, int)); +#ifdef EOF /* stdio.h has been included */ +#ifdef _SCHILY_TYPES_H +/* + * getperm() flags: + */ +#define GP_NOX 0 /* This is not a dir and 'X' is not valid */ +#define GP_DOX 1 /* 'X' perm character is valid */ +#define GP_XERR 2 /* 'X' perm characters are invalid */ +#define GP_FPERM 4 /* TRUE if we implement find -perm */ + +extern int getperm __PR((FILE *f, char *perm, char *opname, \ + mode_t *modep, int smode, int flag)); +#endif +#endif + +#ifdef FOUND_SIZE_T +extern ssize_t _niread __PR((int, void *, size_t)); +extern ssize_t _niwrite __PR((int, void *, size_t)); +extern ssize_t _nixread __PR((int, void *, size_t)); +extern ssize_t _nixwrite __PR((int, void *, size_t)); +#endif extern int _openfd __PR((const char *, int)); extern int on_comerr __PR((void (*fun)(int, void *), void *arg)); /*PRINTFLIKE1*/ @@ -217,8 +304,11 @@ /*PRINTFLIKE1*/ extern int error __PR((const char *, ...)) __printflike__(1, 2); -extern char *fillbytes __PR((void *, int, char)); -extern char *findbytes __PR((const void *, int, char)); +#ifdef FOUND_SIZE_T +extern char *fillbytes __PR((void *, ssize_t, char)); +extern char *findbytes __PR((const void *, ssize_t, char)); +#endif +extern char *findinpath __PR((char *__name, int __mode, BOOL __plain_file)); extern int findline __PR((const char *, char, const char *, int, char **, int)); extern int getline __PR((char *, int)); @@ -247,7 +337,9 @@ const unsigned char *, int, int, int, int[])); /*extern int printf __PR((const char *, ...)) __printflike__(1, 2);*/ -extern char *movebytes __PR((const void *, void *, int)); +#ifdef FOUND_SIZE_T +extern char *movebytes __PR((const void *, void *, ssize_t)); +#endif extern void save_args __PR((int, char **)); extern int saved_ac __PR((void)); @@ -276,6 +368,10 @@ /*extern int sprintf __PR((char *, const char *, ...)); ist woanders falsch deklariert !!!*/ extern char *strcatl __PR((char *, ...)); extern int streql __PR((const char *, const char *)); +#ifdef _SCHILY_WCHAR_H +extern wchar_t *wcscatl __PR((wchar_t *, ...)); +extern int wcseql __PR((const wchar_t *, const wchar_t *)); +#endif #ifdef va_arg extern int format __PR((void (*)(char, long), long, const char *, va_list)); #else @@ -298,14 +394,18 @@ extern int js_sprintf __PR((char *, const char *, ...)) __printflike__(2, 3); #endif /* EOF */ -extern void swabbytes __PR((void *, int)); +#ifdef FOUND_SIZE_T +extern void swabbytes __PR((void *, ssize_t)); +#endif extern char **getmainfp __PR((void)); extern char **getavp __PR((void)); extern char *getav0 __PR((void)); extern void **getfp __PR((void)); extern int flush_reg_windows __PR((int)); -extern int cmpbytes __PR((const void *, const void *, int)); -extern int cmpnullbytes __PR((const void *, int)); +#ifdef FOUND_SIZE_T +extern ssize_t cmpbytes __PR((const void *, const void *, ssize_t)); +extern ssize_t cmpnullbytes __PR((const void *, ssize_t)); +#endif #ifdef nonono #if defined(HAVE_LARGEFILES) @@ -347,13 +447,21 @@ #endif #endif + #ifdef FOUND_SIZE_T extern void *js_malloc __PR((size_t size, char *msg)); extern void *js_realloc __PR((void *ptr, size_t size, char *msg)); #endif extern char *js_savestr __PR((const char *s)); -#ifdef _INCL_SETJMP_H +#ifdef _SCHILY_JMPDEFS_H + +/* + * Special valued for the "jmp" parameter. + */ +#define JM_EXIT ((sigjmps_t *)-1) /* Call comexit(errno) instead of siglongjmp() */ +#define JM_RETURN ((sigjmps_t *)0) /* Return instead of calling siglongjmp() */ + #ifdef FOUND_SIZE_T extern void *js_jmalloc __PR((size_t size, char *msg, sigjmps_t *jmp)); extern void *js_jrealloc __PR((void *ptr, size_t size, char *msg, sigjmps_t *jmp)); @@ -367,11 +475,11 @@ #endif extern char *js_fjsavestr __PR((FILE *f, const char *s, sigjmps_t *jmp)); #endif /* EOF */ -#endif /* _INCL_SETJMP_H */ +#endif /* _SCHILY_JMPDEFS_H */ -#define __malloc js_malloc -#define __realloc js_realloc -#define __savestr js_savestr +#define ___malloc js_malloc +#define ___realloc js_realloc +#define ___savestr js_savestr #define __jmalloc js_jmalloc #define __jrealloc js_jrealloc #define __jsavestr js_jsavestr @@ -389,4 +497,11 @@ # endif #endif +#if !defined(_SCHILY_LIBPORT_H) && !defined(NO_LIBPORT_H) +#include +#endif +#if !defined(_SCHILY_HOSTNAME_H) && defined(USE_HOSTNAME_H) +#include +#endif + #endif /* _SCHILY_SCHILY_H */ diff -Nru smake-1.2a41/include/schily/schily.mk smake-1.2a49/include/schily/schily.mk --- smake-1.2a41/include/schily/schily.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/schily.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)schily.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/schilyp.h smake-1.2a49/include/schily/schilyp.h --- smake-1.2a41/include/schily/schilyp.h 2007-02-13 14:55:19.000000000 +0000 +++ smake-1.2a49/include/schily/schilyp.h 2009-06-06 00:07:39.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)schilyp.h 1.1 07/02/13 Copyright 2007 J. Schilling */ +/* @(#)schilyp.h 1.2 09/06/06 Copyright 2007-2009 J. Schilling */ /* * Include definitions for libschily and define *printf() -> js_*printf() * - * Copyright (c) 2007 J. Schilling + * Copyright (c) 2007-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -19,6 +19,10 @@ #ifndef _SCHILY_SCHILYP_H #define _SCHILY_SCHILYP_H +#ifndef _SCHILY_MCONFIG_H +#include +#endif + #ifndef _SCHILY_SCHILY_H #include #endif diff -Nru smake-1.2a41/include/schily/schilyp.mk smake-1.2a49/include/schily/schilyp.mk --- smake-1.2a41/include/schily/schilyp.mk 2007-02-13 14:58:00.000000000 +0000 +++ smake-1.2a49/include/schily/schilyp.mk 2007-02-13 14:58:00.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)schilyp.mk 1.1 07/02/13 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/select.h smake-1.2a49/include/schily/select.h --- smake-1.2a41/include/schily/select.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/select.h 2009-08-04 20:56:46.000000000 +0100 @@ -0,0 +1,48 @@ +/* @(#)select.h 1.1 09/08/04 Copyright 2009 J. Schilling */ +/* + * Select abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SELECT_H +#define _SCHILY_SELECT_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TYPES_H +#include +#endif +#ifndef _SCHILY_TIME_H +#include +#endif + +#ifdef HAVE_SYS_SELECT_H +#ifndef _INCL_SYS_SELECT_H +#include +#define _INCL_SYS_SELECT_H +#endif +#endif + +/* + * Some systems need sys/socket.h instead or in addition to sys/select.h + */ +#ifdef NEED_SYS_SOCKET_H +#ifndef _SCHILY_SOCKET_H +#include +#endif +#endif + +#endif /* _SCHILY_SELECT_H */ diff -Nru smake-1.2a41/include/schily/select.mk smake-1.2a49/include/schily/select.mk --- smake-1.2a41/include/schily/select.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/select.mk 2009-08-04 20:56:46.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)select.mk 1.1 09/08/04 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= select.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/sem.h smake-1.2a49/include/schily/sem.h --- smake-1.2a41/include/schily/sem.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sem.h 2009-08-08 00:15:16.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)sem.h 1.1 09/08/08 Copyright 2009 J. Schilling */ +/* + * Abstraction code for sem.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SEM_H +#define _SCHILY_SEM_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_SEM_H +#ifndef _INCL_SYS_SEM_H +#define _INCL_SYS_SEM_H +#include +#endif +#endif + +#endif /* _SCHILY_SEM_H */ diff -Nru smake-1.2a41/include/schily/sem.mk smake-1.2a49/include/schily/sem.mk --- smake-1.2a41/include/schily/sem.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sem.mk 2009-08-08 00:15:16.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)sem.mk 1.1 09/08/08 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= sem.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/setjmp.h smake-1.2a49/include/schily/setjmp.h --- smake-1.2a41/include/schily/setjmp.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/setjmp.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,31 @@ +/* @(#)setjmp.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Setjmp abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SETJMP_H +#define _SCHILY_SETJMP_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _INCL_SETJMP_H +#define _INCL_SETJMP_H +#include +#endif + +#endif /* _SCHILY_SETJMP_H */ diff -Nru smake-1.2a41/include/schily/setjmp.mk smake-1.2a49/include/schily/setjmp.mk --- smake-1.2a41/include/schily/setjmp.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/setjmp.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)setjmp.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= setjmp.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/sha1.h smake-1.2a49/include/schily/sha1.h --- smake-1.2a41/include/schily/sha1.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sha1.h 2009-08-01 19:27:03.000000000 +0100 @@ -0,0 +1,68 @@ +/* @(#)sha1.h 1.2 09/08/01 2009 J. Schilling */ +/* + * SHA1 hash code taken from OpenBSD + * + * Portions Copyright (c) 2009 J. Schilling + */ + +/* $OpenBSD: sha1.h,v 1.23 2004/06/22 01:57:30 jfb Exp $ */ + +/* + * SHA-1 in C + * By Steve Reid + * 100% Public Domain + */ + +#ifndef _SCHILY_SHA1_H +#define _SCHILY_SHA1_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_UTYPES_H +#include +#endif + +#define SHA1_BLOCK_LENGTH 64 +#define SHA1_DIGEST_LENGTH 20 +#define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1) + +typedef struct { + UInt32_t state[5]; + UInt32_t count[2]; + UInt8_t buffer[SHA1_BLOCK_LENGTH]; +} SHA1_CTX; + +#ifdef __cplusplus +extern "C" { +#endif + +extern void SHA1Init __PR((SHA1_CTX *)); +extern void SHA1Pad __PR((SHA1_CTX *)); +extern void SHA1Transform __PR((UInt32_t [5], const UInt8_t [SHA1_BLOCK_LENGTH])); +extern void SHA1Update __PR((SHA1_CTX *, const UInt8_t *, size_t)); +extern void SHA1Final __PR((UInt8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *)); +extern char * SHA1End __PR((SHA1_CTX *, char *)); +extern char * SHA1File __PR((const char *, char *)); +extern char * SHA1FileChunk __PR((const char *, char *, off_t, off_t)); +extern char * SHA1Data __PR((const UInt8_t *, size_t, char *)); + +#ifdef __cplusplus +} +#endif + +#define HTONDIGEST(x) do { \ + x[0] = htonl(x[0]); \ + x[1] = htonl(x[1]); \ + x[2] = htonl(x[2]); \ + x[3] = htonl(x[3]); \ + x[4] = htonl(x[4]); } while (0) + +#define NTOHDIGEST(x) do { \ + x[0] = ntohl(x[0]); \ + x[1] = ntohl(x[1]); \ + x[2] = ntohl(x[2]); \ + x[3] = ntohl(x[3]); \ + x[4] = ntohl(x[4]); } while (0) + +#endif /* _SCHILY_SHA1_H */ diff -Nru smake-1.2a41/include/schily/sha1.mk smake-1.2a49/include/schily/sha1.mk --- smake-1.2a41/include/schily/sha1.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sha1.mk 2009-08-01 19:24:43.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)sha1.mk 1.1 09/08/01 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= sha1.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/sha2.h smake-1.2a49/include/schily/sha2.h --- smake-1.2a41/include/schily/sha2.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sha2.h 2009-08-09 13:29:59.000000000 +0100 @@ -0,0 +1,129 @@ +/* @(#)sha2.h 1.3 09/08/09 2009 J. Schilling */ +/* + * SHA2 hash code taken from OpenBSD + * + * Portions Copyright (c) 2009 J. Schilling + */ + +/* $OpenBSD: sha2.h,v 1.7 2008/09/06 12:00:19 djm Exp $ */ + +/* + * FILE: sha2.h + * AUTHOR: Aaron D. Gifford + * + * Copyright (c) 2000-2001, Aaron D. Gifford + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the names of contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $From: sha2.h,v 1.1 2001/11/08 00:02:01 adg Exp adg $ + */ + +#ifndef _SCHILY_SHA2_H +#define _SCHILY_SHA2_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#include + + +/*** SHA-256/384/512 Various Length Definitions ***********************/ +#define SHA256_BLOCK_LENGTH 64 +#define SHA256_DIGEST_LENGTH 32 +#define SHA256_DIGEST_STRING_LENGTH (SHA256_DIGEST_LENGTH * 2 + 1) +#ifdef HAVE_LONGLONG +#define SHA384_BLOCK_LENGTH 128 +#define SHA384_DIGEST_LENGTH 48 +#define SHA384_DIGEST_STRING_LENGTH (SHA384_DIGEST_LENGTH * 2 + 1) +#define SHA512_BLOCK_LENGTH 128 +#define _SHA512_BLOCK_LENGTH 128 +#define SHA512_DIGEST_LENGTH 64 +#define SHA512_DIGEST_STRING_LENGTH (SHA512_DIGEST_LENGTH * 2 + 1) +#else +#define _SHA512_BLOCK_LENGTH 128 +#endif + + +/*** SHA-256/384/512 Context Structure *******************************/ +typedef struct _SHA2_CTX { + union { + UInt32_t st32[8]; +#ifdef HAVE_LONGLONG + UInt64_t st64[8]; +#else + UInt32_t st64[16]; /* Keep original size */ +#endif + } state; +#ifdef HAVE_LONGLONG + UInt64_t bitcount[2]; +#else + UInt32_t bitcount[4]; +#endif + UInt8_t buffer[_SHA512_BLOCK_LENGTH]; +} SHA2_CTX; + + +#ifdef __cplusplus +extern "C" { +#endif + +extern void SHA256Init __PR((SHA2_CTX *)); +extern void SHA256Transform __PR((UInt32_t state[8], const UInt8_t [SHA256_BLOCK_LENGTH])); +extern void SHA256Update __PR((SHA2_CTX *, const UInt8_t *, size_t)); +extern void SHA256Pad __PR((SHA2_CTX *)); +extern void SHA256Final __PR((UInt8_t [SHA256_DIGEST_LENGTH], SHA2_CTX *)); +extern char *SHA256End __PR((SHA2_CTX *, char *)); +extern char *SHA256File __PR((const char *, char *)); +extern char *SHA256FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *SHA256Data __PR((const UInt8_t *, size_t, char *)); + +#ifdef HAVE_LONGLONG +extern void SHA384Init __PR((SHA2_CTX *)); +extern void SHA384Transform __PR((UInt64_t state[8], const UInt8_t [SHA384_BLOCK_LENGTH])); +extern void SHA384Update __PR((SHA2_CTX *, const UInt8_t *, size_t)); +extern void SHA384Pad __PR((SHA2_CTX *)); +extern void SHA384Final __PR((UInt8_t [SHA384_DIGEST_LENGTH], SHA2_CTX *)); +extern char *SHA384End __PR((SHA2_CTX *, char *)); +extern char *SHA384File __PR((const char *, char *)); +extern char *SHA384FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *SHA384Data __PR((const UInt8_t *, size_t, char *)); + +extern void SHA512Init __PR((SHA2_CTX *)); +extern void SHA512Transform __PR((UInt64_t state[8], const UInt8_t [SHA512_BLOCK_LENGTH])); +extern void SHA512Update __PR((SHA2_CTX *, const UInt8_t *, size_t)); +extern void SHA512Pad __PR((SHA2_CTX *)); +extern void SHA512Final __PR((UInt8_t [SHA512_DIGEST_LENGTH], SHA2_CTX *)); +extern char *SHA512End __PR((SHA2_CTX *, char *)); +extern char *SHA512File __PR((const char *, char *)); +extern char *SHA512FileChunk __PR((const char *, char *, off_t, off_t)); +extern char *SHA512Data __PR((const UInt8_t *, size_t, char *)); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_SHA2_H */ diff -Nru smake-1.2a41/include/schily/sha2.mk smake-1.2a49/include/schily/sha2.mk --- smake-1.2a41/include/schily/sha2.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sha2.mk 2009-08-09 13:19:22.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)sha2.mk 1.1 09/08/09 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= sha2.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/shadow.h smake-1.2a49/include/schily/shadow.h --- smake-1.2a41/include/schily/shadow.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shadow.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)shadow.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Shadow abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SHADOW_H +#define _SCHILY_SHADOW_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SHADOW_H +#ifndef _INCL_SHADOW_H +#include +#define _INCL_SHADOW_H +#endif +#endif + +#endif /* _SCHILY_SHADOW_H */ diff -Nru smake-1.2a41/include/schily/shadow.mk smake-1.2a49/include/schily/shadow.mk --- smake-1.2a41/include/schily/shadow.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shadow.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)shadow.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= shadow.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/shcall.h smake-1.2a49/include/schily/shcall.h --- smake-1.2a41/include/schily/shcall.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shcall.h 2009-05-02 13:03:39.000000000 +0100 @@ -0,0 +1,51 @@ +/* @(#)shcall.h 1.2 09/05/02 Copyright 2009 J. Schilling */ +/* + * Abstraction from shcall.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SHCALL_H +#define _SCHILY_SHCALL_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef __sqfun_t_defined +typedef int (*sqfun_t) __PR((void *arg)); +#define __sqfun_t_defined +#endif + +#ifndef __squit_t_defined + +typedef struct { + sqfun_t quitfun; /* Function to query for shell signal quit */ + void *qfarg; /* Generic arg for shell builtin quit fun */ +} squit_t; + +#define __squit_t_defined +#endif + +typedef int (*shcall) __PR((int ac, char **av, char **ev, FILE *std[3], squit_t *__quit)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_SHCALL_H */ diff -Nru smake-1.2a41/include/schily/shcall.mk smake-1.2a49/include/schily/shcall.mk --- smake-1.2a41/include/schily/shcall.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shcall.mk 2009-05-01 22:32:15.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)shcall.mk 1.1 09/05/01 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= shcall.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/shm.h smake-1.2a49/include/schily/shm.h --- smake-1.2a41/include/schily/shm.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shm.h 2009-08-08 00:15:37.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)shm.h 1.1 09/08/08 Copyright 2009 J. Schilling */ +/* + * Abstraction code for shm.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SHM_H +#define _SCHILY_SHM_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_SHM_H +#ifndef _INCL_SYS_SHM_H +#define _INCL_SYS_SHM_H +#include +#endif +#endif + +#endif /* _SCHILY_SHM_H */ diff -Nru smake-1.2a41/include/schily/shm.mk smake-1.2a49/include/schily/shm.mk --- smake-1.2a41/include/schily/shm.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/shm.mk 2009-08-08 00:15:37.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)shm.mk 1.1 09/08/08 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= shm.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/siconv.h smake-1.2a49/include/schily/siconv.h --- smake-1.2a41/include/schily/siconv.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/siconv.h 2009-06-14 14:01:32.000000000 +0100 @@ -0,0 +1,61 @@ +/* @(#)siconv.h 1.3 09/06/14 Copyright 2007-2009 J. Schilling */ +/* + * Definitions fur users of libsiconv + * + * Copyright (c) 2007-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SICONV_H +#define _SCHILY_SICONV_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_UTYPES_H +#include +#endif +#ifndef _SCHILY_ICONV_H +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + +typedef struct siconv_table siconvt_t; +struct siconv_table { + char *sic_name; /* SICONV charset name */ + UInt16_t *sic_cs2uni; /* Charset -> Unicode */ + UInt8_t **sic_uni2cs; /* Unicode -> Charset */ + iconv_t sic_cd2uni; /* iconv Charset -> Unicode */ + iconv_t sic_uni2cd; /* iconv Unicode -> Charset */ + siconvt_t *sic_alt; /* alternate iconv tab */ + siconvt_t *sic_next; /* Next table */ +}; + +#define use_iconv(t) ((t)->sic_cd2uni != NULL) + +#define sic_c2uni(t, c) ((t)->sic_cs2uni[c]) +#define sic_uni2c(t, c) ((t)->sic_uni2cs[((c) >> 8) & 0xFF][(c) & 0xFF]) + +extern int sic_list __PR((FILE *)); +extern siconvt_t *sic_open __PR((char *)); +extern void sic_close __PR((siconvt_t *)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_SICONV_H */ diff -Nru smake-1.2a41/include/schily/siconv.mk smake-1.2a49/include/schily/siconv.mk --- smake-1.2a41/include/schily/siconv.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/siconv.mk 2007-05-14 20:47:02.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)siconv.mk 1.1 07/05/14 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= siconv.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/sigblk.h smake-1.2a49/include/schily/sigblk.h --- smake-1.2a41/include/schily/sigblk.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/include/schily/sigblk.h 2008-12-24 16:24:23.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)sigblk.h 1.11 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)sigblk.h 1.12 08/12/24 Copyright 1985, 1995-2008 J. Schilling */ /* * software signal block definition * - * Copyright (c) 1985, 1995-2003 J. Schilling + * Copyright (c) 1985, 1995-2008 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -22,9 +22,6 @@ #ifndef _SCHILY_MCONFIG_H #include #endif -#ifndef _SCHILY_STANDARD_H -#include -#endif #ifdef __cplusplus extern "C" { diff -Nru smake-1.2a41/include/schily/sigblk.mk smake-1.2a49/include/schily/sigblk.mk --- smake-1.2a41/include/schily/sigblk.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/sigblk.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)sigblk.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/signal.h smake-1.2a49/include/schily/signal.h --- smake-1.2a41/include/schily/signal.h 2006-09-13 18:10:56.000000000 +0100 +++ smake-1.2a49/include/schily/signal.h 2009-06-30 19:17:57.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)signal.h 1.7 06/09/13 Copyright 1997 J. Schilling */ +/* @(#)signal.h 1.8 09/06/30 Copyright 1997-2009 J. Schilling */ /* - * Signal abstraction for BSD/SVR4 signals + * Signal abstraction for signals * - * Copyright (c) 1997 J. Schilling + * Copyright (c) 1997-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -23,44 +23,11 @@ #include #endif -#ifdef HAVE_SIGSET -/* - * Try to by default use the function that sets up signal handlers in a way - * that does not reset the handler after it has been called. - */ -#define signal sigset +#ifdef HAVE_SIGNAL_H +#ifndef _INCL_SIGNAL_H +#include +#define _INCL_SIGNAL_H +#endif #endif - -#ifdef HAVE_SIGPROCMASK -#define block_sigs(a) { \ - sigset_t __new; \ - \ - sigfillset(&__new); \ - sigprocmask(SIG_BLOCK, &__new, &a);\ - } -#define unblock_sig(s) { \ - sigset_t __new; \ - \ - sigemptyset(&__new); \ - sigaddset(&__new, (s)); \ - sigprocmask(SIG_UNBLOCK, &__new, NULL);\ - } -#define restore_sigs(a) sigprocmask(SIG_SETMASK, &a, 0); - -#else /* !HAVE_SIGPROCMASK */ - -#define sigset_t int -#define block_sigs(a) a = sigblock(0xFFFFFFFF) -#define restore_sigs(a) sigsetmask(a); -#define unblock_sig(s) { \ - int __old, __new; \ - \ - block_sigs(__old); \ - __new = sigmask(s); \ - __new = __old & ~__new; \ - sigsetmask(__new); \ - } - -#endif /* HAVE_SIGPROCMASK */ #endif /* _SCHILY_SIGNAL_H */ diff -Nru smake-1.2a41/include/schily/signal.mk smake-1.2a49/include/schily/signal.mk --- smake-1.2a41/include/schily/signal.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/signal.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)signal.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/sigset.h smake-1.2a49/include/schily/sigset.h --- smake-1.2a41/include/schily/sigset.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sigset.h 2009-06-30 19:26:14.000000000 +0100 @@ -0,0 +1,66 @@ +/* @(#)sigset.h 1.9 09/06/30 Copyright 1997-2009 J. Schilling */ +/* + * Signal set abstraction for BSD/SVR4 signals + * + * Copyright (c) 1997-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SIGSET_H +#define _SCHILY_SIGSET_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SIGSET +/* + * Try to by default use the function that sets up signal handlers in a way + * that does not reset the handler after it has been called. + */ +#define signal sigset +#endif + +#ifdef HAVE_SIGPROCMASK +#define block_sigs(a) { \ + sigset_t __new; \ + \ + sigfillset(&__new); \ + sigprocmask(SIG_BLOCK, &__new, &a);\ + } +#define unblock_sig(s) { \ + sigset_t __new; \ + \ + sigemptyset(&__new); \ + sigaddset(&__new, (s)); \ + sigprocmask(SIG_UNBLOCK, &__new, NULL);\ + } +#define restore_sigs(a) sigprocmask(SIG_SETMASK, &a, 0); + +#else /* !HAVE_SIGPROCMASK */ + +#define sigset_t int +#define block_sigs(a) a = sigblock(0xFFFFFFFF) +#define restore_sigs(a) sigsetmask(a); +#define unblock_sig(s) { \ + int __old, __new; \ + \ + block_sigs(__old); \ + __new = sigmask(s); \ + __new = __old & ~__new; \ + sigsetmask(__new); \ + } + +#endif /* HAVE_SIGPROCMASK */ + +#endif /* _SCHILY_SIGSET_H */ diff -Nru smake-1.2a41/include/schily/sigset.mk smake-1.2a49/include/schily/sigset.mk --- smake-1.2a41/include/schily/sigset.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sigset.mk 2009-06-30 19:16:46.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)sigset.mk 1.2 09/06/30 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= sigset.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/socket.h smake-1.2a49/include/schily/socket.h --- smake-1.2a41/include/schily/socket.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/socket.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)socket.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Socket abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SOCKET_H +#define _SCHILY_SOCKET_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_SOCKET_H +#ifndef _INCL_SYS_SOCKET_H +#include +#define _INCL_SYS_SOCKET_H +#endif +#endif + +#endif /* _SCHILY_SOCKET_H */ diff -Nru smake-1.2a41/include/schily/socket.mk smake-1.2a49/include/schily/socket.mk --- smake-1.2a41/include/schily/socket.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/socket.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)socket.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= socket.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/standard.h smake-1.2a49/include/schily/standard.h --- smake-1.2a41/include/schily/standard.h 2007-02-03 22:37:09.000000000 +0000 +++ smake-1.2a49/include/schily/standard.h 2009-10-22 22:18:55.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)standard.h 1.36 07/02/03 Copyright 1985-2007 J. Schilling */ +/* @(#)standard.h 1.37 09/10/22 Copyright 1985-2007 J. Schilling */ /* * standard definitions * @@ -95,12 +95,12 @@ # endif #endif -#if defined(_INCL_SYS_TYPES_H) || defined(off_t) +#if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_) || defined(off_t) # ifndef FOUND_OFF_T # define FOUND_OFF_T # endif #endif -#if defined(_INCL_SYS_TYPES_H) || defined(size_t) +#if defined(_INCL_SYS_TYPES_H) || defined(_INCL_TYPES_) || defined(size_t) # ifndef FOUND_SIZE_T # define FOUND_SIZE_T # endif diff -Nru smake-1.2a41/include/schily/standard.mk smake-1.2a49/include/schily/standard.mk --- smake-1.2a41/include/schily/standard.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/standard.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)standard.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/stat.mk smake-1.2a49/include/schily/stat.mk --- smake-1.2a41/include/schily/stat.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/stat.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)stat.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/stdio.h smake-1.2a49/include/schily/stdio.h --- smake-1.2a41/include/schily/stdio.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/stdio.h 2009-04-08 19:23:58.000000000 +0100 @@ -0,0 +1,57 @@ +/* @(#)stdio.h 1.2 09/04/08 Copyright 2009 J. Schilling */ +/* + * Abstraction from stdio.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_STDIO_H +#define _SCHILY_STDIO_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _INCL_STDIO_H +#include +#define _INCL_STDIO_H +#endif + +#ifdef HAVE_LARGEFILES +/* + * If HAVE_LARGEFILES is defined, it is guaranteed that fseeko()/ftello() + * both are available. + */ +#define fseek fseeko +#define ftell ftello +#else /* !HAVE_LARGEFILES */ + +/* + * If HAVE_LARGEFILES is not defined, we depend on specific tests for + * fseeko()/ftello() which must have been done before the tests for + * Large File support have been done. + * Note that this only works if the tests used below are really done before + * the Large File autoconf test is run. This is because autoconf does no + * clean testing but instead cumulatively modifes the envivonment used for + * testing. + */ +#ifdef HAVE_FSEEKO +# define fseek fseeko +#endif +#ifdef HAVE_FTELLO +# define ftell ftello +#endif +#endif + +#endif /* _SCHILY_STDIO_H */ diff -Nru smake-1.2a41/include/schily/stdio.mk smake-1.2a49/include/schily/stdio.mk --- smake-1.2a41/include/schily/stdio.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/stdio.mk 2009-01-05 19:18:33.000000000 +0000 @@ -0,0 +1,17 @@ +#ident "@(#)stdio.mk 1.1 09/01/05 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= stdio.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/stdlib.mk smake-1.2a49/include/schily/stdlib.mk --- smake-1.2a41/include/schily/stdlib.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/stdlib.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)stdlib.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/stkframe.h smake-1.2a49/include/schily/stkframe.h --- smake-1.2a41/include/schily/stkframe.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/include/schily/stkframe.h 2009-01-06 20:10:53.000000000 +0000 @@ -1,4 +1,4 @@ -/* @(#)stkframe.h 1.11 06/09/13 Copyright 1995 J. Schilling */ +/* @(#)stkframe.h 1.12 09/01/06 Copyright 1995-2009 J. Schilling */ /* * Common definitions for routines that parse the stack frame. * @@ -62,6 +62,10 @@ extern "C" { #endif +#ifndef _SCHILY_UTYPES_H +#include +#endif + /* * XXX: I hope this will be useful on other machines (no guarantee) * XXX: It is taken from a sun Motorola system, but should also be useful @@ -72,7 +76,7 @@ struct frame { struct frame *fr_savfp; /* saved frame pointer */ - int fr_savpc; /* saved program counter */ + Intptr_t fr_savpc; /* saved program counter */ int fr_arg[1]; /* array of arguments */ }; diff -Nru smake-1.2a41/include/schily/stkframe.mk smake-1.2a49/include/schily/stkframe.mk --- smake-1.2a41/include/schily/stkframe.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/stkframe.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)stkframe.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/string.mk smake-1.2a49/include/schily/string.mk --- smake-1.2a41/include/schily/string.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/string.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)string.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/sysexits.h smake-1.2a49/include/schily/sysexits.h --- smake-1.2a41/include/schily/sysexits.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sysexits.h 2009-06-14 14:00:23.000000000 +0100 @@ -0,0 +1,128 @@ +/* @(#)sysexits.h 1.5 09/06/14 J. Schilling */ +/* + * + * Copyright (c) 2009 J. Schilling + * + * Copyright (c) 1987, 1993 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)sysexits.h 8.1 (Berkeley) 6/2/93 + */ + +#ifndef _SCHILY_SYSEXITS_H +#define _SCHILY_SYSEXITS_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYSEXITS_H +#include +#else + +/* + * SYSEXITS.H -- Exit status codes for system programs. + * + * This include file attempts to categorize possible error + * exit statuses for system programs, notably delivermail + * and the Berkeley network. + * + * Error numbers begin at EX__BASE to reduce the possibility of + * clashing with other exit statuses that random programs may + * already return. The meaning of the codes is approximately + * as follows: + * + * EX_USAGE -- The command was used incorrectly, e.g., with + * the wrong number of arguments, a bad flag, a bad + * syntax in a parameter, or whatever. + * EX_DATAERR -- The input data was incorrect in some way. + * This should only be used for user's data & not + * system files. + * EX_NOINPUT -- An input file (not a system file) did not + * exist or was not readable. This could also include + * errors like "No message" to a mailer (if it cared + * to catch it). + * EX_NOUSER -- The user specified did not exist. This might + * be used for mail addresses or remote logins. + * EX_NOHOST -- The host specified did not exist. This is used + * in mail addresses or network requests. + * EX_UNAVAILABLE -- A service is unavailable. This can occur + * if a support program or file does not exist. This + * can also be used as a catchall message when something + * you wanted to do doesn't work, but you don't know + * why. + * EX_SOFTWARE -- An internal software error has been detected. + * This should be limited to non-operating system related + * errors as possible. + * EX_OSERR -- An operating system error has been detected. + * This is intended to be used for such things as "cannot + * fork", "cannot create pipe", or the like. It includes + * things like getuid returning a user that does not + * exist in the passwd file. + * EX_OSFILE -- Some system file (e.g., /etc/passwd, /etc/utmp, + * etc.) does not exist, cannot be opened, or has some + * sort of error (e.g., syntax error). + * EX_CANTCREAT -- A (user specified) output file cannot be + * created. + * EX_IOERR -- An error occurred while doing I/O on some file. + * EX_TEMPFAIL -- temporary failure, indicating something that + * is not really an error. In sendmail, this means + * that a mailer (e.g.) could not create a connection, + * and the request should be reattempted later. + * EX_PROTOCOL -- the remote system returned something that + * was "not possible" during a protocol exchange. + * EX_NOPERM -- You did not have sufficient permission to + * perform the operation. This is not intended for + * file system problems, which should use NOINPUT or + * CANTCREAT, but rather for higher level permissions. + */ + +#define EX_OK 0 /* successful termination */ + +#define EX__BASE 64 /* base value for error messages */ + +#define EX_USAGE 64 /* command line usage error */ +#define EX_DATAERR 65 /* data format error */ +#define EX_NOINPUT 66 /* cannot open input */ +#define EX_NOUSER 67 /* addressee unknown */ +#define EX_NOHOST 68 /* host name unknown */ +#define EX_UNAVAILABLE 69 /* service unavailable */ +#define EX_SOFTWARE 70 /* internal software error */ +#define EX_OSERR 71 /* system error (e.g., can't fork) */ +#define EX_OSFILE 72 /* critical OS file missing */ +#define EX_CANTCREAT 73 /* can't create (user) output file */ +#define EX_IOERR 74 /* input/output error */ +#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */ +#define EX_PROTOCOL 76 /* remote error in protocol */ +#define EX_NOPERM 77 /* permission denied */ +#define EX_CONFIG 78 /* configuration error */ + +#define EX_NOTFOUND 79 /* entry not found */ +#define EX__MAX 79 /* maximum listed value */ + +#endif /* HAVE_SYSEXITS_H */ +#endif /* !_SCHILY_SYSEXITS_H */ diff -Nru smake-1.2a41/include/schily/sysexits.mk smake-1.2a49/include/schily/sysexits.mk --- smake-1.2a41/include/schily/sysexits.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/sysexits.mk 2009-02-04 21:05:38.000000000 +0000 @@ -0,0 +1,17 @@ +#ident "@(#)sysexits.mk 1.1 09/02/04 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= sysexits.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/syslog.h smake-1.2a49/include/schily/syslog.h --- smake-1.2a41/include/schily/syslog.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/syslog.h 2009-08-07 18:07:10.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)syslog.h 1.1 09/08/07 Copyright 2009 J. Schilling */ +/* + * Abstraction code for syslog + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SYSLOG_H +#define _SCHILY_SYSLOG_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYSLOG_H +#ifndef _INCL_SYSLOG_H +#define _INCL_SYSLOG_H +#include +#endif +#endif + +#endif /* _SCHILY_SYSLOG_H */ diff -Nru smake-1.2a41/include/schily/syslog.mk smake-1.2a49/include/schily/syslog.mk --- smake-1.2a41/include/schily/syslog.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/syslog.mk 2009-08-07 18:07:10.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)syslog.mk 1.1 09/08/07 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= syslog.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/systeminfo.h smake-1.2a49/include/schily/systeminfo.h --- smake-1.2a41/include/schily/systeminfo.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/systeminfo.h 2009-07-13 23:56:08.000000000 +0100 @@ -0,0 +1,33 @@ +/* @(#)systeminfo.h 1.1 09/07/14 Copyright 2009 J. Schilling */ +/* + * Systeminfo abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_SYSTEMINFO_H +#define _SCHILY_SYSTEMINFO_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifdef HAVE_SYS_SYSTEMINFO_H +#ifndef _INCL_SYS_SYSTEMINFO_H +#define _INCL_SYS_SYSTEMINFO_H +#include +#endif +#endif + +#endif /* _SCHILY_SYSTEMINFO_H */ diff -Nru smake-1.2a41/include/schily/systeminfo.mk smake-1.2a49/include/schily/systeminfo.mk --- smake-1.2a41/include/schily/systeminfo.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/systeminfo.mk 2009-07-13 23:56:54.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)systeminfo.mk 1.1 09/07/14 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= systeminfo.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/Targets smake-1.2a49/include/schily/Targets --- smake-1.2a41/include/schily/Targets 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/Targets 2009-10-17 19:54:18.000000000 +0100 @@ -0,0 +1,33 @@ +#ident @(#)Targets 1.13 09/10/16 + +X_MK_LIST= \ + align.mk alloca.mk archdefs.mk assert.mk avoffset.mk \ + btorder.mk \ + ccomdefs.mk checkerr.mk ctype.mk \ + dbgmalloc.mk deflts.mk device.mk dirent.mk dlfcn.mk \ + errno.mk fcntl.mk \ + fetchdir.mk find.mk float.mk fnmatch.mk fstream.mk \ + getargs.mk getcwd.mk grp.mk \ + hostname.mk \ + iconv.mk idcache.mk in.mk inet.mk io.mk ioctl.mk ipc.mk \ + intcvt.mk \ + jmpdefs.mk \ + libport.mk librmt.mk limits.mk locale.mk \ + math.mk maxpath.mk mconfig.mk \ + md4.mk md5.mk \ + mman.mk mtio.mk \ + netdb.mk nlsdefs.mk \ + param.mk patmatch.mk priv.mk procfs.mk prototyp.mk pwd.mk \ + resource.mk rmd160.mk rmtio.mk \ + schily.mk schilyp.mk select.mk sem.mk shm.mk \ + setjmp.mk sha1.mk sha2.mk shcall.mk \ + siconv.mk shadow.mk \ + sigblk.mk signal.mk sigset.mk socket.mk standard.mk stat.mk \ + stdio.mk \ + stdlib.mk stkframe.mk string.mk \ + sysexits.mk syslog.mk systeminfo.mk \ + termcap.mk termios.mk time.mk times.mk \ + types.mk unistd.mk utime.mk utsname.mk utypes.mk \ + varargs.mk vfork.mk \ + walk.mk wchar.mk wctype.mk wait.mk \ + xconfig.mk xmconfig.mk diff -Nru smake-1.2a41/include/schily/termcap.mk smake-1.2a49/include/schily/termcap.mk --- smake-1.2a41/include/schily/termcap.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/termcap.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)termcap.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/termios.h smake-1.2a49/include/schily/termios.h --- smake-1.2a41/include/schily/termios.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/termios.h 2009-07-21 20:36:04.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)termios.h 1.30 07/01/16 Copyright 1984-2007 J. Schilling */ +/* @(#)termios.h 1.32 09/07/21 Copyright 1984-2007 J. Schilling */ /* * Terminal driver tty mode handling * @@ -27,6 +27,9 @@ #ifndef _SCHILY_TYPES_H #include #endif +#ifndef _SCHILY_UNISTD_H +#include /* Haiku needs this for _POSIX_VDISABLE */ +#endif #ifdef JOS # include @@ -69,12 +72,7 @@ #endif #if !defined(_INCL_TERMIOS_H) && !defined(_INCL_TERMIO_H) -#ifdef HAVE_SYS_IOCTL_H -# ifndef _INCL_SYS_IOCTL_H -# include -# define _INCL_SYS_IOCTL_H -# endif -#endif +# include #endif #ifdef HAVE_SYS_BSDTTY_H @@ -82,10 +80,7 @@ #endif #if !defined(TIOCGWINSZ) && ! defined(TIOCGSIZE) -# ifndef _INCL_SYS_IOCTL_H -# include -# define _INCL_SYS_IOCTL_H -# endif +# include #endif #ifndef OXTABS /* OS/2 EMX */ diff -Nru smake-1.2a41/include/schily/termios.mk smake-1.2a49/include/schily/termios.mk --- smake-1.2a41/include/schily/termios.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/termios.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)termios.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/time.h smake-1.2a49/include/schily/time.h --- smake-1.2a41/include/schily/time.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/time.h 2007-04-25 15:54:03.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)time.h 1.16 07/01/16 Copyright 1996-2007 J. Schilling */ +/* @(#)time.h 1.18 07/04/25 Copyright 1996-2007 J. Schilling */ /* * Generic header for users of time(), gettimeofday() ... * @@ -56,39 +56,34 @@ extern "C" { #endif -#if defined(__CYGWIN32__) || defined(__EMX__) || defined(__linux__) || defined(__DJGPP__) +#ifdef timerclear /* - * Cygnus defines struct timeval in sys/time.h but not timerclear - * timerclear is defined in windows32/Sockets.h ??? - * - * EMX for OS/2 defines struct timeval in sys/time.h but not timerclear - * - * Linux defines struct timeval in sys/time.h but if __USE_BSD is not - * defined, timerclear is missing. + * With MSVC timerclear / struct timeval present in case that + * winsock2.h has been included before. */ -#ifndef timerclear -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 -#endif +#undef HAVE_STRUCT_TIMEVAL +#define HAVE_STRUCT_TIMEVAL 1 #endif -#ifndef timerclear +#ifndef HAVE_STRUCT_TIMEVAL -#ifndef VMS struct timeval { long tv_sec; long tv_usec; }; #endif +#ifndef HAVE_STRUCT_TIMEZONE + struct timezone { int tz_minuteswest; int tz_dsttime; }; +#endif +#undef timerclear #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 -#endif - #undef timerfix #define timerfix1(tvp) while ((tvp)->tv_usec < 0) { \ (tvp)->tv_sec--; \ diff -Nru smake-1.2a41/include/schily/time.mk smake-1.2a49/include/schily/time.mk --- smake-1.2a41/include/schily/time.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/time.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)time.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/times.h smake-1.2a49/include/schily/times.h --- smake-1.2a41/include/schily/times.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/times.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,53 @@ +/* @(#)times.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Times abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_TIMES_H +#define _SCHILY_TIMES_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_TIME_H +#include +#endif +#ifndef _SCHILY_LIMITS_H +#include +#endif +#ifndef _SCHILY_UNISTD_H +#include +#endif + +/* + * Make sure to include schily/time.h before, because of a Next Step bug. + */ +#ifdef HAVE_SYS_TIMES_H +#ifndef _INCL_SYS_TIMES_H +#define _INCL_SYS_TIMES_H +#include +#endif +#endif + +#ifndef CLK_TCK +#if defined(_SC_CLK_TCK) +#define CLK_TCK ((clock_t)sysconf(_SC_CLK_TCK)) +#else +#define CLK_TCK 60 +#endif +#endif + +#endif /* _SCHILY_TIMES_H */ diff -Nru smake-1.2a41/include/schily/times.mk smake-1.2a49/include/schily/times.mk --- smake-1.2a41/include/schily/times.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/times.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)times.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= times.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/types.h smake-1.2a49/include/schily/types.h --- smake-1.2a41/include/schily/types.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/types.h 2009-10-22 22:19:13.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)types.h 1.2 07/01/16 Copyright 2006-2007 J. Schilling */ +/* @(#)types.h 1.5 09/10/22 Copyright 2006-2009 J. Schilling */ /* * Abstraction from sys/types.h * - * Copyright (c) 2006-2007 J. Schilling + * Copyright (c) 2006-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -28,6 +28,20 @@ #include #define _INCL_SYS_TYPES_H #endif +#else +#ifdef HAVE_TYPES_H +#ifndef _INCL_TYPES_H +#include +#define _INCL_TYPES_H +#endif +#endif +#endif + +#ifdef HAVE_STDDEF_H +#ifndef _INCL_STDDEF_H +#include /* For offsetof(), ptrdiff_t, wchar_t, size_t */ +#define _INCL_STDDEF_H +#endif #endif #endif /* _SCHILY_TYPES_H */ diff -Nru smake-1.2a41/include/schily/types.mk smake-1.2a49/include/schily/types.mk --- smake-1.2a41/include/schily/types.mk 2007-01-03 13:16:11.000000000 +0000 +++ smake-1.2a49/include/schily/types.mk 2007-01-03 13:16:11.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)types.mk 1.1 07/01/03 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/unistd.h smake-1.2a49/include/schily/unistd.h --- smake-1.2a41/include/schily/unistd.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/include/schily/unistd.h 2009-07-27 00:37:43.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)unistd.h 1.19 07/01/16 Copyright 1996-2007 J. Schilling */ +/* @(#)unistd.h 1.21 09/07/27 Copyright 1996-2009 J. Schilling */ /* * Definitions for unix system interface * - * Copyright (c) 1996-2007 J. Schilling + * Copyright (c) 1996-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -43,7 +43,11 @@ #endif #endif -#endif /* HAVE_UNISTD_H */ +#else /* !HAVE_UNISTD_H */ +#ifndef _SCHILY_STDLIB_H +#include /* MSVC: no unistd.h environ is in stdlib.h */ +#endif +#endif /* !HAVE_UNISTD_H */ /* * MSVC has getcwd()/chdir()/mkdir()/rmdir() in direct.h @@ -111,6 +115,10 @@ #define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ #endif +#ifndef HAVE_ENVIRON_DEF +extern char **environ; +#endif + #if !defined(HAVE_UNISTD_H) || !defined(_POSIX_VERSION) /* * Maybe we need a lot more definitions here... diff -Nru smake-1.2a41/include/schily/unistd.mk smake-1.2a49/include/schily/unistd.mk --- smake-1.2a41/include/schily/unistd.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/unistd.mk 2006-12-17 21:52:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)unistd.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/unls.h smake-1.2a49/include/schily/unls.h --- smake-1.2a41/include/schily/unls.h 2006-10-10 09:24:15.000000000 +0100 +++ smake-1.2a49/include/schily/unls.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,56 +0,0 @@ -/* @(#)unls.h 1.8 06/10/10 Copyright 2000-2005 J. Schilling */ -/* - * Definitions fur users of libunls - * - * Copyright (c) 2000-2005 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_UNLS_H -#define _SCHILY_UNLS_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -struct unls_unicode { - unsigned char unls_low; /* Low Byte */ - unsigned char unls_high; /* High Byte */ -}; - -struct unls_table { - char *unls_name; /* UNLS charset name */ - unsigned char **unls_uni2cs; /* Unicode -> Charset */ - struct unls_unicode *unls_cs2uni; /* Charset -> Unicode */ - struct unls_table *unls_next; /* Next table */ -}; - -extern int init_unls __PR((void)); -extern int register_unls __PR((struct unls_table *)); -extern int unregister_unls __PR((struct unls_table *)); -extern struct unls_table *find_unls __PR((char *)); -extern void list_unls __PR((void)); -extern struct unls_table *load_unls __PR((char *)); -extern void unload_unls __PR((struct unls_table *)); -extern struct unls_table *load_unls_default __PR((void)); -extern int init_unls_file __PR((char * name)); - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_UNLS_H */ diff -Nru smake-1.2a41/include/schily/unls.mk smake-1.2a49/include/schily/unls.mk --- smake-1.2a41/include/schily/unls.mk 2006-12-17 21:52:12.000000000 +0000 +++ smake-1.2a49/include/schily/unls.mk 1970-01-01 01:00:00.000000000 +0100 @@ -1,17 +0,0 @@ -#ident %W% %E% %Q% -########################################################################### -# Sample makefile for installing non-localized auxiliary files -########################################################################### -SRCROOT= ../.. -RULESDIR= RULES -include $(SRCROOT)/$(RULESDIR)/rules.top -########################################################################### - -INSDIR= include/schily -TARGET= unls.h -#XMK_FILE= Makefile.man - -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.aux -########################################################################### - diff -Nru smake-1.2a41/include/schily/utime.mk smake-1.2a49/include/schily/utime.mk --- smake-1.2a41/include/schily/utime.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/utime.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)utime.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/utsname.h smake-1.2a49/include/schily/utsname.h --- smake-1.2a41/include/schily/utsname.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/utsname.h 2009-07-13 19:04:37.000000000 +0100 @@ -0,0 +1,36 @@ +/* @(#)utsname.h 1.1 09/07/13 Copyright 2009 J. Schilling */ +/* + * Utsname abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_UTSNAME_H +#define _SCHILY_UTSNAME_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +/* + * NeXT Step has sys/utsname but not uname() + */ +#ifdef HAVE_SYS_UTSNAME_H +#ifndef _INCL_SYS_UTSNAME_H +#define _INCL_SYS_UTSNAME_H +#include +#endif +#endif + +#endif /* _SCHILY_UTSNAME_H */ diff -Nru smake-1.2a41/include/schily/utsname.mk smake-1.2a49/include/schily/utsname.mk --- smake-1.2a41/include/schily/utsname.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/utsname.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)utsname.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= utsname.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/utypes.h smake-1.2a49/include/schily/utypes.h --- smake-1.2a41/include/schily/utypes.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/include/schily/utypes.h 2009-11-05 21:40:54.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)utypes.h 1.26 07/01/16 Copyright 1997-2007 J. Schilling */ +/* @(#)utypes.h 1.29 09/11/05 Copyright 1997-2009 J. Schilling */ /* * Definitions for some user defined types * - * Copyright (c) 1997-2008 J. Schilling + * Copyright (c) 1997-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -33,11 +33,8 @@ /* * Include limits.h for CHAR_BIT */ -#ifdef HAVE_LIMITS_H -#ifndef _INCL_LIMITS_H -#include -#define _INCL_LIMITS_H -#endif +#ifndef _SCHILY_LIMITS_H +#include #endif /* @@ -119,7 +116,7 @@ /* * This is a definition for a compiler dependant 64 bit type. - * It currently is silently a long if the compiler does not + * There is currently a silently fallback to a long if the compiler does not * support it. Check if this is the right way. * * Be very careful here as MSVC does not implement long long but rather __int64 @@ -127,7 +124,10 @@ * check for a MSVC __int128 type. */ #ifndef NO_LONGLONG -# if defined(HAVE_LONGLONG) +# if !defined(USE_LONGLONG) && defined(HAVE_LONGLONG) +# define USE_LONGLONG +# endif +# if !defined(USE_LONGLONG) && defined(HAVE___INT64) # define USE_LONGLONG # endif #endif @@ -154,7 +154,7 @@ # endif /* HAVE___INT64 / HAVE_LONG_LONG */ -#else +#else /* !USE_LONGLONG */ typedef long Llong; typedef unsigned long Ullong; /* We should avoid this */ @@ -163,7 +163,8 @@ #define SIZEOF_LLONG SIZEOF_LONG #define SIZEOF_ULLONG SIZEOF_UNSIGNED_LONG -#endif +#endif /* USE_LONGLONG */ + #ifndef LLONG_MIN #define LLONG_MIN TYPE_MINVAL(Llong) #endif @@ -199,28 +200,60 @@ * Linux even defines incompatible types in . */ -#ifdef HAVE_INTTYPES_H +#if defined(HAVE_INTTYPES_H) || defined(HAVE_STDINT_H) +#if defined(HAVE_INTTYPES_H) # ifndef _INCL_INTTYPES_H # include # define _INCL_INTTYPES_H # endif +#else +#if defined(HAVE_STDINT_H) +# ifndef _INCL_STDINT_H +# include +# define _INCL_STDINT_H +# endif +#endif +#endif +/* + * On VMS on VAX, these types are present but non-scalar. + * Thus we may not be able to use them + */ +#ifdef HAVE_LONGLONG # define HAVE_INT64_T # define HAVE_UINT64_T +#endif #define Int8_t int8_t #define Int16_t int16_t #define Int32_t int32_t +#ifdef HAVE_LONGLONG #define Int64_t int64_t +#endif #define Intmax_t intmax_t #define UInt8_t uint8_t #define UInt16_t uint16_t #define UInt32_t uint32_t +#ifdef HAVE_LONGLONG #define UInt64_t uint64_t +#endif #define UIntmax_t uintmax_t #define Intptr_t intptr_t #define UIntptr_t uintptr_t +/* + * If we only have a UNIX-98 inttypes.h but no SUSv3 + * + * Beware not to use int64_t / uint64_t as VMS on a VAX defines + * them as non-scalar (structure) based types. + */ +#ifndef HAVE_TYPE_INTMAX_T +#define intmax_t Llong +#endif +#ifndef HAVE_TYPE_UINTMAX_T +#define uintmax_t ULlong +#endif + #else /* !HAVE_INTTYPES_H */ #if SIZEOF_CHAR != 1 || SIZEOF_UNSIGNED_CHAR != 1 @@ -273,9 +306,13 @@ #if SIZEOF_CHAR_P == SIZEOF_LONG_INT typedef long Intptr_t; #else +#if SIZEOF_CHAR_P == SIZEOF_LLONG + typedef Llong Intptr_t; +#else error No intptr_t found #endif #endif +#endif typedef unsigned char UInt8_t; @@ -317,9 +354,13 @@ #if SIZEOF_CHAR_P == SIZEOF_UNSIGNED_LONG_INT typedef unsigned long UIntptr_t; #else +#if SIZEOF_CHAR_P == SIZEOF_ULLONG + typedef ULlong UIntptr_t; +#else error No uintptr_t found #endif #endif +#endif #ifdef _MSC_VER /* diff -Nru smake-1.2a41/include/schily/utypes.mk smake-1.2a49/include/schily/utypes.mk --- smake-1.2a41/include/schily/utypes.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/utypes.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)utypes.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/varargs.mk smake-1.2a49/include/schily/varargs.mk --- smake-1.2a41/include/schily/varargs.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/varargs.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)varargs.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/vfork.h smake-1.2a49/include/schily/vfork.h --- smake-1.2a41/include/schily/vfork.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/vfork.h 2009-11-15 13:03:38.000000000 +0000 @@ -0,0 +1,69 @@ +/* @(#)vfork.h 1.4 09/11/15 Copyright 2009 J. Schilling */ +/* + * Vfork abstraction + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_VFORK_H +#define _SCHILY_VFORK_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif +#ifndef _SCHILY_UNISTD_H +#include /* vfork() definitions are here on Solaris */ +#endif + +#ifdef HAVE_VFORK_H +#ifndef _INCL_VFORK_H +#define _INCL_VFORK_H +#include +#endif +#endif +#ifdef HAVE_SYS_FORK_H +#ifndef _INCL_SYS_FORK_H +#define _INCL_SYS_FORK_H +#include +#endif +#endif + +#ifdef VMS +#ifndef VMS_VFORK_OK +/* + * vfork() on VMS implements strange deviations from the expected behavior. + * The child does not run correctly unless it calls exec*(). + * The file descriptors are not separated from the parent. + * + * decc$set_child_standard_streams() allows to work around the most important + * problem of having no separate space for file descriptors if the code is + * prepared for the deviations. + * + * As VMS silently overwrites the "vfork" #definition from mconfig.h in + * unistd.h, we need to reset to the definition in mconfig.h for all programs + * that are not prepared for the deviations. + */ +#ifndef HAVE_VFORK /* Paranoia in case VMS implements a working vfork() */ +#undef vfork +#define vfork fork +#endif /* HAVE_VFORK */ + +#else /* VMS_VFORK_OK */ + +#define set_child_standard_fds(in, out, err) \ + decc$set_child_standard_streams((in), (out), (err)) +#endif /* VMS_VFORK_OK */ +#endif /* VMS */ + +#endif /* _SCHILY_VFORK_H */ diff -Nru smake-1.2a41/include/schily/vfork.mk smake-1.2a49/include/schily/vfork.mk --- smake-1.2a41/include/schily/vfork.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/vfork.mk 2009-07-13 18:25:18.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)vfork.mk 1.1 09/07/13 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= vfork.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/wait.h smake-1.2a49/include/schily/wait.h --- smake-1.2a41/include/schily/wait.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/include/schily/wait.h 2009-11-15 22:59:23.000000000 +0000 @@ -1,4 +1,4 @@ -/* @(#)wait.h 1.13 07/01/16 Copyright 1995-2007 J. Schilling */ +/* @(#)wait.h 1.17 09/11/15 Copyright 1995-2007 J. Schilling */ /* * Definitions to deal with various kinds of wait flavour * @@ -54,65 +54,80 @@ # endif # endif #endif +#ifdef JOS +# ifndef _INCL_SYS_EXIT_H +# include +# define _INCL_SYS_EXIT_H +# endif +#endif +#if defined(__EMX__) || defined(__DJGPP__) +# ifndef _INCL_PROCESS_H +# include +# define _INCL_PROCESS_H +# endif +#endif + #ifdef __cplusplus extern "C" { #endif -#ifdef HAVE_UNION_WAIT +#if defined(HAVE_UNION_WAIT) && defined(USE_UNION_WAIT) # define WAIT_T union wait +# define _W_U(w) ((union wait *)&(w)) # ifndef WSTOPPED # define WSTOPPED 0x7F # endif # ifndef WTERMSIG -# define WTERMSIG(status) ((status).w_termsig) +# define WTERMSIG(status) (_W_U(status)->w_termsig) # endif # ifndef WCOREDUMP -# define WCOREDUMP(status) ((status).w_coredump) +# define WCOREDUMP(status) (_W_U(status)->w_coredump) # endif # ifndef WEXITSTATUS -# define WEXITSTATUS(status) ((status).w_retcode) +# define WEXITSTATUS(status) (_W_U(status)->w_retcode) # endif # ifndef WSTOPSIG -# define WSTOPSIG(status) ((status).w_stopsig) +# define WSTOPSIG(status) (_W_U(status)->w_stopsig) # endif # ifndef WIFSTOPPED -# define WIFSTOPPED(status) ((status).w_stopval == \ +# define WIFSTOPPED(status) (_W_U(status)->w_stopval == \ WSTOPPED) # endif # ifndef WIFSIGNALED -# define WIFSIGNALED(status) ((status).w_stopval != \ +# define WIFSIGNALED(status) (_W_U(status)->w_stopval != \ WSTOPPED && \ - (status).w_termsig != 0) + _W_U(status)->w_termsig != 0) # endif # ifndef WIFEXITED -# define WIFEXITED(status) ((status).w_stopval != \ +# define WIFEXITED(status) (_W_U(status)->w_stopval != \ WSTOPPED && \ - (status).w_termsig == 0) + _W_U(status)->w_termsig == 0) # endif #else # define WAIT_T int +# define _W_I(w) (*(int *)&(w)) # ifndef WTERMSIG -# define WTERMSIG(status) ((status) & 0x7F) +# define WTERMSIG(status) (_W_I(status) & 0x7F) # endif # ifndef WCOREDUMP -# define WCOREDUMP(status) ((status) & 0x80) +# define WCOREDUMP(status) (_W_I(status) & 0x80) # endif # ifndef WEXITSTATUS -# define WEXITSTATUS(status) (((status) >> 8) & 0xFF) +# define WEXITSTATUS(status) ((_W_I(status) >> 8) & 0xFF) # endif # ifndef WSTOPSIG -# define WSTOPSIG(status) (((status) >> 8) & 0xFF) +# define WSTOPSIG(status) ((_W_I(status) >> 8) & 0xFF) # endif # ifndef WIFSTOPPED -# define WIFSTOPPED(status) (((status) & 0xFF) == 0x7F) +# define WIFSTOPPED(status) ((_W_I(status) & 0xFF) == 0x7F) # endif # ifndef WIFSIGNALED -# define WIFSIGNALED(status) (((status) & 0xFF) != 0x7F && \ +# define WIFSIGNALED(status) ((_W_I(status) & 0xFF) != 0x7F && \ WTERMSIG(status) != 0) # endif # ifndef WIFEXITED -# define WIFEXITED(status) (((status) & 0xFF) == 0) +# define WIFEXITED(status) ((_W_I(status) & 0xFF) == 0) # endif #endif diff -Nru smake-1.2a41/include/schily/wait.mk smake-1.2a49/include/schily/wait.mk --- smake-1.2a41/include/schily/wait.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/wait.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)wait.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/walk.h smake-1.2a49/include/schily/walk.h --- smake-1.2a41/include/schily/walk.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/walk.h 2009-06-06 00:07:39.000000000 +0100 @@ -0,0 +1,127 @@ +/* @(#)walk.h 1.26 09/06/06 Copyright 2004-2009 J. Schilling */ +/* + * Definitions for directory tree walking + * + * Copyright (c) 2004-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_WALK_H +#define _SCHILY_WALK_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_STAT_H +#include +#endif + +#ifndef _SCHILY_STDIO_H +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Flags to control treewalk() via 'walkflags'. + * + * WALK_CHDIR is not implemented, treewalk() always does chdir() + * + * WALK_PHYS Clearing WALK_PHYS has highest precedence and equals + * 'find -follow'. If WALK_PHYS is clear, always use stat. + * By default, WALK_PHYS should be set. + * + * WALK_ARGFOLLOW If WALK_ARGFOLLOW is set, symlinks that are used as + * the first argument for trewalk() are followed even + * if WALK_PHYS is set. Setting WALK_ARGFOLLOW equals + * 'find -H'. + * + * WALK_ALLFOLLOW If WALK_ALLFOLLOW is set, all symlinks are followed + * even if WALK_PHYS is set. Setting WALK_ALLFOLLOW + * equals 'find -L'. + */ +#define WALK_PHYS 1 /* Use lstat() instead of stat() */ +#define WALK_MOUNT 2 /* Do not cross mount points */ +#define WALK_DEPTH 4 /* Call content before calling the dir */ +#define WALK_CHDIR 8 /* Use chdir() to each directory */ +#define WALK_ARGFOLLOW 0x10 /* Use stat() for top level args only */ +#define WALK_ALLFOLLOW 0x20 /* Use stat() for all files */ +#define WALK_NOSTAT 0x40 /* Avoid to call stat() if st_nlink =>2 */ +#define WALK_NOEXIT 0x100 /* Do not exit() in case of hard errors */ +#define WALK_NOMSG 0x200 /* Do not write messages to stderr */ +#define WALK_LS_ATIME 0x1000 /* -ls lists atime instead of mtime */ +#define WALK_LS_CTIME 0x2000 /* -ls lists ctime instead of mtime */ + +/* + * The 'type' argument to walkfun. + */ +#define WALK_F 1 /* File */ +#define WALK_SL 2 /* Symbolic Link */ +#define WALK_D 3 /* Directory */ +#define WALK_DP 4 /* Directory previously visited */ +#define WALK_DNR 5 /* Directory with no read permission */ +#define WALK_NS 6 /* Unknown file type stat failed */ +#define WALK_SLN 7 /* Symbolic Link that points to nonexistent file */ + +#ifndef __sqfun_t_defined +typedef int (*sqfun_t) __PR((void *arg)); +#define __sqfun_t_defined +#endif + +struct WALK { + int flags; /* Flags for communication with (*walkfun)() */ + int base; /* Filename offset in path for (*walkfun)() */ + int level; /* The nesting level set up for (*walkfun)() */ + int walkflags; /* treewalk() control flags */ + void *twprivate; /* treewalk() private do not touch */ + FILE *std[3]; /* To redirect stdin/stdout/err in treewalk */ + char **env; /* To allow different env in treewalk/exec */ + sqfun_t quitfun; /* Function to query for shell signal quit */ + void *qfarg; /* Generic arg for shell builtin quit fun */ + int maxdepth; /* (*walkfun)() private, unused by treewalk */ + int mindepth; /* (*walkfun)() private, unused by treewalk */ + char *lname; /* (*walkfun)() private, unused by treewalk */ + void *tree; /* (*walkfun)() private, unused by treewalk */ + void *patstate; /* (*walkfun)() private, unused by treewalk */ + int err; /* (*walkfun)() private, unused by treewalk */ + int pflags; /* (*walkfun)() private, unused by treewalk */ + int auxi; /* (*walkfun)() private, unused by treewalk */ + void *auxp; /* (*walkfun)() private, unused by treewalk */ +}; + +/* + * Flags in struct WALK used to communicate with (*walkfun)() + */ +#define WALK_WF_PRUNE 1 /* (*walkfun)() -> walk(): abort waking tree */ +#define WALK_WF_QUIT 2 /* (*walkfun)() -> walk(): quit completely */ +#define WALK_WF_NOCHDIR 4 /* walk() -> (*walkfun)(): WALK_DNR is cannot chdir() */ +#define WALK_WF_NOCWD 8 /* walk() -> caller: cannot get working dir */ +#define WALK_WF_NOHOME 16 /* walk() -> caller: cannot chdir("..") */ + +typedef int (*walkfun) __PR((char *_nm, struct stat *_fs, int _type, struct WALK *_state)); + +extern int treewalk __PR((char *_nm, walkfun _fn, struct WALK *_state)); +extern void walkinitstate __PR((struct WALK *_state)); +extern void *walkopen __PR((struct WALK *_state)); +extern int walkgethome __PR((struct WALK *_state)); +extern int walkhome __PR((struct WALK *_state)); +extern int walkclose __PR((struct WALK *_state)); + +#ifdef __cplusplus +} +#endif + +#endif /* _SCHILY_WALK_H */ diff -Nru smake-1.2a41/include/schily/walk.mk smake-1.2a49/include/schily/walk.mk --- smake-1.2a41/include/schily/walk.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/walk.mk 2008-04-06 13:07:34.000000000 +0100 @@ -0,0 +1,17 @@ +#ident @(#)walk.mk 1.1 08/04/06 +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= walk.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/wchar.h smake-1.2a49/include/schily/wchar.h --- smake-1.2a41/include/schily/wchar.h 2007-01-24 13:47:19.000000000 +0000 +++ smake-1.2a49/include/schily/wchar.h 2009-06-14 18:56:06.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)wchar.h 1.1 07/01/24 Copyright 2007 J. Schilling */ +/* @(#)wchar.h 1.12 09/06/14 Copyright 2007-2009 J. Schilling */ /* * Abstraction from wchar.h * - * Copyright (c) 2007 J. Schilling + * Copyright (c) 2007-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -26,30 +26,59 @@ #ifndef _SCHILY_STDLIB_H #include /* for MB_CUR_MAX */ #endif - -#ifdef HAVE_WCHAR_H - -#include - -#else /* HAVE_WCHAR_H */ - #ifndef _SCHILY_TYPES_H #include #endif #ifdef HAVE_STDDEF_H -#include +#ifndef _INCL_STDDEF_H +#include /* Needed for e.g. size_t (POSIX) */ +#define _INCL_STDDEF_H +#endif +#endif +#ifndef _SCHILY_STDIO_H +#include /* Needed for e.g. FILE (POSIX) */ #endif -#include #ifndef _SCHILY_VARARGS_H -#include +#include /* Needed for e.g. va_list (POSIX) */ +#endif + + +#ifdef HAVE_WCHAR_H + +#ifndef _INCL_WCHAR_H +#include +#define _INCL_WCHAR_H +#endif + +#ifndef USE_WCHAR +#define USE_WCHAR #endif +#else /* HAVE_WCHAR_H */ #undef USE_WCHAR #endif /* !HAVE_WCHAR_H */ +#if !defined(HAVE_WCTYPE_H) && !defined(HAVE_ISWPRINT) +#undef USE_WCHAR +#undef USE_WCTYPE +#endif + +#ifdef NO_WCTYPE +#undef USE_WCHAR +#undef USE_WCTYPE +#endif + +#ifdef NO_WCHAR +#undef USE_WCHAR +#undef USE_WCTYPE +#endif + #ifndef USE_WCHAR +/* + * We either don't have wide chars or we don't use them... + */ #undef wchar_t #define wchar_t char #undef wint_t @@ -59,7 +88,7 @@ #define WEOF ((wint_t)-1) #ifndef _SCHILY_UTYPES_H -#include +#include /* For TYPE_MAXVAL() */ #endif #undef WCHAR_MAX @@ -67,31 +96,27 @@ #undef WCHAR_MIN #define WCHAR_MIN TYPE_MINVAL(wchar_t) -#include - -#define iswalnum(c) isalnum(c) -#define iswalpha(c) isalpha(c) -#define iswcntrl(c) iscntrl(c) -#define iswcntrl(c) iscntrl(c) -#define iswdigit(c) isdigit(c) -#define iswgraph(c) isgraph(c) -#define iswlower(c) islower(c) -#define iswprint(c) isprint(c) -#define iswpunct(c) ispunct(c) -#define iswspace(c) isspace(c) -#define iswupper(c) isupper(c) -#define iswxdigit(c) isxdigit(c) - -#define towlower(c) tolower(c) -#define towupper(c) toupper(c) +#undef SIZEOF_WCHAR_T +#define SIZEOF_WCHAR_T SIZEOF_CHAR #undef MB_CUR_MAX #define MB_CUR_MAX 1 #undef MB_LEN_MAX #define MB_LEN_MAX 1 +/* + * The mbtowc() for the non-multibyte case could be as simple as + * + * #define mbtowc(wp, cp, len) (*(wp) = *(cp), 1) + * + * but Mac OS X forces us to do many mbtowc(NULL, NULL, 0) calls in order + * to reset the internal state. On other platforms that do not support + * wide chars, NULL may be defined as (void *)0, so we need to check + * for "wp" != NULL and to cast "wp" and "cp" to their expected types. + */ #undef mbtowc -#define mbtowc(wp, cp, len) (*(wp) = *(cp), 1) +#define mbtowc(wp, cp, len) ((void)((wp) ? \ + *(wchar_t *)(wp) = *(char *)(cp) : 1), 1) #undef wctomb #define wctomb(cp, wc) (*(cp) = wc, 1) diff -Nru smake-1.2a41/include/schily/wchar.mk smake-1.2a49/include/schily/wchar.mk --- smake-1.2a41/include/schily/wchar.mk 2007-01-24 13:47:08.000000000 +0000 +++ smake-1.2a49/include/schily/wchar.mk 2007-01-24 13:47:08.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)wchar.mk 1.1 07/01/24 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/wctype.h smake-1.2a49/include/schily/wctype.h --- smake-1.2a41/include/schily/wctype.h 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/wctype.h 2009-06-29 22:48:09.000000000 +0100 @@ -0,0 +1,95 @@ +/* @(#)wctype.h 1.7 09/06/29 Copyright 2009 J. Schilling */ +/* + * Abstraction from wctype.h + * + * Copyright (c) 2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#ifndef _SCHILY_WCTYPE_H +#define _SCHILY_WCTYPE_H + +#ifndef _SCHILY_MCONFIG_H +#include +#endif + +#ifndef _SCHILY_WCHAR_H +#include +#endif + +#ifdef HAVE_WCTYPE_H +/* + * Include wctype.h if wchars have been enabled in schily/wchar.h + */ +#ifdef USE_WCHAR +#ifndef _INCL_WCTYPE_H +#include +#define _INCL_WCTYPE_H +#endif +#ifndef USE_WCTYPE +#define USE_WCTYPE +#endif +#endif /* USE_WCHAR */ +#endif /* HAVE_WCTYPE_H */ + +#if defined(HAVE_ISWPRINT) && defined(USE_WCHAR) +#ifndef USE_WCTYPE +#undef USE_WCTYPE +#endif +#endif + +#if !defined(HAVE_WCTYPE_H) && !defined(HAVE_ISWPRINT) +#undef USE_WCTYPE +#endif + +#ifdef NO_WCTYPE +#undef USE_WCTYPE +#endif + +#ifndef USE_WCTYPE + +#include + +#undef iswalnum +#define iswalnum(c) isalnum(c) +#undef iswalpha +#define iswalpha(c) isalpha(c) +#undef iswcntrl +#define iswcntrl(c) iscntrl(c) +#undef iswcntrl +#define iswcntrl(c) iscntrl(c) +#undef iswdigit +#define iswdigit(c) isdigit(c) +#undef iswgraph +#define iswgraph(c) isgraph(c) +#undef iswlower +#define iswlower(c) islower(c) +#undef iswprint +#define iswprint(c) isprint(c) +#undef iswpunct +#define iswpunct(c) ispunct(c) +#undef iswspace +#define iswspace(c) isspace(c) +#undef iswupper +#define iswupper(c) isupper(c) +#undef iswxdigit +#define iswxdigit(c) isxdigit(c) + +#undef towlower +#define towlower(c) tolower(c) +#undef towupper +#define towupper(c) toupper(c) + +#endif /* !USE_WCTYPE */ + +#endif /* _SCHILY_WCTYPE_H */ diff -Nru smake-1.2a41/include/schily/wctype.mk smake-1.2a49/include/schily/wctype.mk --- smake-1.2a41/include/schily/wctype.mk 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/include/schily/wctype.mk 2009-04-12 14:11:05.000000000 +0100 @@ -0,0 +1,17 @@ +#ident "@(#)wctype.mk 1.1 09/04/12 " +########################################################################### +# Sample makefile for installing non-localized auxiliary files +########################################################################### +SRCROOT= ../.. +RULESDIR= RULES +include $(SRCROOT)/$(RULESDIR)/rules.top +########################################################################### + +INSDIR= include/schily +TARGET= wctype.h +#XMK_FILE= Makefile.man + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.aux +########################################################################### + diff -Nru smake-1.2a41/include/schily/xconfig.h smake-1.2a49/include/schily/xconfig.h --- smake-1.2a41/include/schily/xconfig.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/include/schily/xconfig.h 2009-11-05 19:05:57.000000000 +0000 @@ -1,8 +1,8 @@ -/* @(#)xconfig.h 1.5 07/01/16 Copyright 1995-2007 J. Schilling */ +/* @(#)xconfig.h 1.8 09/11/05 Copyright 1995-2009 J. Schilling */ /* * This file either includes the dynamic or manual autoconf stuff. * - * Copyright (c) 1995-2007 J. Schilling + * Copyright (c) 1995-2009 J. Schilling * * This file is included from and usually * includes $(SRCROOT)/incs/$(OARCH)/xconfig.h via @@ -36,6 +36,10 @@ # define USE_STATIC_CONF #endif +#ifdef NO_STATIC_CONF +#undef USE_STATIC_CONF +#endif + #ifdef USE_STATIC_CONF # include /* The static autoconf stuff */ #else /* USE_STATIC_CONF */ @@ -85,6 +89,36 @@ #define __JS_ARCH_CONF_INCL #endif +#ifdef __SUNOS4_MC68000_CC32 +#ifdef __mc68020 +#include +#define __JS_ARCH_CONF_INCL +#endif +#endif +#ifdef __SUNOS4_MC68000_GCC32 +#ifdef __mc68020 +#include +#define __JS_ARCH_CONF_INCL +#endif +#endif + +#ifdef __HPUX_HPPA_CC32 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_CC64 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC32 +#include +#define __JS_ARCH_CONF_INCL +#endif +#ifdef __HPUX_HPPA_GCC64 +#include +#define __JS_ARCH_CONF_INCL +#endif + #ifdef __MSWIN_X86_CL32 #include #define __JS_ARCH_CONF_INCL diff -Nru smake-1.2a41/include/schily/xconfig.mk smake-1.2a49/include/schily/xconfig.mk --- smake-1.2a41/include/schily/xconfig.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/xconfig.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)xconfig.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/include/schily/xmconfig.h smake-1.2a49/include/schily/xmconfig.h --- smake-1.2a41/include/schily/xmconfig.h 2006-10-21 09:27:44.000000000 +0100 +++ smake-1.2a49/include/schily/xmconfig.h 2009-11-15 23:00:07.000000000 +0000 @@ -1,9 +1,9 @@ -/* @(#)xmconfig.h 1.34 06/10/21 Copyright 1995-2006 J. Schilling */ +/* @(#)xmconfig.h 1.42 09/11/16 Copyright 1995-2009 J. Schilling */ /* * This file either includes the manual generated * static definitions for a machine configuration. * - * Copyright (c) 1995-2006 J. Schilling + * Copyright (c) 1995-2009 J. Schilling * * Use only cpp instructions. * @@ -40,6 +40,8 @@ # define __NOT_SVR4__ /* Not a real SVR4 implementation */ # define HAVE_UNISTD_H +# define HAVE_SYS_TYPES_H +# define HAVE_CTYPE_H /* # define HAVE_SYS_TIME_H */ # define HAVE_FCNTL_H # define HAVE_USLEEP @@ -103,7 +105,7 @@ # define HAVE_WAIT_H /*# define HAVE_SYS_WAIT_H */ /*# define HAVE_SYS_SYSTEMINFO_H */ -/*# define HAVE_SYS_UTSNAME_H */ +# define HAVE_SYS_UTSNAME_H /*# define HAVE_SYS_PRIOCNTL_H */ /*# define HAVE_SYS_RTPRIOCNTL_H */ /*# define HAVE_SYS_MTIO_H */ @@ -154,6 +156,18 @@ /*# define HAVE_GETAV0 */ /*# define HAVE_SCANSTACK */ +# define HAVE_STRUCT_TIMEVAL +# define HAVE_UTSNAME_ARCH /* uname -p */ + +# define HAVE_MALLOC +# define HAVE_CALLOC +# define HAVE_REALLOC + +# define HAVE_UNAME +# define HAVE_RENAME +# define HAVE_PUTENV +# define HAVE_STRNCPY + /* 2005-11-22 SMS. Enabled some above. Added some below. */ # define HAVE_ECVT # define HAVE_FCVT @@ -167,9 +181,11 @@ # define NICE_DECR -8 /* 2005-03-14 SMS. Need VMS-specific open() parameters. */ +#ifndef NO_OPENFD_SRC # define _OPENFD_SRC /* Use VMS-specific _openfd() function.*/ # define _openfd openfd_vms /* This one. */ # define O_BINARY 0x0004 /* DOS-like value. Implies "ctx=bin". */ +#endif # define HAVE_C_BIGENDIAN # define HAVE_C_BITFIELDS diff -Nru smake-1.2a41/include/schily/xmconfig.mk smake-1.2a49/include/schily/xmconfig.mk --- smake-1.2a41/include/schily/xmconfig.mk 2006-12-17 21:52:13.000000000 +0000 +++ smake-1.2a49/include/schily/xmconfig.mk 2006-12-17 21:52:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident %W% %E% %Q% +#ident @(#)xmconfig.mk 1.1 06/12/17 ########################################################################### # Sample makefile for installing non-localized auxiliary files ########################################################################### diff -Nru smake-1.2a41/INSTALL smake-1.2a49/INSTALL --- smake-1.2a41/INSTALL 2004-05-19 15:13:47.000000000 +0100 +++ smake-1.2a49/INSTALL 2009-04-11 16:56:42.000000000 +0100 @@ -15,7 +15,7 @@ You **need** either my "smake" program, the SunPRO make from /usr/bin/make (SunOS 4.x) or /usr/ccs/bin/make (SunOS 5.x) - or GNU make to compile this program. Read README.gmake for + or GNU make to compile this program. Read READMEs/README.gmake for more information on gmake and a list of the most annoying bugs in gmake. All other make programs are either not smart enough or have bugs. @@ -169,6 +169,19 @@ env INS_BASE=/usr/local make -e install + Note that INS_BASE=/usr/local needs to be specified for every operation + that compiles or links programs as the path is stored inside the + binaries. + + +Installing to a prototype directory to implement package creation staging: + + If you like to create a prototype directory tree that is used as an + intermediate store for package creation, use the DESTDIR macro: + + smake INS_BASE=/usr/local DESTDIR=/tmp install + + This will create a usr/local tree below /tmp (i.e. /tmp/usr/local). Using a different C-compiler: @@ -189,27 +202,33 @@ Creating 64 bit executables on Solaris: - If you like to create 64 bit executables you always need first to - remove any old make results. This includes all autoconf results. In - order to make sure that the source tree is in a "clean" state, call: - - ./.clean + Simply call: - at the top level directory. Then configure and compile everything by - calling: - - smake COPTX=-xarch=v9 LDOPTX=-xarch=v9 - - To do this with GCC, you need at least GCC-3.1. It is the first 64 bit - aware GCC. With GCC, call on Solaris: - - smake CCOM=gcc COPTX=-m64 LDOPTX=-m64 + make CCOM=gcc64 + or + make CCOM=cc64 It is not clear if GCC already supports other platforms in 64 bit mode. As all GCC versions before 3.1 did emit hundreds of compilation warnings related to 64 bit bugs when compiling itself, there is little hope that other platforms are already supported in 64 bit mode. +Creating executables using the Sun Studio compiler on Linux: + + Simply call: + + make CCOM=suncc + + If the compilation does not work, try: + + mkdir /opt/sunstudio12/prod/include/cc/linux + cp /usr/include/linux/types.h /opt/sunstudio12/prod/include/cc/linux + + Then edit /opt/sunstudio12/prod/include/cc/linux/types.h and remove all + lines like: "#if defined(__GNUC__) && !defined(__STRICT_ANSI__)" + as well as the related #endif. + + Getting help from make: @@ -239,7 +258,7 @@ SunPro make will work as is. GNU make need some special preparation. - Read README.gmake for more information on gmake. + Read READMEs/README.gmake for more information on gmake. To use GNU make create a file called 'Gmake' in your search path that contains: @@ -307,6 +326,22 @@ make COPTX=-g LDOPTX=-g +Creting Blastwave packages: + + Call: + .clean + smake -f Mcsw + + You need the program "fakeroot" and will find the results + in packages/ + + Note that a single program source tree will allow you to create + packages like CSWstar but not the packages CSWschilybase and + CSWschilyutils on which CSWstar depends. + + + + If you want to see an example, please have a look at the "star" source. It may be found on: @@ -322,6 +357,7 @@ man -F + Author: Joerg Schilling @@ -330,6 +366,6 @@ Germany Email: joerg@schily.isdn.cs.tu-berlin.de, js@cs.tu-berlin.de - schilling@fokus.fhg.de + joerg.schilling@fokus.fraunhufer.de Please mail bugs and suggestions to me. diff -Nru smake-1.2a41/lib/comerr.c smake-1.2a49/lib/comerr.c --- smake-1.2a41/lib/comerr.c 2007-02-26 12:01:47.000000000 +0000 +++ smake-1.2a49/lib/comerr.c 2009-07-10 20:54:04.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)comerr.c 1.32 07/02/26 Copyright 1985-1989, 1995-2007 J. Schilling */ +/* @(#)comerr.c 1.35 09/07/10 Copyright 1985-1989, 1995-2009 J. Schilling */ /* * Routines for printing command errors * - * Copyright (c) 1985-1989, 1995-2007 J. Schilling + * Copyright (c) 1985-1989, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,7 +18,7 @@ #include #include /* include try to get size_t */ -#include /* Try again for size_t */ +#include /* Try again for size_t */ #include /* Try again for size_t */ #include #include @@ -157,7 +157,7 @@ return (ret); } -#ifdef __BEOS__ +#if defined(__BEOS__) || defined(__HAIKU__) /* * On BeOS errno is a big negative number (0x80000000 + small number). * We assume that small negative numbers are safe to be used as special diff -Nru smake-1.2a41/lib/error.c smake-1.2a49/lib/error.c --- smake-1.2a41/lib/error.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/lib/error.c 2009-07-10 20:54:04.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)error.c 1.14 06/09/13 Copyright 1985, 1989, 1995-2003 J. Schilling */ +/* @(#)error.c 1.15 09/07/10 Copyright 1985, 1989, 1995-2003 J. Schilling */ /* * fprintf() on standard error stdio stream * @@ -17,7 +17,7 @@ */ #include -#include +#include #include #include #include diff -Nru smake-1.2a41/lib/fconv.c smake-1.2a49/lib/fconv.c --- smake-1.2a41/lib/fconv.c 2006-10-29 11:46:30.000000000 +0000 +++ smake-1.2a49/lib/fconv.c 2009-10-10 21:02:22.000000000 +0100 @@ -1,9 +1,9 @@ -/* @(#)fconv.c 1.36 06/10/29 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)fconv.c 1.41 09/10/10 Copyright 1985, 1995-2009 J. Schilling */ /* * Convert floating point numbers to strings for format.c * Should rather use the MT-safe routines [efg]convert() * - * Copyright (c) 1985, 1995-2003 J. Schilling + * Copyright (c) 1985, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -24,6 +24,7 @@ #include #include #include +#include /* The default place for isinf()/isnan() */ #if !defined(HAVE_STDLIB_H) || defined(HAVE_DTOA) extern char *ecvt __PR((double, int, int *, int *)); @@ -34,13 +35,17 @@ /* * *BSD alike libc */ +#define FOUND_ISNAN +#define FOUND_ISINF #define FOUND_ISXX #endif -#include - #if defined(HAVE_C99_ISNAN) && defined(HAVE_C99_ISINF) +#ifndef FOUND_ISXX #define FOUND_ISXX +#endif +#define FOUND_C99_ISNAN +#define FOUND_C99_ISINF #define FOUND_C99_ISXX #endif @@ -59,49 +64,123 @@ * Let's hope that we will not get problems with the new order. */ #include -#ifndef isnan +#if !defined(isnan) && defined(IS_NAN) #define isnan IS_NAN +#define FOUND_ISNAN #endif -#ifndef isinf +#if !defined(isinf) && defined(FINITE) #define isinf !FINITE /*#define isinf IS_INF*/ +#define FOUND_ISINF #endif +#if defined(FOUND_ISNAN) && defined(FOUND_ISINF) #define FOUND_ISXX #endif +#endif -#if defined(HAVE_IEEEFP_H) && !defined(FOUND_ISXX) +#if defined(HAVE_IEEEFP_H) && !defined(FOUND_ISXX) && !defined(FOUND_C99_ISXX) /* * SVR4 */ #include +#ifdef HAVE_ISNAND #ifndef isnan #define isnan isnand +#define FOUND_ISNAN +#endif #endif +#ifdef HAVE_FINITE #ifndef isinf #define isinf !finite +#define FOUND_ISINF #endif +#endif +#if defined(FOUND_ISNAN) && defined(FOUND_ISINF) #define FOUND_ISXX #endif +#endif /* * WAS: * #if defined(__hpux) || defined(VMS) || defined(_SCO_DS) || defined(__QNX__) */ +#ifdef __nneded__ #if defined(__hpux) || defined(__QNX__) || defined(__DJGPP__) #ifndef FOUND_C99_ISXX #undef isnan #undef isinf #endif #endif +#endif /* __needed__ */ -#if !defined(isnan) && !defined(HAVE_ISNAN) && !defined(HAVE_C99_ISNAN) +/* + * As we no longer check for defined(isnan)/defined(isinf), the next block + * should also handle the problems with DJGPP, HP-UX, QNX and VMS. + */ +#if !defined(FOUND_ISNAN) && !defined(HAVE_C99_ISNAN) +#undef isnan #define isnan(val) (0) +#define NO_ISNAN #endif -#if !defined(isinf) && !defined(HAVE_ISINF) && !defined(HAVE_C99_ISINF) +#if !defined(FOUND_ISINF) && !defined(HAVE_C99_ISINF) +#undef isinf #define isinf(val) (0) +#define NO_ISINF +#endif + +#if defined(NO_ISNAN) || defined(NO_ISINF) +#include /* For values.h */ +#if (_IEEE - 0) > 0 /* We know that there is IEEE FP */ +/* + * Note that older HP-UX versions have different #defines for MAXINT in + * values.h and sys/param.h + */ +#include +#include + +#ifdef WORDS_BIGENDIAN +#define fpw_high(x) ((UInt32_t *)&x)[0] +#define fpw_low(x) ((UInt32_t *)&x)[1] +#else +#define fpw_high(x) ((UInt32_t *)&x)[1] +#define fpw_low(x) ((UInt32_t *)&x)[0] +#endif +#define FP_EXP 0x7FF00000 +#define fp_exp(x) (fpw_high(x) & FP_EXP) +#define fp_exc(x) (fp_exp(x) == FP_EXP) + +#ifdef NO_ISNAN +#undef isnan +#define isnan(val) (fp_exc(val) && \ + (fpw_low(val) != 0 || (fpw_high(val) & 0xFFFFF) != 0)) +#endif +#ifdef NO_ISINF +#undef isinf +#define isinf(val) (fp_exc(val) && \ + fpw_low(val) == 0 && (fpw_high(val) & 0xFFFFF) == 0) #endif +#endif /* We know that there is IEEE FP */ +#endif /* defined(NO_ISNAN) || defined(NO_ISINF) */ + #if !defined(HAVE_ECVT) || !defined(HAVE_FCVT) || !defined(HAVE_GCVT) + +#ifdef NO_USER_XCVT + /* + * We cannot define our own ecvt()/fcvt()/gcvt() so we need to use + * local names instead. + */ +#ifndef HAVE_ECVT +# define ecvt js_ecvt +#endif +#ifndef HAVE_FCVT +# define fcvt js_fcvt +#endif +#ifndef HAVE_GCVT +# define gcvt js_gcvt +#endif +#endif + #include "cvt.c" #endif diff -Nru smake-1.2a41/lib/fillbytes.c smake-1.2a49/lib/fillbytes.c --- smake-1.2a41/lib/fillbytes.c 2006-09-25 22:41:48.000000000 +0100 +++ smake-1.2a49/lib/fillbytes.c 2009-10-17 21:14:16.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)fillbytes.c 1.15 06/09/25 Copyright 1987, 1995-2006 J. Schilling */ +/* @(#)fillbytes.c 1.17 09/10/17 Copyright 1987, 1995-2009 J. Schilling */ /* * fill memory with data * - * Copyright (c) 1987, 1995-2006 J. Schilling + * Copyright (c) 1987, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,25 +18,29 @@ #include #include +#include #include #define DO8(a) a; a; a; a; a; a; a; a; #define cval ((char) lval) +/* + * fillbytes(to, cnt, val) is the same as memset(to, val, cnt) + */ #ifdef PROTOTYPES EXPORT char * -fillbytes(void *tov, int cnt, char val) +fillbytes(void *tov, ssize_t cnt, char val) #else EXPORT char * fillbytes(tov, cnt, val) void *tov; - int cnt; + ssize_t cnt; char val; #endif { register char *to = (char *)tov; - register int n; + register ssize_t n; register long lval; /* @@ -55,8 +59,8 @@ } n++; - if (n >= (int)(8 * sizeof (long))) { - register int rem = n % (8 * sizeof (long)); + if (n >= (ssize_t)(8 * sizeof (long))) { + register ssize_t rem = n % (8 * sizeof (long)); lval |= (lval<<8); lval |= (lval<<16); diff -Nru smake-1.2a41/lib/format.c smake-1.2a49/lib/format.c --- smake-1.2a41/lib/format.c 2006-12-17 20:47:44.000000000 +0000 +++ smake-1.2a49/lib/format.c 2009-07-28 20:16:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)format.c 1.41 06/12/17 Copyright 1985-2006 J. Schilling */ +/* @(#)format.c 1.48 09/07/28 Copyright 1985-2009 J. Schilling */ /* * format * common code for printf fprintf & sprintf @@ -6,7 +6,7 @@ * allows recursive printf with "%r", used in: * error, comerr, comerrno, errmsg, errmsgno and the like * - * Copyright (c) 1985-2006 J. Schilling + * Copyright (c) 1985-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -47,6 +47,17 @@ #undef USE_LONGLONG #endif +#ifdef NO_USER_XCVT + /* + * We cannot define our own gcvt() so we need to use a + * local name instead. + */ +#ifndef HAVE_GCVT +# define gcvt js_gcvt +EXPORT char *gcvt __PR((double value, int ndigit, char *buf)); +#endif +#endif + /* * Some CPU's (e.g. PDP-11) cannot do logical shifts. * They use rotate instead. Masking the low bits before, @@ -310,10 +321,46 @@ case 'j': if (!type) type = 'J'; /* convert to intmax_t type */ + goto getmode; + + case 'z': /* size_t */ +#if SIZEOF_SIZE_T == SIZEOF_INT + if (!type) + type = 'I'; /* convert to int type */ +#else +#if SIZEOF_SIZE_T == SIZEOF_LONG_INT + if (!type) + type = 'L'; /* convert to long type */ +#else +#if SIZEOF_SIZE_T == SIZEOF_LLONG + if (!type) + type = 'Q'; /* convert to long long type */ +#else +error sizeof(size_t) is unknown +#endif +#endif +#endif + goto getmode; + + case 't': /* ptrdiff_t */ +#if SIZEOF_PTRDIFF_T == SIZEOF_INT + if (!type) + type = 'I'; /* convert to int type */ +#else +#if SIZEOF_PTRDIFF_T == SIZEOF_LONG_INT + if (!type) + type = 'L'; /* convert to long type */ +#else +#if SIZEOF_PTRDIFF_T == SIZEOF_LLONG + if (!type) + type = 'Q'; /* convert to long long type */ +#else +error sizeof(ptrdiff_t) is unknown +#endif +#endif +#endif /* * XXX Future length modifiers: - * XXX 'z' size_t - * XXX 't' ptrdiff_t * XXX 'L' with double: long double */ @@ -358,7 +405,7 @@ case 'o': case 'O': case 'd': case 'D': case 'i': case 'I': - case 'z': case 'Z': + case 'Z': mode = to_cap(*fmt); havemode: if (!type) @@ -415,7 +462,7 @@ if (fa.signific == 0) fa.signific = 1; dval = va_arg(args, double); - gcvt(dval, fa.signific, buf); + (void) gcvt(dval, fa.signific, buf); count += prbuf(buf, &fa); continue; #else @@ -515,6 +562,7 @@ break; #ifdef USE_LONGLONG case 'J': /* For now Intmax_t is Llong */ + type = 'Q'; /* use 'Q' for processing */ case 'Q': llval = va_arg(args, Llong); val = llval != 0; diff -Nru smake-1.2a41/lib/getargs.c smake-1.2a49/lib/getargs.c --- smake-1.2a41/lib/getargs.c 2007-02-20 22:58:38.000000000 +0000 +++ smake-1.2a49/lib/getargs.c 2009-11-28 21:15:56.000000000 +0000 @@ -1,11 +1,12 @@ -/* @(#)getargs.c 2.48 07/02/20 Copyright 1985, 1988, 1994-2007 J. Schilling */ +/* @(#)getargs.c 2.62 09/11/28 Copyright 1985, 1988, 1994-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)getargs.c 2.48 07/02/20 Copyright 1985, 1988, 1994-2007 J. Schilling"; +static UConst char sccsid[] = + "@(#)getargs.c 2.62 09/11/28 Copyright 1985, 1988, 1994-2009 J. Schilling"; #endif #define NEW /* - * Copyright (c) 1985, 1988, 1994-2007 J. Schilling + * Copyright (c) 1985, 1988, 1994-2009 J. Schilling * * 1.3.88 Start implementation of release 2 */ @@ -63,13 +64,19 @@ #include #include #include -#include +#include -#define NOARGS 0 /* No more args */ +/* + * Various return values + */ +#define RETMAX 2 /* Max. value for getargerror() */ +#define FLAGDELIM 2 /* "--" stopped flag processing */ #define NOTAFLAG 1 /* Not a flag type argument */ +#define NOARGS 0 /* No more args */ #define BADFLAG (-1) /* Not a valid flag argument */ #define BADFMT (-2) /* Error in format string */ #define NOTAFILE (-3) /* Seems to be a flag type arg */ +#define RETMIN (-3) /* Min. value for getargerror() */ LOCAL char *retnames[] = { "NOTAFILE", @@ -77,16 +84,21 @@ "BADFLAG", "NOARGS", "NOTAFLAG", + "FLAGDELIM", }; -#define RNAME(a) (retnames[(a)+3]) +#define RNAME(a) (retnames[(a)-RETMIN]) -#define SCANONLY 0 -#define SETARGS 1 -#define ARGVECTOR 2 +#define SCANONLY 0 /* Do not try to set argument values */ +#define SETARGS 1 /* Set argument values from cmdline */ +#define ARGVECTOR 2 /* Use vector instead of list interface */ +#define NOEQUAL 4 /* -opt=val not allowed for -opt val */ int _getargs __PR((int *, char *const **, void *, - int, va_list)); -LOCAL int dofile __PR((int *, char *const **, const char **)); + int, + struct ga_props *, + va_list)); +LOCAL int dofile __PR((int *, char *const **, const char **, + struct ga_props *)); LOCAL int doflag __PR((int *, char *const **, const char *, void *, int, va_list)); LOCAL int dosflags __PR((const char *, void *, int, va_list)); @@ -99,9 +111,26 @@ #define isfmtspec(c) (strchr(fmtspecs, c) != NULL) +LOCAL struct ga_props props_default = { 0, 0, sizeof (struct ga_props) }; + +EXPORT int +_getarginit(props, size, flags) + struct ga_props *props; + size_t size; + UInt32_t flags; +{ + if (size > sizeof (struct ga_props)) + return (-1); + + props->ga_flags = flags; + props->ga_oflags = 0; + props->ga_size = size; + return (0); +} + /*--------------------------------------------------------------------------- | -| get flags until a non flag type argument is reached +| get flags until a non flag type argument is reached (old version) | +---------------------------------------------------------------------------*/ /* VARARGS3 */ @@ -125,7 +154,40 @@ #else va_start(args); #endif - ret = _getargs(pac, pav, (void *)fmt, SETARGS, args); + ret = _getargs(pac, pav, (void *)fmt, SETARGS, GA_NO_PROPS, args); + va_end(args); + return (ret); +} + + +/*--------------------------------------------------------------------------- +| +| get flags until a non flag type argument is reached (list version) +| ++---------------------------------------------------------------------------*/ +/* VARARGS4 */ +#ifdef PROTOTYPES +EXPORT int +getlargs(int *pac, char *const **pav, struct ga_props *props, const char *fmt, ...) +#else +EXPORT int +getlargs(pac, pav, props, fmt, va_alist) + int *pac; + char **pav[]; + struct ga_props *props; + char *fmt; + va_dcl +#endif +{ + va_list args; + int ret; + +#ifdef PROTOTYPES + va_start(args, fmt); +#else + va_start(args); +#endif + ret = _getargs(pac, pav, (void *)fmt, SETARGS, props, args); va_end(args); return (ret); } @@ -137,19 +199,19 @@ | +---------------------------------------------------------------------------*/ EXPORT int -getvargs(pac, pav, vfmt, dummy) +getvargs(pac, pav, vfmt, props) int *pac; char * const *pav[]; struct ga_flags *vfmt; - void *dummy; + struct ga_props *props; { - return (_getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, va_dummy)); + return (_getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, props, va_dummy)); } /*--------------------------------------------------------------------------- | -| get all flags on the command line, do not stop on files +| get all flags on the command line, do not stop on files (old version) | +---------------------------------------------------------------------------*/ /* VARARGS3 */ @@ -174,7 +236,45 @@ va_start(args); #endif for (; ; (*pac)--, (*pav)++) { - if ((ret = _getargs(pac, pav, (void *)fmt, SETARGS, args)) != NOTAFLAG) + if ((ret = _getargs(pac, pav, (void *)fmt, SETARGS, GA_NO_PROPS, args)) < NOTAFLAG) + break; + } + va_end(args); + return (ret); +} + + +/*--------------------------------------------------------------------------- +| +| get all flags on the command line, do not stop on files (list version) +| ++---------------------------------------------------------------------------*/ +/* VARARGS4 */ +#ifdef PROTOTYPES +EXPORT int +getlallargs(int *pac, char *const **pav, struct ga_props *props, const char *fmt, ...) +#else +EXPORT int +getlallargs(pac, pav, props, fmt, va_alist) + int *pac; + char **pav[]; + struct ga_props *props; + char *fmt; + va_dcl +#endif +{ + va_list args; + int ret; + +#ifdef PROTOTYPES + va_start(args, fmt); +#else + va_start(args); +#endif + for (; ; (*pac)--, (*pav)++) { + if ((ret = _getargs(pac, pav, (void *)fmt, SETARGS, props, args)) < NOTAFLAG) + break; + if (ret == FLAGDELIM && props && (props->ga_flags & GAF_DELIM_DASHDASH)) break; } va_end(args); @@ -188,16 +288,18 @@ | +---------------------------------------------------------------------------*/ EXPORT int -getvallargs(pac, pav, vfmt, dummy) +getvallargs(pac, pav, vfmt, props) int *pac; char * const *pav[]; struct ga_flags *vfmt; - void *dummy; + struct ga_props *props; { int ret; for (; ; (*pac)--, (*pav)++) { - if ((ret = _getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, va_dummy)) != NOTAFLAG) + if ((ret = _getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, props, va_dummy)) < NOTAFLAG) + break; + if (ret == FLAGDELIM && props && (props->ga_flags & GAF_DELIM_DASHDASH)) break; } return (ret); @@ -206,7 +308,8 @@ /*--------------------------------------------------------------------------- | -| get next non flag type argument (i.e. a file) +| get next non flag type argument (i.e. a file) (old version) +| getfiles() is a dry run getargs() | +---------------------------------------------------------------------------*/ EXPORT int @@ -215,23 +318,41 @@ char *const *pav[]; const char *fmt; { - return (_getargs(pac, pav, (void *)fmt, SCANONLY, va_dummy)); + return (_getargs(pac, pav, (void *)fmt, SCANONLY, GA_NO_PROPS, va_dummy)); +} + + +/*--------------------------------------------------------------------------- +| +| get next non flag type argument (i.e. a file) (list version) +| getlfiles() is a dry run getlargs() +| ++---------------------------------------------------------------------------*/ +EXPORT int +getlfiles(pac, pav, props, fmt) + int *pac; + char *const *pav[]; + struct ga_props *props; + const char *fmt; +{ + return (_getargs(pac, pav, (void *)fmt, SCANONLY, props, va_dummy)); } /*--------------------------------------------------------------------------- | | get next non flag type argument (i.e. a file) (vector version) +| getvfiles() is a dry run getvargs() | +---------------------------------------------------------------------------*/ EXPORT int -getvfiles(pac, pav, vfmt, dummy) +getvfiles(pac, pav, vfmt, props) int *pac; char *const *pav[]; struct ga_flags *vfmt; - void *dummy; + struct ga_props *props; { - return (_getargs(pac, pav, vfmt, SCANONLY | ARGVECTOR, va_dummy)); + return (_getargs(pac, pav, vfmt, SCANONLY | ARGVECTOR, props, va_dummy)); } @@ -242,29 +363,36 @@ | non flag type argument is at *pav[0] | | return code: -| NOARGS no more args -| NOTAFLAG not a flag type argument -| BADFLAG a non-matching flag type argument -| BADFMT bad syntax in format string -| +| +2 FLAGDELIM "--" stopped flag processing +| +1 NOTAFLAG not a flag type argument (is a file) +| 0 NOARGS no more args +| -1 BADFLAG a non-matching flag type argument +| -2 BADFMT bad syntax in format string | +---------------------------------------------------------------------------*/ /*LOCAL*/ int -_getargs(pac, pav, vfmt, flags, args) +_getargs(pac, pav, vfmt, flags, props, args) register int *pac; register char *const **pav; void *vfmt; int flags; + struct ga_props *props; va_list args; { const char *argp; int ret; + if (props == GA_NO_PROPS) + props = &props_default; + props->ga_oflags = 0; + if (props->ga_flags & GAF_NO_EQUAL) + flags |= NOEQUAL; + for (; *pac > 0; (*pac)--, (*pav)++) { argp = **pav; - ret = dofile(pac, pav, &argp); + ret = dofile(pac, pav, &argp, props); if (ret != NOTAFILE) return (ret); @@ -284,10 +412,11 @@ | +---------------------------------------------------------------------------*/ LOCAL int -dofile(pac, pav, pargp) +dofile(pac, pav, pargp, props) register int *pac; register char *const **pav; const char **pargp; + struct ga_props *props; { register const char *argp = *pargp; @@ -302,14 +431,15 @@ /* * "--" is a prefix to take the next argument * as non flag type argument - * NOTE: Posix requires "--" to indicate the end of the - * flags on the command line. But we are currently not - * Posix. + * NOTE: POSIX requires "--" to indicate the end of the + * flags on the command line. Programs that like to be + * 100% POSIX compliant call only get[lv]args() once + * and then process the list of files from cav[0]. */ if (argp[1] == '-' && argp[2] == '\0') { if (--(*pac) > 0) { (*pav)++; - return (NOTAFLAG); + return (FLAGDELIM); } else { return (NOARGS); } @@ -317,14 +447,27 @@ } /* - * now check if it may be flag type argument - * flag type arguments begin with a '-', a '+' or contain a '=' + * Now check if it may be flag type argument at all. + * Flag type arguments begin with a '-', a '+' or contain a '=' * i.e. -flag +flag or flag= + * The behavior here may be controlled by props->ga_flags to + * allow getargs() to e.g. behave fully POSIX compliant. */ - if (argp[0] != '-' && argp[0] != '+' && (!checkeql(argp))) - return (NOTAFLAG); + if (argp[0] != '-') { + if (argp[0] == '+' && (props->ga_flags & GAF_NO_PLUS) == 0) + return (NOTAFILE); /* This is a flag type arg */ - return (NOTAFILE); + /* + * If 'flag=value' is not allowed at all, speed things up + * and do not call checkeql() to check for '='. + */ + if (props->ga_flags & GAF_NO_EQUAL) + return (NOTAFLAG); + if (checkeql(argp) && (props->ga_flags & GAF_NEED_DASH) == 0) + return (NOTAFILE); /* This is a flag type arg */ + return (NOTAFLAG); + } + return (NOTAFILE); /* This is a flag type arg */ } @@ -350,7 +493,6 @@ { register const char *fmt = (const char *)vfmt; struct ga_flags *flagp = vfmt; - char argstr[2]; const char *fmtp; long val; Llong llval; @@ -422,7 +564,8 @@ * check if the first flag in format string is a singlechar flag */ again: - if (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0') + if (fmt[0] != '\0' && + (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0')) singlecharflag++; /* * check the whole format string for a match @@ -456,6 +599,8 @@ * skip over to arg of flag */ if (*argp == '=') { + if (flags & NOEQUAL) + return (BADFLAG); argp++; } else if (*argp != '\0' && haseql) { /* @@ -562,23 +707,23 @@ argp = sargp; goto again; } - if (singlecharflag && !doubledash && - (val = dosflags(sargp, vfmt, flags, - oargs)) != BADFLAG) { - return (val); - } - return (BADFLAG); } if (singlecharflag && !doubledash && - (val = dosflags(sargp, vfmt, flags, oargs)) != - BADFLAG) + (val = dosflags(sargp, vfmt, flags & ~SETARGS, + va_dummy)) == BADFLAG) { return (val); - - + } + if (singlecharflag && !doubledash && + (val = dosflags(sargp, vfmt, flags, + oargs)) != BADFLAG) { + return (val); + } return (BADFLAG); case ',': fmt++; + if (fmt[0] == '\0') /* Should we allow "a,b,c,"? */ + return (BADFMT); if (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0') singlecharflag++; if ((flags & (SETARGS|ARGVECTOR)) == SETARGS) @@ -651,8 +796,6 @@ goto nextchance; fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; if (fmt[1] == 'l' || fmt[1] == 'L') { if (fmt[2] == 'l' || fmt[2] == 'L') { if (flags & SETARGS) @@ -698,8 +841,6 @@ goto nextchance; fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; llval = (Llong)val; if (fmt[1] == 'l' || fmt[1] == 'L') { if (fmt[2] == 'l' || fmt[2] == 'L') { @@ -765,8 +906,6 @@ continue; } fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; val = (long)llval; if (fmt[1] == 'l' || fmt[1] == 'L') { if (fmt[2] == 'l' || fmt[2] == 'L') { @@ -1064,7 +1203,7 @@ for (c = (unsigned char)*str; isalnum(c) || c == '_' || c == '-' || c == '+'; - c = *str++) + c = *++str) /* LINTED */ ; return (c == '='); @@ -1074,8 +1213,7 @@ getargerror(err) int err; { - if (err < -3 || err > 1) + if (err < RETMIN || err > RETMAX) return ("Illegal arg error"); return (RNAME(err)); } - diff -Nru smake-1.2a41/lib/getav0.c smake-1.2a49/lib/getav0.c --- smake-1.2a41/lib/getav0.c 2006-10-05 16:56:51.000000000 +0100 +++ smake-1.2a49/lib/getav0.c 2009-07-08 22:56:15.000000000 +0100 @@ -1,12 +1,13 @@ -/* @(#)getav0.c 1.18 06/10/05 Copyright 1985, 1995-2004 J. Schilling */ +/* @(#)getav0.c 1.23 09/07/08 Copyright 1985, 1995-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)getav0.c 1.18 06/10/05 Copyright 1985, 1995-2004 J. Schilling"; +static UConst char sccsid[] = + "@(#)getav0.c 1.23 09/07/08 Copyright 1985, 1995-2009 J. Schilling"; #endif /* * Get arg vector by scanning the stack * - * Copyright (c) 1985, 1995-2004 J. Schilling + * Copyright (c) 1985, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,7 +21,6 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include #include #include #include @@ -67,7 +67,7 @@ return (NULL); while (fp->fr_savfp) { - if (fp->fr_savpc == NULL) + if (fp->fr_savpc == 0) break; if (!is_even(fp->fr_savfp)) { @@ -91,7 +91,7 @@ return (NULL); while (fp->fr_savfp) { - if (fp->fr_savpc == NULL) + if (fp->fr_savpc == 0) break; if (!is_even(fp->fr_savfp)) { @@ -135,6 +135,20 @@ #else +EXPORT char ** +getmainfp() +{ + raisecond("getmainfp", 0); + return ((char **)0); +} + +EXPORT char ** +getavp() +{ + raisecond("getavp", 0); + return ((char **)0); +} + EXPORT char * getav0() { diff -Nru smake-1.2a41/lib/geterrno.c smake-1.2a49/lib/geterrno.c --- smake-1.2a41/lib/geterrno.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/lib/geterrno.c 2009-07-26 19:18:09.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)geterrno.c 1.11 06/09/26 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)geterrno.c 1.12 09/07/26 Copyright 1985, 1995-2003 J. Schilling */ /* * Get error number * @@ -16,6 +16,8 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ +#define _TS_ERRNO /* Solaris: get thread safe errno value */ +#define _LIBC_REENTRANT /* Linux: get thread safe errno value */ #include #include #include diff -Nru smake-1.2a41/lib/getfp.c smake-1.2a49/lib/getfp.c --- smake-1.2a41/lib/getfp.c 2006-10-05 16:56:51.000000000 +0100 +++ smake-1.2a49/lib/getfp.c 2008-06-13 23:32:03.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)getfp.c 1.16 06/10/05 Copyright 1988-2003 J. Schilling */ +/* @(#)getfp.c 1.18 08/06/14 Copyright 1988-2008 J. Schilling */ /* * Get frame pointer * - * Copyright (c) 1988-2003 J. Schilling + * Copyright (c) 1988-2008 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -91,4 +91,13 @@ } #endif +#else /* HAVE_SCANSTACK */ + +EXPORT void ** +getfp() +{ + raisecond("getfp", 0); + return ((void **)0); +} + #endif /* HAVE_SCANSTACK */ diff -Nru smake-1.2a41/lib/jsprintf.c smake-1.2a49/lib/jsprintf.c --- smake-1.2a41/lib/jsprintf.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/lib/jsprintf.c 2009-06-30 19:32:14.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)jsprintf.c 1.16 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)jsprintf.c 1.17 09/06/30 Copyright 1985, 1995-2009 J. Schilling */ /* - * Copyright (c) 1985, 1995-2003 J. Schilling + * Copyright (c) 1985, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -15,7 +15,8 @@ */ #include -#include +#include +#include #include #include #include diff -Nru smake-1.2a41/lib/jssnprintf.c smake-1.2a49/lib/jssnprintf.c --- smake-1.2a41/lib/jssnprintf.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/lib/jssnprintf.c 2009-07-10 20:54:04.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)jssnprintf.c 1.11 06/09/13 Copyright 1985, 1995-2004 J. Schilling */ +/* @(#)jssnprintf.c 1.12 09/07/10 Copyright 1985, 1995-2004 J. Schilling */ /* * Copyright (c) 1985, 1995-2004 J. Schilling */ @@ -16,8 +16,8 @@ #include #include /* include try to get size_t */ -#include /* Try again for size_t */ -#include /* Try again for size_t */ +#include /* Try again for size_t */ +#include /* Try again for size_t */ #include #include #include diff -Nru smake-1.2a41/lib/libschily.mk smake-1.2a49/lib/libschily.mk --- smake-1.2a41/lib/libschily.mk 2003-07-13 11:46:11.000000000 +0100 +++ smake-1.2a49/lib/libschily.mk 2007-07-01 10:38:54.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)libschily.mk 1.3 03/07/13 +#ident @(#)libschily.mk 1.5 07/07/01 ########################################################################### SRCROOT= .. RULESDIR= RULES @@ -10,7 +10,8 @@ INSDIR= lib TARGETLIB= schily CPPOPTS += -Istdio -CPPOPTS += -DUSE_SCANSTACK +CPPOPTS += -DUSE_SCANSTACK # Try to scan stack frames +CPPOPTS += -DPORT_ONLY # Add missing funcs line snprintf for porting include Targets LIBS= diff -Nru smake-1.2a41/lib/libschily_p.mk smake-1.2a49/lib/libschily_p.mk --- smake-1.2a41/lib/libschily_p.mk 2003-07-13 11:46:11.000000000 +0100 +++ smake-1.2a49/lib/libschily_p.mk 2008-01-11 17:21:57.000000000 +0000 @@ -1,4 +1,4 @@ -#ident @(#)libschily_p.mk 1.3 03/07/13 +#ident @(#)libschily_p.mk 1.7 08/01/11 ########################################################################### SRCROOT= .. RULESDIR= RULES @@ -6,12 +6,14 @@ ########################################################################### SUBARCHDIR= /profiled +SUBINSDIR= /profiled .SEARCHLIST: . $(ARCHDIR) stdio $(ARCHDIR) VPATH= .:stdio:$(ARCHDIR) INSDIR= lib -TARGETLIB= schily_p +TARGETLIB= schily CPPOPTS += -Istdio -CPPOPTS += -DUSE_SCANSTACK +CPPOPTS += -DUSE_SCANSTACK # Try to scan stack frames +CPPOPTS += -DPORT_ONLY # Add missing funcs line snprintf for porting COPTS += $(COPTGPROF) include Targets LIBS= diff -Nru smake-1.2a41/lib/movebytes.c smake-1.2a49/lib/movebytes.c --- smake-1.2a41/lib/movebytes.c 2006-09-25 22:41:48.000000000 +0100 +++ smake-1.2a49/lib/movebytes.c 2009-10-17 21:14:16.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)movebytes.c 1.15 06/09/25 Copyright 1985, 1989, 1995-2006 J. Schilling */ +/* @(#)movebytes.c 1.18 09/10/17 Copyright 1985, 1989, 1995-2009 J. Schilling */ /* * move data * - * Copyright (c) 1985, 1989, 1995-2006 J. Schilling + * Copyright (c) 1985, 1989, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,19 +18,23 @@ #include #include +#include #include #define DO8(a) a; a; a; a; a; a; a; a; +/* + * movebytes(from, to, cnt) is the same as memmove(to, from, cnt) + */ EXPORT char * movebytes(fromv, tov, cnt) const void *fromv; void *tov; - int cnt; + ssize_t cnt; { register const char *from = fromv; register char *to = tov; - register int n; + register ssize_t n; /* * If we change cnt to be unsigned, check for == instead of <= @@ -40,14 +44,14 @@ if (from >= to) { /* - * source is on higher adresses than destination: + * source is on higher addresses than destination: * move bytes forwards */ - if (n >= (int)(8 * sizeof (long))) { + if (n >= (ssize_t)(8 * sizeof (long))) { if (l2aligned(from, to)) { register const long *froml = (const long *)from; register long *tol = (long *)to; - register int rem = n % (8 * sizeof (long)); + register ssize_t rem = n % (8 * sizeof (long)); n /= (8 * sizeof (long)); do { @@ -80,17 +84,17 @@ char *ep; /* - * source is on lower adresses than destination: + * source is on lower addresses than destination: * move bytes backwards */ to += n; from += n; ep = to; - if (n >= (int)(8 * sizeof (long))) { + if (n >= (ssize_t)(8 * sizeof (long))) { if (l2aligned(from, to)) { register const long *froml = (const long *)from; register long *tol = (long *)to; - register int rem = n % (8 * sizeof (long)); + register ssize_t rem = n % (8 * sizeof (long)); n /= (8 * sizeof (long)); do { diff -Nru smake-1.2a41/lib/raisecond.c smake-1.2a49/lib/raisecond.c --- smake-1.2a41/lib/raisecond.c 2007-02-07 13:59:01.000000000 +0000 +++ smake-1.2a49/lib/raisecond.c 2009-07-10 20:54:04.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)raisecond.c 1.21 07/02/07 Copyright 1985, 1989, 1995-2004 J. Schilling */ +/* @(#)raisecond.c 1.22 09/07/10 Copyright 1985, 1989, 1995-2004 J. Schilling */ /* * raise a condition (software signal) */ @@ -22,7 +22,7 @@ * Copyright (c) 1985, 1989, 1995-2004 J. Schilling */ #include -#include +#include #include #include #include diff -Nru smake-1.2a41/lib/rename.c smake-1.2a49/lib/rename.c --- smake-1.2a41/lib/rename.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/lib/rename.c 2009-07-08 22:56:15.000000000 +0100 @@ -1,12 +1,13 @@ -/* @(#)rename.c 1.8 06/09/26 Copyright 1998-2003 J. Schilling */ +/* @(#)rename.c 1.10 09/07/08 Copyright 1998-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)rename.c 1.8 06/09/26 Copyright 1998-2003 J. Schilling"; +static UConst char sccsid[] = + "@(#)rename.c 1.10 09/07/08 Copyright 1998-2009 J. Schilling"; #endif /* * rename() for old systems that don't have it. * - * Copyright (c) 1998-2003 J. Schilling + * Copyright (c) 1998-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -25,7 +26,7 @@ #ifndef HAVE_RENAME -#include /* XXX not OK but needed for js_xx() in schily/schily.h */ +#include /* XXX not OK but needed for js_xx() in schily/schily.h */ #include #include #include diff -Nru smake-1.2a41/lib/seterrno.c smake-1.2a49/lib/seterrno.c --- smake-1.2a41/lib/seterrno.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/lib/seterrno.c 2009-07-26 19:18:09.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)seterrno.c 1.10 06/09/26 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)seterrno.c 1.11 09/07/26 Copyright 1985, 1995-2003 J. Schilling */ /* * Set error number * @@ -16,6 +16,8 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ +#define _TS_ERRNO /* Solaris: get thread safe errno value */ +#define _LIBC_REENTRANT /* Linux: get thread safe errno value */ #include #include #include diff -Nru smake-1.2a41/lib/shlschily.mk smake-1.2a49/lib/shlschily.mk --- smake-1.2a41/lib/shlschily.mk 2005-06-12 23:54:50.000000000 +0100 +++ smake-1.2a49/lib/shlschily.mk 2007-07-01 10:38:54.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)shlschily.mk 1.5 05/06/13 +#ident @(#)shlschily.mk 1.7 07/07/01 ########################################################################### SRCROOT= .. RULESDIR= RULES @@ -11,7 +11,8 @@ INSDIR= lib TARGETLIB= schily CPPOPTS += -Istdio -CPPOPTS += -DUSE_SCANSTACK +CPPOPTS += -DUSE_SCANSTACK # Try to scan stack frames +CPPOPTS += -DPORT_ONLY # Add missing funcs line snprintf for porting include Targets LIBS= -lc diff -Nru smake-1.2a41/lib/stdio/fcons.c smake-1.2a49/lib/stdio/fcons.c --- smake-1.2a41/lib/stdio/fcons.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/lib/stdio/fcons.c 2007-04-03 17:38:03.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)fcons.c 2.17 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ +/* @(#)fcons.c 2.18 07/04/03 Copyright 1986, 1995-2007 J. Schilling */ /* - * Copyright (c) 1986, 1995-2003 J. Schilling + * Copyright (c) 1986, 1995-2007 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -67,7 +67,7 @@ } if (flag & FI_UNBUF) { setbuf(fd, NULL); - my_gflag |= _IOUNBUF; + my_gflag |= _JS_IOUNBUF; } set_my_flag(fd, my_gflag); /* must clear it if fd is reused */ return (fd); diff -Nru smake-1.2a41/lib/stdio/fileread.c smake-1.2a49/lib/stdio/fileread.c --- smake-1.2a41/lib/stdio/fileread.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/lib/stdio/fileread.c 2009-06-30 20:38:31.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)fileread.c 1.14 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ +/* @(#)fileread.c 1.16 09/06/30 Copyright 1986, 1995-2009 J. Schilling */ /* - * Copyright (c) 1986, 1995-2003 J. Schilling + * Copyright (c) 1986, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,13 +20,13 @@ #ifdef HAVE_USG_STDIO -EXPORT int +EXPORT ssize_t fileread(f, buf, len) register FILE *f; void *buf; - int len; + size_t len; { - int cnt; + ssize_t cnt; register int n; down2(f, _IOREAD, _IORW); @@ -35,7 +35,7 @@ cnt = _niread(fileno(f), buf, len); if (cnt < 0) { f->_flag |= _IOERR; - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_readerr, 0L); } if (cnt == 0 && len) @@ -59,30 +59,30 @@ } if (!ferror(f)) return (cnt); - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_readerr, 0L); return (-1); } #else -EXPORT int +EXPORT ssize_t fileread(f, buf, len) register FILE *f; void *buf; - int len; + size_t len; { - int cnt; + ssize_t cnt; down2(f, _IOREAD, _IORW); - if (my_flag(f) & _IOUNBUF) + if (my_flag(f) & _JS_IOUNBUF) return (_niread(fileno(f), buf, len)); cnt = fread(buf, 1, len, f); if (!ferror(f)) return (cnt); - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_readerr, 0L); return (-1); } diff -Nru smake-1.2a41/lib/stdio/fileseek.c smake-1.2a49/lib/stdio/fileseek.c --- smake-1.2a41/lib/stdio/fileseek.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/lib/stdio/fileseek.c 2007-04-03 17:38:04.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)fileseek.c 1.12 04/08/08 Copyright 1986, 1996-2003 J. Schilling */ +/* @(#)fileseek.c 1.13 07/04/03 Copyright 1986, 1996-2007 J. Schilling */ /* - * Copyright (c) 1986, 1996-2003 J. Schilling + * Copyright (c) 1986, 1996-2007 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -32,7 +32,7 @@ down(f); ret = fseek(f, pos, SEEK_SET); - if (ret < 0 && !(my_flag(f) & _IONORAISE)) + if (ret < 0 && !(my_flag(f) & _JS_IONORAISE)) raisecond(_seekerr, 0L); return (ret); } diff -Nru smake-1.2a41/lib/stdio/filewrite.c smake-1.2a49/lib/stdio/filewrite.c --- smake-1.2a41/lib/stdio/filewrite.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/lib/stdio/filewrite.c 2009-06-30 20:41:23.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)filewrite.c 1.14 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ +/* @(#)filewrite.c 1.17 09/06/30 Copyright 1986, 1995-2009 J. Schilling */ /* - * Copyright (c) 1986, 1995-2003 J. Schilling + * Copyright (c) 1986, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,23 +20,23 @@ #ifdef HAVE_USG_STDIO -EXPORT int +EXPORT ssize_t filewrite(f, vbuf, len) register FILE *f; void *vbuf; - int len; + size_t len; { register int n; - int cnt; - char *buf = vbuf; + ssize_t cnt; + char *buf = vbuf; down2(f, _IOWRT, _IORW); if (f->_flag & _IONBF) { - cnt = write(fileno(f), buf, len); + cnt = _niwrite(fileno(f), buf, len); if (cnt < 0) { f->_flag |= _IOERR; - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_writeerr, 0L); } return (cnt); @@ -60,31 +60,31 @@ } if (!ferror(f)) return (cnt); - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_writeerr, 0L); return (-1); } #else -EXPORT int +EXPORT ssize_t filewrite(f, vbuf, len) register FILE *f; void *vbuf; - int len; + size_t len; { - int cnt; - char *buf = vbuf; + ssize_t cnt; + char *buf = vbuf; down2(f, _IOWRT, _IORW); - if (my_flag(f) & _IOUNBUF) - return (write(fileno(f), buf, len)); + if (my_flag(f) & _JS_IOUNBUF) + return (_niwrite(fileno(f), buf, len)); cnt = fwrite(buf, 1, len, f); if (!ferror(f)) return (cnt); - if (!(my_flag(f) & _IONORAISE)) + if (!(my_flag(f) & _JS_IONORAISE)) raisecond(_writeerr, 0L); return (-1); } diff -Nru smake-1.2a41/lib/stdio/flag.c smake-1.2a49/lib/stdio/flag.c --- smake-1.2a41/lib/stdio/flag.c 2007-02-07 13:58:43.000000000 +0000 +++ smake-1.2a49/lib/stdio/flag.c 2007-04-03 17:38:04.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)flag.c 2.12 07/02/07 Copyright 1986-2003 J. Schilling */ +/* @(#)flag.c 2.13 07/04/03 Copyright 1986-2007 J. Schilling */ /* - * Copyright (c) 1986-2003 J. Schilling + * Copyright (c) 1986-2007 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -62,7 +62,7 @@ _fl_max = n; return (_io_get_my_flag(fp)); } else { - return (_IONORAISE); + return (_JS_IONORAISE); } } diff -Nru smake-1.2a41/lib/stdio/niread.c smake-1.2a49/lib/stdio/niread.c --- smake-1.2a41/lib/stdio/niread.c 2006-09-26 12:16:36.000000000 +0100 +++ smake-1.2a49/lib/stdio/niread.c 2009-06-30 20:38:31.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)niread.c 1.13 06/09/26 Copyright 1986, 1996-2003 J. Schilling */ +/* @(#)niread.c 1.14 09/06/30 Copyright 1986, 1996-2009 J. Schilling */ /* * Non interruptable read * - * Copyright (c) 1986, 1996-2003 J. Schilling + * Copyright (c) 1986, 1996-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,15 +18,19 @@ #include "schilyio.h" -EXPORT int +EXPORT ssize_t _niread(f, buf, count) int f; void *buf; - int count; + size_t count; { - int ret; + ssize_t ret; int oerrno = geterrno(); + if ((ret = (ssize_t)count) < 0) { + seterrno(EINVAL); + return ((ssize_t)-1); + } while ((ret = read(f, buf, count)) < 0 && geterrno() == EINTR) { /* * Set back old 'errno' so we don't change the errno visible diff -Nru smake-1.2a41/lib/stdio/niwrite.c smake-1.2a49/lib/stdio/niwrite.c --- smake-1.2a41/lib/stdio/niwrite.c 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/lib/stdio/niwrite.c 2009-06-30 20:38:31.000000000 +0100 @@ -0,0 +1,42 @@ +/* @(#)niwrite.c 1.7 09/06/30 Copyright 1986, 2001-2009 J. Schilling */ +/* + * Non interruptable write + * + * Copyright (c) 1986, 2001-2009 J. Schilling + */ +/* + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * See the file CDDL.Schily.txt in this distribution for details. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file CDDL.Schily.txt from this distribution. + */ + +#include "schilyio.h" + +EXPORT ssize_t +_niwrite(f, buf, count) + int f; + void *buf; + size_t count; +{ + ssize_t ret; + int oerrno = geterrno(); + + if ((ret = (ssize_t)count) < 0) { + seterrno(EINVAL); + return ((ssize_t)-1); + } + while ((ret = write(f, buf, count)) < 0 && geterrno() == EINTR) { + /* + * Set back old 'errno' so we don't change the errno visible + * to the outside if we did not fail. + */ + seterrno(oerrno); + } + return (ret); +} diff -Nru smake-1.2a41/lib/stdio/schilyio.h smake-1.2a49/lib/stdio/schilyio.h --- smake-1.2a41/lib/stdio/schilyio.h 2006-11-28 16:46:05.000000000 +0000 +++ smake-1.2a49/lib/stdio/schilyio.h 2009-06-30 20:37:32.000000000 +0100 @@ -1,6 +1,6 @@ -/* @(#)schilyio.h 2.25 06/11/28 Copyright 1986, 1995-2003 J. Schilling */ +/* @(#)schilyio.h 2.27 09/06/30 Copyright 1986, 1995-2009 J. Schilling */ /* - * Copyright (c) 1986, 1995-2003 J. Schilling + * Copyright (c) 1986, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,8 +18,9 @@ #define _STDIO_SCHILYIO_H #include -#include +#include #include +#include #include #include #include @@ -91,10 +92,12 @@ #define FI_CLOSE 0x1000 /* close file on error */ /* - * local flags + * Additional Schily FILE * flags that are not present with the + * standard stdio implementation. */ -#define _IONORAISE 01 /* do no raisecond() on errors */ -#define _IOUNBUF 02 /* do unbuffered i/o */ +#define _JS_IONORAISE 01 /* do no raisecond() on errors */ +#define _JS_IOUNBUF 02 /* do unbuffered i/o */ + #ifdef DO_MYFLAG @@ -142,7 +145,7 @@ #else /* DO_MYFLAG */ -#define my_flag(p) _IONORAISE /* Always noraise */ +#define my_flag(p) _JS_IONORAISE /* Always noraise */ #define set_my_flag(p, v) /* Ignore */ #define add_my_flag(p, v) /* Ignore */ diff -Nru smake-1.2a41/lib/streql.c smake-1.2a49/lib/streql.c --- smake-1.2a41/lib/streql.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/lib/streql.c 2009-06-07 14:41:57.000000000 +0100 @@ -1,8 +1,8 @@ -/* @(#)streql.c 1.8 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ +/* @(#)streql.c 1.10 09/06/07 Copyright 1985, 1995-2009 J. Schilling */ /* * Check if two strings are equal * - * Copyright (c) 1985, 1995-2003 J. Schilling + * Copyright (c) 1985, 1995-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -30,6 +30,9 @@ if (s1 == NULL || s2 == NULL) return (FALSE); + if (s1 == s2) + return (TRUE); + while (*s1 == *s2++) if (*s1++ == '\0') return (TRUE); diff -Nru smake-1.2a41/lib/strlcpy.c smake-1.2a49/lib/strlcpy.c --- smake-1.2a41/lib/strlcpy.c 2006-10-12 14:05:29.000000000 +0100 +++ smake-1.2a49/lib/strlcpy.c 2009-07-08 22:56:15.000000000 +0100 @@ -1,12 +1,13 @@ -/* @(#)strlcpy.c 1.2 06/09/13 Copyright 2006 J. Schilling */ +/* @(#)strlcpy.c 1.4 09/07/08 Copyright 2006-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)strlcpy.c 1.2 06/09/13 Copyright 2006 J. Schilling"; +static UConst char sccsid[] = + "@(#)strlcpy.c 1.4 09/07/08 Copyright 2006-2009 J. Schilling"; #endif /* - * strlcpy() to be used if missing on libc + * strlcpy() to be used if missing in libc * - * Copyright (c) 2006 J. Schilling + * Copyright (c) 2006-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,7 +21,6 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include #include #include #include diff -Nru smake-1.2a41/lib/strncpy.c smake-1.2a49/lib/strncpy.c --- smake-1.2a41/lib/strncpy.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/lib/strncpy.c 2009-07-08 22:56:15.000000000 +0100 @@ -1,12 +1,13 @@ -/* @(#)strncpy.c 1.2 06/09/13 Copyright 2006 J. Schilling */ +/* @(#)strncpy.c 1.4 09/07/08 Copyright 2006-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)strncpy.c 1.2 06/09/13 Copyright 2006 J. Schilling"; +static UConst char sccsid[] = + "@(#)strncpy.c 1.4 09/07/08 Copyright 2006-2009 J. Schilling"; #endif /* - * strncpy() to be used if missing on libc + * strncpy() to be used if missing in libc * - * Copyright (c) 2006 J. Schilling + * Copyright (c) 2006-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,7 +21,6 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include #include #include #include diff -Nru smake-1.2a41/lib/strtod.c smake-1.2a49/lib/strtod.c --- smake-1.2a41/lib/strtod.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/lib/strtod.c 2009-08-27 11:17:23.000000000 +0100 @@ -1,4 +1,4 @@ -/* @(#)strtod.c 1.3 06/09/26 joerg */ +/* @(#)strtod.c 1.4 09/08/27 joerg */ /* $NetBSD: strtod.c,v 1.23 1996/10/13 00:07:55 christos Exp $ */ @@ -146,7 +146,7 @@ #define ULong UInt32_t #ifdef DEBUG -#include "stdio.h" +#include #define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);} #endif @@ -174,7 +174,7 @@ #define MALLOC malloc #endif -#include "ctype.h" +#include #include #ifdef Bad_float_h @@ -216,12 +216,13 @@ #ifndef LONG_MAX #define LONG_MAX 2147483647 #endif -#else -#include "float.h" -#endif -#ifndef __MATH_H__ -#include "math.h" -#endif + +#else /* Bad_float_h */ +#include +#endif /* Bad_float_h */ +/*#ifndef __MATH_H__*/ +#include +/*#endif*/ #ifdef __cplusplus extern "C" { diff -Nru smake-1.2a41/lib/Targets smake-1.2a49/lib/Targets --- smake-1.2a41/lib/Targets 2007-02-13 16:07:24.000000000 +0000 +++ smake-1.2a49/lib/Targets 2009-07-19 13:40:22.000000000 +0100 @@ -4,6 +4,7 @@ fileread.c fileseek.c \ filewrite.c flag.c \ niread.c \ + niwrite.c \ fcons64.c fileopen64.c fileseek64.c # diff -Nru smake-1.2a41/man/man4/makefiles.4 smake-1.2a49/man/man4/makefiles.4 --- smake-1.2a41/man/man4/makefiles.4 2001-04-29 12:28:20.000000000 +0100 +++ smake-1.2a49/man/man4/makefiles.4 2009-04-10 23:08:53.000000000 +0100 @@ -1,4 +1,4 @@ -. \" @(#)makefiles.4 1.6 01/04/29 Copyr 1996 J. Schilling +. \" @(#)makefiles.4 1.7 09/04/11 Copyr 1996 J. Schilling . \" User Manual page for makefile system . \" .if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a @@ -836,7 +836,7 @@ .B smake only. It contains operating system specific defines for the compiler -(e.g. -D__SVR4). +(e.g. \-D__SVR4). .br Do not change this macro. . diff -Nru smake-1.2a41/MKLINKS smake-1.2a49/MKLINKS --- smake-1.2a41/MKLINKS 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/MKLINKS 2008-07-31 20:31:39.000000000 +0100 @@ -0,0 +1,39 @@ +#!/bin/sh +########################################################################### +#ident "@(#)MKLINKS 1.1 08/07/31 " +########################################################################### +# Written 2008 by J. Schilling +########################################################################### +# Copyright (c) 2008 J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +if [ ! -d RULES/. ]; then + ln -s makefiles/RULES . +fi +if [ ! -d DEFAULTS_DIST/. ]; then + ln -s makefiles/DEFAULTS DEFAULTS_DIST +fi +if [ ! -d autoconf/. ]; then + ln -s conf autoconf +fi +if [ ! -d libedc/. ]; then + ln -s libedc_ecc libedc +fi +if [ ! -d libschily/. ]; then + ln -s lib libschily +fi +if [ ! -d readcd/. ]; then + ln -s cdrecord readcd +fi +if [ ! -d smake/. ]; then + ln -s build smake +fi diff -Nru smake-1.2a41/PORTING smake-1.2a49/PORTING --- smake-1.2a41/PORTING 2002-12-16 20:23:38.000000000 +0000 +++ smake-1.2a49/PORTING 2008-10-12 19:27:52.000000000 +0100 @@ -133,7 +133,7 @@ Joerg Schilling -schilling@fokus.fhg.de +joerg.schilling@fokus.fraunhofer.de joerg@schily.isdn.cs.tu-berlin.de js@cs.tu-berlin.de diff -Nru smake-1.2a41/psmake/archconf.c smake-1.2a49/psmake/archconf.c --- smake-1.2a41/psmake/archconf.c 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/psmake/archconf.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,505 +0,0 @@ -/* @(#)archconf.c 1.17 07/03/07 Copyright 1996-2007 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)archconf.c 1.17 07/03/07 Copyright 1996-2007 J. Schilling"; -#endif -/* - * Make program - * Architecture autoconfiguration support - * - * Copyright (c) 1996-2007 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include -#include "make.h" - -#ifdef NO_SYSINFO -# ifdef HAVE_SYS_SYSTEMINFO_H -# undef HAVE_SYS_SYSTEMINFO_H -# endif -#endif - -EXPORT void setup_arch __PR((void)); -LOCAL BOOL do_uname __PR((void)); -LOCAL BOOL do_sysinfo __PR((void)); -LOCAL BOOL do_sysctl __PR((void)); -LOCAL void do_gethostname __PR((void)); -LOCAL void do_defs __PR((void)); -LOCAL void do_archheuristics __PR((void)); -LOCAL void archcvt __PR((char *)); -#if defined(HAVE_SYS_SYSTEMINFO_H) || defined(HAVE_SYS_SYSCTL_H) -LOCAL void unblank __PR((char *)); -#endif - -/* - * External interface to archconf.c. The code tries its best to get the - * architecture definitions by calling sysinfo(), uname() or by heuristic. - */ -EXPORT void -setup_arch() -{ - if (!do_sysinfo() && /* Call sysinfo(2): preferred */ - !do_uname()) { /* Call uname(2): still OK */ - /* - * If nothing else helps, at least try to set up $(MAKE_HOST) - * and some other macros that may be retrieved from - * CPP definitions. - */ - do_gethostname(); /* Try to get host name */ - do_defs(); /* Evaluate CPP definitions */ - } - do_sysctl(); - - do_archheuristics(); -} - -#ifdef HAVE_UNAME /* NeXT Step has sys/utsname but not uname() */ -#include - -/* - * This is the interface to the syscall uname(2). - * Note that the system call is done directly and not by calling the uname - * shell command. If your system returns wrong information with the uname(2) - * call, you need to fix it here. - */ -LOCAL BOOL -do_uname() -{ - struct utsname un; - - if (uname(&un) < 0) { - errmsg("Cannot get host arch (uname).\n"); - return (FALSE); - } -#ifdef __comment__ - printf("sysname: %s nodename: %s release: %s version: %s machine: %s\n", - un.sysname, - un.nodename, - un.release, - un.version, - un.machine); -#endif - archcvt(un.sysname); - archcvt(un.release); - archcvt(un.version); - archcvt(un.machine); - - define_var("MAKE_OS", un.sysname); - define_var("MAKE_HOST", un.nodename); - define_var("MAKE_OSREL", un.release); - define_var("MAKE_OSVERSION", un.version); - define_var("MAKE_MACH", un.machine); - - return (TRUE); -} -#else - -/* - * Dummy for platforms that don't implement uname(2). - */ -LOCAL BOOL -do_uname() -{ - return (FALSE); -} -#endif - -#ifdef HAVE_SYS_SYSTEMINFO_H -#include - -/* - * sysinfo(2) is the preferred way to request architecture information. - * Unfortunately, it is only present on SVr4 compliant systems. - */ -LOCAL BOOL -do_sysinfo() -{ - char nbuf[NAMEMAX]; - BOOL ret = TRUE; - -#ifdef SI_SYSNAME - if (sysinfo(SI_SYSNAME, nbuf, sizeof (nbuf)) < 0) { - ret = FALSE; - } else { - archcvt(nbuf); - define_var("MAKE_OS", nbuf); - } -#else - ret = FALSE; -#endif - -#ifdef SI_HOSTNAME - if (sysinfo(SI_HOSTNAME, nbuf, sizeof (nbuf)) < 0) { - ret = FALSE; - } else { - define_var("MAKE_HOST", nbuf); - } -#else - ret = FALSE; -#endif - -#ifdef SI_RELEASE - if (sysinfo(SI_RELEASE, nbuf, sizeof (nbuf)) < 0) { - ret = FALSE; - } else { - archcvt(nbuf); - define_var("MAKE_OSREL", nbuf); - } -#else - ret = FALSE; -#endif - -#ifdef SI_VERSION - if (sysinfo(SI_VERSION, nbuf, sizeof (nbuf)) < 0) { - ret = FALSE; - } else { - archcvt(nbuf); - define_var("MAKE_OSVERSION", nbuf); - } -#else - ret = FALSE; -#endif - -#ifdef SI_MACHINE - if (sysinfo(SI_MACHINE, nbuf, sizeof (nbuf)) < 0) { - ret = FALSE; - } else { - archcvt(nbuf); - define_var("MAKE_MACH", nbuf); - } -#else - ret = FALSE; -#endif - -#ifdef SI_ARCHITECTURE - if (sysinfo(SI_ARCHITECTURE, nbuf, sizeof (nbuf)) >= 0) { - archcvt(nbuf); - define_var("MAKE_ARCH", nbuf); - } -#endif - -#ifdef SI_PLATFORM - if (sysinfo(SI_PLATFORM, nbuf, sizeof (nbuf)) >= 0) { - unblank(nbuf); - define_var("MAKE_MODEL", nbuf); - } -#endif - -#ifdef SI_HW_PROVIDER - if (sysinfo(SI_HW_PROVIDER, nbuf, sizeof (nbuf)) >= 0) { - unblank(nbuf); -/* archcvt(nbuf);*/ - define_var("MAKE_BRAND", nbuf); - } -#endif - -#ifdef SI_HW_PROVIDER - if (sysinfo(SI_HW_SERIAL, nbuf, sizeof (nbuf)) >= 0) { -/* archcvt(nbuf);*/ - define_var("MAKE_HWSERIAL", nbuf); - } -#endif - -#ifdef SI_SRPC_DOMAIN - if (sysinfo(SI_SRPC_DOMAIN, nbuf, sizeof (nbuf)) >= 0) { - define_var("MAKE_DOMAIN", nbuf); - } -#endif - -#ifdef SI_ISALIST - if (sysinfo(SI_ISALIST, nbuf, sizeof (nbuf)) >= 0) { - define_var("MAKE_ISALIST", nbuf); - } -#endif - - return (ret); -} -#else - -/* - * Dummy for platforms that don't implement sysinfo(2). - */ -LOCAL BOOL -do_sysinfo() -{ - return (FALSE); -} -#endif - -#ifdef HAVE_SYS_SYSCTL_H -#include -#include -#include - -#ifdef HAVE_MACH_MACHINE_H -#include -#endif -#ifdef IS_MACOS_X -#include -#endif - -LOCAL BOOL -do_sysctl() -{ - obj_t *o; - char nbuf[NAMEMAX]; - size_t len; - int mib[2]; - -#if defined(HW_MODEL) - o = objlook("MAKE_MODEL", FALSE); - if (o == NULL) { - mib[0] = CTL_HW; - mib[1] = HW_MODEL; - len = sizeof (nbuf); - if (sysctl(mib, 2, nbuf, &len, 0, 0) >= 0) { - unblank(nbuf); - define_var("MAKE_MODEL", nbuf); - } - } -#endif - -#if defined(HW_MACHINE_ARCH) - o = objlook("MAKE_ARCH", FALSE); - if (o == NULL) { - mib[0] = CTL_HW; - mib[1] = HW_MACHINE_ARCH; - len = sizeof (nbuf); - if (sysctl(mib, 2, nbuf, &len, 0, 0) >= 0) { - archcvt(nbuf); - define_var("MAKE_ARCH", nbuf); - } -#ifdef IS_MACOS_X - /* - * Mac OS X fails with HW_MACHINE_ARCH - */ - else { - char *name = NULL; - cpu_type_t cputype = 0; - NXArchInfo const *ai; - - len = sizeof (cputype); - if (sysctlbyname("hw.cputype", &cputype, &len, - NULL, 0) == 0 && - (ai = NXGetArchInfoFromCpuType(cputype, - CPU_SUBTYPE_MULTIPLE)) != NULL) { - strlcpy(nbuf, (char *)ai->name, sizeof (nbuf)); - archcvt(nbuf); - name = nbuf; - } - if (cputype == CPU_TYPE_POWERPC && - name != NULL && strncmp(name, "ppc", 3) == 0) { - name = "powerpc"; - } - if (name != NULL) - define_var("MAKE_ARCH", name); - } -#endif - } -#endif - return (TRUE); -} -#else -/* - * Dummy for platforms that don't implement sysctl(). - */ -LOCAL BOOL -do_sysctl() -{ - return (FALSE); -} -#endif - -#ifdef HAVE_GETHOSTNAME - -/* - * Don't care for systems that implement a similar functionality in - * sysinfo(2) or uname(2). This function is only called if - * sysinfo(2) or uname(2) do not exists. - */ -LOCAL void -do_gethostname() -{ - char nbuf[NAMEMAX]; - - if (gethostname(nbuf, sizeof (nbuf)) < 0) - return; - - define_var("MAKE_HOST", nbuf); -} -#else - -/* - * Dummy for platforms that don't implement gethostname(2). - */ -LOCAL void -do_gethostname() -{ -} -#endif - -/* - * Try to retrieve some information from CPP definitions. - */ -LOCAL void -do_defs() -{ -#ifdef IS_MSDOS - define_var("MAKE_OS", "msdos"); -#define FOUND_OS -#endif -#ifdef IS_TOS - define_var("MAKE_OS", "tos"); -#define FOUND_OS -#endif -#ifdef IS_MAC - define_var("MAKE_OS", "macos"); -#define FOUND_OS -#endif -#ifdef __NeXT__ - define_var("MAKE_OS", "nextstep"); -#define FOUND_OS - define_var("MAKE_OSREL", "3.0"); - define_var("MAKE_OSVERSION", "1"); -#ifdef __ARCHITECTURE__ - define_var("MAKE_MACH", __ARCHITECTURE__); -#define FOUND_MACH -#endif -#endif /* __NeXT__ */ - -/* - * We need MAKE_OS to allow compilation with the Schily Makefile System - */ -#if !defined(FOUND_OS) - define_var("MAKE_OS", "unknown"); -#define FOUND_OS -#endif - -#if !defined(FOUND_MACH) && defined(__mc68010) - define_var("MAKE_MACH", "mc68010"); -#define FOUND_MACH -#endif -#if !defined(FOUND_MACH) && defined(__mc68000) - define_var("MAKE_MACH", "mc68000"); -#define FOUND_MACH -#endif -#if !defined(FOUND_MACH) && defined(__i386) - define_var("MAKE_MACH", "i386"); -#define FOUND_MACH -#endif -#if !defined(FOUND_MACH) && defined(__sparc) - define_var("MAKE_MACH", "sparc"); -#define FOUND_MACH -#endif -} - -/* - * Do some additional heuristic for systems that are already known - * but may need some more macro definitions for completion. - */ -LOCAL void -do_archheuristics() -{ - list_t *l; - char *name; - - /* - * Try to define global processor architecture - */ - l = objlist("MAKE_ARCH"); - if (l == NULL) { - l = objlist("MAKE_MACH"); - if (l != NULL) { - name = l->l_obj->o_name; - if (strstr(name, "sun3")) - define_var("MAKE_ARCH", "mc68020"); - if (strstr(name, "sun4")) - define_var("MAKE_ARCH", "sparc"); - if (strstr(name, "i86pc")) - define_var("MAKE_ARCH", "i386"); - } - } - - /* - * Try to define global machine architecture - */ - l = objlist("MAKE_MACH"); - if (l != NULL) { - name = l->l_obj->o_name; - - if (strstr(name, "sun3")) - define_var("MAKE_M_ARCH", "sun3"); - if (strstr(name, "sun4")) - define_var("MAKE_M_ARCH", "sun4"); - if (strstr(name, "i86pc")) - define_var("MAKE_M_ARCH", "i86pc"); - } - - l = objlist("MAKE_OS"); - if (l != NULL && -/* streql(l->l_obj->o_name, "SunOS")) {*/ - streql(l->l_obj->o_name, "sunos")) { - l = objlist("MAKE_OSREL"); - if (l != NULL && l->l_obj->o_name[0] >= '5') -/* define_lvar("MAKE_OSDEFS", "-D__SOL2 -D__SVR4");*/ - define_var("MAKE_OSDEFS", "-D__SVR4"); - } -} - -/* - * Alle Namen in Kleinbuchstaben wandeln, - * '/' in '-' wandeln. - * '\\' in '-' wandeln. - * ' ' in '-' wandeln. - */ -#include - -LOCAL void -archcvt(p) - register char *p; -{ - register Uchar c; - - while ((c = (Uchar)*p) != '\0') { - if (c == '/') - *p = '-'; - if (c == '\\') - *p = '-'; - if (c == ' ') - *p = '-'; - if (isupper(c)) - *p = tolower(c); - p++; - } -} - -#if defined(HAVE_SYS_SYSTEMINFO_H) || defined(HAVE_SYS_SYSCTL_H) -LOCAL void -unblank(p) - register char *p; -{ - register char c; - - while ((c = *p) != '\0') { - if (c == ' ') - *p = '-'; - p++; - } -} -#endif diff -Nru smake-1.2a41/psmake/astoi.c smake-1.2a49/psmake/astoi.c --- smake-1.2a41/psmake/astoi.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/astoi.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,136 +0,0 @@ -/* @(#)astoi.c 1.9 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ -/* - * astoi() converts a string to int - * astol() converts a string to long - * - * Leading tabs and spaces are ignored. - * Both return pointer to the first char that has not been used. - * Caller must check if this means a bad conversion. - * - * leading "+" is ignored - * leading "0" makes conversion octal (base 8) - * leading "0x" makes conversion hex (base 16) - * - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include - -#define is_space(c) ((c) == ' ' || (c) == '\t') -#define is_digit(c) ((c) >= '0' && (c) <= '9') -#define is_hex(c) (\ - ((c) >= 'a' && (c) <= 'f') || \ - ((c) >= 'A' && (c) <= 'F')) - -#define to_lower(c) (((c) >= 'A' && (c) <= 'Z') ? (c) - 'A'+'a' : (c)) - -#ifdef notdef -EXPORT int -atoi(s) - char *s; -{ - long l; - - (void) astol(s, &l); - return ((int) l); -} - -EXPORT long -atol(s) - char *s; -{ - long l; - - (void) astol(s, &l); - return (l); -} -#endif - -EXPORT char * -astoi(s, i) - const char *s; - int *i; -{ - long l; - char *ret; - - ret = astol(s, &l); - *i = l; - return (ret); -} - -EXPORT char * -astol(s, l) - register const char *s; - long *l; -{ - return (astolb(s, l, 0)); -} - -EXPORT char * -astolb(s, l, base) - register const char *s; - long *l; - register int base; -{ - int neg = 0; - register long ret = 0L; - register int digit; - register char c; - - while (is_space(*s)) - s++; - - if (*s == '+') { - s++; - } else if (*s == '-') { - s++; - neg++; - } - - if (base == 0) { - if (*s == '0') { - base = 8; - s++; - if (*s == 'x' || *s == 'X') { - s++; - base = 16; - } - } else { - base = 10; - } - } - for (; (c = *s) != 0; s++) { - - if (is_digit(c)) { - digit = c - '0'; - } else if (is_hex(c)) { - digit = to_lower(c) - 'a' + 10; - } else { - break; - } - - if (digit < base) { - ret *= base; - ret += digit; - } else { - break; - } - } - if (neg) - ret = -ret; - *l = ret; - return ((char *)s); -} diff -Nru smake-1.2a41/psmake/astoll.c smake-1.2a49/psmake/astoll.c --- smake-1.2a41/psmake/astoll.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/astoll.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,105 +0,0 @@ -/* @(#)astoll.c 1.4 06/09/13 Copyright 1985, 2000-2003 J. Schilling */ -/* - * astoll() converts a string to long long - * - * Leading tabs and spaces are ignored. - * Both return pointer to the first char that has not been used. - * Caller must check if this means a bad conversion. - * - * leading "+" is ignored - * leading "0" makes conversion octal (base 8) - * leading "0x" makes conversion hex (base 16) - * - * Llong is silently reverted to long if the compiler does not - * support long long. - * - * Copyright (c) 1985, 2000-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include - -#define is_space(c) ((c) == ' ' || (c) == '\t') -#define is_digit(c) ((c) >= '0' && (c) <= '9') -#define is_hex(c) (\ - ((c) >= 'a' && (c) <= 'f') || \ - ((c) >= 'A' && (c) <= 'F')) - -#define to_lower(c) (((c) >= 'A' && (c) <= 'Z') ? (c) - 'A'+'a' : (c)) - -char * -astoll(s, l) - register const char *s; - Llong *l; -{ - return (astollb(s, l, 0)); -} - -char * -astollb(s, l, base) - register const char *s; - Llong *l; - register int base; -{ - int neg = 0; - register Llong ret = (Llong)0; - register int digit; - register char c; - - while (is_space(*s)) - s++; - - if (*s == '+') { - s++; - } else if (*s == '-') { - s++; - neg++; - } - - if (base == 0) { - if (*s == '0') { - base = 8; - s++; - if (*s == 'x' || *s == 'X') { - s++; - base = 16; - } - } else { - base = 10; - } - } - for (; (c = *s) != 0; s++) { - - if (is_digit(c)) { - digit = c - '0'; - } else if (is_hex(c)) { - digit = to_lower(c) - 'a' + 10; - } else { - break; - } - - if (digit < base) { - ret *= base; - ret += digit; - } else { - break; - } - } - if (neg) - ret = -ret; - *l = ret; - return ((char *)s); -} diff -Nru smake-1.2a41/psmake/comerr.c smake-1.2a49/psmake/comerr.c --- smake-1.2a41/psmake/comerr.c 2007-02-26 12:01:47.000000000 +0000 +++ smake-1.2a49/psmake/comerr.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,248 +0,0 @@ -/* @(#)comerr.c 1.32 07/02/26 Copyright 1985-1989, 1995-2007 J. Schilling */ -/* - * Routines for printing command errors - * - * Copyright (c) 1985-1989, 1995-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include /* include try to get size_t */ -#include /* Try again for size_t */ -#include /* Try again for size_t */ -#include -#include -#include -#include -#include - -EXPORT int on_comerr __PR((void (*fun)(int, void *), void *arg)); -EXPORT void comerr __PR((const char *, ...)); -EXPORT void comerrno __PR((int, const char *, ...)); -EXPORT int errmsg __PR((const char *, ...)); -EXPORT int errmsgno __PR((int, const char *, ...)); -EXPORT int _comerr __PR((FILE *, int, int, const char *, va_list)); -EXPORT void comexit __PR((int)); -EXPORT char *errmsgstr __PR((int)); - -typedef struct ex { - struct ex *next; - void (*func) __PR((int, void *)); - void *arg; -} ex_t; - -LOCAL ex_t *exfuncs; - -EXPORT int -on_comerr(func, arg) - void (*func) __PR((int, void *)); - void *arg; -{ - ex_t *fp; - - fp = malloc(sizeof (*fp)); - if (fp == NULL) - return (-1); - - fp->func = func; - fp->arg = arg; - fp->next = exfuncs; - exfuncs = fp; - return (0); -} - -/* VARARGS1 */ -#ifdef PROTOTYPES -EXPORT void -comerr(const char *msg, ...) -#else -EXPORT void -comerr(msg, va_alist) - char *msg; - va_dcl -#endif -{ - va_list args; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - (void) _comerr(stderr, TRUE, geterrno(), msg, args); - /* NOTREACHED */ - va_end(args); -} - -/* VARARGS2 */ -#ifdef PROTOTYPES -EXPORT void -comerrno(int err, const char *msg, ...) -#else -EXPORT void -comerrno(err, msg, va_alist) - int err; - char *msg; - va_dcl -#endif -{ - va_list args; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - (void) _comerr(stderr, TRUE, err, msg, args); - /* NOTREACHED */ - va_end(args); -} - -/* VARARGS1 */ -#ifdef PROTOTYPES -EXPORT int -errmsg(const char *msg, ...) -#else -EXPORT int -errmsg(msg, va_alist) - char *msg; - va_dcl -#endif -{ - va_list args; - int ret; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - ret = _comerr(stderr, FALSE, geterrno(), msg, args); - va_end(args); - return (ret); -} - -/* VARARGS2 */ -#ifdef PROTOTYPES -EXPORT int -errmsgno(int err, const char *msg, ...) -#else -EXPORT int -errmsgno(err, msg, va_alist) - int err; - char *msg; - va_dcl -#endif -{ - va_list args; - int ret; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - ret = _comerr(stderr, FALSE, err, msg, args); - va_end(args); - return (ret); -} - -#ifdef __BEOS__ - /* - * On BeOS errno is a big negative number (0x80000000 + small number). - * We assume that small negative numbers are safe to be used as special - * values that prevent printing the errno text. - * - * We tried to use #if EIO < 0 but this does not work because EIO is - * defined to a enum. ENODEV may work as ENODEV is defined to a number - * directly. - */ -#define silent_error(e) ((e) < 0 && (e) >= -1024) -#else - /* - * On UNIX errno is a small non-negative number, so we assume that - * negative values cannot be a valid errno and don't print the error - * string in this case. However the value may still be used as exit() - * code if 'exflg' is set. - */ -#define silent_error(e) ((e) < 0) -#endif -EXPORT int -_comerr(f, exflg, err, msg, args) - FILE *f; - int exflg; - int err; - const char *msg; - va_list args; -{ - char errbuf[20]; - char *errnam; - char *prognam = get_progname(); - - if (silent_error(err)) { - js_fprintf(f, "%s: %r", prognam, msg, args); - } else { - errnam = errmsgstr(err); - if (errnam == NULL) { - (void) js_snprintf(errbuf, sizeof (errbuf), - "Error %d", err); - errnam = errbuf; - } - js_fprintf(f, "%s: %s. %r", prognam, errnam, msg, args); - } - if (exflg) { - comexit(err); - /* NOTREACHED */ - } - return (err); -} - -EXPORT void -comexit(err) - int err; -{ - while (exfuncs) { - (*exfuncs->func)(err, exfuncs->arg); - exfuncs = exfuncs->next; - } - exit(err); - /* NOTREACHED */ -} - -EXPORT char * -errmsgstr(err) - int err; -{ -#ifdef HAVE_STRERROR - /* - * POSIX compliance may look strange... - */ - int errsav = geterrno(); - char *ret; - - seterrno(0); - ret = strerror(err); - err = geterrno(); - seterrno(errsav); - - if (ret == NULL || err) - return (NULL); - return (ret); -#else - if (err < 0 || err >= sys_nerr) { - return (NULL); - } else { - return (sys_errlist[err]); - } -#endif -} diff -Nru smake-1.2a41/psmake/config.guess smake-1.2a49/psmake/config.guess --- smake-1.2a41/psmake/config.guess 2006-06-29 14:15:03.000000000 +0100 +++ smake-1.2a49/psmake/config.guess 1970-01-01 01:00:00.000000000 +0100 @@ -1,981 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. -# -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Written by Per Bothner . -# The master version of this file is at the FSF in /home/gd/gnu/lib. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit system type (host/target name). -# -# Only a few systems have been added to this list; please add others -# (but try to keep the structure clean). -# - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - cat <dummy.s - .globl main - .ent main -main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - ${CC-cc} dummy.s -o dummy 2>/dev/null - if test "$?" = 0 ; then - ./dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - fi - rm -f dummy.s dummy - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-cbm-sysv4 - exit 0;; - amiga:NetBSD:*:*) - echo m68k-cbm-netbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - arm32:NetBSD:*:*) - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - SR2?01:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - atari*:NetBSD:*:*) - echo m68k-atari-netbsd${UNAME_RELEASE} - exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:NetBSD:*:*) - echo m68k-sun-netbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:NetBSD:*:*) - echo m68k-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - macppc:NetBSD:*:*) - echo powerpc-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - sed 's/^ //' << EOF >dummy.c - int main (argc, argv) int argc; char **argv; { - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - ${CC-cc} dummy.c -o dummy \ - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - sed 's/^ //' << EOF >dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:4) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=4.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 | 9000/820 | 9000/800 ) - sed 's/^ //' << EOF >dummy.c - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy` - rm -f dummy.c dummy - esac - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - sed 's/^ //' << EOF >dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i?86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; - F300:UNIX_System_V:*:*) - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - F301:UNIX_System_V:*:*) - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` - exit 0 ;; - hp3[0-9][05]:NetBSD:*:*) - echo m68k-hp-netbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; - *:NetBSD:*:*) - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - x86:Interix*:3*) - echo i586-pc-interix3 - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; - *:Linux:*:*) - # uname on the ARM produces all sorts of strangeness, and we need to - # filter it out. - case "$UNAME_MACHINE" in - arm* | sa110*) UNAME_MACHINE="arm" ;; - esac - - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. - ld_help_string=`ld --help 2>&1` - ld_supported_emulations=`echo $ld_help_string \ - | sed -ne '/supported emulations:/!d - s/[ ][ ]*/ /g - s/.*supported emulations: *// - s/ .*// - p'` - case "$ld_supported_emulations" in - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; - esac - - if test "${UNAME_MACHINE}" = "alpha" ; then - sed 's/^ //' <dummy.s - .globl main - .ent main - main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - LIBC="" - ${CC-cc} dummy.s -o dummy 2>/dev/null - if test "$?" = 0 ; then - ./dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - - objdump --private-headers dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f dummy.s dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 - elif test "${UNAME_MACHINE}" = "mips" ; then - cat >dummy.c </dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - else - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; - esac - # Determine whether the default compiler is a.out or elf - cat >dummy.c < -main(argc, argv) - int argc; - char *argv[]; -{ -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} -EOF - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 - rm -f dummy.c dummy - fi ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) - echo i386-sequent-sysv4 - exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:MS-DOS:5:50) - # DJGPP v2 - echo ${UNAME_MACHINE}-pc-msdos - exit 0 ;; - i?86:*:5:*) - # Fixed at (any) Pentium or better - UNAME_MACHINE=i586 - if [ ${UNAME_SYSTEM} = "UnixWare" ] || - [ ${UNAME_SYSTEM} = "OpenUNIX" ]; then - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - pc:*:*:*) - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - i?86:LynxOS:2.*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:*:6*) - echo mips-sony-newsos6 - exit 0 ;; - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - "Power Macintosh":Rhapsody:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - "Power Macintosh":"Mac OS":*) - echo powerpc-apple-macosx${UNAME_RELEASE} - exit 0 ;; - "Power Macintosh":"Darwin":*) - echo powerpc-apple-macosx${UNAME_RELEASE} - exit 0 ;; - *:OS/2:*:*) - echo "i386-pc-os2_emx" - exit 0;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -cat >dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -#if !defined (ultrix) - printf ("vax-dec-bsd\n"); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 -rm -f dummy.c dummy - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -if [ x$CONFIG_NOFAIL = xTRUE ]; then - echo unknownCPU-unknownMFR-unknownOS - exit 0 -fi - -#echo '(Unable to guess system type)' 1>&2 - -exit 1 diff -Nru smake-1.2a41/psmake/config.sub smake-1.2a49/psmake/config.sub --- smake-1.2a41/psmake/config.sub 2006-06-29 14:11:48.000000000 +0100 +++ smake-1.2a49/psmake/config.sub 1970-01-01 01:00:00.000000000 +0100 @@ -1,972 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script, version 1.1. -# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -if [ x$1 = x ] -then - echo Configuration name missing. 1>&2 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 - echo "or $0 ALIAS" 1>&2 - echo where ALIAS is a recognized configuration type. 1>&2 - exit 1 -fi - -# First pass through any local machine types. -case $1 in - *local*) - echo $1 - exit 0 - ;; - *) - ;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - linux-gnu*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple) - os= - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0? \ - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ - | mipstx39 | mipstx39el \ - | sparc | sparclet | sparclite | sparc64 | v850) - basic_machine=$basic_machine-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i[34567]86) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0?-* \ - | ia64-* \ - | alpha-* | alphaev5-* | alphaev56-* | alphaev6-* | we32k-* | cydra-* \ - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mipstx39-* | mipstx39el-* \ - | f301-* \ - | x86-* | x86_64-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-cbm - ;; - amigaos | amigados) - basic_machine=m68k-cbm - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-cbm - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | ymp) - basic_machine=ymp-cray - os=-unicos - ;; - cray2) - basic_machine=cray2-cray - os=-unicos - ;; - [ctj]90-cray) - basic_machine=c90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - os=-mvs - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i[34567]86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i[34567]86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i[34567]86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - miniframe) - basic_machine=m68000-convergent - ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - np1) - basic_machine=np1-gould - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc-unknown) - basic_machine=parisc-unknown - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | nexen) - basic_machine=i586-pc - ;; - pentiumpro | p6 | k6 | 6x86) - basic_machine=i686-pc - ;; - pentiumii | pentium2) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | nexen-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | k6-* | 6x86-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=rs6000-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - xmp) - basic_machine=xmp-cray - os=-unicos - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sparc) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -os2* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -macos* ) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -ctix* | -uts*) - os=-sysv - ;; - -ns2 ) - os=-nextstep2 - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - # For sys5.3 apollo - -sys5.3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -xenix) - os=-xenix - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-semi) - os=-aout - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f301-fujitsu) - os=-uxpv - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -hpux*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -vxsim* | -vxworks*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os diff -Nru smake-1.2a41/psmake/configure smake-1.2a49/psmake/configure --- smake-1.2a41/psmake/configure 2007-03-06 15:02:56.000000000 +0000 +++ smake-1.2a49/psmake/configure 1970-01-01 01:00:00.000000000 +0100 @@ -1,14017 +0,0 @@ -#! /bin/sh - -# From configure.in Revision - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -#serial 18 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --disable-largefile omit support for large files" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -cc=* | --cc=* ) - CC="$ac_optarg" ; echo using $CC as compiler ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=xconfig.h.in - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:761: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - -echo $ac_n "checking if /bin/sh is bash""... $ac_c" 1>&6 -echo "configure:783: checking if /bin/sh is bash" >&5 -if eval "test \"`echo '$''{'ac_cv_shell_is_bash'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - -ac_err=`< /dev/null sh -version 2> /dev/null | grep bash` -if test -n "$ac_err"; then - ac_cv_shell_is_bash=yes -else - ac_cv_shell_is_bash=no -fi - -fi - -echo "$ac_t""$ac_cv_shell_is_bash" 1>&6 -if test $ac_cv_shell_is_bash = yes; then - cat >> confdefs.h <<\EOF -#define SHELL_IS_BASH 1 -EOF - -fi -echo $ac_n "checking for object suffix""... $ac_c" 1>&6 -echo "configure:805: checking for object suffix" >&5 -if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - rm -f conftest* -echo 'int i = 1;' > conftest.$ac_ext -if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - for ac_file in conftest.*; do - case $ac_file in - *.c) ;; - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; - esac - done -else - { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_objext" 1>&6 -OBJEXT=$ac_cv_objext -ac_objext=$ac_cv_objext - -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:829: checking for Cygwin environment" >&5 -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_cygwin=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_cygwin=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_cygwin" 1>&6 -CYGWIN= -test "$ac_cv_cygwin" = yes && CYGWIN=yes -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:862: checking for mingw32 environment" >&5 -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_mingw32" 1>&6 -MINGW32= -test "$ac_cv_mingw32" = yes && MINGW32=yes -echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 -echo "configure:891: checking for EMX/OS2 environment" >&5 -if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_emxos2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_emxos2=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_emxos2" 1>&6 -if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$ac_cv_emxos2" = yes ; then - ac_cv_libpre= -else - ac_cv_libpre=lib -fi - -fi - -EMXOS2= -test "$ac_cv_emxos2" = yes && EMXOS2=yes - - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:934: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then - ac_cv_exeext=.exe -else - rm -f conftest* - echo 'int main () { return 0; }' > conftest.$ac_ext - ac_cv_exeext= - if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then - for file in conftest.*; do - case $file in - *.c | *.o | *.obj) ;; - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; - esac - done - else - ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` - ret=$? - nf=`echo "$ccout" | grep 'not found'` - if test $ret = 127 -a -n "$nf" ; then # Korn Shell - ccout="" - fi - if test ! -n "$ccout" ; then - { echo "configure: error: installation or configuration problem: C compiler ${CC-cc} not found." 1>&2; exit 1; } - fi - { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } - fi - rm -f conftest* - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no -fi -fi - -EXEEXT="" -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} -echo "$ac_t""${ac_cv_exeext}" 1>&6 -ac_exeext=$EXEEXT - -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:974: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1056: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:1084: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - - -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1112: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then - : -else - cat > conftest.$ac_ext < -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -echo $ac_n "checking for UNIX-98 compliant inttypes.h""... $ac_c" 1>&6 -echo "configure:1216: checking for UNIX-98 compliant inttypes.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; -int64_t ll; uint64_t ull; -intptr_t ip; uintptr_t uip; -; return 0; } -EOF -if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_inttypes=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_inttypes=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_inttypes" 1>&6 -if test $ac_cv_header_inttypes = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_INTTYPES_H 1 -EOF - -fi -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:1254: checking for $ac_hdr that defines DIR" >&5 -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include <$ac_hdr> -int main() { -DIR *dirp = 0; -; return 0; } -EOF -if { (eval echo configure:1267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:1292: checking for opendir in -ldir" >&5 -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldir $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -ldir" -else - echo "$ac_t""no" 1>&6 -fi - -else -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:1333: checking for opendir in -lx" >&5 -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lx $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -lx" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:1375: checking whether stat file-mode macros are broken" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include - -#if defined(S_ISBLK) && defined(S_IFDIR) -# if S_ISBLK (S_IFDIR) -You lose. -# endif -#endif - -#if defined(S_ISBLK) && defined(S_IFCHR) -# if S_ISBLK (S_IFCHR) -You lose. -# endif -#endif - -#if defined(S_ISLNK) && defined(S_IFREG) -# if S_ISLNK (S_IFREG) -You lose. -# endif -#endif - -#if defined(S_ISSOCK) && defined(S_IFREG) -# if S_ISSOCK (S_IFREG) -You lose. -# endif -#endif - -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "You lose" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_header_stat_broken=yes -else - rm -rf conftest* - ac_cv_header_stat_broken=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 -if test $ac_cv_header_stat_broken = yes; then - cat >> confdefs.h <<\EOF -#define STAT_MACROS_BROKEN 1 -EOF - -fi - -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:1431: checking whether time.h and sys/time.h may both be included" >&5 -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -int main() { -struct tm *tp; -; return 0; } -EOF -if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_time=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_time=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_time" 1>&6 -if test $ac_cv_header_time = yes; then - cat >> confdefs.h <<\EOF -#define TIME_WITH_SYS_TIME 1 -EOF - -fi - -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:1466: checking for sys/wait.h that is POSIX.1 compatible" >&5 -if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif -int main() { -int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; -; return 0; } -EOF -if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_sys_wait_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_wait_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 -if test $ac_cv_header_sys_wait_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SYS_WAIT_H 1 -EOF - -fi - -echo $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6 -echo "configure:1508: checking if select needs nonstd include files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_slect_nonstd_hdr=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_slect_nonstd_hdr=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6 -if test $ac_cv_header_slect_nonstd_hdr = yes; then - cat >> confdefs.h <<\EOF -#define SELECT_NONSTD_HDR 1 -EOF - -fi -echo $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6 -echo "configure:1541: checking if sys/select.h is needed for select" >&5 -if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_need_sys_select_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_need_sys_select_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6 -if test $ac_cv_header_need_sys_select_h = yes; then - cat >> confdefs.h <<\EOF -#define NEED_SYS_SELECT_H 1 -EOF - -fi -echo $ac_n "checking if sys/socket.h is needed for select""... $ac_c" 1>&6 -echo "configure:1578: checking if sys/socket.h is needed for select" >&5 -if eval "test \"`echo '$''{'ac_cv_header_need_sys_socket_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#ifndef SELECT_NONSTD_HDR -do not compile if we do not need nonstandard headers -#endif -int main() { -fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); -; return 0; } -EOF -if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_need_sys_socket_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_need_sys_socket_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_need_sys_socket_h" 1>&6 -if test $ac_cv_header_need_sys_socket_h = yes; then - cat >> confdefs.h <<\EOF -#define NEED_SYS_SOCKET_H 1 -EOF - -fi -for ac_hdr in stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h sys/file.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1618: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in getopt.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1658: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in limits.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1698: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in a.out.h aouthdr.h elf.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1738: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in malloc.h termios.h termio.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1778: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in pwd.h grp.h sys/acl.h acllib.h acl/libacl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1818: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in shadow.h syslog.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1858: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1898: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/syscall.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1938: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in mach/machine.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1978: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in mntent.h sys/mntent.h sys/mnttab.h sys/mount.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2018: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in wait.h sys/resource.h procfs.h sys/procfs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2058: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/utsname.h sys/priocntl.h sys/rtpriocntl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2098: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2138: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/shm.h sys/ipc.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2178: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2218: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/types.h sys/stat.h types.h stat.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2258: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/stypes.h sys/filedesc.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2298: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in poll.h sys/poll.h sys/select.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2338: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in netdb.h sys/socket.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2378: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in ieeefp.h fp.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2418: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in values.h float.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2458: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in arpa/inet.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2498: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in bsd/dev/scsireg.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2538: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/bsdtty.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2578: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in OS.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2618: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in ext2fs/ext2_fs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2658: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in attr/xattr.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2698: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in crt_externs.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2738: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in fnmatch.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2778: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in libintl.h locale.h langinfo.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2818: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in wchar.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2858: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in priv.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2898: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in exec_attr.h secdb.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2938: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in direct.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2978: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in pthread.h thread.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3018: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - - -echo $ac_n "checking for header file containing major(), minor() and makedev()""... $ac_c" 1>&6 -echo "configure:3056: checking for header file containing major(), minor() and makedev()" >&5 -if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_header_makedev=none -cat > conftest.$ac_ext < -#include -int main() { -int i = major(0); i = minor(0); i = makedev(0,0); -; return 0; } -EOF -if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_makedev=sys/mkdev.h -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -if test $ac_cv_header_makedev = none; then - cat > conftest.$ac_ext < -#include -int main() { -int i = major(0); i = minor(0); i = makedev(0,0); -; return 0; } -EOF -if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_makedev=sys/sysmacros.h -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -fi - -echo "$ac_t""$ac_cv_header_makedev" 1>&6 -if test $ac_cv_header_makedev = sys/mkdev.h; then - cat >> confdefs.h <<\EOF -#define MAJOR_IN_MKDEV 1 -EOF - -fi -if test $ac_cv_header_makedev = sys/sysmacros.h; then - cat >> confdefs.h <<\EOF -#define MAJOR_IN_SYSMACROS 1 -EOF - -fi - - -echo $ac_n "checking bits in minor device number""... $ac_c" 1>&6 -echo "configure:3115: checking bits in minor device number" >&5 -if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - FILE *f=fopen("conftestval", "w"); - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - if (!f) exit(1); - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } - fprintf(f, "%d\n", m); - exit(0); -} -EOF -if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_dev_minor_bits=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_dev_minor_bits=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_dev_minor_bits" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3200: checking whether bits in minor device numbers are non contiguous" >&5 -if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#ifdef major -# define _FOUND_MAJOR_ -#endif - -#ifdef MAJOR_IN_MKDEV -# include -# define _FOUND_MAJOR_ -#endif - -#ifndef _FOUND_MAJOR_ -# ifdef MAJOR_IN_SYSMACROS -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# if defined(hpux) || defined(__hpux__) || defined(__hpux) -# include -# define _FOUND_MAJOR_ -# endif -#endif - -#ifndef _FOUND_MAJOR_ -# define major(dev) (((dev) >> 8) & 0xFF) -# define minor(dev) ((dev) & 0xFF) -# define makedev(majo, mino) (((majo) << 8) | (mino)) -#endif -int -main() -{ - long l = 1; - int i; - int m; - int c = 0; - int maxloop = 32; - - if (sizeof (long) > 4) - maxloop = 64; - - for (i=1, m=0; i <= maxloop; i++, l<<=1) { - if (minor(l) == 0 && c == 0) - c = m; - if (minor(l) != 0) - m = i; - } -exit (m == c);} -EOF -if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_dev_minor_noncontig=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_dev_minor_noncontig=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6 -if test $ac_cv_dev_minor_noncontig = yes; then - cat >> confdefs.h <<\EOF -#define DEV_MINOR_NONCONTIG 1 -EOF - -fi - -echo $ac_n "checking for _filbuf()""... $ac_c" 1>&6 -echo "configure:3283: checking for _filbuf()" >&5 -if eval "test \"`echo '$''{'ac_cv_func__filbuf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -_filbuf(f); -_flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func__filbuf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func__filbuf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func__filbuf" 1>&6 -if test $ac_cv_func__filbuf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE__FILBUF 1 -EOF - -fi -echo $ac_n "checking for __filbuf()""... $ac_c" 1>&6 -echo "configure:3328: checking for __filbuf()" >&5 -if eval "test \"`echo '$''{'ac_cv_func___filbuf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -__filbuf(f); -__flsbuf(c, f); -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func___filbuf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func___filbuf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func___filbuf" 1>&6 -if test $ac_cv_func___filbuf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___FILBUF 1 -EOF - -fi -echo $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6 -echo "configure:3373: checking for USG derived STDIO" >&5 -if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -FILE *f; -int flag; -int count; -char *ptr; -char c = 0; -f = fopen("confdefs.h", "r"); -#ifdef HAVE___FILBUF -__filbuf(f); -__flsbuf(c, f); -#else -# ifdef HAVE__FILBUF -_filbuf(f); -_flsbuf(c, f); -# else -no filbuf() -# endif -#endif -flag = f->_flag & _IONBF; -flag |= f->_flag & _IOERR; -flag |= f->_flag & _IOEOF; -count = f->_cnt; -ptr = (char *)f->_ptr; -fclose(f); -; return 0; } -EOF -if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_header_usg_stdio=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_usg_stdio=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_usg_stdio" 1>&6 -if test $ac_cv_header_usg_stdio = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_USG_STDIO 1 -EOF - -fi -echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6 -echo "configure:3427: checking for errno definition in errno.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -errno = 0; -; return 0; } -EOF -if { (eval echo configure:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_errno_def=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_errno_def=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_errno_def" 1>&6 -if test $ac_cv_header_errno_def = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ERRNO_DEF 1 -EOF - -fi - -echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3460: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} - -; return 0; } -EOF -if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_c_const" 1>&6 -if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF -#define const -EOF - -fi - -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:3535: checking whether byte ordering is bigendian" >&5 -if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -cat > conftest.$ac_ext < -#include -int main() { - -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif -; return 0; } -EOF -if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - # It does; now see whether it defined to BIG_ENDIAN or not. -cat > conftest.$ac_ext < -#include -int main() { - -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif -; return 0; } -EOF -if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_bigendian=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_bigendian=no -fi -rm -f conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -if test $ac_cv_c_bigendian = unknown; then -if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_bigendian=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bigendian=yes -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_c_bigendian" 1>&6 -if test $ac_cv_c_bigendian = yes; then - cat >> confdefs.h <<\EOF -#define WORDS_BIGENDIAN 1 -EOF - -fi - -echo $ac_n "checking whether bitorder in bitfields is htol""... $ac_c" 1>&6 -echo "configure:3625: checking whether bitorder in bitfields is htol" >&5 -if eval "test \"`echo '$''{'ac_cv_c_bitfields_htol'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_bitfields_htol=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bitfields_htol=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_c_bitfields_htol" 1>&6 -if test $ac_cv_c_bitfields_htol = yes; then - cat >> confdefs.h <<\EOF -#define BITFIELDS_HTOL 1 -EOF - -fi -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:3671: checking return type of signal handlers" >&5 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#ifdef signal -#undef signal -#endif -#ifdef __cplusplus -extern "C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif - -int main() { -int i; -; return 0; } -EOF -if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_signal=void -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_signal=int -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_signal" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3712: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_uid_t=yes -else - rm -rf conftest* - ac_cv_type_uid_t=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 -if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF -#define uid_t int -EOF - - cat >> confdefs.h <<\EOF -#define gid_t int -EOF - -fi - -echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:3746: checking type of array argument to getgroups" >&5 -if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_type_getgroups=cross -else - cat > conftest.$ac_ext < -#define NGID 256 -#undef MAX -#define MAX(x, y) ((x) > (y) ? (x) : (y)) -main() -{ - gid_t gidset[NGID]; - int i, n; - union { gid_t gval; long lval; } val; - - val.lval = -1; - for (i = 0; i < NGID; i++) - gidset[i] = val.gval; - n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, - gidset); - /* Exit non-zero if getgroups seems to require an array of ints. This - happens when gid_t is short but getgroups modifies an array of ints. */ - exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); -} - -EOF -if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_getgroups=gid_t -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_getgroups=int -fi -rm -fr conftest* -fi - -if test $ac_cv_type_getgroups = cross; then - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_getgroups=gid_t -else - rm -rf conftest* - ac_cv_type_getgroups=int -fi -rm -f conftest* - -fi -fi - -echo "$ac_t""$ac_cv_type_getgroups" 1>&6 -cat >> confdefs.h <&6 -echo "configure:3817: checking for type long long" >&5 -if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_longlong=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_longlong=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_longlong" 1>&6 -if test $ac_cv_type_longlong = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LONGLONG 1 -EOF - -fi -echo $ac_n "checking for type __int64""... $ac_c" 1>&6 -echo "configure:3849: checking for type __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_type___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type___int64=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type___int64=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type___int64" 1>&6 -if test $ac_cv_type___int64 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___INT64 1 -EOF - -fi -echo $ac_n "checking for prototypes""... $ac_c" 1>&6 -echo "configure:3881: checking for prototypes" >&5 -if eval "test \"`echo '$''{'ac_cv_type_prototypes'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_prototypes=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_prototypes=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_type_prototypes" 1>&6 -if test $ac_cv_type_prototypes = yes; then - cat >> confdefs.h <<\EOF -#define PROTOTYPES 1 -EOF - -fi -echo $ac_n "checking if compiler allows dynamic arrays""... $ac_c" 1>&6 -echo "configure:3921: checking if compiler allows dynamic arrays" >&5 -if eval "test \"`echo '$''{'ac_cv_dyn_arrays'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_dyn_arrays=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_dyn_arrays=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_dyn_arrays" 1>&6 -if test $ac_cv_dyn_arrays = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DYN_ARRAYS 1 -EOF - -fi - -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:3954: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_uid_t=yes -else - rm -rf conftest* - ac_cv_type_uid_t=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 -if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF -#define uid_t int -EOF - - cat >> confdefs.h <<\EOF -#define gid_t int -EOF - -fi - -echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3988: checking for size_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_size_t=yes -else - rm -rf conftest* - ac_cv_type_size_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_size_t" 1>&6 -if test $ac_cv_type_size_t = no; then - cat >> confdefs.h <<\EOF -#define size_t unsigned -EOF - -fi - -echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 -echo "configure:4021: checking for ssize_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_ssize_t=yes -else - rm -rf conftest* - ac_cv_type_ssize_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 -if test $ac_cv_type_ssize_t = no; then - cat >> confdefs.h <<\EOF -#define ssize_t int -EOF - -fi - -echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:4054: checking for pid_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_pid_t=yes -else - rm -rf conftest* - ac_cv_type_pid_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_pid_t" 1>&6 -if test $ac_cv_type_pid_t = no; then - cat >> confdefs.h <<\EOF -#define pid_t int -EOF - -fi - -echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:4087: checking for off_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_off_t=yes -else - rm -rf conftest* - ac_cv_type_off_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_off_t" 1>&6 -if test $ac_cv_type_off_t = no; then - cat >> confdefs.h <<\EOF -#define off_t long -EOF - -fi - -echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:4120: checking for mode_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_mode_t=yes -else - rm -rf conftest* - ac_cv_type_mode_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_mode_t" 1>&6 -if test $ac_cv_type_mode_t = no; then - cat >> confdefs.h <<\EOF -#define mode_t int -EOF - -fi - -echo $ac_n "checking for time_t""... $ac_c" 1>&6 -echo "configure:4153: checking for time_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#ifdef TIME_WITH_SYS_TIME_H -# include -# include -#else -#ifdef HAVE_SYS_TIME_H -# include -#else -# include -#endif -#endif -int main() { -time_t t; -; return 0; } -EOF -if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_time_t=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_time_t=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_time_t" 1>&6 -if test $ac_cv_type_time_t = no; then - cat >> confdefs.h <<\EOF -#define time_t long -EOF - -fi -echo $ac_n "checking for caddr_t""... $ac_c" 1>&6 -echo "configure:4196: checking for caddr_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_caddr_t=yes -else - rm -rf conftest* - ac_cv_type_caddr_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_caddr_t" 1>&6 -if test $ac_cv_type_caddr_t = no; then - cat >> confdefs.h <<\EOF -#define caddr_t char * -EOF - -fi - -echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 -echo "configure:4229: checking for daddr_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_daddr_t=yes -else - rm -rf conftest* - ac_cv_type_daddr_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 -if test $ac_cv_type_daddr_t = no; then - cat >> confdefs.h <<\EOF -#define daddr_t long -EOF - -fi - -echo $ac_n "checking for dev_t""... $ac_c" 1>&6 -echo "configure:4262: checking for dev_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_dev_t=yes -else - rm -rf conftest* - ac_cv_type_dev_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_dev_t" 1>&6 -if test $ac_cv_type_dev_t = no; then - cat >> confdefs.h <<\EOF -#define dev_t unsigned short -EOF - -fi - -echo $ac_n "checking for major_t""... $ac_c" 1>&6 -echo "configure:4295: checking for major_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_major_t=yes -else - rm -rf conftest* - ac_cv_type_major_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_major_t" 1>&6 -if test $ac_cv_type_major_t = no; then - cat >> confdefs.h <<\EOF -#define major_t dev_t -EOF - -fi - -echo $ac_n "checking for minor_t""... $ac_c" 1>&6 -echo "configure:4328: checking for minor_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_minor_t=yes -else - rm -rf conftest* - ac_cv_type_minor_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_minor_t" 1>&6 -if test $ac_cv_type_minor_t = no; then - cat >> confdefs.h <<\EOF -#define minor_t dev_t -EOF - -fi - -echo $ac_n "checking for ino_t""... $ac_c" 1>&6 -echo "configure:4361: checking for ino_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_ino_t=yes -else - rm -rf conftest* - ac_cv_type_ino_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_ino_t" 1>&6 -if test $ac_cv_type_ino_t = no; then - cat >> confdefs.h <<\EOF -#define ino_t unsigned long -EOF - -fi - -echo $ac_n "checking for nlink_t""... $ac_c" 1>&6 -echo "configure:4394: checking for nlink_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])nlink_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_nlink_t=yes -else - rm -rf conftest* - ac_cv_type_nlink_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_nlink_t" 1>&6 -if test $ac_cv_type_nlink_t = no; then - cat >> confdefs.h <<\EOF -#define nlink_t unsigned long -EOF - -fi - -echo $ac_n "checking for blksize_t""... $ac_c" 1>&6 -echo "configure:4427: checking for blksize_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_blksize_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])blksize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_blksize_t=yes -else - rm -rf conftest* - ac_cv_type_blksize_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_blksize_t" 1>&6 -if test $ac_cv_type_blksize_t = no; then - cat >> confdefs.h <<\EOF -#define blksize_t long -EOF - -fi - -echo $ac_n "checking for blkcnt_t""... $ac_c" 1>&6 -echo "configure:4460: checking for blkcnt_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_blkcnt_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])blkcnt_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_blkcnt_t=yes -else - rm -rf conftest* - ac_cv_type_blkcnt_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_blkcnt_t" 1>&6 -if test $ac_cv_type_blkcnt_t = no; then - cat >> confdefs.h <<\EOF -#define blkcnt_t Intmax_t -EOF - -fi - -echo $ac_n "checking for clock_t""... $ac_c" 1>&6 -echo "configure:4493: checking for clock_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_clock_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* - * time.h is needed because of a bug in Next Step. - * Next Step needs time.h for clock_t - */ -#ifdef TIME_WITH_SYS_TIME -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#else -#ifdef HAVE_SYS_TIME_H -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -#else -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#endif -#endif -#ifdef HAVE_SYS_TIMES_H -#include -#endif - -int main() { -clock_t t; -; return 0; } -EOF -if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_clock_t=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_clock_t=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_clock_t" 1>&6 -if test $ac_cv_type_clock_t = no; then - cat >> confdefs.h <<\EOF -#define clock_t long -EOF - -fi -echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:4556: checking for socklen_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -#include -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_socklen_t=yes -else - rm -rf conftest* - ac_cv_type_socklen_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 -if test $ac_cv_type_socklen_t = no; then - cat >> confdefs.h <<\EOF -#define socklen_t int -EOF - -fi - -echo $ac_n "checking for u_char""... $ac_c" 1>&6 -echo "configure:4590: checking for u_char" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_char=yes -else - rm -rf conftest* - ac_cv_type_u_char=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_char" 1>&6 -if test $ac_cv_type_u_char = no; then - cat >> confdefs.h <<\EOF -#define u_char unsigned char -EOF - -fi - -echo $ac_n "checking for u_short""... $ac_c" 1>&6 -echo "configure:4623: checking for u_short" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_short=yes -else - rm -rf conftest* - ac_cv_type_u_short=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_short" 1>&6 -if test $ac_cv_type_u_short = no; then - cat >> confdefs.h <<\EOF -#define u_short unsigned short -EOF - -fi - -echo $ac_n "checking for u_int""... $ac_c" 1>&6 -echo "configure:4656: checking for u_int" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_int=yes -else - rm -rf conftest* - ac_cv_type_u_int=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_int" 1>&6 -if test $ac_cv_type_u_int = no; then - cat >> confdefs.h <<\EOF -#define u_int unsigned int -EOF - -fi - -echo $ac_n "checking for u_long""... $ac_c" 1>&6 -echo "configure:4689: checking for u_long" >&5 -if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_u_long=yes -else - rm -rf conftest* - ac_cv_type_u_long=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_u_long" 1>&6 -if test $ac_cv_type_u_long = no; then - cat >> confdefs.h <<\EOF -#define u_long unsigned long -EOF - -fi - - -echo $ac_n "checking size of char""... $ac_c" 1>&6 -echo "configure:4723: checking size of char" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(char)); - exit(0); -} -EOF -if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_char=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_char=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_char" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4762: checking size of short int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(short int)); - exit(0); -} -EOF -if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_short_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_short_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4801: checking size of int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); - exit(0); -} -EOF -if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4840: checking size of long int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long int)); - exit(0); -} -EOF -if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_long_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4879: checking size of long long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long long)); - exit(0); -} -EOF -if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_long_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4918: checking size of __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(__int64)); - exit(0); -} -EOF -if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof___int64=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof___int64=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4957: checking size of char *" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(char *)); - exit(0); -} -EOF -if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_char_p=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_char_p=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6 -cat >> confdefs.h <&6 -echo "configure:4997: checking size of unsigned char" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned char)); - exit(0); -} -EOF -if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_char=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_char=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5036: checking size of unsigned short int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned short int)); - exit(0); -} -EOF -if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_short_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_short_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5075: checking size of unsigned int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned int)); - exit(0); -} -EOF -if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5114: checking size of unsigned long int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long int)); - exit(0); -} -EOF -if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long_int=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long_int=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5153: checking size of unsigned long long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long long)); - exit(0); -} -EOF -if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5192: checking size of unsigned __int64" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned___int64'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned __int64)); - exit(0); -} -EOF -if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned___int64=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned___int64=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned___int64" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5231: checking size of unsigned char *" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned char *)); - exit(0); -} -EOF -if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_char_p=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_char_p=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 -cat >> confdefs.h <&6 -echo "configure:5271: checking if char is unsigned" >&5 -if eval "test \"`echo '$''{'ac_cv_type_char_unsigned'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_type_char_unsigned=no -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_char_unsigned=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_char_unsigned=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_type_char_unsigned" 1>&6 -if test $ac_cv_type_char_unsigned = yes; then - cat >> confdefs.h <<\EOF -#define CHAR_IS_UNSIGNED 1 -EOF - -fi -echo $ac_n "checking if va_list is an array""... $ac_c" 1>&6 -echo "configure:5312: checking if va_list is an array" >&5 -if eval "test \"`echo '$''{'ac_cv_type_va_list_array'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif - -int main() { - -va_list a, b; - -a = b; -; return 0; } -EOF -if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_type_va_list_array=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_va_list_array=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_va_list_array" 1>&6 -if test $ac_cv_type_va_list_array = yes; then - cat >> confdefs.h <<\EOF -#define VA_LIST_IS_ARRAY 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_type""... $ac_c" 1>&6 -echo "configure:5353: checking if struct mtget contains mt_type" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_type'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_type = 0; -; return 0; } -EOF -if { (eval echo configure:5366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_type=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_type=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_type" 1>&6 -if test $ac_cv_struct_mtget_type = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_TYPE 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_model""... $ac_c" 1>&6 -echo "configure:5386: checking if struct mtget contains mt_model" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_model'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_model = 0; -; return 0; } -EOF -if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_model=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_model=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_model" 1>&6 -if test $ac_cv_struct_mtget_model = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_MODEL 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg""... $ac_c" 1>&6 -echo "configure:5419: checking if struct mtget contains mt_dsreg" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg = 0; -; return 0; } -EOF -if { (eval echo configure:5432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg" 1>&6 -if test $ac_cv_struct_mtget_dsreg = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg1""... $ac_c" 1>&6 -echo "configure:5452: checking if struct mtget contains mt_dsreg1" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg1 = 0; -; return 0; } -EOF -if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg1=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg1=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg1" 1>&6 -if test $ac_cv_struct_mtget_dsreg1 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG1 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_dsreg2""... $ac_c" 1>&6 -echo "configure:5485: checking if struct mtget contains mt_dsreg2" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_dsreg2 = 0; -; return 0; } -EOF -if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_dsreg2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_dsreg2=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_dsreg2" 1>&6 -if test $ac_cv_struct_mtget_dsreg2 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_DSREG2 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_gstat""... $ac_c" 1>&6 -echo "configure:5518: checking if struct mtget contains mt_gstat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_gstat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_gstat = 0; -; return 0; } -EOF -if { (eval echo configure:5531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_gstat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_gstat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_gstat" 1>&6 -if test $ac_cv_struct_mtget_gstat = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_GSTAT 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_erreg""... $ac_c" 1>&6 -echo "configure:5551: checking if struct mtget contains mt_erreg" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_erreg'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_erreg = 0; -; return 0; } -EOF -if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_erreg=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_erreg=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_erreg" 1>&6 -if test $ac_cv_struct_mtget_erreg = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_ERREG 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_resid""... $ac_c" 1>&6 -echo "configure:5584: checking if struct mtget contains mt_resid" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_resid'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_resid = 0; -; return 0; } -EOF -if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_resid=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_resid=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_resid" 1>&6 -if test $ac_cv_struct_mtget_resid = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_RESID 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_fileno""... $ac_c" 1>&6 -echo "configure:5617: checking if struct mtget contains mt_fileno" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_fileno'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_fileno = 0; -; return 0; } -EOF -if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_fileno=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_fileno=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_fileno" 1>&6 -if test $ac_cv_struct_mtget_fileno = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_FILENO 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_blkno""... $ac_c" 1>&6 -echo "configure:5650: checking if struct mtget contains mt_blkno" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_blkno'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_blkno = 0; -; return 0; } -EOF -if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_blkno=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_blkno=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_blkno" 1>&6 -if test $ac_cv_struct_mtget_blkno = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_BLKNO 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_flags""... $ac_c" 1>&6 -echo "configure:5683: checking if struct mtget contains mt_flags" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_flags'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_flags = 0; -; return 0; } -EOF -if { (eval echo configure:5696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_flags=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_flags=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_flags" 1>&6 -if test $ac_cv_struct_mtget_flags = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_FLAGS 1 -EOF - -fi -echo $ac_n "checking if struct mtget contains mt_bf""... $ac_c" 1>&6 -echo "configure:5716: checking if struct mtget contains mt_bf" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_mtget_bf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct mtget t; t.mt_bf = 0; -; return 0; } -EOF -if { (eval echo configure:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_mtget_bf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_mtget_bf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_mtget_bf" 1>&6 -if test $ac_cv_struct_mtget_bf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MTGET_BF 1 -EOF - -fi -echo $ac_n "checking if struct rusage is declared in sys/resource.h""... $ac_c" 1>&6 -echo "configure:5749: checking if struct rusage is declared in sys/resource.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_rusage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct rusage r; -; return 0; } -EOF -if { (eval echo configure:5762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_rusage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_rusage=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_rusage" 1>&6 -if test $ac_cv_struct_rusage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRUCT_RUSAGE 1 -EOF - -fi -echo $ac_n "checking if struct siginfo contains si_utime""... $ac_c" 1>&6 -echo "configure:5782: checking if struct siginfo contains si_utime" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_si_utime'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct siginfo si; si.si_utime = 0; -; return 0; } -EOF -if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_si_utime=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_si_utime=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_si_utime" 1>&6 -if test $ac_cv_struct_si_utime = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SI_UTIME 1 -EOF - -fi -echo $ac_n "checking if struct sockaddr_storage is declared in socket.h""... $ac_c" 1>&6 -echo "configure:5815: checking if struct sockaddr_storage is declared in socket.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -struct sockaddr_storage ss; ss.ss_family = 0; -; return 0; } -EOF -if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_sockaddr_storage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_sockaddr_storage=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 -if test $ac_cv_struct_sockaddr_storage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SOCKADDR_STORAGE 1 -EOF - -fi -echo $ac_n "checking if an illegal declaration for union semun in sys/sem.h exists""... $ac_c" 1>&6 -echo "configure:5847: checking if an illegal declaration for union semun in sys/sem.h exists" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_union_semun'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -int main() { -union semun s; -; return 0; } -EOF -if { (eval echo configure:5861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_union_semun=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_union_semun=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_union_semun" 1>&6 -if test $ac_cv_struct_union_semun = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNION_SEMUN 1 -EOF - -fi -echo $ac_n "checking if union wait is declared in wait.h or sys/wait.h""... $ac_c" 1>&6 -echo "configure:5881: checking if union wait is declared in wait.h or sys/wait.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_union_wait'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if defined(HAVE_WAIT_H) -# include -#else -#include -#endif -int main() { -union wait w; -; return 0; } -EOF -if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_union_wait=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_union_wait=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_union_wait" 1>&6 -if test $ac_cv_struct_union_wait = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNION_WAIT 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_spare1""... $ac_c" 1>&6 -echo "configure:5918: checking if struct stat contains st_spare1" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_spare1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_spare1 = 0; -; return 0; } -EOF -if { (eval echo configure:5931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_spare1=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_spare1=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_spare1" 1>&6 -if test $ac_cv_struct_st_spare1 = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_SPARE1 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atimensec""... $ac_c" 1>&6 -echo "configure:5951: checking if struct stat contains st_atimensec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_atimensec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atimensec = 0; -; return 0; } -EOF -if { (eval echo configure:5964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_atimensec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_atimensec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_atimensec" 1>&6 -if test $ac_cv_struct_st_atimensec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ATIMENSEC 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atim.tv_nsec""... $ac_c" 1>&6 -echo "configure:5984: checking if struct stat contains st_atim.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_nsec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atim.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:5997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_nsec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_nsec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_nsec" 1>&6 -if test $ac_cv_struct_st_nsec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_NSEC 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atim.st__tim.tv_nsec""... $ac_c" 1>&6 -echo "configure:6017: checking if struct stat contains st_atim.st__tim.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st__tim'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atim.st__tim.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:6030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st__tim=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st__tim=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st__tim" 1>&6 -if test $ac_cv_struct_st__tim = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST__TIM 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_atimespec.tv_nsec""... $ac_c" 1>&6 -echo "configure:6050: checking if struct stat contains st_atimespec.tv_nsec" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_atimespec'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_atimespec.tv_nsec = 0; -; return 0; } -EOF -if { (eval echo configure:6063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_atimespec=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_atimespec=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_atimespec" 1>&6 -if test $ac_cv_struct_st_atimespec = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ATIMESPEC 1 -EOF - -fi -echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 -echo "configure:6083: checking for st_blksize in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blksize; -; return 0; } -EOF -if { (eval echo configure:6096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blksize=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blksize=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 -if test $ac_cv_struct_st_blksize = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLKSIZE 1 -EOF - -fi - -echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 -echo "configure:6117: checking for st_blocks in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blocks; -; return 0; } -EOF -if { (eval echo configure:6130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blocks=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blocks=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 -if test $ac_cv_struct_st_blocks = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLOCKS 1 -EOF - -else - LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" -fi - -echo $ac_n "checking if struct stat contains st_fstype""... $ac_c" 1>&6 -echo "configure:6153: checking if struct stat contains st_fstype" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_fstype'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_fstype[0] = 0; -; return 0; } -EOF -if { (eval echo configure:6166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_fstype=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_fstype=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_fstype" 1>&6 -if test $ac_cv_struct_st_fstype = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_FSTYPE 1 -EOF - -fi -echo $ac_n "checking if struct stat contains st_aclcnt""... $ac_c" 1>&6 -echo "configure:6186: checking if struct stat contains st_aclcnt" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_aclcnt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_aclcnt = 0; -; return 0; } -EOF -if { (eval echo configure:6199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_aclcnt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_aclcnt=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_aclcnt" 1>&6 -if test $ac_cv_struct_st_aclcnt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_ACLCNT 1 -EOF - -fi -echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 -echo "configure:6219: checking for st_rdev in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_rdev; -; return 0; } -EOF -if { (eval echo configure:6232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_rdev=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_rdev=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 -if test $ac_cv_struct_st_rdev = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_RDEV 1 -EOF - -fi - -echo $ac_n "checking if struct stat contains st_flags""... $ac_c" 1>&6 -echo "configure:6253: checking if struct stat contains st_flags" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_flags'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_flags = 0; -; return 0; } -EOF -if { (eval echo configure:6266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_flags=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_flags=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_flags" 1>&6 -if test $ac_cv_struct_st_flags = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_FLAGS 1 -EOF - -fi -echo $ac_n "checking if struct dirent contains d_ino""... $ac_c" 1>&6 -echo "configure:6286: checking if struct dirent contains d_ino" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_ino'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ -# include -# define _FOUND_DIR_ -# else /* This is a Pre POSIX system */ - -# define dirent direct - -# if defined(HAVE_SYS_DIR_H) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) -# include -# define _FOUND_DIR_ -# endif -# endif /* HAVE_DIRENT_H */ - -int main() { -struct dirent d; d.d_ino = 0; -; return 0; } -EOF -if { (eval echo configure:6330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_dirent_d_ino=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_dirent_d_ino=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_dirent_d_ino" 1>&6 -if test $ac_cv_struct_dirent_d_ino = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DIRENT_D_INO 1 -EOF - -fi - -echo $ac_n "checking if stat is declared""... $ac_c" 1>&6 -echo "configure:6351: checking if stat is declared" >&5 -if eval "test \"`echo '$''{'ac_cv_have_decl_stat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -#ifndef stat - char *p = (char *) stat; -#endif -; return 0; } -EOF -if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_decl_stat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_decl_stat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_have_decl_stat" 1>&6 - ac_tr_decl=HAVE_DECL_`echo stat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -if test $ac_cv_have_decl_stat = yes; then - cat >> confdefs.h <&6 -echo "configure:6389: checking if lstat is declared" >&5 -if eval "test \"`echo '$''{'ac_cv_have_decl_lstat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -#ifndef lstat - char *p = (char *) lstat; -#endif -; return 0; } -EOF -if { (eval echo configure:6406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_decl_lstat=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_decl_lstat=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_have_decl_lstat" 1>&6 - ac_tr_decl=HAVE_DECL_`echo lstat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` -if test $ac_cv_have_decl_lstat = yes; then - cat >> confdefs.h <&6 -echo "configure:6429: checking for wait3 that fills in rusage" >&5 -if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_wait3_rusage=no -else - cat > conftest.$ac_ext < -#include -#include -#include -/* HP-UX has wait3 but does not fill in rusage at all. */ -main() { - struct rusage r; - int i; - /* Use a field that we can force nonzero -- - voluntary context switches. - For systems like NeXT and OSF/1 that don't set it, - also use the system CPU time. And page faults (I/O) for Linux. */ - r.ru_nvcsw = 0; - r.ru_utime.tv_sec = 0; - r.ru_utime.tv_usec = 0; - r.ru_stime.tv_sec = 0; - r.ru_stime.tv_usec = 0; - r.ru_majflt = r.ru_minflt = 0; - switch (fork()) { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ - _exit(0); - case -1: _exit(0); /* What can we do? */ - default: /* Parent. */ - wait3(&i, 0, &r); - sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ - exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } -} -EOF -if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_wait3_rusage=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_wait3_rusage=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6 -if test $ac_cv_func_wait3_rusage = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_WAIT3 1 -EOF - -fi - -echo $ac_n "checking for mlock""... $ac_c" 1>&6 -echo "configure:6495: checking for mlock" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mlock'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ - if (mlock(0, 0) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -} -EOF -if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mlock=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mlock=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mlock" 1>&6 -if test $ac_cv_func_mlock = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MLOCK 1 -EOF - -fi -echo $ac_n "checking for mlockall""... $ac_c" 1>&6 -echo "configure:6545: checking for mlockall" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mlockall'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -int -main() -{ - if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { - if (errno == EINVAL || errno == ENOMEM || - errno == EPERM || errno == EACCES) - exit(0); - exit(-1); - } - exit(0); -} - -EOF -if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mlockall=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mlockall=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mlockall" 1>&6 -if test $ac_cv_func_mlockall = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MLOCKALL 1 -EOF - -fi -echo $ac_n "checking for va_copy""... $ac_c" 1>&6 -echo "configure:6598: checking for va_copy" >&5 -if eval "test \"`echo '$''{'ac_cv_func_va_copy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif -int main() { - -va_list a, b; - -va_copy(a, b); -; return 0; } -EOF -if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_va_copy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_va_copy=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_va_copy" 1>&6 -if test $ac_cv_func_va_copy = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_VA_COPY 1 -EOF - -fi -echo $ac_n "checking for __va_copy""... $ac_c" 1>&6 -echo "configure:6638: checking for __va_copy" >&5 -if eval "test \"`echo '$''{'ac_cv_func__va_copy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#else -# include -#endif -int main() { - -va_list a, b; - -__va_copy(a, b); -; return 0; } -EOF -if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func__va_copy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func__va_copy=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func__va_copy" 1>&6 -if test $ac_cv_func__va_copy = yes; then - cat >> confdefs.h <<\EOF -#define HAVE__VA_COPY 1 -EOF - -fi -echo $ac_n "checking for working ecvt() ""... $ac_c" 1>&6 -echo "configure:6678: checking for working ecvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_ecvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_ecvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_ecvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_ecvt" 1>&6 -if test $ac_cv_func_ecvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ECVT 1 -EOF - -fi -echo $ac_n "checking for working fcvt() ""... $ac_c" 1>&6 -echo "configure:6728: checking for working fcvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_fcvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_fcvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_fcvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_fcvt" 1>&6 -if test $ac_cv_func_fcvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FCVT 1 -EOF - -fi -echo $ac_n "checking for working gcvt() ""... $ac_c" 1>&6 -echo "configure:6778: checking for working gcvt() " >&5 -if eval "test \"`echo '$''{'ac_cv_func_gcvt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_gcvt=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_gcvt=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_gcvt" 1>&6 -if test $ac_cv_func_gcvt = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_GCVT 1 -EOF - -fi -echo $ac_n "checking for __dtoa""... $ac_c" 1>&6 -echo "configure:6828: checking for __dtoa" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dtoa'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_dtoa=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_dtoa=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_dtoa" 1>&6 -if test $ac_cv_func_dtoa = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DTOA 1 -EOF - -fi -echo $ac_n "checking for __dtoa that needs result ptr""... $ac_c" 1>&6 -echo "configure:6861: checking for __dtoa that needs result ptr" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dtoa_r'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_dtoa_r=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_dtoa_r=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_dtoa_r" 1>&6 -if test $ac_cv_func_dtoa_r = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_DTOA_R 1 -EOF - -fi -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6915: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6954: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 -echo "configure:7007: checking for mmap that needs ptr to size" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_sizep=no -else - cat > conftest.$ac_ext < -#include -#include -#include -#include - -#ifndef MAP_FILE -#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -jmp_buf jenv; - -int -intr() -{ - signal(SIGSEGV, intr); - longjmp(jenv, 1); -} - -int -main() -{ - char *data, *data2; - int i, pagesize, ps; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - - /* - * Keep a copy, Apollo modifies the value... - */ - ps = pagesize; - - /* - * Apollo mmap() is not a syscall but a library function and fails - * if it tries to dereference 'ps'. We must use setjmp in order to - * catch the failure. - */ - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 != (char *)-1) - exit(1); - - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 == (char *)-1) - exit(1); - - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_sizep=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_sizep=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 -if test $ac_cv_func_mmap_sizep = yes; then - cat >> confdefs.h <<\EOF -#define _MMAP_WITH_SIZEP 1 -EOF - -fi - -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7182: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7221: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:7274: checking for working mmap" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat > conftest.$ac_ext < -#include -#include - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_fixed_mapped=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 -if test $ac_cv_func_mmap_fixed_mapped = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MMAP 1 -EOF - -fi - -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7457: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7496: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 -echo "configure:7549: checking for mmap that needs ptr to size" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_sizep=no -else - cat > conftest.$ac_ext < -#include -#include -#include -#include - -#ifndef MAP_FILE -#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif - -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - -jmp_buf jenv; - -int -intr() -{ - signal(SIGSEGV, intr); - longjmp(jenv, 1); -} - -int -main() -{ - char *data, *data2; - int i, pagesize, ps; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - - /* - * Keep a copy, Apollo modifies the value... - */ - ps = pagesize; - - /* - * Apollo mmap() is not a syscall but a library function and fails - * if it tries to dereference 'ps'. We must use setjmp in order to - * catch the failure. - */ - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 != (char *)-1) - exit(1); - - signal(SIGSEGV, intr); - if (setjmp(jenv) == 0) { - data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); - } else { - data2 = (char *)-1; - } - if (data2 == (char *)-1) - exit(1); - - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - close(fd); - unlink("conftestmmap"); - exit(0); -} - -EOF -if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_sizep=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_sizep=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 -if test $ac_cv_func_mmap_sizep = yes; then - cat >> confdefs.h <<\EOF -#define _MMAP_WITH_SIZEP 1 -EOF - -fi - -echo $ac_n "checking if mmap works to get shared memory""... $ac_c" 1>&6 -echo "configure:7721: checking if mmap works to get shared memory" >&5 -if eval "test \"`echo '$''{'ac_cv_func_smmap'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_smmap=no -else - cat > conftest.$ac_ext < -#include - -#ifndef MAP_ANONYMOUS -# ifdef MAP_ANON -# define MAP_ANONYMOUS MAP_ANON -# endif -#endif - -/* - * Needed for Apollo Domain/OS and may be for others? - */ -#ifdef _MMAP_WITH_SIZEP -# define mmap_sizeparm(s) (&(s)) -#else -# define mmap_sizeparm(s) (s) -#endif - -char * -mkshare() -{ - int size = 8192; - int f; - char *addr; - -#ifdef MAP_ANONYMOUS /* HP/UX */ - f = -1; - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); -#else - if ((f = open("/dev/zero", 2)) < 0) - exit(1); - addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); -#endif - if (addr == (char *)-1) - exit(1); - close(f); - - return (addr); -} - -int -main() -{ - char *addr; - - addr = mkshare(); - *addr = 'I'; - - switch (fork()) { - - case -1: - printf("help\n"); exit(1); - - case 0: /* child */ - *addr = 'N'; - _exit(0); - break; - default: /* parent */ - wait(0); - sleep(1); - break; - } - - if (*addr != 'N') - exit(1); - exit(0); -} - -EOF -if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_smmap=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_smmap=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_smmap" 1>&6 -if test $ac_cv_func_smmap = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SMMAP 1 -EOF - -fi -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:7825: checking for working alloca.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -char *p = alloca(2 * sizeof(int)); -; return 0; } -EOF -if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_header_alloca_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_alloca_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 -if test $ac_cv_header_alloca_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ALLOCA_H 1 -EOF - -fi - -echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:7858: checking for alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif - -int main() { -char *p = (char *) alloca(1); -; return 0; } -EOF -if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_alloca_works=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_alloca_works=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 -if test $ac_cv_func_alloca_works = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ALLOCA 1 -EOF - -fi - -if test $ac_cv_func_alloca_works = no; then - # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - ALLOCA=alloca.${ac_objext} - cat >> confdefs.h <<\EOF -#define C_ALLOCA 1 -EOF - - -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:7923: checking whether alloca needs Cray hooks" >&5 -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5 | - egrep "webecray" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_os_cray=yes -else - rm -rf conftest* - ac_cv_os_cray=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_os_cray" 1>&6 -if test $ac_cv_os_cray = yes; then -for ac_func in _getb67 GETB67 getb67; do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7953: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <&6 -fi - -done -fi - -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:8008: checking stack direction for C alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat > conftest.$ac_ext < addr) ? 1 : -1; -} -main () -{ - exit (find_stack_direction() < 0); -} -EOF -if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_c_stack_direction=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_stack_direction=-1 -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 -cat >> confdefs.h <&6 -echo "configure:8057: checking if quotactl is an ioctl" >&5 -if eval "test \"`echo '$''{'ac_cv_func_quotaioctl'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct quotctl q; ioctl(0, Q_QUOTACTL, &q) -; return 0; } -EOF -if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_quotaioctl=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_quotaioctl=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_quotaioctl" 1>&6 -if test $ac_cv_func_quotaioctl = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_QUOTAIOCTL 1 -EOF - -fi -echo $ac_n "checking for file locking via fcntl""... $ac_c" 1>&6 -echo "configure:8090: checking for file locking via fcntl" >&5 -if eval "test \"`echo '$''{'ac_cv_func_fcntl_lock'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -struct flock fl; -fcntl(0, F_SETLK, &fl); -; return 0; } -EOF -if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_fcntl_lock=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_fcntl_lock=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_fcntl_lock" 1>&6 -if test $ac_cv_func_fcntl_lock = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_LOCKF 1 -EOF - -fi -echo $ac_n "checking for uname""... $ac_c" 1>&6 -echo "configure:8126: checking for uname" >&5 -if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -struct utsname un; -uname(&un); -; return 0; } -EOF -if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_uname=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_uname=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_uname" 1>&6 -if test $ac_cv_func_uname = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_UNAME 1 -EOF - -fi -ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:8160: checking for vfork.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_VFORK_H 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - -echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:8195: checking for working vfork" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - echo $ac_n "checking for vfork""... $ac_c" 1>&6 -echo "configure:8201: checking for vfork" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char vfork(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_vfork) || defined (__stub___vfork) -choke me -#else -vfork(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_vfork=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_vfork=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 -fi - -ac_cv_func_vfork_works=$ac_cv_func_vfork -else - cat > conftest.$ac_ext < -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_VFORK_H -#include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. - The compiler is told about this with #include , - but some compilers (e.g. gcc -O) don't grok . - Test for this by using a static variable whose address - is put into a register that is clobbered by the vfork. */ -static -#ifdef __cplusplus -sparc_address_test (int arg) -#else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} -main() { - pid_t parent = getpid (); - pid_t child; - - sparc_address_test (); - - child = vfork (); - - if (child == 0) { - /* Here is another test for sparc vfork register problems. - This test uses lots of local variables, at least - as many local variables as main has allocated so far - including compiler temporaries. 4 locals are enough for - gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. - A buggy compiler should reuse the register of parent - for one of the local variables, since it will think that - parent can't possibly be used any more in this routine. - Assigning to the local variable will thus munge parent - in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - - /* On some systems (e.g. IRIX 3.3), - vfork doesn't separate parent from child file descriptors. - If the child closes a descriptor before it execs or exits, - this munges the parent's descriptor as well. - Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - - while (wait(&status) != child) - ; - exit( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -EOF -if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_vfork_works=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_vfork_works=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 -if test $ac_cv_func_vfork_works = no; then - cat >> confdefs.h <<\EOF -#define vfork fork -EOF - -fi - -echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 -echo "configure:8369: checking for sys_siglist" >&5 -if eval "test \"`echo '$''{'ac_cv_func_sys_siglist'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_sys_siglist=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_sys_siglist=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_sys_siglist" 1>&6 -if test $ac_cv_func_sys_siglist = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SYS_SIGLIST 1 -EOF - -fi -echo $ac_n "checking for BSD compliant getpgrp""... $ac_c" 1>&6 -echo "configure:8409: checking for BSD compliant getpgrp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_bsd_getpgrp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_bsd_getpgrp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_bsd_getpgrp=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_bsd_getpgrp" 1>&6 -if test $ac_cv_func_bsd_getpgrp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BSD_GETPGRP 1 -EOF - -fi -echo $ac_n "checking for BSD compliant setpgrp""... $ac_c" 1>&6 -echo "configure:8453: checking for BSD compliant setpgrp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_bsd_setpgrp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif -int -main() -{ errno = 0; -/* - * Force illegal pid on BSD - */ -if (setpgrp(-1, 100) < 0 && errno == ESRCH) - exit(0); -exit(1);} -EOF -if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_bsd_setpgrp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_bsd_setpgrp=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_func_bsd_setpgrp" 1>&6 -if test $ac_cv_func_bsd_setpgrp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BSD_SETPGRP 1 -EOF - -fi -echo $ac_n "checking for C99 compliant isinf""... $ac_c" 1>&6 -echo "configure:8500: checking for C99 compliant isinf" >&5 -if eval "test \"`echo '$''{'ac_cv_func_c99_isinf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - double d; -#ifndef isinf -The isinf macro is not defined -#endif -return (isinf(d)); - -; return 0; } -EOF -if { (eval echo configure:8517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_func_c99_isinf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_c99_isinf=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_c99_isinf" 1>&6 -if test $ac_cv_func_c99_isinf = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_C99_ISINF 1 -EOF - -fi -echo $ac_n "checking for C99 compliant isnan""... $ac_c" 1>&6 -echo "configure:8537: checking for C99 compliant isnan" >&5 -if eval "test \"`echo '$''{'ac_cv_func_c99_isnan'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - double d; -#ifndef isnan -The isnan macro is not defined -#endif -return (isnan(d)); - -; return 0; } -EOF -if { (eval echo configure:8554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_func_c99_isnan=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_c99_isnan=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_c99_isnan" 1>&6 -if test $ac_cv_func_c99_isnan = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_C99_ISNAN 1 -EOF - -fi -echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 -echo "configure:8574: checking for sigsetjmp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_sigsetjmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - -sigjmp_buf jb; -sigsetjmp(jb, 1); -; return 0; } -EOF -if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_sigsetjmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_sigsetjmp=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_sigsetjmp" 1>&6 -if test $ac_cv_func_sigsetjmp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGSETJMP 1 -EOF - -fi -echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6 -echo "configure:8609: checking for siglongjmp" >&5 -if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { - -sigjmp_buf jb; -sigsetjmp(jb, 1); -siglongjmp(jb, 1); -; return 0; } -EOF -if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_siglongjmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_siglongjmp=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_siglongjmp" 1>&6 -if test $ac_cv_func_siglongjmp = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGLONGJMP 1 -EOF - -fi -for ac_func in access eaccess euidaccess -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8647: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in brk sbrk strerror nice memmove flock lockf fchdir statvfs quotactl -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8702: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in dup2 -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8757: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getcwd shmat semget -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8812: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in lstat readlink symlink link rename mkfifo mknod -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8867: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setreuid setresuid seteuid setuid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8922: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setregid setresgid setegid setgid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8977: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpid getppid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9032: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpgid setpgid -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9087: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getpgrp setpgrp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9142: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getspnam getspwnam -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9197: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sync fsync fork wait4 waitid waitpid getrusage getrlimit setrlimit ulimit -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9252: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in execl execle execlp execv execve execvp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9307: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in gethostid gethostname getdomainname getpagesize getdtablesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9362: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in gettimeofday settimeofday time stime gethrtime -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9417: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ftime tzset mktime gmtime localtime timegm timelocal -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9472: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ctime cftime ascftime strftime -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9527: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in poll select chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9582: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in ecvt_r fcvt_r gcvt_r -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9637: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in econvert fconvert gconvert -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9692: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in isinf isnan -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9747: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in rand drand48 -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9802: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in setpriority DosSetPriority -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9857: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in DosAllocSharedMem -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9912: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in seekdir fdopendir -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9967: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in openat attropen fstatat fchownat futimesat renameat unlinkat -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10022: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in popen pclose _popen _pclose -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10077: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in strsignal str2sig sig2str -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10132: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in killpg sigrelse sigprocmask sigsetmask sigset -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10187: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in usleep yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10242: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in tcgetattr tcsetattr tcgetpgrp tcsetpgrp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10297: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in putenv setenv snprintf strcasecmp strncpy strlcpy strdup -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10352: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in valloc -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10407: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in madvise -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10462: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in mktemp mkstemp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10517: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in chflags fchflags fflagstostr strtofflags -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10572: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in fnmatch -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10627: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in truncate ftruncate -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10682: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getppriv setppriv priv_set -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10737: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in clone_area create_area delete_area -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10792: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - - -echo $ac_n "checking if we may not define our own malloc()""... $ac_c" 1>&6 -echo "configure:10847: checking if we may not define our own malloc()" >&5 -if eval "test \"`echo '$''{'ac_cv_no_user_malloc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_no_user_malloc=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_no_user_malloc=yes -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_no_user_malloc" 1>&6 -if test $ac_cv_no_user_malloc = yes; then - cat >> confdefs.h <<\EOF -#define NO_USER_MALLOC 1 -EOF - -fi -echo $ac_n "checking for working extern long timezone ""... $ac_c" 1>&6 -echo "configure:10903: checking for working extern long timezone " >&5 -if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_var_timezone=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_var_timezone=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_var_timezone" 1>&6 -if test $ac_cv_var_timezone = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_VAR_TIMEZONE 1 -EOF - -fi - -echo $ac_n "checking if link() allows hard links on symlinks""... $ac_c" 1>&6 -echo "configure:10945: checking if link() allows hard links on symlinks" >&5 -if eval "test \"`echo '$''{'ac_cv_hard_symlinks'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_hard_symlinks=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_hard_symlinks=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_hard_symlinks" 1>&6 -if test $ac_cv_hard_symlinks = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_HARD_SYMLINKS 1 -EOF - -fi -echo $ac_n "checking if link() does not folow symlinks""... $ac_c" 1>&6 -echo "configure:10997: checking if link() does not folow symlinks" >&5 -if eval "test \"`echo '$''{'ac_cv_link_nofollow'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -#include - -main() -{ - int ret = 0; - int f; - struct stat sb; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - f = creat("confdefs.f1", 0666); - close(f); - if (symlink("confdefs.f1", "confdefs.l1") < 0) - ret = 1; - if (link("confdefs.l1", "confdefs.h1") < 0) - ret = 1; - - stat("confdefs.f1", &sb); - if (sb.st_nlink == 2) - ret = 1; - - unlink("confdefs.f1"); - unlink("confdefs.l1"); - unlink("confdefs.h1"); - - exit(ret); -} -EOF -if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_link_nofollow=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_link_nofollow=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_link_nofollow" 1>&6 -if test $ac_cv_link_nofollow = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LINK_NOFOLLOW 1 -EOF - -fi -for ac_hdr in unistd.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:11064: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -echo $ac_n "checking if access() does implement E_OK""... $ac_c" 1>&6 -echo "configure:11101: checking if access() does implement E_OK" >&5 -if eval "test \"`echo '$''{'ac_cv_access_e_ok'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } -else - cat > conftest.$ac_ext < -# endif -#ifndef R_OK -#define R_OK 4 /* Test for Read permission */ -#define W_OK 2 /* Test for Write permission */ -#define X_OK 1 /* Test for eXecute permission */ -#define F_OK 0 /* Test for existence of File */ -#endif - -#ifndef E_OK -#ifdef EFF_ONLY_OK -#define E_OK EFF_ONLY_OK /* Irix */ -#else -#ifdef EUID_OK -#define E_OK EUID_OK /* UNICOS (0400) */ -#else -#define E_OK 010 /* Test effective uids */ -#endif -#endif -#endif - -#include -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -main() -{ -#ifdef _MSC_VER -/* - * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will - * cause an exception that results in a popup window. For this reason, the test - * is disabled for "cl", it would not work anyway. - */ - int ret = 1; -#else - int ret = 0; - - if (access(".", F_OK) != 0) - ret = 1; - else if (access(".", E_OK|F_OK) != 0) - ret = 1; - else if (access(".", (R_OK<<4)|F_OK) == 0) - ret = 1; -#endif - - exit(ret); -} -EOF -if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_access_e_ok=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_access_e_ok=no -fi -rm -fr conftest* -fi - -fi - -echo "$ac_t""$ac_cv_access_e_ok" 1>&6 -if test $ac_cv_access_e_ok = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ACCESS_E_OK 1 -EOF - -fi - -echo $ac_n "checking for fseeko()""... $ac_c" 1>&6 -echo "configure:11185: checking for fseeko()" >&5 -if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_fseeko=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_fseeko=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_fseeko" 1>&6 -if test $ac_cv_func_fseeko = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FSEEKO 1 -EOF - -fi -echo $ac_n "checking for ftello()""... $ac_c" 1>&6 -echo "configure:11217: checking for ftello()" >&5 -if eval "test \"`echo '$''{'ac_cv_func_ftello'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -return !ftello; -; return 0; } -EOF -if { (eval echo configure:11229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_func_ftello=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_ftello=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_func_ftello" 1>&6 -if test $ac_cv_func_ftello = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_FTELLO 1 -EOF - -fi - -echo $ac_n "checking for rcmd in -lsocket""... $ac_c" 1>&6 -echo "configure:11250: checking for rcmd in -lsocket" >&5 -ac_lib_var=`echo socket'_'rcmd | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_socket="-lsocket" -else - echo "$ac_t""no" 1>&6 -fi - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_socket" -echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 -echo "configure:11292: checking for inet_ntoa in -lnsl" >&5 -ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lnsl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_nsl="-lnsl" -else - echo "$ac_t""no" 1>&6 -fi - -LIBS="$LIBS $lib_nsl" -for ac_func in rcmd socket socketpair -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11335: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getservbyname inet_ntoa -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11390: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in getaddrinfo getnameinfo -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11445: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:11473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -ac_save_LIBS="$LIBS" -echo $ac_n "checking for res_init in -lc""... $ac_c" 1>&6 -echo "configure:11501: checking for res_init in -lc" >&5 -ac_lib_var=`echo c'_'res_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_resolv="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6 -echo "configure:11539: checking for res_init in -lresolv" >&5 -ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lresolv $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_resolv="-lresolv" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -LIBS="$ac_save_LIBS" - -# Check whether --enable-largefile or --disable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval="$enable_largefile" - : -fi - - if test "$enable_largefile" != no; then - - echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 -echo "configure:11591: checking for special C compiler options needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_largefile_CC=no - largefile_cc_opt="" - if test "$GCC" != yes; then - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_save_CC="${CC-cc}" - CC="$CC -n32" - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_largefile_CC=' -n32' -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* - CC="$ac_save_CC" -fi -rm -f conftest* - fi -fi - -echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 - if test "$ac_cv_sys_largefile_CC" != no; then - CC="$CC$ac_cv_sys_largefile_CC" - largefile_cc_opt="$ac_cv_sys_largefile_CC" - fi - - echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 -echo "configure:11663: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_file_offset_bits=no - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_file_offset_bits=64 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 - if test "$ac_cv_sys_file_offset_bits" != no; then - cat >> confdefs.h <&6 -echo "configure:11730: checking for _LARGE_FILES value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_large_files=no - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply "#define LARGE_OFF_T 9223372036854775807", - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; - - -int main() { - -; return 0; } -EOF -if { (eval echo configure:11777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_large_files=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_large_files" 1>&6 - if test "$ac_cv_sys_large_files" != no; then - cat >> confdefs.h <&6 -echo "configure:11797: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_sys_largefile_source=no - cat > conftest.$ac_ext < -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat > conftest.$ac_ext < - -int main() { -return !fseeko; -; return 0; } -EOF -if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_sys_largefile_source=1 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 - if test "$ac_cv_sys_largefile_source" != no; then - cat >> confdefs.h <&6 -echo "configure:11848: checking if system supports Large Files at all" >&5 -if eval "test \"`echo '$''{'ac_cv_largefiles'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { - -/* - * Check that off_t can represent 2**63 - 1 correctly. - * We can't simply "#define LARGE_OFF_T 9223372036854775807", - * since some C++ compilers masquerading as C compilers - * incorrectly reject 9223372036854775807. - */ -# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -return !fseeko; -return !ftello; -; return 0; } -EOF -if { (eval echo configure:11873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_largefiles=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_largefiles=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_largefiles" 1>&6 - if test $ac_cv_largefiles = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LARGEFILES 1 -EOF - - fi - -cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 -echo "configure:11916: checking for crypt in -lc" >&5 -ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_crypt="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:11954: checking for crypt in -lcrypt" >&5 -ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lcrypt $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_crypt="-lcrypt" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_crypt" -for ac_func in crypt -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12001: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 -echo "configure:12056: checking for gettext in -lc" >&5 -ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_intl="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 -echo "configure:12094: checking for gettext in -lintl" >&5 -ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lintl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_intl="-lintl" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_lib_intl" -for ac_func in gettext -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12141: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -if test $ac_cv_header_camlib_h = yes; then - scsi_lib=-lcam - lib_scsi=-lcam -fi - -if test "$ac_cv_header_sys_acl_h" = yes; then - - echo "checking for Posix Access Control List support" 1>&6 -echo "configure:12203: checking for Posix Access Control List support" >&5 - echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 -echo "configure:12205: checking for acl_get_file in -lacl" >&5 -ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lacl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lacl" -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for acl_get_file in -lpacl""... $ac_c" 1>&6 -echo "configure:12245: checking for acl_get_file in -lpacl" >&5 -ac_lib_var=`echo pacl'_'acl_get_file | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpacl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lpacl" -else - echo "$ac_t""no" 1>&6 -fi - - - if test ".$lib_acl" != .; then - lib_acl_test="$lib_acl" - fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - for ac_func in acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12294: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - for ac_func in acl_extended_file -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12349: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" - - echo "checking for Solaris Access Control List support" 1>&6 -echo "configure:12404: checking for Solaris Access Control List support" >&5 - echo $ac_n "checking for acltotext in -lsec""... $ac_c" 1>&6 -echo "configure:12406: checking for acltotext in -lsec" >&5 -ac_lib_var=`echo sec'_'acltotext | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsec $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_acl="-lsec" -else - echo "$ac_t""no" 1>&6 -fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_acl" - for ac_func in acl facl aclfromtext acltotext -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12450: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" - - - echo "checking for HP-UX Access Control List support" 1>&6 -echo "configure:12506: checking for HP-UX Access Control List support" >&5 - for ac_func in getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12510: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - - -fi - -if test "$ac_cv_header_attr_xattr_h" = yes; then - echo "checking for Linux flavor Extended Attribute support" 1>&6 -echo "configure:12568: checking for Linux flavor Extended Attribute support" >&5 - echo $ac_n "checking for getxattr in -lattr""... $ac_c" 1>&6 -echo "configure:12570: checking for getxattr in -lattr" >&5 -ac_lib_var=`echo attr'_'getxattr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lattr $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_attr="-lattr" -else - echo "$ac_t""no" 1>&6 -fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $lib_attr" - for ac_func in getxattr setxattr listxattr lgetxattr lsetxattr llistxattr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12614: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - LIBS="$ac_save_LIBS" -fi - -echo "checking for RBAC support" 1>&6 -echo "configure:12670: checking for RBAC support" >&5 -echo $ac_n "checking for getuserattr in -lsecdb""... $ac_c" 1>&6 -echo "configure:12672: checking for getuserattr in -lsecdb" >&5 -ac_lib_var=`echo secdb'_'getuserattr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsecdb $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_secdb="-lsecdb" -else - echo "$ac_t""no" 1>&6 -fi - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_secdb" -for ac_func in getauthattr getuserattr getexecattr getprofattr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12716: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -for ac_func in thr_yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12773: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - -echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:12827: checking for pthread_create in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpthread $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_pthread="-lpthread" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:12865: checking for pthread_create in -lc" >&5 -ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_pthread="" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_pthread" -for ac_func in pthread_create pthread_kill -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12912: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in pthread_mutex_lock pthread_cond_wait pthread_spin_lock -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12967: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6 -echo "configure:13022: checking for clock_gettime in -lc" >&5 -ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lc $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6 -echo "configure:13060: checking for clock_gettime in -lrt" >&5 -ac_lib_var=`echo rt'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lrt $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="-lrt" -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6 -echo "configure:13098: checking for clock_gettime in -lposix4" >&5 -ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lposix4 $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - lib_rt="-lposix4" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -fi - - -ac_save_LIBS="$LIBS" -LIBS="$LIBS $lib_rt" -for ac_func in clock_gettime clock_settime clock_getres -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13147: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sched_getparam sched_setparam sched_getscheduler sched_setscheduler -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13202: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in sched_yield -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13257: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -for ac_func in nanosleep -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13312: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:13340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - -LIBS="$ac_save_LIBS" - -echo $ac_n "checking for /dev/tty""... $ac_c" 1>&6 -echo "configure:13367: checking for /dev/tty" >&5 -if test -r /dev/tty; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_TTY 1 -EOF - -else - echo no -fi -echo $ac_n "checking for /dev/null""... $ac_c" 1>&6 -echo "configure:13378: checking for /dev/null" >&5 -if test -r /dev/null; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_NULL 1 -EOF - -else - echo no -fi -echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6 -echo "configure:13389: checking for /dev/zero" >&5 -if test -r /dev/zero; then - echo yes - cat >> confdefs.h <<\EOF -#define HAVE_DEV_ZERO 1 -EOF - -else - echo no -fi - -echo $ac_n "checking if Linux include file linux/ext2_fs.h is broken""... $ac_c" 1>&6 -echo "configure:13401: checking if Linux include file linux/ext2_fs.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_linux_ext2_fs_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_linux_ext2_fs_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_linux_ext2_fs_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_linux_ext2_fs_h" 1>&6 -if test $ac_cv_broken_linux_ext2_fs_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_LINUX_EXT2_FS_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken""... $ac_c" 1>&6 -echo "configure:13436: checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_linux_ext2_fs_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_linux_ext2_fs_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_linux_ext2_fs_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_linux_ext2_fs_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_LINUX_EXT2_FS_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file scsi/scsi.h is broken""... $ac_c" 1>&6 -echo "configure:13473: checking if Linux include file scsi/scsi.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_scsi_scsi_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_scsi_scsi_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_scsi_scsi_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_scsi_scsi_h" 1>&6 -if test $ac_cv_broken_scsi_scsi_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SCSI_SCSI_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken""... $ac_c" 1>&6 -echo "configure:13508: checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_scsi_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_scsi_scsi_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_scsi_scsi_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_scsi_scsi_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_scsi_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_SCSI_SCSI_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file scsi/sg.h is broken""... $ac_c" 1>&6 -echo "configure:13545: checking if Linux include file scsi/sg.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_scsi_sg_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_scsi_sg_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_scsi_sg_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_scsi_sg_h" 1>&6 -if test $ac_cv_broken_scsi_sg_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SCSI_SG_H 1 -EOF - -fi -echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken""... $ac_c" 1>&6 -echo "configure:13581: checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken" >&5 -if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_sg_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" - cat > conftest.$ac_ext < -#include -#endif -int main() { - -; return 0; } -EOF -if { (eval echo configure:13598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_broken_src_scsi_sg_h=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_broken_src_scsi_sg_h=yes -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_broken_src_scsi_sg_h" 1>&6 -CPPFLAGS=$___CPPFLAGS -if test $ac_cv_broken_src_scsi_sg_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROKEN_SRC_SCSI_SG_H 1 -EOF - -fi - -if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then - may_linux_src_include=no -fi -if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then - may_linux_src_include=no -fi -if test .$may_linux_src_include = .no; then - echo - echo "Warning: *** /usr/src/linux/include contains broken include files ***" - echo "Warning: *** /usr/src/linux/include is not used this reason ***" - echo "Warning: This may result in the inability to use recent Linux kernel interfaces" - echo -fi - - - - - - - - - - - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -DEFS=-DHAVE_CONFIG_H - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir - -trap 'rm -fr `echo "rules.cnf xconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@OBJEXT@%$OBJEXT%g -s%@EXEEXT@%$EXEEXT%g -s%@CPP@%$CPP%g -s%@RANLIB@%$RANLIB%g -s%@SET_MAKE@%$SET_MAKE%g -s%@LIBOBJS@%$LIBOBJS%g -s%@ALLOCA@%$ALLOCA%g -s%@may_linux_src_include@%$may_linux_src_include%g -s%@largefile_cc_opt@%$largefile_cc_opt%g -s%@lib_crypt@%$lib_crypt%g -s%@lib_resolv@%$lib_resolv%g -s%@lib_intl@%$lib_intl%g -s%@scsi_lib@%$scsi_lib%g -s%@lib_scsi@%$lib_scsi%g -s%@lib_acl@%$lib_acl%g -s%@lib_acl_test@%$lib_acl_test%g -s%@lib_attr@%$lib_attr%g -s%@lib_secdb@%$lib_secdb%g -s%@lib_pthread@%$lib_pthread%g -s%@lib_rt@%$lib_rt%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' -ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='$%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in - -EOF - -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -cat > conftest.hdr <<\EOF -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% -EOF - -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. - -rm -f conftest.tail -while : -do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS - echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals -done -rm -f conftest.vals - -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h - else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - fi - rm -f $ac_file - mv conftest.h $ac_file - fi -fi; done - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff -Nru smake-1.2a41/psmake/cpfiles smake-1.2a49/psmake/cpfiles --- smake-1.2a41/psmake/cpfiles 2007-01-22 12:04:33.000000000 +0000 +++ smake-1.2a49/psmake/cpfiles 2009-11-14 12:22:58.000000000 +0000 @@ -1,80 +1,124 @@ #!/bin/sh -# @(#)cpfiles 1.7 07/01/22 Copyright 1999 J. Schilling +# @(#)cpfiles 1.16 09/11/14 Copyright 1999 J. Schilling cp='cp -p' +smake=smake +lib=libschily +incsrc=.. +if [ -r ${incsrc}/${smake}/make.c ]; then + : +else + if [ -r ${incsrc}/build/make.c ]; then + smake=build + else + incsrc=../.. + if [ -r ${incsrc}/build/make.c ]; then + smake=build + fi + fi +fi +if [ -r ${incsrc}/${lib}/error.c ]; then + : +else + lib=lib +fi -$cp ../smake/archconf.c archconf.c -$cp ../smake/make.c make.c -$cp ../smake/make.h make.h -$cp ../smake/memory.c memory.c -$cp ../smake/parse.c parse.c -$cp ../smake/readfile.c readfile.c -$cp ../smake/rules.c rules.c -$cp ../smake/update.c update.c -$cp ../include/schily/archdefs.h include/schily/archdefs.h -$cp ../include/schily/ccomdefs.h include/schily/ccomdefs.h -$cp ../include/schily/dirent.h include/schily/dirent.h -$cp ../include/schily/fcntl.h include/schily/fcntl.h -$cp ../include/schily/getargs.h include/schily/getargs.h -$cp ../include/schily/getcwd.h include/schily/getcwd.h -$cp ../include/schily/libport.h include/schily/libport.h -$cp ../include/schily/maxpath.h include/schily/maxpath.h -$cp ../include/schily/mconfig.h include/schily/mconfig.h -$cp ../include/schily/xconfig.h include/schily/xconfig.h -$cp ../include/schily/xmconfig.h include/schily/xmconfig.h -$cp ../include/schily/prototyp.h include/schily/prototyp.h -$cp ../include/schily/sigblk.h include/schily/sigblk.h -$cp ../include/schily/standard.h include/schily/standard.h -$cp ../include/schily/stat.h include/schily/stat.h -$cp ../include/schily/stdlib.h include/schily/stdlib.h -$cp ../include/schily/string.h include/schily/string.h -$cp ../include/schily/time.h include/schily/time.h -$cp ../include/schily/unistd.h include/schily/unistd.h -$cp ../include/schily/utime.h include/schily/utime.h -$cp ../include/schily/utypes.h include/schily/utypes.h -$cp ../include/schily/types.h include/schily/types.h -$cp ../include/schily/param.h include/schily/param.h -$cp ../include/schily/varargs.h include/schily/varargs.h -$cp ../include/schily/wait.h include/schily/wait.h -$cp ../include/schily/schily.h include/schily/schily.h -$cp ../include/schily/errno.h include/schily/errno.h -$cp ../include/schily/align.h include/schily/align.h -$cp ../include/schily/avoffset.h include/schily/avoffset.h -$cp ../conf/config.guess config.guess -$cp ../conf/config.sub config.sub -$cp ../conf/configure configure -$cp ../conf/rules.cnf.in rules.cnf.in -$cp ../conf/xconfig.h.in xconfig.h.in -$cp ../conf/install-sh install-sh -$cp ../lib/stdio/schilyio.h schilyio.h -$cp ../lib/astoi.c astoi.c -$cp ../lib/astoll.c astoll.c -$cp ../lib/comerr.c comerr.c -$cp ../lib/error.c error.c -$cp ../lib/format.c format.c -$cp ../lib/printf.c printf.c -$cp ../lib/sprintf.c sprintf.c -$cp ../lib/snprintf.c snprintf.c -$cp ../lib/saveargs.c saveargs.c -$cp ../lib/seterrno.c seterrno.c -$cp ../lib/strcatl.c strcatl.c -$cp ../lib/strlcpy.c strlcpy.c -$cp ../lib/strncpy.c strncpy.c -$cp ../lib/streql.c streql.c -$cp ../lib/fillbytes.c fillbytes.c -$cp ../lib/getargs.c getargs.c -$cp ../lib/geterrno.c geterrno.c -$cp ../lib/movebytes.c movebytes.c -$cp ../lib/raisecond.c raisecond.c -$cp ../lib/rename.c rename.c -$cp ../lib/jsprintf.c jsprintf.c -$cp ../lib/jssnprintf.c jssnprintf.c -$cp ../lib/stdio/cvmod.c cvmod.c -$cp ../lib/stdio/fcons.c fcons.c -$cp ../lib/stdio/fileopen.c fileopen.c -$cp ../lib/stdio/dat.c dat.c -$cp ../lib/stdio/fileread.c fileread.c -$cp ../lib/stdio/fileseek.c fileseek.c -$cp ../lib/stdio/filewrite.c filewrite.c -$cp ../lib/stdio/flag.c flag.c -$cp ../lib/stdio/niread.c niread.c +if [ ! -d include/schily ]; then + mkdir include/schily +fi + +$cp ${incsrc}/${smake}/archconf.c archconf.c +$cp ${incsrc}/${smake}/make.c make.c +$cp ${incsrc}/${smake}/make.h make.h +$cp ${incsrc}/${smake}/memory.c memory.c +$cp ${incsrc}/${smake}/parse.c parse.c +$cp ${incsrc}/${smake}/readfile.c readfile.c +$cp ${incsrc}/${smake}/rules.c rules.c +$cp ${incsrc}/${smake}/update.c update.c +$cp ${incsrc}/include/schily/archdefs.h include/schily/archdefs.h +$cp ${incsrc}/include/schily/ccomdefs.h include/schily/ccomdefs.h +$cp ${incsrc}/include/schily/ctype.h include/schily/ctype.h +$cp ${incsrc}/include/schily/dirent.h include/schily/dirent.h +$cp ${incsrc}/include/schily/fcntl.h include/schily/fcntl.h +$cp ${incsrc}/include/schily/getargs.h include/schily/getargs.h +$cp ${incsrc}/include/schily/getcwd.h include/schily/getcwd.h +$cp ${incsrc}/include/schily/hostname.h include/schily/hostname.h +$cp ${incsrc}/include/schily/libport.h include/schily/libport.h +$cp ${incsrc}/include/schily/limits.h include/schily/limits.h +$cp ${incsrc}/include/schily/maxpath.h include/schily/maxpath.h +$cp ${incsrc}/include/schily/mconfig.h include/schily/mconfig.h +$cp ${incsrc}/include/schily/xconfig.h include/schily/xconfig.h +$cp ${incsrc}/include/schily/xmconfig.h include/schily/xmconfig.h +$cp ${incsrc}/include/schily/prototyp.h include/schily/prototyp.h +$cp ${incsrc}/include/schily/sigblk.h include/schily/sigblk.h +$cp ${incsrc}/include/schily/signal.h include/schily/signal.h +$cp ${incsrc}/include/schily/standard.h include/schily/standard.h +$cp ${incsrc}/include/schily/stat.h include/schily/stat.h +$cp ${incsrc}/include/schily/stdio.h include/schily/stdio.h +$cp ${incsrc}/include/schily/stdlib.h include/schily/stdlib.h +$cp ${incsrc}/include/schily/stkframe.h include/schily/stkframe.h +$cp ${incsrc}/include/schily/string.h include/schily/string.h +$cp ${incsrc}/include/schily/systeminfo.h include/schily/systeminfo.h +$cp ${incsrc}/include/schily/time.h include/schily/time.h +$cp ${incsrc}/include/schily/unistd.h include/schily/unistd.h +$cp ${incsrc}/include/schily/utime.h include/schily/utime.h +$cp ${incsrc}/include/schily/utsname.h include/schily/utsname.h +$cp ${incsrc}/include/schily/utypes.h include/schily/utypes.h +$cp ${incsrc}/include/schily/types.h include/schily/types.h +$cp ${incsrc}/include/schily/param.h include/schily/param.h +$cp ${incsrc}/include/schily/varargs.h include/schily/varargs.h +$cp ${incsrc}/include/schily/vfork.h include/schily/vfork.h +$cp ${incsrc}/include/schily/wait.h include/schily/wait.h +$cp ${incsrc}/include/schily/schily.h include/schily/schily.h +$cp ${incsrc}/include/schily/errno.h include/schily/errno.h +$cp ${incsrc}/include/schily/align.h include/schily/align.h +$cp ${incsrc}/include/schily/avoffset.h include/schily/avoffset.h +$cp ${incsrc}/autoconf/config.guess config.guess +$cp ${incsrc}/autoconf/config.sub config.sub +$cp ${incsrc}/autoconf/configure configure +if [ -r ${incsrc}/autoconf/rules.cnf.in ]; then + $cp ${incsrc}/autoconf/rules.cnf.in rules.cnf.in +fi +if [ -r ${incsrc}/autoconf/xconfig.h.in ]; then + $cp ${incsrc}/autoconf/xconfig.h.in xconfig.h.in +fi +if [ -r ${incsrc}/autoconf/rules.cnf_in ]; then + $cp ${incsrc}/autoconf/rules.cnf_in rules.cnf_in +fi +if [ -r ${incsrc}/autoconf/xconfig.h_in ]; then + $cp ${incsrc}/autoconf/xconfig.h_in xconfig.h_in +fi +$cp ${incsrc}/conf/install-sh install-sh +$cp ${incsrc}/${lib}/stdio/schilyio.h schilyio.h +$cp ${incsrc}/${lib}/astoi.c astoi.c +$cp ${incsrc}/${lib}/astoll.c astoll.c +$cp ${incsrc}/${lib}/comerr.c comerr.c +$cp ${incsrc}/${lib}/error.c error.c +$cp ${incsrc}/${lib}/format.c format.c +#$cp ${incsrc}/${lib}/printf.c printf.c +#$cp ${incsrc}/${lib}/sprintf.c sprintf.c +#$cp ${incsrc}/${lib}/snprintf.c snprintf.c +$cp ${incsrc}/${lib}/saveargs.c saveargs.c +$cp ${incsrc}/${lib}/seterrno.c seterrno.c +$cp ${incsrc}/${lib}/strcatl.c strcatl.c +$cp ${incsrc}/${lib}/strlcpy.c strlcpy.c +$cp ${incsrc}/${lib}/strncpy.c strncpy.c +$cp ${incsrc}/${lib}/streql.c streql.c +$cp ${incsrc}/${lib}/fillbytes.c fillbytes.c +$cp ${incsrc}/${lib}/getargs.c getargs.c +$cp ${incsrc}/${lib}/geterrno.c geterrno.c +$cp ${incsrc}/${lib}/movebytes.c movebytes.c +$cp ${incsrc}/${lib}/raisecond.c raisecond.c +$cp ${incsrc}/${lib}/rename.c rename.c +$cp ${incsrc}/${lib}/jsprintf.c jsprintf.c +$cp ${incsrc}/${lib}/jssnprintf.c jssnprintf.c +$cp ${incsrc}/${lib}/stdio/cvmod.c cvmod.c +$cp ${incsrc}/${lib}/stdio/fcons.c fcons.c +$cp ${incsrc}/${lib}/stdio/fileopen.c fileopen.c +$cp ${incsrc}/${lib}/stdio/dat.c dat.c +$cp ${incsrc}/${lib}/stdio/fileread.c fileread.c +$cp ${incsrc}/${lib}/stdio/fileseek.c fileseek.c +$cp ${incsrc}/${lib}/stdio/filewrite.c filewrite.c +$cp ${incsrc}/${lib}/stdio/flag.c flag.c +$cp ${incsrc}/${lib}/stdio/niread.c niread.c +$cp ${incsrc}/${lib}/stdio/niwrite.c niwrite.c diff -Nru smake-1.2a41/psmake/cvmod.c smake-1.2a49/psmake/cvmod.c --- smake-1.2a41/psmake/cvmod.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/psmake/cvmod.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,59 +0,0 @@ -/* @(#)cvmod.c 2.9 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -#ifndef O_BINARY -#define O_BINARY 0 -#endif -#ifndef O_LARGEFILE -#define O_LARGEFILE 0 -#endif - -EXPORT int -_cvmod(mode, omode, flag) - const char *mode; - int *omode; - int *flag; -{ - while (*mode) { - switch (*mode) { - - case 'r': *omode |= O_RDONLY; *flag |= FI_READ; break; - case 'w': *omode |= O_WRONLY; *flag |= FI_WRITE; break; - case 'e': *omode |= O_EXCL; break; - case 'c': *omode |= O_CREAT; *flag |= FI_CREATE; break; - case 't': *omode |= O_TRUNC; *flag |= FI_TRUNC; break; - case 'a': *omode |= O_APPEND; *flag |= FI_APPEND; break; - case 'u': *flag |= FI_UNBUF; break; - /* dummy on UNIX */ - case 'b': *omode |= O_BINARY; *flag |= FI_BINARY; break; - /* - * XXX do we need this ? - * XXX May this be a problem? - */ - case 'l': *omode |= O_LARGEFILE; break; - default: raisecond(_badmode, 0L); - return (0); - } - mode++; - } - if (*flag & FI_READ && *flag & FI_WRITE) { - *omode &= ~(O_RDONLY|O_WRONLY); - *omode |= O_RDWR; - } - return (1); -} diff -Nru smake-1.2a41/psmake/dat.c smake-1.2a49/psmake/dat.c --- smake-1.2a41/psmake/dat.c 2003-06-15 01:24:58.000000000 +0100 +++ smake-1.2a49/psmake/dat.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -/* @(#)dat.c 1.3 03/06/15 Copyright 1986, 1996-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1996-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -char _badfile[] = "bad_file"; -char _badmode[] = "bad_file_mode"; -char _badop[] = "bad_file_op"; diff -Nru smake-1.2a41/psmake/error.c smake-1.2a49/psmake/error.c --- smake-1.2a41/psmake/error.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/error.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,47 +0,0 @@ -/* @(#)error.c 1.14 06/09/13 Copyright 1985, 1989, 1995-2003 J. Schilling */ -/* - * fprintf() on standard error stdio stream - * - * Copyright (c) 1985, 1989, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include - -/* VARARGS1 */ -#ifdef PROTOTYPES -EXPORT int -error(const char *fmt, ...) -#else -EXPORT int -error(fmt, va_alist) - char *fmt; - va_dcl -#endif -{ - va_list args; - int ret; - -#ifdef PROTOTYPES - va_start(args, fmt); -#else - va_start(args); -#endif - ret = js_fprintf(stderr, "%r", fmt, args); - va_end(args); - return (ret); -} diff -Nru smake-1.2a41/psmake/fcons.c smake-1.2a49/psmake/fcons.c --- smake-1.2a41/psmake/fcons.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/psmake/fcons.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,79 +0,0 @@ -/* @(#)fcons.c 2.17 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -/* - * Note that because of a definition in schilyio.h we are using fseeko()/ftello() - * instead of fseek()/ftell() if available. - */ - -LOCAL char *fmtab[] = { - "", /* 0 FI_NONE */ - "r", /* 1 FI_READ */ - "w", /* 2 FI_WRITE **1) */ - "r+", /* 3 FI_READ | FI_WRITE */ - "b", /* 4 FI_NONE | FI_BINARY */ - "rb", /* 5 FI_READ | FI_BINARY */ - "wb", /* 6 FI_WRITE | FI_BINARY **1) */ - "r+b", /* 7 FI_READ | FI_WRITE | FI_BINARY */ - -/* + FI_APPEND */ "", /* 0 FI_NONE */ -/* ... */ "r", /* 1 FI_READ */ - "a", /* 2 FI_WRITE **1) */ - "a+", /* 3 FI_READ | FI_WRITE */ - "b", /* 4 FI_NONE | FI_BINARY */ - "rb", /* 5 FI_READ | FI_BINARY */ - "ab", /* 6 FI_WRITE | FI_BINARY **1) */ - "a+b", /* 7 FI_READ | FI_WRITE | FI_BINARY */ - }; -/* - * NOTES: - * 1) fdopen() guarantees not to create/trunc files in this case - * - * "w" will create/trunc files with fopen() - * "a" will create files with fopen() - */ - - -EXPORT FILE * -_fcons(fd, f, flag) - register FILE *fd; - int f; - int flag; -{ - int my_gflag = _io_glflag; - - if (fd == (FILE *)NULL) - fd = fdopen(f, - fmtab[flag&(FI_READ|FI_WRITE|FI_BINARY | FI_APPEND)]); - - if (fd != (FILE *)NULL) { - if (flag & FI_APPEND) { - (void) fseek(fd, (off_t)0, SEEK_END); - } - if (flag & FI_UNBUF) { - setbuf(fd, NULL); - my_gflag |= _IOUNBUF; - } - set_my_flag(fd, my_gflag); /* must clear it if fd is reused */ - return (fd); - } - if (flag & FI_CLOSE) - close(f); - - return ((FILE *) NULL); -} diff -Nru smake-1.2a41/psmake/fileopen.c smake-1.2a49/psmake/fileopen.c --- smake-1.2a41/psmake/fileopen.c 2005-08-18 11:14:22.000000000 +0100 +++ smake-1.2a49/psmake/fileopen.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,35 +0,0 @@ -/* @(#)fileopen.c 1.11 05/08/18 Copyright 1986, 1995-2005 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2005 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -EXPORT FILE * -fileopen(name, mode) - const char *name; - const char *mode; -{ - int ret; - int omode = 0; - int flag = 0; - - if (!_cvmod(mode, &omode, &flag)) - return ((FILE *) NULL); - - if ((ret = _openfd(name, omode)) < 0) - return ((FILE *) NULL); - - return (_fcons((FILE *)0, ret, flag | FI_CLOSE)); -} diff -Nru smake-1.2a41/psmake/fileread.c smake-1.2a49/psmake/fileread.c --- smake-1.2a41/psmake/fileread.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/psmake/fileread.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,90 +0,0 @@ -/* @(#)fileread.c 1.14 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -static char _readerr[] = "file_read_err"; - -#ifdef HAVE_USG_STDIO - -EXPORT int -fileread(f, buf, len) - register FILE *f; - void *buf; - int len; -{ - int cnt; - register int n; - - down2(f, _IOREAD, _IORW); - - if (f->_flag & _IONBF) { - cnt = _niread(fileno(f), buf, len); - if (cnt < 0) { - f->_flag |= _IOERR; - if (!(my_flag(f) & _IONORAISE)) - raisecond(_readerr, 0L); - } - if (cnt == 0 && len) - f->_flag |= _IOEOF; - return (cnt); - } - cnt = 0; - while (len > 0) { - if (f->_cnt <= 0) { - if (usg_filbuf(f) == EOF) - break; - f->_cnt++; - f->_ptr--; - } - n = f->_cnt >= len ? len : f->_cnt; - buf = (void *)movebytes(f->_ptr, buf, n); - f->_ptr += n; - f->_cnt -= n; - cnt += n; - len -= n; - } - if (!ferror(f)) - return (cnt); - if (!(my_flag(f) & _IONORAISE)) - raisecond(_readerr, 0L); - return (-1); -} - -#else - -EXPORT int -fileread(f, buf, len) - register FILE *f; - void *buf; - int len; -{ - int cnt; - - down2(f, _IOREAD, _IORW); - - if (my_flag(f) & _IOUNBUF) - return (_niread(fileno(f), buf, len)); - cnt = fread(buf, 1, len, f); - - if (!ferror(f)) - return (cnt); - if (!(my_flag(f) & _IONORAISE)) - raisecond(_readerr, 0L); - return (-1); -} - -#endif /* HAVE_USG_STDIO */ diff -Nru smake-1.2a41/psmake/fileseek.c smake-1.2a49/psmake/fileseek.c --- smake-1.2a41/psmake/fileseek.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/psmake/fileseek.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -/* @(#)fileseek.c 1.12 04/08/08 Copyright 1986, 1996-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1996-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -/* - * Note that because of a definition in schilyio.h we are using fseeko()/ftello() - * instead of fseek()/ftell() if available. - */ - -static char _seekerr[] = "file_seek_err"; - -EXPORT int -fileseek(f, pos) - register FILE *f; - off_t pos; -{ - int ret; - - down(f); - ret = fseek(f, pos, SEEK_SET); - if (ret < 0 && !(my_flag(f) & _IONORAISE)) - raisecond(_seekerr, 0L); - return (ret); -} diff -Nru smake-1.2a41/psmake/filewrite.c smake-1.2a49/psmake/filewrite.c --- smake-1.2a41/psmake/filewrite.c 2004-08-08 12:02:05.000000000 +0100 +++ smake-1.2a49/psmake/filewrite.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,92 +0,0 @@ -/* @(#)filewrite.c 1.14 04/08/08 Copyright 1986, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -static char _writeerr[] = "file_write_err"; - -#ifdef HAVE_USG_STDIO - -EXPORT int -filewrite(f, vbuf, len) - register FILE *f; - void *vbuf; - int len; -{ - register int n; - int cnt; - char *buf = vbuf; - - down2(f, _IOWRT, _IORW); - - if (f->_flag & _IONBF) { - cnt = write(fileno(f), buf, len); - if (cnt < 0) { - f->_flag |= _IOERR; - if (!(my_flag(f) & _IONORAISE)) - raisecond(_writeerr, 0L); - } - return (cnt); - } - cnt = 0; - while (len > 0) { - if (f->_cnt <= 0) { - if (usg_flsbuf((unsigned char) *buf++, f) == EOF) - break; - cnt++; - if (--len == 0) - break; - } - if ((n = f->_cnt >= len ? len : f->_cnt) > 0) { - f->_ptr = (unsigned char *)movebytes(buf, f->_ptr, n); - buf += n; - f->_cnt -= n; - cnt += n; - len -= n; - } - } - if (!ferror(f)) - return (cnt); - if (!(my_flag(f) & _IONORAISE)) - raisecond(_writeerr, 0L); - return (-1); -} - -#else - -EXPORT int -filewrite(f, vbuf, len) - register FILE *f; - void *vbuf; - int len; -{ - int cnt; - char *buf = vbuf; - - down2(f, _IOWRT, _IORW); - - if (my_flag(f) & _IOUNBUF) - return (write(fileno(f), buf, len)); - cnt = fwrite(buf, 1, len, f); - - if (!ferror(f)) - return (cnt); - if (!(my_flag(f) & _IONORAISE)) - raisecond(_writeerr, 0L); - return (-1); -} - -#endif /* HAVE_USG_STDIO */ diff -Nru smake-1.2a41/psmake/fillbytes.c smake-1.2a49/psmake/fillbytes.c --- smake-1.2a41/psmake/fillbytes.c 2006-09-25 22:41:48.000000000 +0100 +++ smake-1.2a49/psmake/fillbytes.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,95 +0,0 @@ -/* @(#)fillbytes.c 1.15 06/09/25 Copyright 1987, 1995-2006 J. Schilling */ -/* - * fill memory with data - * - * Copyright (c) 1987, 1995-2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include - -#define DO8(a) a; a; a; a; a; a; a; a; - -#define cval ((char) lval) - -#ifdef PROTOTYPES -EXPORT char * -fillbytes(void *tov, int cnt, char val) -#else -EXPORT char * -fillbytes(tov, cnt, val) - void *tov; - int cnt; - char val; -#endif -{ - register char *to = (char *)tov; - register int n; - register long lval; - - /* - * If we change cnt to be unsigned, check for == instead of <= - */ - if ((n = cnt) <= 0) - return (to); - - lval = val & 0xFF; - - /* - * Assign byte-wise until properly aligned for a long pointer. - */ - while (--n >= 0 && !laligned(to)) { - *to++ = cval; - } - n++; - - if (n >= (int)(8 * sizeof (long))) { - register int rem = n % (8 * sizeof (long)); - - lval |= (lval<<8); - lval |= (lval<<16); -#if SIZE_LONG > SIZE_INT - lval |= (lval<<32); -#endif - - n /= (8 * sizeof (long)); - { - register long *tol = (long *)to; - - do { - DO8 (*tol++ = lval); - } while (--n > 0); - - to = (char *)tol; - } - n = rem; - - if (n >= 8) { - n -= 8; - do { - DO8 (*to++ = cval); - } while ((n -= 8) >= 0); - n += 8; - } - if (n > 0) do { - *to++ = cval; - } while (--n > 0); - return (to); - } - if (n > 0) do { - *to++ = cval; - } while (--n > 0); - return (to); -} diff -Nru smake-1.2a41/psmake/flag.c smake-1.2a49/psmake/flag.c --- smake-1.2a41/psmake/flag.c 2007-02-07 13:58:43.000000000 +0000 +++ smake-1.2a49/psmake/flag.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,135 +0,0 @@ -/* @(#)flag.c 2.12 07/02/07 Copyright 1986-2003 J. Schilling */ -/* - * Copyright (c) 1986-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" -#include - -#ifdef DO_MYFLAG - -#define FL_INIT 10 - -#if defined(IS_MACOS_X) -/* - * The MAC OS X linker does not grok "common" varaibles. - * Make _io_glflag a "data" variable. - */ -EXPORT int _io_glflag = 0; /* global default flag */ -#else -EXPORT int _io_glflag; /* global default flag */ -#endif -LOCAL int _fl_inc = 10; /* increment for expanding flag struct */ -EXPORT int _fl_max = FL_INIT; /* max fd currently in _io_myfl */ -LOCAL _io_fl _io_smyfl[FL_INIT]; /* initial static space */ -EXPORT _io_fl *_io_myfl = _io_smyfl; /* init to static space */ - -LOCAL int _more_flags __PR((FILE *)); - -LOCAL int -_more_flags(fp) - FILE *fp; -{ - register int f = fileno(fp); - register int n = _fl_max; - register _io_fl *np; - - while (n <= f) - n += _fl_inc; - - if (_io_myfl == _io_smyfl) { - np = (_io_fl *) malloc(n * sizeof (*np)); - fillbytes(np, n * sizeof (*np), '\0'); - movebytes(_io_smyfl, np, sizeof (_io_smyfl)/sizeof (*np)); - } else { - np = (_io_fl *) realloc(_io_myfl, n * sizeof (*np)); - if (np) - fillbytes(&np[_fl_max], (n-_fl_max)*sizeof (*np), '\0'); - } - if (np) { - _io_myfl = np; - _fl_max = n; - return (_io_get_my_flag(fp)); - } else { - return (_IONORAISE); - } -} - -EXPORT int -_io_get_my_flag(fp) - register FILE *fp; -{ - register int f = fileno(fp); - register _io_fl *fl; - - if (f >= _fl_max) - return (_more_flags(fp)); - - fl = &_io_myfl[f]; - - if (fl->fl_io == 0 || fl->fl_io == fp) - return (fl->fl_flags); - - while (fl && fl->fl_io != fp) - fl = fl->fl_next; - - if (fl == 0) - return (0); - - return (fl->fl_flags); -} - -EXPORT void -_io_set_my_flag(fp, flag) - FILE *fp; - int flag; -{ - register int f = fileno(fp); - register _io_fl *fl; - register _io_fl *fl2; - - if (f >= _fl_max) - (void) _more_flags(fp); - - fl = &_io_myfl[f]; - - if (fl->fl_io != (FILE *)0) { - fl2 = fl; - - while (fl && fl->fl_io != fp) - fl = fl->fl_next; - if (fl == 0) { - if ((fl = (_io_fl *) malloc(sizeof (*fl))) == 0) - return; - fl->fl_next = fl2->fl_next; - fl2->fl_next = fl; - } - } - fl->fl_io = fp; - fl->fl_flags = flag; -} - -EXPORT void -_io_add_my_flag(fp, flag) - FILE *fp; - int flag; -{ - int oflag = _io_get_my_flag(fp); - - oflag |= flag; - - _io_set_my_flag(fp, oflag); -} - -#endif /* DO_MYFLAG */ diff -Nru smake-1.2a41/psmake/format.c smake-1.2a49/psmake/format.c --- smake-1.2a41/psmake/format.c 2006-12-17 20:47:44.000000000 +0000 +++ smake-1.2a49/psmake/format.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,966 +0,0 @@ -/* @(#)format.c 1.41 06/12/17 Copyright 1985-2006 J. Schilling */ -/* - * format - * common code for printf fprintf & sprintf - * - * allows recursive printf with "%r", used in: - * error, comerr, comerrno, errmsg, errmsgno and the like - * - * Copyright (c) 1985-2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#ifdef DEBUG -#include -#endif -#if !defined(HAVE_STDLIB_H) || !defined(HAVE_GCVT) -extern char *gcvt __PR((double, int, char *)); -#endif -#include -#include -#include - -/* - * As Llong is currently a 'best effort' long long, we usually need to - * include long long print formats. - * This may go away, if we implement maxint_t formats. - */ -#ifndef USE_LONGLONG -#define USE_LONGLONG -#endif - -#ifdef NO_LONGLONG -#undef USE_LONGLONG -#endif - -/* - * Some CPU's (e.g. PDP-11) cannot do logical shifts. - * They use rotate instead. Masking the low bits before, - * makes rotate work too. - */ -#define allmask(t) ((unsigned t)~((unsigned t)0)) -#define lowmask(t, x) ((unsigned t)~((unsigned t)((1 << (x))-1))) -#define rshiftmask(t, s)((allmask(t) & lowmask(t, s)) >> (s)) - -#define CHARMASK makemask(char) -#define SHORTMASK makemask(short) -#define INTMASK makemask(int) -#define LONGMASK makemask(long) - -#ifdef DIVLBYS -extern long divlbys(); -extern long modlbys(); -#else -#define divlbys(val, base) ((val)/(base)) -#define modlbys(val, base) ((val)%(base)) -#endif - -/* - * We use macros here to avoid the need to link to the international - * character routines. - * We don't need internationalization for our purpose. - */ -#define is_dig(c) (((c) >= '0') && ((c) <= '9')) -#define is_cap(c) ((c) >= 'A' && (c) <= 'Z') -#define to_cap(c) (is_cap(c) ? c : c - 'a' + 'A') -#define cap_ty(c) (is_cap(c) ? 'L' : 'I') - -#ifdef HAVE_LONGLONG -typedef union { - Ullong ll; - Ulong l[2]; - char c[8]; -} quad_u; -#endif - -typedef struct f_args { - void (*outf)__PR((char, long)); /* Func from format(fun, arg) */ - long farg; /* Arg from format (fun, arg) */ - int minusflag; /* Fieldwidth is negative */ - int flags; /* General flags (+-#) */ - int fldwidth; /* Field width as in %3d */ - int signific; /* Significant chars as in %.4d */ - int lzero; /* Left '0' pad flag */ - char *buf; /* Out print buffer */ - char *bufp; /* Write ptr into buffer */ - char fillc; /* Left fill char (' ' or '0') */ - char *prefix; /* Prefix to print before buf */ - int prefixlen; /* Len of prefix ('+','-','0x') */ -} f_args; - -#define MINUSFLG 1 /* '-' flag */ -#define PLUSFLG 2 /* '+' flag */ -#define SPACEFLG 4 /* ' ' flag */ -#define HASHFLG 8 /* '#' flag */ - -LOCAL void prnum __PR((Ulong, unsigned, f_args *)); -LOCAL void prdnum __PR((Ulong, f_args *)); -LOCAL void pronum __PR((Ulong, f_args *)); -LOCAL void prxnum __PR((Ulong, f_args *)); -LOCAL void prXnum __PR((Ulong, f_args *)); -#ifdef USE_LONGLONG -LOCAL void prlnum __PR((Ullong, unsigned, f_args *)); -LOCAL void prldnum __PR((Ullong, f_args *)); -LOCAL void prlonum __PR((Ullong, f_args *)); -LOCAL void prlxnum __PR((Ullong, f_args *)); -LOCAL void prlXnum __PR((Ullong, f_args *)); -#endif -LOCAL int prbuf __PR((const char *, f_args *)); -LOCAL int prc __PR((char, f_args *)); -LOCAL int prstring __PR((const char *, f_args *)); -#ifdef DEBUG -LOCAL void dbg_print __PR((char *fmt, int a, int b, int c, int d, int e, int f, int g, int h, int i)); -#endif - - -#ifdef PROTOTYPES -EXPORT int -format(void (*fun)(char, long), - long farg, - const char *fmt, - va_list args) -#else -EXPORT int -format(fun, farg, fmt, args) - register void (*fun)(); - register long farg; - register char *fmt; - va_list args; -#endif -{ -#ifdef FORMAT_LOW_MEM - char buf[512]; -#else - char buf[8192]; -#endif - const char *sfmt; - register int unsflag; - register long val; - register char type; - register char mode; - register char c; - int count; - int i; - short sh; - const char *str; - double dval; -#ifdef USE_LONGLONG - Llong llval = 0; -#endif - Ulong res; - char *rfmt; - f_args fa; - - fa.outf = fun; - fa.farg = farg; - count = 0; - /* - * Main loop over the format string. - * Increment and check for end of string is made here. - */ - for (; *fmt != '\0'; fmt++) { - c = *fmt; - while (c != '%') { - if (c == '\0') - return (count); - (*fun)(c, farg); - c = *(++fmt); - count++; - } - - /* - * We reached a '%' sign. - */ - buf[0] = '\0'; - fa.buf = fa.bufp = buf; - fa.minusflag = 0; - fa.flags = 0; - fa.fldwidth = 0; - fa.signific = -1; - fa.lzero = 0; - fa.fillc = ' '; - fa.prefixlen = 0; - sfmt = fmt; - unsflag = FALSE; - type = '\0'; - mode = '\0'; - newflag: - switch (*(++fmt)) { - - case '+': - fa.flags |= PLUSFLG; - goto newflag; - - case '-': - fa.minusflag++; - goto newflag; - - case ' ': - /* - * If the space and the + flag are present, - * the space flag will be ignored. - */ - fa.flags |= SPACEFLG; - goto newflag; - - case '#': - fa.flags |= HASHFLG; - goto newflag; - - case '0': - /* - * '0' is a flag. - */ - fa.fillc = '0'; - goto newflag; - } - if (*fmt == '*') { - fmt++; - fa.fldwidth = va_arg(args, int); - /* - * A negative fieldwith is a minus flag with a - * positive fieldwidth. - */ - if (fa.fldwidth < 0) { - fa.fldwidth = -fa.fldwidth; -/* fa.minusflag ^= 1;*/ - fa.minusflag = 1; - } - } else while (c = *fmt, is_dig(c)) { - fa.fldwidth *= 10; - fa.fldwidth += c - '0'; - fmt++; - } - if (*fmt == '.') { - fmt++; - fa.signific = 0; - if (*fmt == '*') { - fmt++; - fa.signific = va_arg(args, int); - if (fa.signific < 0) - fa.signific = 0; - } else while (c = *fmt, is_dig(c)) { - fa.signific *= 10; - fa.signific += c - '0'; - fmt++; - } - } - if (strchr("UCSIL", *fmt)) { - /* - * Enhancements to K&R and ANSI: - * - * got a type specifyer - * - * XXX 'S' in C99 is %ls, 'S' should become 'H' - */ - if (*fmt == 'U') { - fmt++; - unsflag = TRUE; - } - if (!strchr("CSILZODX", *fmt)) { - /* - * Got only 'U'nsigned specifyer, - * use default type and mode. - */ - type = 'I'; - mode = 'D'; - fmt--; - } else if (!strchr("CSIL", *fmt)) { - /* - * no type, use default - */ - type = 'I'; - mode = *fmt; - } else { - /* - * got CSIL - */ - type = *fmt++; - if (!strchr("ZODX", mode = *fmt)) { - fmt--; - mode = 'D'; /* default mode */ - } - } - } else switch (*fmt) { - - case 'h': - if (!type) - type = 'H'; /* convert to short type */ - goto getmode; - - case 'l': - if (!type) - type = 'L'; /* convert to long type */ - goto getmode; - - case 'j': - if (!type) - type = 'J'; /* convert to intmax_t type */ - /* - * XXX Future length modifiers: - * XXX 'z' size_t - * XXX 't' ptrdiff_t - * XXX 'L' with double: long double - */ - - getmode: - if (!strchr("udioxX", *(++fmt))) { - if (type == 'H' && *fmt == 'h') { - type = 'C'; - goto getmode; - } -#ifdef USE_LONGLONG - if (type == 'L' && *fmt == 'l') { - type = 'Q'; - goto getmode; - } -#endif - fmt--; - mode = 'D'; - } else { - mode = *fmt; - if (mode != 'x') - mode = to_cap(mode); - if (mode == 'U') - unsflag = TRUE; - else if (mode == 'I') /*XXX */ - mode = 'D'; - } - break; - case 'x': - mode = 'x'; - goto havemode; - case 'X': - mode = 'X'; - type = 'I'; - goto havemode; - case 'u': - unsflag = TRUE; - /* - * XXX Need to remove uppercase letters for 'long' - * XXX in future for POSIX/C99 compliance. - */ - /* FALLTHRU */ - case 'o': case 'O': - case 'd': case 'D': - case 'i': case 'I': - case 'z': case 'Z': - mode = to_cap(*fmt); - havemode: - if (!type) - type = cap_ty(*fmt); -#ifdef DEBUG -/*dbg_print("*fmt: '%c' mode: '%c' type: '%c'\n", *fmt, mode, type);*/ -#endif - if (mode == 'I') /*XXX kann entfallen*/ - mode = 'D'; /*wenn besseres uflg*/ - break; - case 'p': - mode = 'P'; - type = 'L'; - break; - - case '%': - count += prc('%', &fa); - continue; - case ' ': - count += prbuf("", &fa); - continue; - case 'c': - c = va_arg(args, int); - count += prc(c, &fa); - continue; - case 's': - str = va_arg(args, char *); - count += prstring(str, &fa); - continue; - case 'b': - str = va_arg(args, char *); - fa.signific = va_arg(args, int); - count += prstring(str, &fa); - continue; - -#ifndef NO_FLOATINGPOINT - case 'e': - if (fa.signific == -1) - fa.signific = 6; - dval = va_arg(args, double); - ftoes(buf, dval, 0, fa.signific); - count += prbuf(buf, &fa); - continue; - case 'f': - if (fa.signific == -1) - fa.signific = 6; - dval = va_arg(args, double); - ftofs(buf, dval, 0, fa.signific); - count += prbuf(buf, &fa); - continue; - case 'g': - if (fa.signific == -1) - fa.signific = 6; - if (fa.signific == 0) - fa.signific = 1; - dval = va_arg(args, double); - gcvt(dval, fa.signific, buf); - count += prbuf(buf, &fa); - continue; -#else -# ifdef USE_FLOATINGARGS - case 'e': - case 'f': - case 'g': - dval = va_arg(args, double); - continue; -# endif -#endif - - case 'r': /* recursive printf */ - case 'R': /* recursive printf */ - rfmt = va_arg(args, char *); - /* - * I don't know any portable way to get an arbitrary - * C object from a var arg list so I use a - * system-specific routine __va_arg_list() that knows - * if 'va_list' is an array. You will not be able to - * assign the value of __va_arg_list() but it works - * to be used as an argument of a function. - * It is a requirement for recursive printf to be able - * to use this function argument. If your system - * defines va_list to be an array you need to know this - * via autoconf or another mechanism. - * It would be nice to have something like - * __va_arg_list() in stdarg.h - */ - count += format(fun, farg, rfmt, __va_arg_list(args)); - continue; - - case 'n': - { - int *ip = va_arg(args, int *); - - *ip = count; - } - continue; - - default: /* Unknown '%' format */ - sfmt++; /* Dont't print '%' */ - count += fmt - sfmt; - while (sfmt < fmt) - (*fun)(*(sfmt++), farg); - if (*fmt == '\0') { - fmt--; - continue; - } else { - (*fun)(*fmt, farg); - count++; - continue; - } - } - /* - * print numbers: - * first prepare type 'C'har, s'H'ort, 'I'nt, or 'L'ong - * or 'Q'ad and 'J'==maxint_t - */ - switch (type) { - - case 'C': - c = va_arg(args, int); - val = c; /* extend sign here */ - if (unsflag || mode != 'D') -#ifdef DO_MASK - val &= CHARMASK; -#else - val = (unsigned char)val; -#endif - break; - case 'H': - case 'S': /* XXX remove 'S' in future */ - sh = va_arg(args, int); - val = sh; /* extend sign here */ - if (unsflag || mode != 'D') -#ifdef DO_MASK - val &= SHORTMASK; -#else - val = (unsigned short)val; -#endif - break; - case 'I': - default: - i = va_arg(args, int); - val = i; /* extend sign here */ - if (unsflag || mode != 'D') -#ifdef DO_MASK - val &= INTMASK; -#else - val = (unsigned int)val; -#endif - break; - case 'P': - case 'L': - val = va_arg(args, long); - break; -#ifdef USE_LONGLONG - case 'J': /* For now Intmax_t is Llong */ - case 'Q': - llval = va_arg(args, Llong); - val = llval != 0; - break; -#endif - } - - /* - * Final print out, take care of mode: - * mode is one of: 'O'ctal, 'D'ecimal, or he'X' - * oder 'Z'weierdarstellung. - */ - fa.bufp = &buf[sizeof (buf)-1]; - *--fa.bufp = '\0'; - - if (val == 0 && mode != 'D') { - printzero: - /* - * Printing '0' with fieldwidth 0 results in no chars. - */ - fa.lzero = -1; - if (fa.signific >= 0) - fa.fillc = ' '; - count += prstring("0", &fa); - continue; - } else switch (mode) { - - case 'D': -#ifdef USE_LONGLONG - if (type == 'Q') { - if (!unsflag && llval < 0) { - fa.prefix = "-"; - fa.prefixlen = 1; - llval = -llval; - } else if (fa.flags & PLUSFLG) { - fa.prefix = "+"; - fa.prefixlen = 1; - } else if (fa.flags & SPACEFLG) { - fa.prefix = " "; - fa.prefixlen = 1; - } - if (llval == 0) - goto printzero; - goto prunsigned; - } -#endif - if (!unsflag && val < 0) { - fa.prefix = "-"; - fa.prefixlen = 1; - val = -val; - } else if (fa.flags & PLUSFLG) { - fa.prefix = "+"; - fa.prefixlen = 1; - } else if (fa.flags & SPACEFLG) { - fa.prefix = " "; - fa.prefixlen = 1; - } - if (val == 0) - goto printzero; - /* FALLTHRU */ - case 'U': - /* output a long unsigned decimal number */ -#ifdef USE_LONGLONG - prunsigned: - if (type == 'Q') - prldnum(llval, &fa); - else -#endif - prdnum(val, &fa); - break; - case 'O': - /* output a long octal number */ - if (fa.flags & HASHFLG) { - fa.prefix = "0"; - fa.prefixlen = 1; - } -#ifdef USE_LONGLONG - if (type == 'Q') { - prlonum(llval, &fa); - } else -#endif - { - pronum(val & 07, &fa); - if ((res = (val>>3) & rshiftmask(long, 3)) != 0) - pronum(res, &fa); - } - break; - case 'p': - case 'x': - /* output a hex long */ - if (fa.flags & HASHFLG) { - fa.prefix = "0x"; - fa.prefixlen = 2; - } -#ifdef USE_LONGLONG - if (type == 'Q') - prlxnum(llval, &fa); - else -#endif - { - prxnum(val & 0xF, &fa); - if ((res = (val>>4) & rshiftmask(long, 4)) != 0) - prxnum(res, &fa); - } - break; - case 'P': - case 'X': - /* output a hex long */ - if (fa.flags & HASHFLG) { - fa.prefix = "0X"; - fa.prefixlen = 2; - } -#ifdef USE_LONGLONG - if (type == 'Q') - prlXnum(llval, &fa); - else -#endif - { - prXnum(val & 0xF, &fa); - if ((res = (val>>4) & rshiftmask(long, 4)) != 0) - prXnum(res, &fa); - } - break; - case 'Z': - /* output a binary long */ -#ifdef USE_LONGLONG - if (type == 'Q') - prlnum(llval, 2, &fa); - else -#endif - { - prnum(val & 0x1, 2, &fa); - if ((res = (val>>1) & rshiftmask(long, 1)) != 0) - prnum(res, 2, &fa); - } - } - fa.lzero = -1; - /* - * If a precision (fielwidth) is specified - * on diouXx conversions, the '0' flag is ignored. - */ - if (fa.signific >= 0) - fa.fillc = ' '; - count += prbuf(fa.bufp, &fa); - } - return (count); -} - -/* - * Routines to print (not negative) numbers in an arbitrary base - */ -LOCAL unsigned char dtab[] = "0123456789abcdef"; -LOCAL unsigned char udtab[] = "0123456789ABCDEF"; - -LOCAL void -prnum(val, base, fa) - register Ulong val; - register unsigned base; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[modlbys(val, base)]; - val = divlbys(val, base); - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prdnum(val, fa) - register Ulong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[modlbys(val, (unsigned)10)]; - val = divlbys(val, (unsigned)10); - } while (val > 0); - - fa->bufp = p; -} - -/* - * We may need to use division here too (PDP-11, non two's complement ...) - */ -LOCAL void -pronum(val, fa) - register Ulong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[val & 7]; - val >>= 3; - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prxnum(val, fa) - register Ulong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[val & 15]; - val >>= 4; - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prXnum(val, fa) - register Ulong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = udtab[val & 15]; - val >>= 4; - } while (val > 0); - - fa->bufp = p; -} - -#ifdef USE_LONGLONG -LOCAL void -prlnum(val, base, fa) - register Ullong val; - register unsigned base; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[modlbys(val, base)]; - val = divlbys(val, base); - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prldnum(val, fa) - register Ullong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[val % (unsigned)10]; - val = val / (unsigned)10; - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prlonum(val, fa) - register Ullong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[val & 7]; - val >>= 3; - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prlxnum(val, fa) - register Ullong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = dtab[val & 15]; - val >>= 4; - } while (val > 0); - - fa->bufp = p; -} - -LOCAL void -prlXnum(val, fa) - register Ullong val; - f_args *fa; -{ - register char *p = fa->bufp; - - do { - *--p = udtab[val & 15]; - val >>= 4; - } while (val > 0); - - fa->bufp = p; -} - -#endif - -/* - * Final buffer print out routine. - */ -LOCAL int -prbuf(s, fa) - register const char *s; - f_args *fa; -{ - register int diff; - register int rfillc; - register long arg = fa->farg; - register void (*fun) __PR((char, long)) = fa->outf; - register int count; - register int lzero = 0; - - count = strlen(s); - - /* - * lzero becomes the number of left fill chars needed to reach signific - */ - if (fa->lzero < 0 && count < fa->signific) - lzero = fa->signific - count; - count += lzero + fa->prefixlen; - diff = fa->fldwidth - count; - if (diff > 0) - count += diff; - - if (fa->prefixlen && fa->fillc != ' ') { - while (*fa->prefix != '\0') - (*fun)(*fa->prefix++, arg); - } - if (!fa->minusflag) { - rfillc = fa->fillc; - while (--diff >= 0) - (*fun)(rfillc, arg); - } - if (fa->prefixlen && fa->fillc == ' ') { - while (*fa->prefix != '\0') - (*fun)(*fa->prefix++, arg); - } - if (lzero > 0) { - rfillc = '0'; - while (--lzero >= 0) - (*fun)(rfillc, arg); - } - while (*s != '\0') - (*fun)(*s++, arg); - if (fa->minusflag) { - rfillc = ' '; - while (--diff >= 0) - (*fun)(rfillc, arg); - } - return (count); -} - -/* - * Print out one char, allowing prc('\0') - * Similar to prbuf() - */ -#ifdef PROTOTYPES - -LOCAL int -prc(char c, f_args *fa) - -#else - -LOCAL int -prc(c, fa) - char c; - f_args *fa; -#endif -{ - register int diff; - register int rfillc; - register long arg = fa->farg; - register void (*fun) __PR((char, long)) = fa->outf; - register int count; - - count = 1; - diff = fa->fldwidth - 1; - if (diff > 0) - count += diff; - - if (!fa->minusflag) { - rfillc = fa->fillc; - while (--diff >= 0) - (*fun)(rfillc, arg); - } - (*fun)(c, arg); - if (fa->minusflag) { - rfillc = ' '; - while (--diff >= 0) - (*fun)(rfillc, arg); - } - return (count); -} - -/* - * String output routine. - * If fa->signific is >= 0, it uses only fa->signific chars. - * If fa->signific is 0, print no characters. - */ -LOCAL int -prstring(s, fa) - register const char *s; - f_args *fa; -{ - register char *bp; - register int signific; - - if (s == NULL) - return (prbuf("(NULL POINTER)", fa)); - - if (fa->signific < 0) - return (prbuf(s, fa)); - - bp = fa->buf; - signific = fa->signific; - - while (--signific >= 0 && *s != '\0') - *bp++ = *s++; - *bp = '\0'; - - return (prbuf(fa->buf, fa)); -} - -#ifdef DEBUG -LOCAL void -dbg_print(fmt, a, b, c, d, e, f, g, h, i) -char *fmt; -{ - char ff[1024]; - - sprintf(ff, fmt, a, b, c, d, e, f, g, h, i); - write(STDERR_FILENO, ff, strlen(ff)); -} -#endif diff -Nru smake-1.2a41/psmake/getargs.c smake-1.2a49/psmake/getargs.c --- smake-1.2a41/psmake/getargs.c 2007-02-20 22:58:38.000000000 +0000 +++ smake-1.2a49/psmake/getargs.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,1081 +0,0 @@ -/* @(#)getargs.c 2.48 07/02/20 Copyright 1985, 1988, 1994-2007 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)getargs.c 2.48 07/02/20 Copyright 1985, 1988, 1994-2007 J. Schilling"; -#endif -#define NEW -/* - * Copyright (c) 1985, 1988, 1994-2007 J. Schilling - * - * 1.3.88 Start implementation of release 2 - */ -/* - * Parse arguments on a command line. - * Format string type specifier (appearing directly after flag name): - * '' BOOL size int set to TRUE (1) - * '%' Extended format, next char determines the type: - * '%0' BOOL with size modifier set to FALSE (0) - * '%1' BOOL with size modifier set to TRUE(1) - * '*' string - * '?' char - * '#' number - * '&' call function for any type flag - * '~' call function for BOOLEAN flag - * '+' inctype +++ NEU +++ - * - * XXX Single char Boolen type '~' flags cannot yet be combined - * XXX Single char Boolen type '%' flags cannot yet be combined - * - * The format string 'f* ' may be used to disallow -ffoo for f* - * The same behavior is implemented for 'f# ', 'f? ' and 'f& '. - * The ' ' needs to immediately follow the format type specifier. - * - * The format string 'f*_' may be used to disallow -f foo for f* - * The same behavior is implemented for 'f#_', 'f?_' and 'f&_'. - * The '_' needs to immediately follow the format type specifier. - * This also allows to implement optional arguments to options. - * Note: 'f#_' is only implemented for orthogonality, -f will - * be converted to an integer value of 0. - * - * The '#', '+' and '%[01]' types may have size modifiers added: - * 'c'/'C' char - * 's'/'S' short - * 'i'/'I' int (default == no size modifier) - * 'l'/'L' long - * 'll'/'LL' long long - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ -/* LINTLIBRARY */ -#include -#include -#include -#include -#include -#include -#include -#include - -#define NOARGS 0 /* No more args */ -#define NOTAFLAG 1 /* Not a flag type argument */ -#define BADFLAG (-1) /* Not a valid flag argument */ -#define BADFMT (-2) /* Error in format string */ -#define NOTAFILE (-3) /* Seems to be a flag type arg */ - -LOCAL char *retnames[] = { - "NOTAFILE", - "BADFMT", - "BADFLAG", - "NOARGS", - "NOTAFLAG", -}; -#define RNAME(a) (retnames[(a)+3]) - -#define SCANONLY 0 -#define SETARGS 1 -#define ARGVECTOR 2 - - int _getargs __PR((int *, char *const **, void *, - int, va_list)); -LOCAL int dofile __PR((int *, char *const **, const char **)); -LOCAL int doflag __PR((int *, char *const **, const char *, - void *, int, va_list)); -LOCAL int dosflags __PR((const char *, void *, int, va_list)); -LOCAL int checkfmt __PR((const char *)); -LOCAL int checkeql __PR((const char *)); - -LOCAL va_list va_dummy; - -LOCAL char fmtspecs[] = "#?*&~+%"; - -#define isfmtspec(c) (strchr(fmtspecs, c) != NULL) - -/*--------------------------------------------------------------------------- -| -| get flags until a non flag type argument is reached -| -+---------------------------------------------------------------------------*/ -/* VARARGS3 */ -#ifdef PROTOTYPES -EXPORT int -getargs(int *pac, char *const **pav, const char *fmt, ...) -#else -EXPORT int -getargs(pac, pav, fmt, va_alist) - int *pac; - char **pav[]; - char *fmt; - va_dcl -#endif -{ - va_list args; - int ret; - -#ifdef PROTOTYPES - va_start(args, fmt); -#else - va_start(args); -#endif - ret = _getargs(pac, pav, (void *)fmt, SETARGS, args); - va_end(args); - return (ret); -} - - -/*--------------------------------------------------------------------------- -| -| get flags until a non flag type argument is reached (vector version) -| -+---------------------------------------------------------------------------*/ -EXPORT int -getvargs(pac, pav, vfmt, dummy) - int *pac; - char * const *pav[]; - struct ga_flags *vfmt; - void *dummy; -{ - return (_getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, va_dummy)); -} - - -/*--------------------------------------------------------------------------- -| -| get all flags on the command line, do not stop on files -| -+---------------------------------------------------------------------------*/ -/* VARARGS3 */ -#ifdef PROTOTYPES -EXPORT int -getallargs(int *pac, char *const **pav, const char *fmt, ...) -#else -EXPORT int -getallargs(pac, pav, fmt, va_alist) - int *pac; - char **pav[]; - char *fmt; - va_dcl -#endif -{ - va_list args; - int ret; - -#ifdef PROTOTYPES - va_start(args, fmt); -#else - va_start(args); -#endif - for (; ; (*pac)--, (*pav)++) { - if ((ret = _getargs(pac, pav, (void *)fmt, SETARGS, args)) != NOTAFLAG) - break; - } - va_end(args); - return (ret); -} - - -/*--------------------------------------------------------------------------- -| -| get all flags on the command line, do not stop on files (vector version) -| -+---------------------------------------------------------------------------*/ -EXPORT int -getvallargs(pac, pav, vfmt, dummy) - int *pac; - char * const *pav[]; - struct ga_flags *vfmt; - void *dummy; -{ - int ret; - - for (; ; (*pac)--, (*pav)++) { - if ((ret = _getargs(pac, pav, vfmt, SETARGS | ARGVECTOR, va_dummy)) != NOTAFLAG) - break; - } - return (ret); -} - - -/*--------------------------------------------------------------------------- -| -| get next non flag type argument (i.e. a file) -| -+---------------------------------------------------------------------------*/ -EXPORT int -getfiles(pac, pav, fmt) - int *pac; - char *const *pav[]; - const char *fmt; -{ - return (_getargs(pac, pav, (void *)fmt, SCANONLY, va_dummy)); -} - - -/*--------------------------------------------------------------------------- -| -| get next non flag type argument (i.e. a file) (vector version) -| -+---------------------------------------------------------------------------*/ -EXPORT int -getvfiles(pac, pav, vfmt, dummy) - int *pac; - char *const *pav[]; - struct ga_flags *vfmt; - void *dummy; -{ - return (_getargs(pac, pav, vfmt, SCANONLY | ARGVECTOR, va_dummy)); -} - - -/*--------------------------------------------------------------------------- -| -| check args until the next non flag type argmument is reached -| *pac is decremented, *pav is incremented so that the -| non flag type argument is at *pav[0] -| -| return code: -| NOARGS no more args -| NOTAFLAG not a flag type argument -| BADFLAG a non-matching flag type argument -| BADFMT bad syntax in format string -| -| -+---------------------------------------------------------------------------*/ -/*LOCAL*/ int -_getargs(pac, pav, vfmt, flags, args) - register int *pac; - register char *const **pav; - void *vfmt; - int flags; - va_list args; -{ - const char *argp; - int ret; - - - for (; *pac > 0; (*pac)--, (*pav)++) { - argp = **pav; - - ret = dofile(pac, pav, &argp); - - if (ret != NOTAFILE) - return (ret); - - ret = doflag(pac, pav, argp, vfmt, flags, args); - - if (ret != NOTAFLAG) - return (ret); - } - return (NOARGS); -} - - -/*--------------------------------------------------------------------------- -| -| check if *pargp is a file type argument -| -+---------------------------------------------------------------------------*/ -LOCAL int -dofile(pac, pav, pargp) - register int *pac; - register char *const **pav; - const char **pargp; -{ - register const char *argp = *pargp; - - - if (argp[0] == '-') { - /* - * "-" is a special non flag type argument - * that usually means take stdin instead of a named file - */ - if (argp[1] == '\0') - return (NOTAFLAG); - /* - * "--" is a prefix to take the next argument - * as non flag type argument - * NOTE: Posix requires "--" to indicate the end of the - * flags on the command line. But we are currently not - * Posix. - */ - if (argp[1] == '-' && argp[2] == '\0') { - if (--(*pac) > 0) { - (*pav)++; - return (NOTAFLAG); - } else { - return (NOARGS); - } - } - } - - /* - * now check if it may be flag type argument - * flag type arguments begin with a '-', a '+' or contain a '=' - * i.e. -flag +flag or flag= - */ - if (argp[0] != '-' && argp[0] != '+' && (!checkeql(argp))) - return (NOTAFLAG); - - return (NOTAFILE); -} - - -/*--------------------------------------------------------------------------- -| -| compare argp with the format string -| if a match is found store the result a la scanf in one of the -| arguments pointed to in the va_list -| -| If (flags & SETARGS) == 0, only check arguments for getfiles() -| In case that (flags & SETARGS) == 0 or that (flags & ARGVECTOR) != 0, -| va_list may be a dummy argument. -| -+---------------------------------------------------------------------------*/ -LOCAL int -doflag(pac, pav, argp, vfmt, flags, oargs) - int *pac; - char *const **pav; - register const char *argp; - void *vfmt; - int flags; - va_list oargs; -{ - register const char *fmt = (const char *)vfmt; - struct ga_flags *flagp = vfmt; - char argstr[2]; - const char *fmtp; - long val; - Llong llval; - int singlecharflag = 0; - BOOL isspec; - BOOL hasdash = FALSE; - BOOL doubledash = FALSE; - BOOL haseql = checkeql(argp); - const char *sargp; - const char *sfmt; - va_list args; - char *const *spav = *pav; - int spac = *pac; - void *curarg = (void *)0; - - sfmt = fmt; - /* - * flags beginning with '-' don't have to include the '-' in - * the format string. - * flags beginning with '+' have to include it in the format string. - */ - if (argp[0] == '-') { - argp++; - hasdash = TRUE; - /* - * Implement legacy support for --longopt - * If we find a double dash, we do not look for combinations - * of boolean single char flags. - */ - if (argp[0] == '-') { - argp++; - doubledash = TRUE; - /* - * Allow -- only for long options. - */ - if (argp[1] == '\0') { - return (BADFLAG); - } - } - } - sargp = argp; - - /* - * Initialize 'args' to the start of the argument list. - * I don't know any portable way to copy an arbitrary - * C object so I use a system-specific routine - * (probably a macro) from stdarg.h. (Remember that - * if va_list is an array, 'args' will be a pointer - * and '&args' won't be what I would need for memcpy.) - * It is a system requirement for SVr4 compatibility - * to be able to do this assgignement. If your system - * defines va_list to be an array but does not define - * va_copy() you are lost. - * This is needed to make sure, that 'oargs' will not - * be clobbered. - */ - va_copy(args, oargs); - - if (flags & ARGVECTOR) { - sfmt = fmt = flagp->ga_format; - if (fmt == NULL) - sfmt = fmt = ""; - if (flags & SETARGS) - curarg = flagp->ga_arg; - } else if (flags & SETARGS) { - curarg = va_arg(args, void *); - } - /* - * check if the first flag in format string is a singlechar flag - */ -again: - if (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0') - singlecharflag++; - /* - * check the whole format string for a match - */ - for (;;) { - for (; *fmt; fmt++, argp++) { - if (*fmt == '\\') { - /* - * Allow "#?*&+" to appear inside a flag. - * NOTE: they must be escaped by '\\' only - * inside the the format string. - */ - fmt++; - isspec = FALSE; - } else { - isspec = isfmtspec(*fmt); - } - /* - * If isspec is TRUE, the arg beeing checked starts - * like a valid flag. Argp now points to the rest. - */ - if (isspec) { - /* - * If *argp is '+' and we are on the - * beginning of the arg that is currently - * checked, this cannot be an inc type flag. - */ - if (*argp == '+' && argp == sargp) - continue; - /* - * skip over to arg of flag - */ - if (*argp == '=') { - argp++; - } else if (*argp != '\0' && haseql) { - /* - * Flag and arg are not separated by a - * space. - * Check here for: - * xxxxx=yyyyy match on '&' - * Checked before: - * abc=yyyyy match on 'abc&' - * or 'abc*' - * or 'abc#' - * We come here if 'argp' starts with - * the same sequence as a valid flag - * and contains an equal sign. - * We have tested before if the text - * before 'argp' matches exactly. - * At this point we have no exact match - * and we only allow to match - * the special pattern '&'. - * We need this e.g. for 'make'. - * We allow any flag type argument to - * match the format string "&" to set - * up a function that handles all odd - * stuff that getargs will not grok. - * In addition, to allow getargs to be - * used for CPP type flags we allow to - * match -Dabc=xyz on 'D&'. Note that - * Dabc=xyz will not match 'D&'. - */ - if ((!hasdash && argp != sargp) || *fmt != '&') - goto nextarg; - } - - /* - * The format string 'f* ' may be used - * to disallow -ffoo for f* - * - * The same behavior is implemented for - * 'f# '. 'f? ' and 'f& '. - */ - if (!haseql && *argp != '\0' && - (fmt[0] == '*' || fmt[0] == '#' || - fmt[0] == '?' || fmt[0] == '&') && - fmt[1] == ' ') { - goto nextarg; - } - - /* - * *arpp == '\0' || !haseql - * We come here if 'argp' starts with - * the same sequence as a valid flag. - * This will match on the following args: - * -farg match on 'f*' - * -f12 match on 'f#' - * +12 match on '+#' - * -12 match on '#' - * and all args that are separated from - * their flags. - * In the switch statement below, we check - * if the text after 'argp' (if *argp != 0) or - * the next arg is a valid arg for this flag. - */ - break; - } else if (*fmt == *argp) { - if (argp[1] == '\0' && - (fmt[1] == '\0' || fmt[1] == ',')) { - - if (flags & SETARGS) - *((int *)curarg) = TRUE; - - - return (checkfmt(fmt)); /* XXX */ - } - } else { - /* - * skip over to next format identifier - * & reset arg pointer - */ - nextarg: - while (*fmt != ',' && *fmt != '\0') { - /* function has extra arg on stack */ - if ((*fmt == '&' || *fmt == '~') && - (flags & (SETARGS|ARGVECTOR)) == SETARGS) { - curarg = va_arg(args, void *); - } - fmt++; - } - argp = sargp; - break; - } - } - switch (*fmt) { - - case '\0': - /* - * Boolean type has been tested before. - */ - if (flags & ARGVECTOR) { - if (flagp[1].ga_format != NULL) { - flagp++; - sfmt = fmt = flagp->ga_format; - if (flags & SETARGS) - curarg = flagp->ga_arg; - argp = sargp; - goto again; - } - if (singlecharflag && !doubledash && - (val = dosflags(sargp, vfmt, flags, - oargs)) != BADFLAG) { - return (val); - } - return (BADFLAG); - } - if (singlecharflag && !doubledash && - (val = dosflags(sargp, vfmt, flags, oargs)) != - BADFLAG) - return (val); - - - return (BADFLAG); - - case ',': - fmt++; - if (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0') - singlecharflag++; - if ((flags & (SETARGS|ARGVECTOR)) == SETARGS) - curarg = va_arg(args, void *); - continue; - - case '*': - if (*argp == '\0' && fmt[1] != '_') { - if (*pac > 1) { - (*pac)--; - (*pav)++; - argp = **pav; - } else { - return (BADFLAG); - } - } - if (fmt[1] == '_') /* To disallow -f foo for f* */ - fmt++; - else if (fmt[1] == ' ') /* To disallow -ffoo for f* */ - fmt++; - - if (flags & SETARGS) - *((const char **)curarg) = argp; - - - return (checkfmt(fmt)); - - case '?': - if (*argp == '\0' && fmt[1] != '_') { - if (*pac > 1) { - (*pac)--; - (*pav)++; - argp = **pav; - } else { - return (BADFLAG); - } - } - if (fmt[1] == '_') /* To disallow -f c for f? */ - fmt++; - else if (fmt[1] == ' ') /* To disallow -fc for f? */ - fmt++; - - /* - * Allow -f '' to specify a nul character. - * If more than one char arg, it - * cannot be a character argument. - */ - if (argp[0] != '\0' && argp[1] != '\0') - goto nextchance; - - if (flags & SETARGS) - *((char *)curarg) = *argp; - - - return (checkfmt(fmt)); - - case '+': - /* - * inc type is similar to boolean, - * there is no arg in argp to convert. - */ - if (*argp != '\0') - goto nextchance; - /* - * If *fmt is '+' and we are on the beginning - * of the format desciptor that is currently - * checked, this cannot be an inc type flag. - */ - if (fmt == sfmt || fmt[-1] == ',') - goto nextchance; - - fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; - if (fmt[1] == 'l' || fmt[1] == 'L') { - if (fmt[2] == 'l' || fmt[2] == 'L') { - if (flags & SETARGS) - *((Llong *)curarg) += 1; - fmt += 2; - } else { - if (flags & SETARGS) - *((long *)curarg) += 1; - fmt++; - } - } else if (fmt[1] == 's' || fmt[1] == 'S') { - if (flags & SETARGS) - *((short *)curarg) += 1; - fmt++; - } else if (fmt[1] == 'c' || fmt[1] == 'C') { - if (flags & SETARGS) - *((char *)curarg) += 1; - fmt++; - } else { - if (fmt[1] == 'i' || fmt[1] == 'I') - fmt++; - if (flags & SETARGS) - *((int *)curarg) += 1; - } - - - return (checkfmt(fmt)); - - case '%': - /* - * inc type is similar to boolean, - * there is no arg in argp to convert. - */ - if (*argp != '\0') - goto nextchance; - - fmt++; - if (*fmt == '1') - val = TRUE; - else if (*fmt == '0') - val = FALSE; - else - goto nextchance; - - fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; - llval = (Llong)val; - if (fmt[1] == 'l' || fmt[1] == 'L') { - if (fmt[2] == 'l' || fmt[2] == 'L') { - if (flags & SETARGS) - *((Llong *)curarg) = llval; - fmt += 2; - } else { - if (flags & SETARGS) - *((long *)curarg) = val; - fmt++; - } - } else if (fmt[1] == 's' || fmt[1] == 'S') { - if (flags & SETARGS) - *((short *)curarg) = val; - fmt++; - } else if (fmt[1] == 'c' || fmt[1] == 'C') { - if (flags & SETARGS) - *((char *)curarg) = val; - fmt++; - } else { - if (fmt[1] == 'i' || fmt[1] == 'I') - fmt++; - if (flags & SETARGS) - *((int *)curarg) = val; - } - - - return (checkfmt(fmt)); - - case '#': - if (*argp == '\0' && fmt[1] != '_') { - if (*pac > 1) { - (*pac)--; - (*pav)++; - argp = **pav; - } else { - return (BADFLAG); - } - } - if (fmt[1] == '_') /* To disallow -f 123 for f# */ - fmt++; - else if (fmt[1] == ' ') /* To disallow -f123 for f# */ - fmt++; - - if (*astoll(argp, &llval) != '\0') { - /* - * arg is not a valid number! - * go to next format in the format string - * and check if arg matches any other type - * in the format specs. - */ - nextchance: - while (*fmt != ',' && *fmt != '\0') { - if ((*fmt == '&' || *fmt == '~') && - (flags & (SETARGS|ARGVECTOR)) == SETARGS) { - curarg = va_arg(args, void *); - } - fmt++; - } - argp = sargp; - *pac = spac; - *pav = spav; - continue; - } - fmtp = fmt; - argstr[0] = fmt[1]; - argstr[1] = '\0'; - val = (long)llval; - if (fmt[1] == 'l' || fmt[1] == 'L') { - if (fmt[2] == 'l' || fmt[2] == 'L') { - if (flags & SETARGS) - *((Llong *)curarg) = llval; - fmt += 2; - } else { - if (flags & SETARGS) - *((long *)curarg) = val; - fmt++; - } - } else if (fmt[1] == 's' || fmt[1] == 'S') { - if (flags & SETARGS) - *((short *)curarg) = (short)val; - fmt++; - } else if (fmt[1] == 'c' || fmt[1] == 'C') { - if (flags & SETARGS) - *((char *)curarg) = (char)val; - fmt++; - } else { - if (fmt[1] == 'i' || fmt[1] == 'I') - fmt++; - if (flags & SETARGS) - *((int *)curarg) = (int)val; - } - - return (checkfmt(fmt)); - - case '~': - if (*argp != '\0') - goto nextchance; - if (haseql) { - return (BADFLAG); - } - goto callfunc; - - case '&': - if (*argp == '\0' && fmt[1] != '_') { - if (*pac > 1) { - (*pac)--; - (*pav)++; - argp = **pav; - } else { - return (BADFLAG); - } - } - callfunc: - - if (*fmt == '&' && fmt[1] == '_') /* To disallow -f foo for f& */ - fmt++; - else if (fmt[1] == ' ') /* To disallow -ffoo for f& */ - fmt++; - if ((val = checkfmt(fmt)) != NOTAFLAG) - return (val); - - fmtp = sargp; - if (hasdash) - fmtp--; - if (doubledash) - fmtp--; - if ((flags & (SETARGS|ARGVECTOR)) == (SETARGS|ARGVECTOR)) { - int ret; - - if (flagp->ga_funcp == NULL) - return (BADFMT); - - ret = ((*flagp->ga_funcp) (argp, flagp->ga_arg, - pac, pav, fmtp)); - if (ret != NOTAFILE) - return (ret); - fmt++; - } else - if (flags & SETARGS) { - int ret; - void *funarg = va_arg(args, void *); - - ret = ((*(getpargfun)curarg) (argp, funarg, - pac, pav, fmtp)); - if (ret != NOTAFILE) - return (ret); - fmt++; - } else { - return (val); - } - /* - * Called function returns NOTAFILE: try next format. - */ - } - } -} - - -/*--------------------------------------------------------------------------- -| -| parse args for combined single char flags -| -+---------------------------------------------------------------------------*/ -typedef struct { - void *curarg; /* The pointer to the arg to modify */ - short count; /* The number of times a sc flag appears */ - char c; /* The single char flag character */ - char type; /* The type of the single char flag */ -} sflags; - -LOCAL int -dosflags(argp, vfmt, flags, oargs) - register const char *argp; - void *vfmt; - int flags; - va_list oargs; -{ - register const char *fmt = (const char *)vfmt; - struct ga_flags *flagp = vfmt; -#define MAXSF 32 - sflags sf[MAXSF]; - va_list args; - register sflags *rsf = sf; - register int nsf = 0; - register const char *p = argp; - register int i; - register void *curarg = (void *)0; - char type; - - /* - * Initialize 'args' to the start of the argument list. - * I don't know any portable way to copy an arbitrary - * C object so I use a system-specific routine - * (probably a macro) from stdarg.h. (Remember that - * if va_list is an array, 'args' will be a pointer - * and '&args' won't be what I would need for memcpy.) - * It is a system requirement for SVr4 compatibility - * to be able to do this assgignement. If your system - * defines va_list to be an array but does not define - * va_copy() you are lost. - * This is needed to make sure, that 'oargs' will not - * be clobbered. - */ - va_copy(args, oargs); - - if (flags & ARGVECTOR) { - fmt = flagp->ga_format; - if (fmt == NULL) - fmt = ""; - if (flags & SETARGS) - curarg = flagp->ga_arg; - } else if (flags & SETARGS) { - curarg = va_arg(args, void *); - } - - while (*p) { - for (i = 0; i < nsf; i++) { - if (rsf[i].c == *p) - break; - } - if (i >= MAXSF) - return (BADFLAG); - if (i == nsf) { - rsf[i].curarg = (void *)0; - rsf[i].count = 0; - rsf[i].c = *p; - rsf[i].type = (char)-1; - nsf++; - } - rsf[i].count++; - p++; - } - - /* - * XXX Single char Boolen type '~' flags cannot yet be combined - */ -again: - while (*fmt) { - if (!isfmtspec(*fmt) && - (fmt[1] == ',' || fmt[1] == '+' || fmt[1] == '\0') && - strchr(argp, *fmt)) { - for (i = 0; i < nsf; i++) { - if (rsf[i].c == *fmt) { - if (fmt[1] == '+') { - fmt++; - if (fmt[1] == ',' || - fmt[1] == '\0') { - rsf[i].type = 'i'; - } else if ((fmt[1] == 'l' || - fmt[1] == 'L') && - (fmt[2] == 'l' || - fmt[2] == 'L')) { - /* - * Type 'Q'uad (ll) - */ - rsf[i].type = 'Q'; - fmt++; - } else { - /* - * Type 'l','i','s','c' - */ - rsf[i].type = fmt[1]; - } - } else { - /* - * ',' or '\0' for BOOL - */ - rsf[i].type = fmt[1]; - } - rsf[i].curarg = curarg; - break; - } - } - } - while (*fmt != ',' && *fmt != '\0') { - /* function has extra arg on stack */ - if ((*fmt == '&' || *fmt == '~') && - (flags & (SETARGS|ARGVECTOR)) == SETARGS) { - curarg = va_arg(args, void *); - } - fmt++; - } - if (*fmt != '\0') - fmt++; - - if ((flags & (SETARGS|ARGVECTOR)) == SETARGS) - curarg = va_arg(args, void *); - } - if ((flags & ARGVECTOR) && flagp[1].ga_format != NULL) { - flagp++; - fmt = flagp->ga_format; - if (flags & SETARGS) - curarg = flagp->ga_arg; - goto again; - } - - for (i = 0; i < nsf; i++) { - type = rsf[i].type; - if (type == (char)-1) { - return (BADFLAG); - } - if (rsf[i].curarg) { - if (type == ',' || type == '\0') { - *((int *)rsf[i].curarg) = TRUE; - } else if (type == 'i' || type == 'I') { - *((int *)rsf[i].curarg) += rsf[i].count; - } else if (type == 'l' || type == 'L') { - *((long *)rsf[i].curarg) += rsf[i].count; - } else if (type == 'Q') { - *((Llong *)rsf[i].curarg) += rsf[i].count; - } else if (type == 's' || type == 'S') { - *((short *)rsf[i].curarg) += rsf[i].count; - } else if (type == 'c' || type == 'C') { - *((char *)rsf[i].curarg) += rsf[i].count; - } else { - return (BADFLAG); - } - } - } - return (NOTAFLAG); -} - -/*--------------------------------------------------------------------------- -| -| If the next format character is a comma or the string delimiter, -| there are no invalid format specifiers. Return success. -| Otherwise raise the getarg_bad_format condition. -| -+---------------------------------------------------------------------------*/ -LOCAL int -checkfmt(fmt) - const char *fmt; -{ - char c; - - c = *(++fmt); /* non constant expression */ - - - if (c == ',' || c == '\0') { - return (NOTAFLAG); - } else { - raisecond("getarg_bad_format", (long)fmt); - return (BADFMT); - } -} - -/*--------------------------------------------------------------------------- -| -| Parse the string as long as valid characters can be found. -| Valid flag identifiers are chosen from the set of -| alphanumeric characters, '-' and '_'. -| If the next character is an equal sign the string -| contains a valid flag identifier. -| -+---------------------------------------------------------------------------*/ -LOCAL int -checkeql(str) - register const char *str; -{ - register unsigned char c; - - for (c = (unsigned char)*str; - isalnum(c) || c == '_' || c == '-' || c == '+'; - c = *str++) - /* LINTED */ - ; - return (c == '='); -} - -EXPORT char * -getargerror(err) - int err; -{ - if (err < -3 || err > 1) - return ("Illegal arg error"); - return (RNAME(err)); -} - diff -Nru smake-1.2a41/psmake/geterrno.c smake-1.2a49/psmake/geterrno.c --- smake-1.2a41/psmake/geterrno.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/psmake/geterrno.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,32 +0,0 @@ -/* @(#)geterrno.c 1.11 06/09/26 Copyright 1985, 1995-2003 J. Schilling */ -/* - * Get error number - * - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include - -#ifdef geterrno -#undef geterrno -#endif - -EXPORT int -geterrno() - -{ - return (errno); -} diff -Nru smake-1.2a41/psmake/include/schily/align.h smake-1.2a49/psmake/include/schily/align.h --- smake-1.2a41/psmake/include/schily/align.h 2006-09-26 13:18:17.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/align.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,64 +0,0 @@ -/* @(#)align.h 1.3 06/09/26 Copyright 1995-2006 J. Schilling */ -/* - * Platform dependent definitions for aligning data. - * - * Copyright (c) 1995-2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -/* - * The automatically created included file defines the following macros: - * - * saligned(a) One parameter aligned for a "short int" - * s2aligned(a, b) Both parameters aligned for a "short int" - * ialigned(a) One parameter aligned for a "int" - * i2aligned(a, b) Both parameters aligned for a "int" - * laligned(a) One parameter aligned for a "long" - * l2aligned(a, b) Both parameters aligned for a "long" - * llaligned(a) One parameter aligned for a "long long" - * ll2aligned(a, b) Both parameters aligned for a "long long" - * faligned(a) One parameter aligned for a "float" - * f2aligned(a, b) Both parameters aligned for a "float" - * daligned(a) One parameter aligned for a "double" - * d2aligned(a, b) Both parameters aligned for a "double" - * paligned(a) One parameter aligned for a "pointer" - * p2aligned(a, b) Both parameters aligned for a "pointe" - * - * salign(x) Align for a "short int" - * ialign(x) Align for a "int" - * lalign(x) Align for a "long" - * llalign(x) Align for a "long long" - * falign(x) Align for a "float" - * dalign(x) Align for a "double" - * palign(x) Align for a "pointer" - */ -#ifndef _SCHILY_ALIGN_H -#define _SCHILY_ALIGN_H - -#ifndef _SCHILY_UTYPES_H -#include -#endif - -#ifdef SCHILY_BUILD /* #defined by Schily makefile system */ - /* - * Include $(SRCROOT)/incs/$(OARCH)/align.h via - * -I$(SRCROOT)/incs/$(OARCH)/ - */ -# include -#else -/* - * XXX Here belongs the stuff for non-dynamic autoconfiguration. - */ -#endif - -#endif /* _SCHILY_ALIGN_H */ diff -Nru smake-1.2a41/psmake/include/schily/archdefs.h smake-1.2a49/psmake/include/schily/archdefs.h --- smake-1.2a41/psmake/include/schily/archdefs.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/archdefs.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,205 +0,0 @@ -/* @(#)archdefs.h 1.4 07/01/16 Copyright 2006-2007 J. Schilling */ -/* - * Processor, instruction set and OS architecture specific defines. - * The information is fetched from compiler predefinitions only. - * - * Copyright (c) 2006-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_ARCHDEFS_H -#define _SCHILY_ARCHDEFS_H - -#if defined(sun) || defined(__sun) || defined(__sun__) -#ifndef __sun -#define __sun -#endif -#endif - -#if defined(sun2) -#ifndef __mc68010 -#define __mc68010 -#endif -#endif - -#if defined(mc68020) || defined(__mc68020) || defined(sun3) -#ifndef __mc68020 -#define __mc68020 -#endif -#endif - -#if defined(__mc68010) || defined(__mc68020) -#ifndef __mc68000 -#define __mc68000 -#endif -#endif - -#if defined(i386) || defined(__i386) || defined(__i386__) -#ifndef __i386 -#define __i386 -#endif -#endif - -#if defined(__amd64) || defined(__amd64__) || \ - defined(__x86_64) || defined(__x86_64__) -#ifndef __amd64 -#define __amd64 -#endif -#endif - -#if defined(__i386) || defined(__amd64) -#ifndef __x86 -#define __x86 -#endif -#endif - -#if defined(sparc) || defined(__sparc) || defined(__sparc__) -#ifndef __sparc -#define __sparc -#endif -#endif - -#if defined(__sparcv9) || defined(__sparcv9__) -#ifndef __sparc -#define __sparc -#endif -#ifndef __sparcv9 -#define __sparcv9 -#endif -#endif - -#if defined(__sparc) && defined(__arch64__) -#ifndef __sparcv9 -#define __sparcv9 -#endif -#endif - -#if defined(SOL2) || defined(SOL2) || \ - defined(S5R4) || defined(__S5R4) || defined(SVR4) -# ifndef __SVR4 -# define __SVR4 -# endif -#endif - -#if defined(sun2) || defined(sun3) || defined(__sun) -#ifndef __sun -#define __sun -#endif -#ifndef __GNUC__ -#ifndef __SUNPRO_C -#ifdef __SVR4 -#define __SUNPRO_C -#else -#define __SUN_C -#endif /* __SVR4 */ -#endif /* !__SUNPRO_C */ -#endif /* !__GNUC__ */ -#endif /* __sun */ - - -/* - * SunOS 4 specific defines - */ -#if defined(__sun) && !defined(__SVR4) - -#if defined(__mc6800) -#ifdef __GNUC__ -#define __SUNOS4_MC68000_GCC32 -#define __JS_ARCH_DEFINED -#endif -#ifdef __SUN_C -#define __SUNOS4_MC68000_CC32 -#define __JS_ARCH_DEFINED -#endif -#endif /* __mc6800 */ - -#if defined(__sparc) -#ifdef __GNUC__ -#define __SUNOS4_SPARC_GCC32 -#define __JS_ARCH_DEFINED -#endif -#if defined(__SUN_C) || defined (__SUNPRO_C) -#define __SUNOS4_SPARC_CC32 -#define __JS_ARCH_DEFINED -#endif -#endif /* __sparc */ - -#endif /* SunOS 4 */ - - -/* - * SunOS 5 specific defines - */ -#if defined(__sun) && defined(__SVR4) - -#if defined(__sparc) -#ifdef __GNUC__ -#ifdef __sparcv9 -#define __SUNOS5_SPARC_GCC64 -#else -#define __SUNOS5_SPARC_GCC32 -#endif -#define __JS_ARCH_DEFINED -#endif -#if defined (__SUNPRO_C) -#ifdef __sparcv9 -#define __SUNOS5_SPARC_CC64 -#else -#define __SUNOS5_SPARC_CC32 -#endif -#define __JS_ARCH_DEFINED -#endif -#endif /* __sparc */ - -#if defined(__x86) -#ifdef __GNUC__ -#ifdef __amd64 -#define __SUNOS5_X86_GCC64 -#else -#define __SUNOS5_X86_GCC32 -#endif -#define __JS_ARCH_DEFINED -#endif -#if defined (__SUNPRO_C) -#ifdef __amd64 -#define __SUNOS5_X86_CC64 -#else -#define __SUNOS5_X86_CC32 -#endif -#define __JS_ARCH_DEFINED -#endif -#endif /* __x86 */ - -#endif /* SunOS 5 */ - -/* - * MS-WIN specific defines - * - * cl defines one of: - * _M_IX86 - * _M_AMD64 - * _M_M68K - * _M_MPPC - * _M_IA64 - */ -#if defined(_MSC_VER) && (defined(_X86_) || defined(_M_IX86)) -#define __MSWIN_X86_CL32 -#define __JS_ARCH_DEFINED -#endif - -#if defined(__CYGWIN32__) || defined(__CYGWIN__) -#define __CYGWIN_X86_GCC -#define __JS_ARCH_DEFINED -#endif - -#endif /* _SCHILY_ARCHDEFS_H */ diff -Nru smake-1.2a41/psmake/include/schily/avoffset.h smake-1.2a49/psmake/include/schily/avoffset.h --- smake-1.2a41/psmake/include/schily/avoffset.h 2006-10-10 09:31:53.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/avoffset.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,59 +0,0 @@ -/* @(#)avoffset.h 1.4 06/10/10 Copyright 1995-2006 J. Schilling */ -/* - * Platform dependent definitions for stack scanning. - * - * Copyright (c) 1995-2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -/* - * This file includes definitions for STACK_DIRECTION, - * AV_OFFSET and FP_INDIR. - * - * STACK_DIRECTION: - * +1 -> stack grows to larger addresses - * -1 -> stack "groes" to lower addresses - * - * FP_INDIR: the number of fp chain elements above 'main'. - * - * AV_OFFSET: the offset of &av[0] relative to the frame pointer - * in 'main'. - * - * If getav0() does not work on a specific architecture - * the program which generated this automaticly generated include file - * may dump core. In this case, the generated include file does not include - * definitions for AV_OFFSET and FP_INDIR but ends after the STACK_DIRECTION - * definition. - * If AV_OFFSET or FP_INDIR are missing in the file, all code - * that use the definitions are automatically disabled. - */ -#ifndef _SCHILY_AVOFFSET_H -#define _SCHILY_AVOFFSET_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef SCHILY_BUILD /* #defined by Schily makefile system */ - /* - * Include $(SRCROOT)/incs/$(OARCH)/avoffset.h via - * -I$(SRCROOT)/incs/$(OARCH)/ - */ -# include -#else -/* - * XXX Here belongs the stuff for non-dynamic autoconfiguration. - */ -#endif - -#endif /* _SCHILY_AVOFFSET_H */ diff -Nru smake-1.2a41/psmake/include/schily/ccomdefs.h smake-1.2a49/psmake/include/schily/ccomdefs.h --- smake-1.2a41/psmake/include/schily/ccomdefs.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/ccomdefs.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,63 +0,0 @@ -/* @(#)ccomdefs.h 1.4 06/09/13 Copyright 2000 J. Schilling */ -/* - * Various compiler dependant macros. - * - * Copyright (c) 2000 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_CCOMDEFS_H -#define _SCHILY_CCOMDEFS_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Compiler-dependent macros to declare that functions take printf-like - * or scanf-like arguments. They are defined to nothing for versions of gcc - * that are not known to support the features properly (old versions of gcc-2 - * didn't permit keeping the keywords out of the application namespace). - */ -#if __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 7 - -#define __printflike__(fmtarg, firstvararg) -#define __printf0like__(fmtarg, firstvararg) -#define __scanflike__(fmtarg, firstvararg) - -#else /* We found GCC that supports __attribute__ */ - -#define __printflike__(fmtarg, firstvararg) \ - __attribute__((__format__(__printf__, fmtarg, firstvararg))) -#define __printf0like__(fmtarg, firstvararg) \ - __attribute__((__format__(__printf0__, fmtarg, firstvararg))) - -/* - * FreeBSD GCC implements printf0 that allows the format string to - * be a NULL pointer. - */ -#if __FreeBSD_cc_version < 300001 -#undef __printf0like__ -#define __printf0like__ __printflike__ -#endif - -#define __scanflike__(fmtarg, firstvararg) \ - __attribute__((__format__(__scanf__, fmtarg, firstvararg))) - -#endif /* GNUC */ - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_CCOMDEFS_H */ diff -Nru smake-1.2a41/psmake/include/schily/dirent.h smake-1.2a49/psmake/include/schily/dirent.h --- smake-1.2a41/psmake/include/schily/dirent.h 2007-02-22 17:13:05.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/dirent.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,181 +0,0 @@ -/* @(#)dirent.h 1.23 07/02/22 Copyright 1987, 1998, 2000-2007 J. Schilling */ -/* - * Copyright (c) 1987, 1998, 2000-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_DIRENT_H -#define _SCHILY_DIRENT_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef JOS -# ifdef HAVE_SYS_STYPES_H -# ifndef _INCL_SYS_STYPES_H -# include -# define _INCL_SYS_STYPES_H -# endif -# endif -# ifdef HAVE_SYS_FILEDESC_H -# ifndef _INCL_SYS_FILEDESC_H -# include -# define _INCL_SYS_FILEDESC_H -# endif -# endif -# define NEED_READDIR -# define dirent _direct -# define DIR_NAMELEN(dirent) strlen((dirent)->d_name) -# define DIRSIZE 30 -# define FOUND_DIRSIZE - typedef struct _dirent { - char name[DIRSIZE]; - short ino; - } dirent; - -#else /* !JOS */ - -# ifndef _SCHILY_TYPES_H -# include -# endif -# ifndef _SCHILY_STAT_H -# include -# endif -# ifdef HAVE_LIMITS_H -# ifndef _INCL_LIMITS_H -# include -# define _INCL_LIMITS_H -# endif -# endif -# ifndef _SCHILY_PARAM_H -# include -# endif - -# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ -# ifndef _INCL_DIRENT_H -# include -# define _INCL_DIRENT_H -# endif -# define DIR_NAMELEN(dirent) strlen((dirent)->d_name) -# define _FOUND_DIR_ -# else /* This is a Pre POSIX system */ - -# define dirent direct -# define DIR_NAMELEN(dirent) (dirent)->d_namlen - -# if defined(HAVE_SYS_DIR_H) -# ifndef _INCL_SYS_DIR_H -# include -# define _INCL_SYS_DIR_H -# endif -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) -# ifndef _INCL_NDIR_H -# include -# define _INCL_NDIR_H -# endif -# define _FOUND_DIR_ -# endif - -# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) -# ifndef _INCL_SYS_NDIR_H -# include -# define _INCL_SYS_NDIR_H -# endif -# define _FOUND_DIR_ -# endif -# endif /* HAVE_DIRENT_H */ - -# if defined(_FOUND_DIR_) -/* - * Don't use defaults here to allow recognition of problems. - */ -# ifdef MAXNAMELEN -# define DIRSIZE MAXNAMELEN /* From sys/param.h */ -# define FOUND_DIRSIZE -# else -# ifdef MAXNAMLEN -# define DIRSIZE MAXNAMLEN /* From dirent.h */ -# define FOUND_DIRSIZE -# else -# ifdef DIRSIZ -# define DIRSIZE DIRSIZ /* From sys/dir.h */ -# define FOUND_DIRSIZE -# endif -# endif -# endif -# else /* !_FOUND_DIR_ */ - -# define NEED_DIRENT -# define NEED_READDIR -# undef -# define dirent _direct -# undef DIR_NAMELEN -# define DIR_NAMELEN(dirent) strlen((dirent)->d_name) - -# endif /* _FOUND_DIR_ */ - - -#ifdef NEED_DIRENT - -#ifndef FOUND_DIRSIZE -#define DIRSIZE 14 /* The old UNIX standard value */ -#define FOUND_DIRSIZE -#endif - -typedef struct _dirent { - short ino; - char name[DIRSIZE]; -} dirent; - -#endif /* NEED_DIRENT */ - -#endif /* !JOS */ - -#ifdef NEED_READDIR - -#ifndef _INCL_STDIO_H -#include -#define _INCL_STDIO_H -#endif - - typedef struct __dirdesc { - FILE *dd_fd; - } DIR; - - struct _direct { - unsigned long d_ino; - unsigned short d_reclen; - unsigned short d_namlen; - char d_name[DIRSIZE +1]; - }; -#define HAVE_DIRENT_D_INO - -extern DIR *opendir(); -extern closedir(); -extern struct dirent *readdir(); - -#endif /* NEED_READDIR */ - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_DIRENT_H */ diff -Nru smake-1.2a41/psmake/include/schily/errno.h smake-1.2a49/psmake/include/schily/errno.h --- smake-1.2a41/psmake/include/schily/errno.h 2006-12-24 23:38:48.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/errno.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,54 +0,0 @@ -/* @(#)errno.h 1.6 06/12/25 Copyright 2006 J. Schilling */ -/* - * Error number related definitions - * - * Copyright (c) 2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_ERRNO_H -#define _SCHILY_ERRNO_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef JOS -#include - -#define ENOEXEC EBADHEADER -#define EACCES EACCESS -#define ENOENT ENOFILE -#define EEXIST EEXISTS -#else -#include - -#define EMISSDIR ENOENT -#define ENDOFFILE EFBIG -#endif - -#ifndef HAVE_ERRNO_DEF -extern int errno; -#endif - -#ifndef HAVE_STRERROR -extern char *sys_errlist[]; -extern int sys_nerr; -#endif - -#ifndef seterrno -extern int seterrno __PR((int)); -#endif -extern int geterrno __PR((void)); - -#endif /* _SCHILY_ERRNO_H */ diff -Nru smake-1.2a41/psmake/include/schily/fcntl.h smake-1.2a49/psmake/include/schily/fcntl.h --- smake-1.2a41/psmake/include/schily/fcntl.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/fcntl.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,77 +0,0 @@ -/* @(#)fcntl.h 1.16 07/01/16 Copyright 1996-2007 J. Schilling */ -/* - * Generic header for users of open(), creat() and chmod() - * - * Copyright (c) 1996-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_FCNTL_H -#define _SCHILY_FCNTL_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifndef _SCHILY_TYPES_H -#include /* Needed for fcntl.h */ -#endif - -#ifndef _SCHILY_STAT_H -#include /* For 3rd arg of open() and chmod() */ -#endif - -#ifdef HAVE_SYS_FILE_H -/* - * Historical systems with flock() only need sys/file.h - */ -# ifndef _INCL_SYS_FILE_H -# include -# define _INCL_SYS_FILE_H -# endif -#endif -#ifdef HAVE_FCNTL_H -# ifndef _INCL_FCNTL_H -# include -# define _INCL_FCNTL_H -#endif -#endif - -/* - * Do not define more than O_RDONLY / O_WRONLY / O_RDWR / O_BINARY - * The values may differ. - * - * O_BINARY is defined here to allow all applications to compile on a non DOS - * environment without repeating this definition. - */ -#ifndef O_RDONLY -# define O_RDONLY 0 -#endif -#ifndef O_WRONLY -# define O_WRONLY 1 -#endif -#ifndef O_RDWR -# define O_RDWR 2 -#endif -#ifndef O_BINARY /* Only present on DOS or similar */ -# define O_BINARY 0 -#endif -#ifndef O_NDELAY /* This is undefined on BeOS :-( */ -# define O_NDELAY 0 -#endif - -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) -#endif - -#endif /* _SCHILY_FCNTL_H */ diff -Nru smake-1.2a41/psmake/include/schily/getargs.h smake-1.2a49/psmake/include/schily/getargs.h --- smake-1.2a41/psmake/include/schily/getargs.h 2006-12-02 20:00:03.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/getargs.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,67 +0,0 @@ -/* @(#)getargs.h 1.16 06/12/02 Copyright 1985 J. Schilling */ -/* - * Definitions for getargs()/getallargs()/getfiles() - * - * Copyright (c) 1985 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_GETARGS_H -#define _SCHILY_GETARGS_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#define NOARGS 0 /* No more args */ -#define NOTAFLAG 1 /* Not a flag type argument */ -#define BADFLAG (-1) /* Not a valid flag argument */ -#define BADFMT (-2) /* Error in format string */ -#define NOTAFILE (-3) /* Seems to be a flag type */ - -typedef int (*getargfun) __PR((const char *__arg, void *__valp)); -typedef int (*getpargfun) __PR((const char *__arg, void *__valp, int *__pac, char *const **__pav, const char *__opt)); - -#define NO_ARGFUN (getargpfun)0 - -struct ga_flags { - const char *ga_format; - void *ga_arg; - getpargfun ga_funcp; -}; - -/* - * Keep in sync with schily.h - */ -extern int getallargs __PR((int *, char * const**, const char *, ...)); -extern int getargs __PR((int *, char * const**, const char *, ...)); -extern int getfiles __PR((int *, char * const**, const char *)); -extern char *getargerror __PR((int)); - -/* - * The vector versions of the functions need struct ga_flags and thus need - * getargs.h - */ -extern int getvallargs __PR((int *, char * const**, struct ga_flags *, void *)); -extern int getvargs __PR((int *, char * const**, struct ga_flags *, void *)); -extern int getvfiles __PR((int *, char * const**, struct ga_flags *, void *)); - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_GETARGS_H */ diff -Nru smake-1.2a41/psmake/include/schily/getcwd.h smake-1.2a49/psmake/include/schily/getcwd.h --- smake-1.2a41/psmake/include/schily/getcwd.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/getcwd.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -/* @(#)getcwd.h 1.4 06/09/13 Copyright 1998 J. Schilling */ -/* - * Definitions for getcwd() - * - * Copyright (c) 1998 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_GETCWD_H -#define _SCHILY_GETCWD_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef JOS -# ifndef _INCL_SYS_STYPES_H -# include -# define _INCL_SYS_STYPES_H -# endif - extern char *gwd(); -# define getcwd(b, len) gwd(b) -#else -# ifndef HAVE_GETCWD -# define getcwd(b, len) getwd(b) -# endif -#endif - -#endif /* _SCHILY_GETCWD_H */ diff -Nru smake-1.2a41/psmake/include/schily/libport.h smake-1.2a49/psmake/include/schily/libport.h --- smake-1.2a41/psmake/include/schily/libport.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/libport.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,109 +0,0 @@ -/* @(#)libport.h 1.14 07/01/16 Copyright 1995-2007 J. Schilling */ -/* - * Copyright (c) 1995-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - - -#ifndef _SCHILY_LIBPORT_H -#define _SCHILY_LIBPORT_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif -#ifndef _SCHILY_STANDARD_H -#include -#endif - -/* - * Try to get HOST_NAME_MAX for gethostname() - */ -#ifndef _SCHILY_UNISTD_H -#include -#endif - -#ifndef HOST_NAME_MAX -#if defined(HAVE_NETDB_H) && !defined(HOST_NOT_FOUND) && \ - !defined(_INCL_NETDB_H) -#include -#define _INCL_NETDB_H -#endif -#ifdef MAXHOSTNAMELEN -#define HOST_NAME_MAX MAXHOSTNAMELEN -#endif -#endif - -#ifndef HOST_NAME_MAX -#ifndef _SCHILY_PARAM_H -#include /* Include various defs needed with some OS */ -#endif /* Linux MAXHOSTNAMELEN */ -#ifdef MAXHOSTNAMELEN -#define HOST_NAME_MAX MAXHOSTNAMELEN -#endif -#endif - -#ifndef HOST_NAME_MAX -#define HOST_NAME_MAX 255 -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef OPENSERVER -/* - * Don't use the usleep() from libc on SCO's OPENSERVER. - * It will kill our processes with SIGALRM. - */ -/* - * Don't #undef HAVE_USLEEP in this file, SCO has a - * usleep() prototype in unistd.h - */ -/*#undef HAVE_USLEEP*/ -#endif - -#ifndef HAVE_GETHOSTID -extern long gethostid __PR((void)); -#endif -#ifndef HAVE_GETHOSTNAME -extern int gethostname __PR((char *name, int namelen)); -#endif -#ifndef HAVE_GETDOMAINNAME -extern int getdomainname __PR((char *name, int namelen)); -#endif -#ifndef HAVE_GETPAGESIZE -EXPORT int getpagesize __PR((void)); -#endif -#ifndef HAVE_USLEEP -extern int usleep __PR((int usec)); -#endif - -#if !defined(HAVE_STRDUP) || defined(__SVR4) -extern char *strdup __PR((const char *s)); -#endif -#ifndef HAVE_STRNCPY -extern char *strncpy __PR((char *s1, const char *s2, size_t len)); -#endif -#ifndef HAVE_STRLCPY -extern size_t strlcpy __PR((char *s1, const char *s2, size_t len)); -#endif - -#ifndef HAVE_RENAME -extern int rename __PR((const char *old, const char *new)); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_LIBPORT_H */ diff -Nru smake-1.2a41/psmake/include/schily/maxpath.h smake-1.2a49/psmake/include/schily/maxpath.h --- smake-1.2a41/psmake/include/schily/maxpath.h 2007-02-22 20:12:51.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/maxpath.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,97 +0,0 @@ -/* @(#)maxpath.h 1.8 07/02/22 Copyright 1985, 1995, 1998, 2001-2007 J. Schilling */ -/* - * Definitions for dealing with statically limitations on pathnames - * - * Copyright (c) 1985, 1995, 1998, 2001-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_MAXPATH_H -#define _SCHILY_MAXPATH_H - -#ifndef _SCHILY_DIRENT_H -#include /* Includes mconfig.h if needed */ -#endif - -#ifdef JOS -#ifndef _SCHILY_JOS_MAXP_H -# include -#endif -# ifndef FOUND_MAXPATHNAME -# define FOUND_MAXPATHNAME -# endif -# ifndef FOUND_MAXFILENAME -# define FOUND_MAXFILENAME -# endif -#endif /* JOS */ - -#if !defined(FOUND_MAXPATHNAME) && defined(MAXPATHLEN) -# define MAXPATHNAME MAXPATHLEN /* From sys/param.h */ -# define FOUND_MAXPATHNAME -#endif - -#if !defined(FOUND_MAXPATHNAME) && defined(PATH_MAX) -# define MAXPATHNAME PATH_MAX /* From limits.h */ -# define FOUND_MAXPATHNAME -#endif - -#if !defined(FOUND_MAXPATHNAME) -#include -#endif -#if !defined(FOUND_MAXPATHNAME) && defined(_MAX_PATH) -# define MAXPATHNAME _MAX_PATH /* From MS stdlib.h */ -# define FOUND_MAXPATHNAME -#endif - -#if !defined(FOUND_MAXPATHNAME) -# define MAXPATHNAME 256 /* Is there a limit? */ -#endif - -#ifndef PATH_MAX -#define PATH_MAX MAXPATHNAME -#endif - - -/* - * Don't use defaults here to allow recognition of problems. - */ -#if !defined(FOUND_MAXFILENAME) && defined(MAXNAMELEN) -# define MAXFILENAME MAXNAMELEN /* From sys/param.h */ -# define FOUND_MAXFILENAME -#endif - -#if !defined(FOUND_MAXFILENAME) && defined(MAXNAMLEN) -# define MAXFILENAME MAXNAMLEN /* From dirent.h */ -# define FOUND_MAXFILENAME -#endif - -#if !defined(FOUND_MAXFILENAME) && defined(DIRSIZ) -# define MAXFILENAME DIRSIZ /* From sys/dir.h */ -# define FOUND_MAXFILENAME -#endif - -#if !defined(FOUND_MAXFILENAME) && defined(FOUND_DIRSIZE) -# define MAXFILENAME DIRSIZE /* From dirdefs.h */ -# define FOUND_MAXFILENAME -#endif - -#if !defined(FOUND_MAXPATHNAME) -#include -#endif -#if !defined(FOUND_MAXFILENAME) && defined(_MAX_FNAME) -# define MAXFILENAME _MAX_FNAME /* From MS stdlib.h */ -# define FOUND_MAXFILENAME -#endif - - -#endif /* _SCHILY_MAXPATH_H */ diff -Nru smake-1.2a41/psmake/include/schily/mconfig.h smake-1.2a49/psmake/include/schily/mconfig.h --- smake-1.2a41/psmake/include/schily/mconfig.h 2007-01-21 18:30:40.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/mconfig.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,507 +0,0 @@ -/* @(#)mconfig.h 1.59 07/01/21 Copyright 1995-2006 J. Schilling */ -/* - * definitions for machine configuration - * - * Copyright (c) 1995-2006 J. Schilling - * - * This file must be included before any other file. - * If this file is not included before stdio.h you will not be - * able to get LARGEFILE support - * - * Use only cpp instructions. - * - * NOTE: SING: (Schily Is Not Gnu) - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_MCONFIG_H -#define _SCHILY_MCONFIG_H - -/* - * Tell our users that this is a Schily SING compile environment. - */ -#define IS_SCHILY - -/* - * We need to do this before we include xconfig.h - */ -#ifdef NO_LARGEFILES -#undef USE_LARGEFILES -#endif - -/* - * Inside Processor, we get architecture specific defines - * fetched from compiler predefinitions only. - */ -#include - -/* - * Inside we decide whether to use static or dynamic - * autoconf stuff. - */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * The NetBSD people want to bother us. - * They removed the definition for 'unix' and are bleating for every test - * for #if defined(unix). So we need to check for NetBSD early. - */ -#ifndef IS_UNIX -# if defined(__NetBSD__) -# define IS_UNIX -# endif -#endif - -#ifndef IS_UNIX -# if (defined(unix) || defined(__unix) || defined(__unix__)) && !defined(__DJGPP__) -# define IS_UNIX -# endif -#endif - -#ifdef __MSDOS__ -# define IS_MSDOS -#endif - -#if defined(tos) || defined(__tos) -# define IS_TOS -#endif - -#ifdef THINK_C -# define IS_MAC -#endif - -#if defined(sun) || defined(__sun) || defined(__sun__) -# define IS_SUN -#endif - -#if defined(__CYGWIN32__) || defined(__CYGWIN__) -# define IS_GCC_WIN32 -# define IS_CYGWIN - -#if defined(unix) || defined(_X86) -# define IS_CYGWIN_1 -#endif -#endif - -/*--------------------------------------------------------------------------*/ -/* - * Some magic that cannot (yet) be figured out with autoconf. - */ - -#if defined(sun3) || defined(mc68000) || defined(mc68020) -# ifndef HAVE_SCANSTACK -# define HAVE_SCANSTACK -# endif -#endif -#ifdef sparc -# ifndef HAVE_LDSTUB -# define HAVE_LDSTUB -# endif -# ifndef HAVE_SCANSTACK -# define HAVE_SCANSTACK -# endif -#endif -#if defined(__i386_) || defined(i386) -# ifndef HAVE_XCHG -# define HAVE_XCHG -# endif -# ifndef HAVE_SCANSTACK -# define HAVE_SCANSTACK -# endif -#endif - -/* - * Use of SCANSTACK is disabled by default - */ -#ifndef USE_SCANSTACK -# undef HAVE_SCANSTACK -#else -/* - * But .... - * The tests are much better now, so always give it a chance. - */ -#ifndef HAVE_SCANSTACK -# define HAVE_SCANSTACK -#endif -#endif - -/* - * Allow to overwrite the defines in the makefiles by calling - * - * make COPTX=-DFORCE_SCANSTACK - */ -#ifdef FORCE_SCANSTACK -# undef NO_SCANSTACK -#ifndef HAVE_SCANSTACK -# define HAVE_SCANSTACK -#endif -#ifndef USE_SCANSTACK -# define USE_SCANSTACK -#endif -#endif - -/* - * This is the global switch to deactivate stack scanning - */ -#ifdef NO_SCANSTACK -# ifdef HAVE_SCANSTACK -# undef HAVE_SCANSTACK -# endif -#endif - -#ifdef NO_FORK -# ifdef HAVE_FORK -# undef HAVE_FORK -# endif -# ifdef HAVE_VFORK -# undef HAVE_VFORK -# endif -#endif -#ifdef NO_VFORK -# ifdef HAVE_VFORK -# undef HAVE_VFORK -# endif -#endif - -#if defined(SOL2) || defined(SOL2) || \ - defined(S5R4) || defined(__S5R4) || defined(SVR4) -# ifndef __SVR4 -# define __SVR4 -# endif -#endif - -#ifdef __SVR4 -# ifndef SVR4 -# define SVR4 -# endif -#endif - -/* - * SunOS 4.x / SunOS 5.x - */ -#if defined(IS_SUN) -# define HAVE_GETAV0 -#endif - -/* - * AIX - */ -#if defined(_IBMR2) || defined(_AIX) -# ifndef IS_UNIX -# define IS_UNIX /* ??? really ??? */ -# endif -#endif - -/* - * QNX - */ -#if defined(__QNX__) -# ifndef IS_UNIX -# define IS_UNIX -# endif -#endif - -/* - * Silicon Graphics (must be before SVR4) - */ -#if defined(sgi) || defined(__sgi) -# define __NOT_SVR4__ /* Not a real SVR4 implementation */ -#endif - -/* - * Data General - */ -#if defined(__DGUX__) -#ifdef XXXXXXX -# undef HAVE_MTGET_DSREG -# undef HAVE_MTGET_RESID -# undef HAVE_MTGET_FILENO -# undef HAVE_MTGET_BLKNO -#endif -# define mt_type mt_model -# define mt_dsreg mt_status1 -# define mt_erreg mt_status2 - /* - * DGUX hides its flock as dg_flock. - */ -# define HAVE_FLOCK -# define flock dg_flock - /* - * Use the BSD style wait on DGUX to get the resource usages of child - * processes. - */ -# define _BSD_WAIT_FLAVOR -#endif - -/* - * Apple Rhapsody (This is the name for Mac OS X beta) - */ -#if defined(__NeXT__) && defined(__TARGET_OSNAME) && __TARGET_OSNAME == rhapsody -# define HAVE_OSDEF /* prevent later definitions to overwrite current */ -# ifndef IS_UNIX -# define IS_UNIX -# endif -#endif - -/* - * NextStep - */ -#if defined(__NeXT__) && !defined(HAVE_OSDEF) -#define NO_PRINT_OVR -#undef HAVE_USG_STDIO - /* - * NeXT Step 3.x uses __flsbuf(unsigned char, FILE *) - * instead of __flsbuf(int, FILE *) - */ -# ifndef IS_UNIX -# define IS_UNIX -# endif -#endif - -/* - * Mac OS X - */ -#if defined(__APPLE__) && defined(__MACH__) -# ifndef IS_UNIX -# define IS_UNIX -# endif -# define IS_MACOS_X -#endif - -/* - * NextStep 3.x has a broken linker that does not allow us to override - * these functions. - */ -#ifndef __OPRINTF__ - -#ifdef NO_PRINT_OVR -# define printf Xprintf -# define fprintf Xfprintf -# define sprintf Xsprintf -#endif - -#endif /* __OPRINTF__ */ - -/*--------------------------------------------------------------------------*/ -/* - * If there is no flock defined by the system, use emulation - * through fcntl record locking. - */ -#ifndef HAVE_FLOCK -#define LOCK_SH 1 /* shared lock */ -#define LOCK_EX 2 /* exclusive lock */ -#define LOCK_NB 4 /* don't block when locking */ -#define LOCK_UN 8 /* unlock */ -#endif - -#ifndef _SCHILY_PROTOTYP_H -#include -#endif - -/* - * Microsoft C defines _MSC_VER - * use __int64 instead of long long and use 0i64 for a signed long long const - * and 0ui64 for an unsigned long long const. - * - * #if defined(HAVE___INT64) - * use __int64 - * #elif defined(HAVE_LONGLONG) - * use long long - * #endif - * - * Be very careful here as MSVC does not implement long long but rather __int64 - * and once someone makes 'long long' 128 bits on a 64 bit machine, we need to - * check for a MSVC __int128 type. - */ -#ifndef HAVE_LONGLONG -# if defined(HAVE___INT64) -# define HAVE_LONGLONG -# endif -#endif - -/* - * gcc 2.x generally implements the long long type. - */ -#ifdef __GNUC__ -# if __GNUC__ > 1 -# ifndef HAVE_LONGLONG -# define HAVE_LONGLONG -# endif -# endif -#endif - -#ifdef __CHAR_UNSIGNED__ /* GNU GCC define (dynamic) */ -#ifndef CHAR_IS_UNSIGNED -#define CHAR_IS_UNSIGNED /* Sing Schily define (static) */ -#endif -#endif - -/* - * Convert to GNU name - */ -#ifdef HAVE_STDC_HEADERS -# ifndef STDC_HEADERS -# define STDC_HEADERS -# endif -#endif -/* - * Convert to SCHILY name - */ -#ifdef STDC_HEADERS -# ifndef HAVE_STDC_HEADERS -# define HAVE_STDC_HEADERS -# endif -#endif - -#ifdef IS_UNIX -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ':' -# define PATH_ENV_DELIM_STR ":" -# define far -# define near -#endif - -/* - * Win32 with Gygwin - */ -#ifdef IS_GCC_WIN32 -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ':' -# define PATH_ENV_DELIM_STR ":" -# define HAVE_DOS_DRIVELETTER -# define far -# define near -# define NEED_O_BINARY -#endif - -/* - * Win32 with Mingw32 - */ -#ifdef __MINGW32__ -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ';' -# define PATH_ENV_DELIM_STR ";" -# define HAVE_DOS_DRIVELETTER -# define far -# define near -# define NEED_O_BINARY -#endif - -/* - * OS/2 EMX - */ -#ifdef __EMX__ /* We don't want to call it UNIX */ -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ';' -# define PATH_ENV_DELIM_STR ";" -# define HAVE_DOS_DRIVELETTER -# define far -# define near -# define NEED_O_BINARY -#endif - -#ifdef __BEOS__ /* We don't want to call it UNIX */ -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ':' -# define PATH_ENV_DELIM_STR ":" -# define far -# define near -#endif - -/* - * DOS with DJGPP - */ -#ifdef __DJGPP__ /* We don't want to call it UNIX */ -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ';' -# define PATH_ENV_DELIM_STR ";" -# define HAVE_DOS_DRIVELETTER - -# define NEED_O_BINARY -#endif - -/* - * Vanilla DOS - */ -#if defined(IS_MSDOS) && !defined(__DJGPP__) -# define HAVE_PATH_DELIM -# define PATH_DELIM '\\' -# define PATH_DELIM_STR "\\" -# define PATH_ENV_DELIM ';' -# define PATH_ENV_DELIM_STR ";" -# define HAVE_DOS_DRIVELETTER - -# define NEED_O_BINARY -#endif - -/* - * ATARI TOS - */ -#ifdef IS_TOS -# define HAVE_PATH_DELIM -# define PATH_DELIM '\\' -# define PATH_DELIM_STR "\\" -# define PATH_ENV_DELIM ',' -# define PATH_ENV_DELIM_STR "," -# define HAVE_DOS_DRIVELETTER -# define far -# define near -#endif - -/* - * Mac OS 9 - */ -#ifdef IS_MAC -# define HAVE_PATH_DELIM -# define PATH_DELIM ':' -# define PATH_DELIM_STR ":" -# define PATH_ENV_DELIM ';' /* ??? */ -# define PATH_ENV_DELIM_STR ";" /* ??? */ -# define far -# define near -#endif - -/* - * I hope this will make compilation on unknown OS easier. - */ -#ifndef HAVE_PATH_DELIM /* Default to POSIX rules */ -# define HAVE_PATH_DELIM -# define PATH_DELIM '/' -# define PATH_DELIM_STR "/" -# define PATH_ENV_DELIM ':' -# define PATH_ENV_DELIM_STR ":" -# define far -# define near -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_MCONFIG_H */ diff -Nru smake-1.2a41/psmake/include/schily/param.h smake-1.2a49/psmake/include/schily/param.h --- smake-1.2a41/psmake/include/schily/param.h 2007-01-22 17:29:44.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/param.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -/* @(#)param.h 1.3 07/01/22 Copyright 2006-2007 J. Schilling */ -/* - * Abstraction from sys/param.h - * - * Copyright (c) 2006-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_PARAM_H -#define _SCHILY_PARAM_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef HAVE_SYS_PARAM_H -#ifndef _INCL_SYS_PARAM_H -#include -#define _INCL_SYS_PARAM_H -#endif -#endif - -#ifndef NBBY -#define NBBY 8 /* Number of bits per byte */ -#endif - -#ifndef DEV_BSIZE -#define DEV_BSIZE 512 /* UNIX Device Block size */ -#endif - -#endif /* _SCHILY_PARAM_H */ diff -Nru smake-1.2a41/psmake/include/schily/prototyp.h smake-1.2a49/psmake/include/schily/prototyp.h --- smake-1.2a41/psmake/include/schily/prototyp.h 2006-09-13 02:37:00.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/prototyp.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,91 +0,0 @@ -/* @(#)prototyp.h 1.12 06/09/13 Copyright 1995 J. Schilling */ -/* - * Definitions for dealing with ANSI / KR C-Compilers - * - * Copyright (c) 1995 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -/* - * mconfig.h includes prototype.h so we must do this include before we test - * for _SCHILY_PROTOTYP_H - */ -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifndef _SCHILY_PROTOTYP_H -#define _SCHILY_PROTOTYP_H - -#ifndef PROTOTYPES - /* - * If this has already been defined, - * someone else knows better than us... - */ -# ifdef __STDC__ -# if __STDC__ /* ANSI C */ -# define PROTOTYPES -# endif -# if defined(sun) && __STDC__ - 0 == 0 /* Sun C */ -# define PROTOTYPES -# endif -# endif -#endif /* PROTOTYPES */ - -#if !defined(PROTOTYPES) && (defined(__cplusplus) || defined(_MSC_VER)) - /* - * C++ always supports prototypes. - * Define PROTOTYPES so we are not forced to make - * a separtate autoconf run for C++ - * - * Microsoft C has prototypes but does not define __STDC__ - */ -# define PROTOTYPES -#endif - -/* - * If we have prototypes, we should have stdlib.h string.h stdarg.h - */ -#ifdef PROTOTYPES -#if !(defined(SABER) && defined(sun)) -# ifndef HAVE_STDARG_H -# define HAVE_STDARG_H -# endif -#endif -#ifndef JOS -# ifndef HAVE_STDLIB_H -# define HAVE_STDLIB_H -# endif -# ifndef HAVE_STRING_H -# define HAVE_STRING_H -# endif -# ifndef HAVE_STDC_HEADERS -# define HAVE_STDC_HEADERS -# endif -# ifndef STDC_HEADERS -# define STDC_HEADERS /* GNU name */ -# endif -#endif -#endif - -#ifdef NO_PROTOTYPES /* Force not to use prototypes */ -# undef PROTOTYPES -#endif - -#ifdef PROTOTYPES -# define __PR(a) a -#else -# define __PR(a) () -#endif - -#endif /* _SCHILY_PROTOTYP_H */ diff -Nru smake-1.2a41/psmake/include/schily/schily.h smake-1.2a49/psmake/include/schily/schily.h --- smake-1.2a41/psmake/include/schily/schily.h 2007-02-26 15:17:56.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/schily.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,392 +0,0 @@ -/* @(#)schily.h 1.66 07/02/26 Copyright 1985-2007 J. Schilling */ -/* - * Definitions for libschily - * - * This file should be included past: - * - * schily/mconfig.h / config.h - * schily/standard.h - * stdio.h - * stdlib.h (better use schily/stdlib.h) - * unistd.h (better use schily/unistd.h) needed f. LARGEFILE support - * schily/string.h - * sys/types.h - * - * If you need stdio.h, you must include it before schily/schily.h - * - * NOTE: If you need ctype.h and did not include stdio.h you need to - * include ctype.h past schily/schily.h as OpenBSD does not follow POSIX - * and defines EOF in ctype.h - * - * Copyright (c) 1985-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_SCHILY_H -#define _SCHILY_SCHILY_H - -#ifndef _SCHILY_STANDARD_H -#include -#endif -#ifndef _SCHILY_CCOMDEFS_H -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(_INCL_SYS_TYPES_H) || defined(off_t) -# ifndef FOUND_OFF_T -# define FOUND_OFF_T -# endif -#endif -#if defined(_INCL_SYS_TYPES_H) || defined(size_t) -# ifndef FOUND_SIZE_T -# define FOUND_SIZE_T -# endif -#endif -#if defined(_MSC_VER) && !defined(_SIZE_T_DEFINED) -# undef FOUND_SIZE_T -#endif - -#ifdef __never_def__ -/* - * It turns out that we cannot use the folloginw definition because there are - * some platforms that do not behave application friendly. These are mainly - * BSD-4.4 based systems (which #undef a definition when size_t is available. - * We actually removed this code because of a problem with QNX Neutrino. - * For this reason, it is important not to include directly but - * via the Schily SING include files so we know whether it has been included - * before we come here. - */ -#if defined(_SIZE_T) || defined(_T_SIZE_) || defined(_T_SIZE) || \ - defined(__SIZE_T) || defined(_SIZE_T_) || \ - defined(_GCC_SIZE_T) || defined(_SIZET_) || \ - defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t) - -#ifndef FOUND_SIZE_T -# define FOUND_SIZE_T /* We already included a size_t definition */ -#endif -#endif -#endif /* __never_def__ */ - -#if defined(HAVE_LARGEFILES) -# define _fcons _fcons64 -# define fdup fdup64 -# define fileluopen fileluopen64 -# define fileopen fileopen64 -# define filemopen filemopen64 -# define filepos filepos64 -# define filereopen filereopen64 -# define fileseek fileseek64 -# define filesize filesize64 -# define filestat filestat64 -# define _openfd _openfd64 -#endif - -#ifdef EOF /* stdio.h has been included */ -extern int _cvmod __PR((const char *, int *, int *)); -extern FILE *_fcons __PR((FILE *, int, int)); -extern FILE *fdup __PR((FILE *)); -extern int fdown __PR((FILE *)); -extern int fexecl __PR((const char *, FILE *, FILE *, FILE *, - const char *, ...)); -extern int fexecle __PR((const char *, FILE *, FILE *, FILE *, - const char *, ...)); - /* 6th arg not const, fexecv forces av[ac] = NULL */ -extern int fexecv __PR((const char *, FILE *, FILE *, FILE *, int, - char **)); -extern int fexecve __PR((const char *, FILE *, FILE *, FILE *, - char * const *, char * const *)); -extern int fspawnv __PR((FILE *, FILE *, FILE *, int, char * const *)); -extern int fspawnl __PR((FILE *, FILE *, FILE *, - const char *, const char *, ...)); -extern int fspawnv_nowait __PR((FILE *, FILE *, FILE *, - const char *, int, char *const*)); -extern int fgetline __PR((FILE *, char *, int)); -extern int fgetstr __PR((FILE *, char *, int)); -extern void file_raise __PR((FILE *, int)); -extern int fileclose __PR((FILE *)); -extern FILE *fileluopen __PR((int, const char *)); -extern FILE *fileopen __PR((const char *, const char *)); -#ifdef _INCL_SYS_TYPES_H -extern FILE *filemopen __PR((const char *, const char *, mode_t)); -#endif -#ifdef FOUND_OFF_T -extern off_t filepos __PR((FILE *)); -#endif -extern int fileread __PR((FILE *, void *, int)); -extern int ffileread __PR((FILE *, void *, int)); -extern FILE *filereopen __PR((const char *, const char *, FILE *)); -#ifdef FOUND_OFF_T -extern int fileseek __PR((FILE *, off_t)); -extern off_t filesize __PR((FILE *)); -#endif -#ifdef S_IFMT -extern int filestat __PR((FILE *, struct stat *)); -#endif -extern int filewrite __PR((FILE *, void *, int)); -extern int ffilewrite __PR((FILE *, void *, int)); -extern int flush __PR((void)); -extern int fpipe __PR((FILE **)); -/*extern int fprintf __PR((FILE *, const char *, ...)) __printflike__(2, 3);*/ -extern int getbroken __PR((FILE *, char *, char, char **, int)); -extern int ofindline __PR((FILE *, char, const char *, int, - char **, int)); -extern int peekc __PR((FILE *)); - -#ifdef __never_def__ -/* - * We cannot define this or we may get into problems with DOS based systems. - */ -extern int spawnv __PR((FILE *, FILE *, FILE *, int, char * const *)); -extern int spawnl __PR((FILE *, FILE *, FILE *, - const char *, const char *, ...)); -extern int spawnv_nowait __PR((FILE *, FILE *, FILE *, - const char *, int, char *const*)); -#endif /* __never_def__ */ -#endif /* EOF */ - -#ifdef _SCHILY_UTYPES_H -typedef struct gnmult { - char key; - Llong mult; -} gnmult_t; - -extern int getllnum __PR((char *arg, Llong *lvalp)); -extern int getxnum __PR((char *arg, long *valp, gnmult_t *mult)); -extern int getllxnum __PR((char *arg, Llong *lvalp, gnmult_t *mult)); - -extern int getlltnum __PR((char *arg, Llong *lvalp)); -extern int getxtnum __PR((char *arg, time_t *valp, gnmult_t *mult)); -extern int getllxtnum __PR((char *arg, Llong *lvalp, gnmult_t *mult)); -#endif -extern int getnum __PR((char *arg, long *valp)); -#ifdef _SCHILY_TYPES_H -extern int gettnum __PR((char *arg, time_t *valp)); -#endif - -extern int _niread __PR((int, void *, int)); -extern int _niwrite __PR((int, void *, int)); -extern int _nixread __PR((int, void *, int)); -extern int _nixwrite __PR((int, void *, int)); -extern int _openfd __PR((const char *, int)); -extern int on_comerr __PR((void (*fun)(int, void *), void *arg)); -/*PRINTFLIKE1*/ -extern void comerr __PR((const char *, ...)) __printflike__(1, 2); -/*PRINTFLIKE2*/ -extern void comerrno __PR((int, const char *, ...)) __printflike__(2, 3); -/*PRINTFLIKE1*/ -extern int errmsg __PR((const char *, ...)) __printflike__(1, 2); -/*PRINTFLIKE2*/ -extern int errmsgno __PR((int, const char *, ...)) __printflike__(2, 3); -#ifdef FOUND_SIZE_T -/*PRINTFLIKE3*/ -extern int serrmsg __PR((char *, size_t, const char *, ...)) __printflike__(3, 4); -/*PRINTFLIKE4*/ -extern int serrmsgno __PR((int, char *, size_t, const char *, ...)) __printflike__(4, 5); -#endif -extern void comexit __PR((int)); -extern char *errmsgstr __PR((int)); - -#ifdef EOF /* stdio.h has been included */ -/*PRINTFLIKE2*/ -extern void fcomerr __PR((FILE *, const char *, ...)) __printflike__(2, 3); -/*PRINTFLIKE3*/ -extern void fcomerrno __PR((FILE *, int, const char *, ...)) __printflike__(3, 4); -/*PRINTFLIKE2*/ -extern int ferrmsg __PR((FILE *, const char *, ...)) __printflike__(2, 3); -/*PRINTFLIKE3*/ -extern int ferrmsgno __PR((FILE *, int, const char *, ...)) __printflike__(3, 4); -#ifdef _SCHILY_VARARGS_H -/*PRINTFLIKE4*/ -extern int _comerr __PR((FILE *, int, int, const char *, va_list)); -#endif -#endif - -/*PRINTFLIKE1*/ -extern int error __PR((const char *, ...)) __printflike__(1, 2); -extern char *fillbytes __PR((void *, int, char)); -extern char *findbytes __PR((const void *, int, char)); -extern int findline __PR((const char *, char, const char *, - int, char **, int)); -extern int getline __PR((char *, int)); -extern int getstr __PR((char *, int)); -extern int breakline __PR((char *, char, char **, int)); -extern int getallargs __PR((int *, char * const**, const char *, ...)); -extern int getargs __PR((int *, char * const**, const char *, ...)); -extern int getfiles __PR((int *, char * const**, const char *)); -extern char *astoi __PR((const char *, int *)); -extern char *astol __PR((const char *, long *)); -extern char *astolb __PR((const char *, long *, int base)); -#ifdef _SCHILY_UTYPES_H -extern char *astoll __PR((const char *, Llong *)); -extern char *astollb __PR((const char *, Llong *, int)); -extern char *astoull __PR((const char *, Ullong *)); -extern char *astoullb __PR((const char *, Ullong *, int)); -#endif - -/*extern void handlecond __PR((const char *, SIGBLK *, int(*)(const char *, long, long), long));*/ -/*extern void unhandlecond __PR((SIGBLK *));*/ - -extern int patcompile __PR((const unsigned char *, int, int *)); -extern unsigned char *patmatch __PR((const unsigned char *, const int *, - const unsigned char *, int, int, int, int[])); -extern unsigned char *patlmatch __PR((const unsigned char *, const int *, - const unsigned char *, int, int, int, int[])); - -/*extern int printf __PR((const char *, ...)) __printflike__(1, 2);*/ -extern char *movebytes __PR((const void *, void *, int)); - -extern void save_args __PR((int, char **)); -extern int saved_ac __PR((void)); -extern char **saved_av __PR((void)); -extern char *saved_av0 __PR((void)); -#ifndef seterrno -extern int seterrno __PR((int)); -#endif -extern void set_progname __PR((const char *)); -extern char *get_progname __PR((void)); - -extern void setfp __PR((void * const *)); -extern int wait_chld __PR((int)); /* for fspawnv_nowait() */ -extern int geterrno __PR((void)); -extern void raisecond __PR((const char *, long)); -#ifdef FOUND_SIZE_T -/* - * We currently cannot define this here because there IXIX has a definition - * than violates the standard. - */ -#ifndef HAVE_SNPRINTF -/*PRINTFLIKE3*/ -extern int snprintf __PR((char *, size_t, const char *, ...)) __printflike__(3, 4); -#endif -#endif -/*extern int sprintf __PR((char *, const char *, ...)); ist woanders falsch deklariert !!!*/ -extern char *strcatl __PR((char *, ...)); -extern int streql __PR((const char *, const char *)); -#ifdef va_arg -extern int format __PR((void (*)(char, long), long, const char *, va_list)); -#else -extern int format __PR((void (*)(char, long), long, const char *, void *)); -#endif - -extern int ftoes __PR((char *, double, int, int)); -extern int ftofs __PR((char *, double, int, int)); - -#ifdef EOF /* stdio.h has been included */ -/*PRINTFLIKE2*/ -extern int js_fprintf __PR((FILE *, const char *, ...)) __printflike__(2, 3); -/*PRINTFLIKE1*/ -extern int js_printf __PR((const char *, ...)) __printflike__(1, 2); -#ifdef FOUND_SIZE_T -/*PRINTFLIKE3*/ -extern int js_snprintf __PR((char *, size_t, const char *, ...)) __printflike__(3, 4); -#endif -/*PRINTFLIKE2*/ -extern int js_sprintf __PR((char *, const char *, ...)) __printflike__(2, 3); -#endif /* EOF */ - -extern void swabbytes __PR((void *, int)); -extern char **getmainfp __PR((void)); -extern char **getavp __PR((void)); -extern char *getav0 __PR((void)); -extern void **getfp __PR((void)); -extern int flush_reg_windows __PR((int)); -extern int cmpbytes __PR((const void *, const void *, int)); -extern int cmpnullbytes __PR((const void *, int)); - -#ifdef nonono -#if defined(HAVE_LARGEFILES) -/* - * To allow this, we need to figure out how to do autoconfiguration for off64_t - */ -extern FILE *_fcons64 __PR((FILE *, int, int)); -extern FILE *fdup64 __PR((FILE *)); -extern FILE *fileluopen64 __PR((int, const char *)); -extern FILE *fileopen64 __PR((const char *, const char *)); -#ifdef FOUND_OFF_T -extern off64_t filepos64 __PR((FILE *)); -#endif -extern FILE *filereopen64 __PR((const char *, const char *, FILE *)); -#ifdef FOUND_OFF_T -extern int fileseek64 __PR((FILE *, off64_t)); -extern off64_t filesize64 __PR((FILE *)); -#endif -#ifdef S_IFMT -extern int filestat64 __PR((FILE *, struct stat *)); -#endif -extern int _openfd64 __PR((const char *, int)); -#endif -#endif - -#ifdef SCHILY_PRINT -#undef fprintf -#define fprintf js_fprintf -#undef printf -#define printf js_printf -#undef snprintf -#define snprintf js_snprintf -#undef sprintf -#define sprintf js_sprintf -#else -#ifndef HAVE_SNPRINTF -#undef snprintf -#define snprintf js_snprintf -#endif -#endif - -#ifdef FOUND_SIZE_T -extern void *js_malloc __PR((size_t size, char *msg)); -extern void *js_realloc __PR((void *ptr, size_t size, char *msg)); -#endif -extern char *js_savestr __PR((const char *s)); - -#ifdef _INCL_SETJMP_H -#ifdef FOUND_SIZE_T -extern void *js_jmalloc __PR((size_t size, char *msg, sigjmps_t *jmp)); -extern void *js_jrealloc __PR((void *ptr, size_t size, char *msg, sigjmps_t *jmp)); -#endif -extern char *js_jsavestr __PR((const char *s, sigjmps_t *jmp)); - -#ifdef EOF /* stdio.h has been included */ -#ifdef FOUND_SIZE_T -extern void *js_fjmalloc __PR((FILE *f, size_t size, char *msg, sigjmps_t *jmp)); -extern void *js_fjrealloc __PR((FILE *f, void *ptr, size_t size, char *msg, sigjmps_t *jmp)); -#endif -extern char *js_fjsavestr __PR((FILE *f, const char *s, sigjmps_t *jmp)); -#endif /* EOF */ -#endif /* _INCL_SETJMP_H */ - -#define __malloc js_malloc -#define __realloc js_realloc -#define __savestr js_savestr -#define __jmalloc js_jmalloc -#define __jrealloc js_jrealloc -#define __jsavestr js_jsavestr -#define __fjmalloc js_fjmalloc -#define __fjrealloc js_fjrealloc -#define __fjsavestr js_fjsavestr - -#ifdef __cplusplus -} -#endif - -#if defined(_JOS) || defined(JOS) -# ifndef _SCHILY_JOS_IO_H -# include -# endif -#endif - -#endif /* _SCHILY_SCHILY_H */ diff -Nru smake-1.2a41/psmake/include/schily/sigblk.h smake-1.2a49/psmake/include/schily/sigblk.h --- smake-1.2a41/psmake/include/schily/sigblk.h 2006-09-13 02:27:00.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/sigblk.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,65 +0,0 @@ -/* @(#)sigblk.h 1.11 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ -/* - * software signal block definition - * - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_SIGBLK_H -#define _SCHILY_SIGBLK_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif -#ifndef _SCHILY_STANDARD_H -#include -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct sigblk { - long **sb_savfp; /* Real saved framepointer */ - struct sigblk *sb_signext; /* Next sw signal blk for this func */ - short sb_siglen; /* Strlen for sb_signame */ - const char *sb_signame; /* Name of software signal */ - - /* sb_sigfun: function to call */ - int (*sb_sigfun) __PR((const char *, long, long)); - - long sb_sigarg; /* Second arg for sb_sigfun */ -} SIGBLK; - -/* - * The handler function is called with three arguments: - * - * 1) The name of the software signal - * 2) The argument from the handlecond() call - * 3) The argument from the raisecond() call - */ -typedef int (*handlefunc_t) __PR((const char *, long, long)); - -extern void handlecond __PR((const char *, SIGBLK *, - int(*)(const char *, long, long), - long)); -extern void raisecond __PR((const char *, long)); -extern void starthandlecond __PR((SIGBLK *)); -extern void unhandlecond __PR((SIGBLK *)); - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_SIGBLK_H */ diff -Nru smake-1.2a41/psmake/include/schily/standard.h smake-1.2a49/psmake/include/schily/standard.h --- smake-1.2a41/psmake/include/schily/standard.h 2007-02-03 22:37:09.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/standard.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,147 +0,0 @@ -/* @(#)standard.h 1.36 07/02/03 Copyright 1985-2007 J. Schilling */ -/* - * standard definitions - * - * This file should be included past: - * - * mconfig.h / config.h - * stdio.h - * stdlib.h (better use schily/stdlib.h) - * unistd.h (better use schily/unistd.h) needed f. LARGEFILE support - * - * If you need stdio.h, you must include it before standard.h - * - * Copyright (c) 1985-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_STANDARD_H -#define _SCHILY_STANDARD_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef M68000 -# ifndef tos -# define JOS 1 -# endif -#endif - -/* - * fundamental constants - */ -#ifndef NULL -# define NULL 0 -#endif -#ifndef TRUE -# define TRUE 1 -# define FALSE 0 -#endif - -/* - * Program exit codes - */ -#define EX_BAD (-1) - -/* - * standard storage class definitions - */ -#define GLOBAL extern -#define IMPORT extern -#define EXPORT -#define INTERN static -#define LOCAL static -#define FAST register - -#ifndef PROTOTYPES -# ifndef const -# define const -# endif -# ifndef signed -# define signed -# endif -# ifndef volatile -# define volatile -# endif -#endif /* PROTOTYPES */ - -/* - * standard type definitions - * - * The hidden Schily BOOL definition is used in case we need to deal - * with other BOOL defines on systems we like to port to. - */ -typedef int __SBOOL; -typedef int BOOL; -#ifdef JOS -# ifndef __GNUC__ -# define NO_VOID -# endif -#endif -#ifdef NO_VOID -# ifndef lint - typedef int void; -# endif -#endif - -#if defined(_INCL_SYS_TYPES_H) || defined(off_t) -# ifndef FOUND_OFF_T -# define FOUND_OFF_T -# endif -#endif -#if defined(_INCL_SYS_TYPES_H) || defined(size_t) -# ifndef FOUND_SIZE_T -# define FOUND_SIZE_T -# endif -#endif -#if defined(_MSC_VER) && !defined(_SIZE_T_DEFINED) -# undef FOUND_SIZE_T -#endif - -#ifdef __never_def__ -/* - * It turns out that we cannot use the folloginw definition because there are - * some platforms that do not behave application friendly. These are mainly - * BSD-4.4 based systems (which #undef a definition when size_t is available. - * We actually removed this code because of a problem with QNX Neutrino. - * For this reason, it is important not to include directly but - * via the Schily SING include files so we know whether it has been included - * before we come here. - */ -#if defined(_SIZE_T) || defined(_T_SIZE_) || defined(_T_SIZE) || \ - defined(__SIZE_T) || defined(_SIZE_T_) || \ - defined(_GCC_SIZE_T) || defined(_SIZET_) || \ - defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t) - -#ifndef FOUND_SIZE_T -# define FOUND_SIZE_T /* We already included a size_t definition */ -#endif -#endif -#endif /* __never_def__ */ - -#if defined(_JOS) || defined(JOS) -# ifndef _SCHILY_SCHILY_H -# include -# endif - -# ifndef _SCHILY_JOS_DEFS_H -# include -# endif - -# ifndef _SCHILY_JOS_IO_H -# include -# endif -#endif - -#endif /* _SCHILY_STANDARD_H */ diff -Nru smake-1.2a41/psmake/include/schily/stat.h smake-1.2a49/psmake/include/schily/stat.h --- smake-1.2a41/psmake/include/schily/stat.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/stat.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,342 +0,0 @@ -/* @(#)stat.h 1.13 07/01/16 Copyright 1998-2007 J. Schilling */ -/* - * Definitions for stat() file mode - * - * Copyright (c) 1998-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_STAT_H -#define _SCHILY_STAT_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifndef _SCHILY_TYPES_H -#include /* Needed for sys/stat.h */ -#endif -#ifndef _INCL_SYS_STAT_H -#include /* For S_IS* and S_IF* */ -#define _INCL_SYS_STAT_H -#endif - -/* - * Apollo Domain/OS has a broken sys/stat.h that defines - * S_IFIFO == S_IFSOCK and creates trouble if the constants - * are used as case labels. - */ -#if S_IFIFO == S_IFSOCK -# undef S_IFSOCK -#endif - -#ifdef STAT_MACROS_BROKEN -#undef S_ISFIFO /* Named pipe */ -#undef S_ISCHR /* Character special */ -#undef S_ISMPC /* UNUSED multiplexed c */ -#undef S_ISDIR /* Directory */ -#undef S_ISNAM /* Named file (XENIX) */ -#undef S_ISBLK /* Block special */ -#undef S_ISMPB /* UNUSED multiplexed b */ -#undef S_ISREG /* Regular file */ -#undef S_ISCNT /* Contiguous file */ -#undef S_ISLNK /* Symbolic link */ -#undef S_ISSHAD /* Solaris shadow inode */ -#undef S_ISSOCK /* UNIX domain socket */ -#undef S_ISDOOR /* Solaris DOOR */ -#undef S_ISPORT /* Solaris event port */ -#undef S_ISWHT /* BSD whiteout */ -#undef S_ISEVC /* UNOS eventcount */ -#endif - -#ifndef S_ISFIFO /* 1 Named pipe */ -# ifdef S_IFIFO -# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) -# else -# define S_ISFIFO(m) (0) -# endif -#endif -#ifndef S_ISCHR /* 2 Character special */ -# ifdef S_IFCHR -# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) -# else -# define S_ISCHR(m) (0) -# endif -#endif -#ifndef S_ISMPC /* 3 UNUSED multiplexed char */ -# ifdef S_IFMPC -# define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) -# else -# define S_ISMPC(m) (0) -# endif -#endif -#ifndef S_ISDIR /* 4 Directory */ -# ifdef S_IFDIR -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) -# else -# define S_ISDIR(m) (0) -# endif -#endif -#ifndef S_ISNAM /* 5 Named file (XENIX) */ -# ifdef S_IFNAM -# define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) -# else -# define S_ISNAM(m) (0) -# endif -#endif -#ifndef S_ISBLK /* 6 Block special */ -# ifdef S_IFBLK -# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) -# else -# define S_ISBLK(m) (0) -# endif -#endif -#ifndef S_ISMPB /* 7 UNUSED multiplexed block */ -# ifdef S_IFMPB -# define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) -# else -# define S_ISMPB(m) (0) -# endif -#endif -#ifndef S_ISREG /* 8 Regular file */ -# ifdef S_IFREG -# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) -# else -# define S_ISREG(m) (0) -# endif -#endif -#ifndef S_ISCNT /* 9 Contiguous file */ -# ifdef S_IFCNT -# define S_ISCNT(m) (((m) & S_IFMT) == S_IFCNT) -# else -# define S_ISCNT(m) (0) -# endif -#endif -#ifndef S_ISLNK /* 10 Symbolic link */ -# ifdef S_IFLNK -# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) -# else -# define S_ISLNK(m) (0) -# endif -#endif -#ifndef S_ISSHAD /* 11 Solaris shadow inode */ -# ifdef S_IFSHAD -# define S_ISSHAD(m) (((m) & S_IFMT) == S_IFSHAD) -# else -# define S_ISSHAD(m) (0) -# endif -#endif -#ifndef S_ISSOCK /* 12 UNIX domain socket */ -# ifdef S_IFSOCK -# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) -# else -# define S_ISSOCK(m) (0) -# endif -#endif -#ifndef S_ISDOOR /* 13 Solaris DOOR */ -# ifdef S_IFDOOR -# define S_ISDOOR(m) (((m) & S_IFMT) == S_IFDOOR) -# else -# define S_ISDOOR(m) (0) -# endif -#endif -#ifndef S_ISPORT /* 14 Solaris event port */ -# ifdef S_IFPORT -# define S_ISPORT(m) (((m) & S_IFMT) == S_IFPORT) -# else -# define S_ISPORT(m) (0) -# endif -#endif -#ifndef S_ISWHT /* 14 BSD whiteout */ -# ifdef S_IFWHT -# define S_ISWHT(m) (((m) & S_IFMT) == S_ISWHT) -# else -# define S_ISWHT(m) (0) -# endif -#endif -#ifndef S_IFEVC /* 15 UNOS eventcount */ -# ifdef S_IFEVC -# define S_ISEVC(m) (((m) & S_IFMT) == S_IFEVC) -# else -# define S_ISEVC(m) (0) -# endif -#endif - -#ifndef S_TYPEISMQ -/* - * XXX ??? where is a definition of a message queue ??? - */ -# define S_TYPEISMQ(_stbuf) (0) -#endif -#ifndef S_TYPEISSEM -# ifdef S_INSEM -# define S_TYPEISSEM(_stbuf) (S_ISNAM((_stbuf)->st_mode) && (_stbuf)->st_rdev == S_INSEM) -# else -# define S_TYPEISSEM(_stbuf) (0) -# endif -#endif -#ifndef S_TYPEISSHM -# ifdef S_INSHD -# define S_TYPEISSHM(_stbuf) (S_ISNAM((_stbuf)->st_mode) && (_stbuf)->st_rdev == S_INSHD) -# else -# define S_TYPEISSHM(_stbuf) (0) -# endif -#endif - -/* - * Mode permission bits. - * UNIX V.7 has only S_ISUID/S_ISGID/S_ISVTX and S_IREAD/S_IWRITE/S_IEXEC - */ -#ifndef S_ISUID /* Set-user-ID on execution */ -#define S_ISUID 0 /* If it is not defined, it is not supported */ -#endif -#ifndef S_ISGID /* Set-group-ID on execution */ -#define S_ISGID 0 /* If it is not defined, it is not supported */ -#endif -#ifndef S_ISVTX /* On directories, restricted deletion flag */ -#define S_ISVTX 0 /* If it is not defined, it is not supported */ -#endif - -#ifndef S_IRUSR /* Read permission, owner */ -#ifdef S_IREAD -#define S_IRUSR S_IREAD /* Needed on old UNIX systems */ -#else -#define S_IRUSR 0400 -#endif -#endif -#ifndef S_IWUSR /* Write permission, owner */ -#ifdef S_IWRITE -#define S_IWUSR S_IWRITE /* Needed on old UNIX systems */ -#else -#define S_IWUSR 0200 -#endif -#endif -#ifndef S_IXUSR /* Execute/search permission, owner */ -#ifdef S_IEXEC -#define S_IXUSR S_IEXEC /* Needed on old UNIX systems */ -#else -#define S_IXUSR 0100 -#endif -#endif -#ifndef S_IRGRP /* Read permission, group */ -#ifdef S_IREAD -#define S_IRGRP (S_IREAD >> 3) /* Needed on old UNIX systems */ -#else -#define S_IRGRP 040 -#endif -#endif -#ifndef S_IWGRP /* Write permission, group */ -#ifdef S_IWRITE -#define S_IWGRP (S_IWRITE >> 3) /* Needed on old UNIX systems */ -#else -#define S_IWGRP 020 -#endif -#endif -#ifndef S_IXGRP /* Execute/search permission, group */ -#ifdef S_IEXEC -#define S_IXGRP (S_IEXEC >> 3) /* Needed on old UNIX systems */ -#else -#define S_IXGRP 010 -#endif -#endif -#ifndef S_IROTH /* Read permission, others */ -#ifdef S_IREAD -#define S_IROTH (S_IREAD >> 6) /* Needed on old UNIX systems */ -#else -#define S_IROTH 004 -#endif -#endif -#ifndef S_IWOTH /* Write permission, others */ -#ifdef S_IWRITE -#define S_IWOTH (S_IWRITE >> 6) /* Needed on old UNIX systems */ -#else -#define S_IWOTH 002 -#endif -#endif -#ifndef S_IXOTH /* Execute/search permission, others */ -#ifdef S_IEXEC -#define S_IXOTH (S_IEXEC >> 6) /* Needed on old UNIX systems */ -#else -#define S_IXOTH 001 -#endif -#endif - -#ifndef S_IRWXU /* Read, write, execute/search by owner */ -#define S_IRWXU (S_IRUSR|S_IWUSR|S_IXUSR) -#endif -#ifndef S_IRWXG /* Read, write, execute/search by group */ -#define S_IRWXG (S_IRGRP|S_IWGRP|S_IXGRP) -#endif -#ifndef S_IRWXO /* Read, write, execute/search by others */ -#define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH) -#endif - -/* - * SCO UnixWare has st_atim.st__tim.tv_nsec but the st_atim.tv_nsec tests also - * succeeds. If we use st_atim.tv_nsec on UnixWare, we get a warning about - * illegal structure usage. For this reason, our code needs to have - * #ifdef HAVE_ST__TIM before #ifdef HAVE_ST_NSEC. - */ -#if defined(HAVE_ST_ATIMENSEC) - -#define stat_ansecs(s) ((s)->st_atimensec) -#define stat_mnsecs(s) ((s)->st_mtimensec) -#define stat_cnsecs(s) ((s)->st_ctimensec) - -#define _FOUND_STAT_NSECS_ -#endif - -#if defined(HAVE_ST_SPARE1) && !defined(_FOUND_STAT_NSECS_) - -#define stat_ansecs(s) ((s)->st_spare1 * 1000) -#define stat_mnsecs(s) ((s)->st_spare2 * 1000) -#define stat_cnsecs(s) ((s)->st_spare3 * 1000) - -#define _FOUND_STAT_USECS_ -#define _FOUND_STAT_NSECS_ -#endif - -#if defined(HAVE_ST__TIM) && !defined(_FOUND_STAT_NSECS_) - -#define stat_ansecs(s) ((s)->st_atim.st__tim.tv_nsec) -#define stat_mnsecs(s) ((s)->st_mtim.st__tim.tv_nsec) -#define stat_cnsecs(s) ((s)->st_ctim.st__tim.tv_nsec) - -#define _FOUND_STAT_NSECS_ -#endif - -#if defined(HAVE_ST_NSEC) && !defined(_FOUND_STAT_NSECS_) - -#define stat_ansecs(s) ((s)->st_atim.tv_nsec) -#define stat_mnsecs(s) ((s)->st_mtim.tv_nsec) -#define stat_cnsecs(s) ((s)->st_ctim.tv_nsec) - -#define _FOUND_STAT_NSECS_ -#endif - -#if defined(HAVE_ST_ATIMESPEC) && !defined(_FOUND_STAT_NSECS_) - -#define stat_ansecs(s) ((s)->st_atimespec.tv_nsec) -#define stat_mnsecs(s) ((s)->st_mtimespec.tv_nsec) -#define stat_cnsecs(s) ((s)->st_ctimespec.tv_nsec) - -#define _FOUND_STAT_NSECS_ -#endif - -#if !defined(_FOUND_STAT_NSECS_) -#define stat_ansecs(s) (0) -#define stat_mnsecs(s) (0) -#define stat_cnsecs(s) (0) -#endif - -#endif /* _SCHILY_STAT_H */ diff -Nru smake-1.2a41/psmake/include/schily/stdlib.h smake-1.2a49/psmake/include/schily/stdlib.h --- smake-1.2a41/psmake/include/schily/stdlib.h 2006-09-13 01:44:11.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/stdlib.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,50 +0,0 @@ -/* @(#)stdlib.h 1.7 06/09/13 Copyright 1996 J. Schilling */ -/* - * Definitions for stdlib - * - * Copyright (c) 1996 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_STDLIB_H -#define _SCHILY_STDLIB_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef HAVE_STDLIB_H -#ifndef _INCL_STDLIB_H -#include -#define _INCL_STDLIB_H -#endif -#else - -extern char *malloc(); -extern char *realloc(); - -extern double atof(); - -#endif /* HAVE_STDLIB_H */ - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif -#ifndef EXIT_SUCCESS -#define EXIT_SUCCESS 0 -#endif -#ifndef RAND_MAX -#define RAND_MAX 32767 -#endif - -#endif /* _SCHILY_STDLIB_H */ diff -Nru smake-1.2a41/psmake/include/schily/string.h smake-1.2a49/psmake/include/schily/string.h --- smake-1.2a41/psmake/include/schily/string.h 2006-10-10 09:24:15.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/string.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,107 +0,0 @@ -/* @(#)string.h 1.10 06/10/10 Copyright 1996 J. Schilling */ -/* - * Definitions for strings - * - * Copyright (c) 1996 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_STRING_H -#define _SCHILY_STRING_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -/* - * It may be that IBM's AIX has problems when doing - * #include - * #include - * So I moved the #include to the top. As the file strings.h - * defines strcasecmp() we may need it... - * - * Note that the only real problem appears if we use rubbish FSF based code that - * #defines _NO_PROTO - */ -#ifdef HAVE_STRINGS_H -#ifndef _INCL_STRINGS_H -#include -#define _INCL_STRINGS_H -#endif -#endif /* HAVE_STRINGS_H */ - - -#ifdef HAVE_STRING_H -#ifndef _INCL_STRING_H -#include -#define _INCL_STRING_H -#endif -#else /* HAVE_STRING_H */ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef NULL -#define NULL 0 -#endif - -extern void *memcpy __PR((void *, const void *, int)); -extern void *memmove __PR((void *, const void *, int)); -extern char *strcpy __PR((char *, const char *)); -extern char *strncpy __PR((char *, const char *, int)); - -extern char *strcat __PR((char *, const char *)); -extern char *strncat __PR((char *, const char *, int)); - -extern int memcmp __PR((const void *, const void *, int)); -extern int strcmp __PR((const char *, const char *)); -extern int strcoll __PR((const char *, const char *)); -extern int strncmp __PR((const char *, const char *, int)); -extern int strxfrm __PR((char *, const char *, int)); - -extern void *memchr __PR((const void *, int, int)); -extern char *strchr __PR((const char *, int)); - -extern int strcspn __PR((const char *, const char *)); -/*#pragma int_to_unsigned strcspn*/ - -extern char *strpbrk __PR((const char *, const char *)); -extern char *strrchr __PR((const char *, int)); - -extern int strspn __PR((const char *, const char *)); -/*#pragma int_to_unsigned strspn*/ - -extern char *strstr __PR((const char *, const char *)); -extern char *strtok __PR((char *, const char *)); -extern void *memset __PR((void *, int, int)); -extern char *strerror __PR((int)); - -extern int strlen __PR((const char *)); -/*#pragma int_to_unsigned strlen*/ - -extern void *memccpy __PR((void *, const void *, int, int)); - -extern int strcasecmp __PR((const char *, const char *)); -extern int strncasecmp __PR((const char *, const char *, int)); - -/*#define index strchr*/ -/*#define rindex strrchr*/ - -#ifdef __cplusplus -} -#endif - -#endif /* HAVE_STRING_H */ - -#endif /* _SCHILY_STRING_H */ diff -Nru smake-1.2a41/psmake/include/schily/time.h smake-1.2a49/psmake/include/schily/time.h --- smake-1.2a41/psmake/include/schily/time.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/time.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,127 +0,0 @@ -/* @(#)time.h 1.16 07/01/16 Copyright 1996-2007 J. Schilling */ -/* - * Generic header for users of time(), gettimeofday() ... - * - * It includes definitions for time_t, struct timeval, ... - * - * Copyright (c) 1996-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_TIME_H -#define _SCHILY_TIME_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifndef _SCHILY_TYPES_H -#include /* Needed for time_t */ -#endif - -#ifdef TIME_WITH_SYS_TIME -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#else -#ifdef HAVE_SYS_TIME_H -# ifndef _INCL_SYS_TIME_H -# include -# define _INCL_SYS_TIME_H -# endif -#else -# ifndef _INCL_TIME_H -# include -# define _INCL_TIME_H -# endif -#endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(__CYGWIN32__) || defined(__EMX__) || defined(__linux__) || defined(__DJGPP__) -/* - * Cygnus defines struct timeval in sys/time.h but not timerclear - * timerclear is defined in windows32/Sockets.h ??? - * - * EMX for OS/2 defines struct timeval in sys/time.h but not timerclear - * - * Linux defines struct timeval in sys/time.h but if __USE_BSD is not - * defined, timerclear is missing. - */ -#ifndef timerclear -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 -#endif -#endif - -#ifndef timerclear - -#ifndef VMS -struct timeval { - long tv_sec; - long tv_usec; -}; -#endif - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; - -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 - -#endif - -#undef timerfix -#define timerfix1(tvp) while ((tvp)->tv_usec < 0) { \ - (tvp)->tv_sec--; \ - (tvp)->tv_usec += 1000000; \ - } - -#define timerfix2(tvp) while ((tvp)->tv_usec > 1000000) { \ - (tvp)->tv_sec++; \ - (tvp)->tv_usec -= 1000000; \ - } - -#define timerfix(tvp) do { timerfix1(tvp); timerfix2(tvp); } while (0) - -/* - * timersub() and timeradd() are defined on FreeBSD with a different - * interface (3 parameters). - */ -#undef timersub -#define timersub(tvp1, tvp2) do { \ - (tvp1)->tv_sec -= (tvp2)->tv_sec; \ - (tvp1)->tv_usec -= (tvp2)->tv_usec; \ - timerfix1(tvp1); timerfix2(tvp1); \ - } while (0) - -#undef timeradd -#define timeradd(tvp1, tvp2) do { \ - (tvp1)->tv_sec += (tvp2)->tv_sec; \ - (tvp1)->tv_usec += (tvp2)->tv_usec; \ - timerfix1(tvp1); timerfix2(tvp1); \ - } while (0) - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_TIME_H */ diff -Nru smake-1.2a41/psmake/include/schily/types.h smake-1.2a49/psmake/include/schily/types.h --- smake-1.2a41/psmake/include/schily/types.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/types.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,33 +0,0 @@ -/* @(#)types.h 1.2 07/01/16 Copyright 2006-2007 J. Schilling */ -/* - * Abstraction from sys/types.h - * - * Copyright (c) 2006-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_TYPES_H -#define _SCHILY_TYPES_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -#ifndef _INCL_SYS_TYPES_H -#include -#define _INCL_SYS_TYPES_H -#endif -#endif - -#endif /* _SCHILY_TYPES_H */ diff -Nru smake-1.2a41/psmake/include/schily/unistd.h smake-1.2a49/psmake/include/schily/unistd.h --- smake-1.2a41/psmake/include/schily/unistd.h 2007-01-16 14:19:12.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/unistd.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,137 +0,0 @@ -/* @(#)unistd.h 1.19 07/01/16 Copyright 1996-2007 J. Schilling */ -/* - * Definitions for unix system interface - * - * Copyright (c) 1996-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_UNISTD_H -#define _SCHILY_UNISTD_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -/* - * unistd.h grants things like off_t to be typedef'd. - */ -#ifndef _SCHILY_TYPES_H -#include -#endif - -#ifdef HAVE_UNISTD_H - -#ifndef _INCL_UNISTD_H -#include -#define _INCL_UNISTD_H -#endif - -#ifndef _SC_PAGESIZE -#ifdef _SC_PAGE_SIZE /* HP/UX & OSF */ -#define _SC_PAGESIZE _SC_PAGE_SIZE -#endif -#endif - -#endif /* HAVE_UNISTD_H */ - -/* - * MSVC has getcwd()/chdir()/mkdir()/rmdir() in direct.h - */ -#if defined(_MSC_VER) && defined(HAVE_DIRECT_H) -#ifndef _INCL_DIRECT_H -#include -#define _INCL_DIRECT_H -#endif -#endif - -/* - * MSVC has size_t in stddef.h - */ -#ifdef HAVE_STDDEF_H -#ifndef _INCL_STDDEF_H -#include -#define _INCL_STDDEF_H -#endif -#endif - -#ifndef STDIN_FILENO -# ifdef JOS -# ifndef _SCHILY_JOS_IO_H -# include -# endif -# else -# define STDIN_FILENO 0 -# define STDOUT_FILENO 1 -# define STDERR_FILENO 2 -# endif -#endif - -#ifndef R_OK -/* Symbolic constants for the "access" routine: */ -#define R_OK 4 /* Test for Read permission */ -#define W_OK 2 /* Test for Write permission */ -#define X_OK 1 /* Test for eXecute permission */ -#define F_OK 0 /* Test for existence of File */ -#endif -#ifndef E_OK -#ifdef HAVE_ACCESS_E_OK -#ifdef EFF_ONLY_OK -#define E_OK EFF_ONLY_OK /* Irix */ -#else -#ifdef EUID_OK -#define E_OK EUID_OK /* UNICOS (0400) */ -#else -#define E_OK 010 /* Test effective uids */ -#endif /* EUID_OK */ -#endif /* EFF_ONLY_OK */ -#else -#define E_OK 0 -#endif /* HAVE_ACCESS_E_OK */ -#endif /* !E_OK */ - -/* Symbolic constants for the "lseek" routine: */ -#ifndef SEEK_SET -#define SEEK_SET 0 /* Set file pointer to "offset" */ -#endif -#ifndef SEEK_CUR -#define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ -#endif -#ifndef SEEK_END -#define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ -#endif - -#if !defined(HAVE_UNISTD_H) || !defined(_POSIX_VERSION) -/* - * Maybe we need a lot more definitions here... - * It is not clear whether we should have prototyped definitions. - */ -extern int access __PR((const char *, int)); -extern int close __PR((int)); -extern int dup __PR((int)); -extern int dup2 __PR((int, int)); -#ifndef _MSC_VER -/* - * MS C comes with broken prototypes in wrong header files (in our case, the - * wrong prototype is in stdlib.h). Avoid to redefine the broken MS stuff with - * correct prototypes. - */ -extern void _exit __PR((int)); -#endif -extern int link __PR((const char *, const char *)); -extern int read __PR((int, void *, size_t)); -extern int unlink __PR((const char *)); -extern int write __PR((int, const void *, size_t)); -#endif - -#endif /* _SCHILY_UNISTD_H */ diff -Nru smake-1.2a41/psmake/include/schily/utime.h smake-1.2a49/psmake/include/schily/utime.h --- smake-1.2a41/psmake/include/schily/utime.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/utime.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,71 +0,0 @@ -/* @(#)utime.h 1.8 07/01/16 Copyright 2001-2007 J. Schilling */ -/* - * Defines for utimes() / utime() - * - * Copyright (c) 2001-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_UTIME_H -#define _SCHILY_UTIME_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifndef _SCHILY_TYPES_H -#include -#endif - -#ifdef HAVE_UTIMES -#ifndef _SCHILY_TIME_H -#include -#endif -#endif - -#ifdef HAVE_UTIME_H -#ifndef _INCL_UTIME_H -#include -#define _INCL_UTIME_H -#endif -#else -#ifdef HAVE_SYS_UTIME_H -#ifndef _INCL_SYS_UTIME_H -#include -#define _INCL_SYS_UTIME_H -#endif -#else -struct utimbuf { - time_t actime; - time_t modtime; -}; -#endif -#endif - -#ifdef __comment__ -/* - * file.c contains this - * I am not sure if it is really needed. - * It may be a good idea to add a test for HAVE_STRUCT_UTIMBUF - * as in gnutar. - */ -#if (__COHERENT__ >= 0x420) -# include -#else -# include -#endif - -#endif /* __comment__ */ - - -#endif /* _SCHILY_UTIME_H */ diff -Nru smake-1.2a41/psmake/include/schily/utypes.h smake-1.2a49/psmake/include/schily/utypes.h --- smake-1.2a41/psmake/include/schily/utypes.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/utypes.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,516 +0,0 @@ -/* @(#)utypes.h 1.26 07/01/16 Copyright 1997-2007 J. Schilling */ -/* - * Definitions for some user defined types - * - * Copyright (c) 1997-2008 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_UTYPES_H -#define _SCHILY_UTYPES_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -/* - * Let us include system defined types too. - */ -#ifndef _SCHILY_TYPES_H -#include -#endif - -/* - * Include limits.h for CHAR_BIT - */ -#ifdef HAVE_LIMITS_H -#ifndef _INCL_LIMITS_H -#include -#define _INCL_LIMITS_H -#endif -#endif - -/* - * Do we need to define _XOPEN_SOURCE to get NZERO? - * On Linux, it is needed but on Linux NZERO is 20. - */ -#ifndef NZERO /* for nice(2) */ -#define NZERO 20 -#endif - -/* - * Include sys/param.h for NBBY - */ -#ifndef _SCHILY_PARAM_H -#include -#endif - -#ifndef CHAR_BIT -#ifdef NBBY -#define CHAR_BIT NBBY -#endif -#endif - -#ifndef CHAR_BIT -#define CHAR_BIT 8 -#endif - -/* - * These macros may not work on all platforms but as we depend - * on two's complement in many places, they do not reduce portability. - * The macros below work with 2s complement and ones complement machines. - * Verify with this table... - * - * Bits 1's c. 2's complement. - * 100 -3 -4 - * 101 -2 -3 - * 110 -1 -2 - * 111 -0 -1 - * 000 +0 0 - * 001 +1 +1 - * 010 +2 +2 - * 011 +3 +3 - * - * Computing -TYPE_MINVAL(type) will not work on 2's complement machines - * if 'type' is int or more. Use -(UIntmax_t)TYPE_MINVAL(type), it works - * for both 1's complement and 2's complement machines. - */ -#define TYPE_ISSIGNED(t) (((t)-1) < ((t)0)) -#define TYPE_ISUNSIGNED(t) (!TYPE_ISSIGNED(t)) -#define TYPE_MSBVAL(t) ((t)(~((t)0) << (sizeof (t)*CHAR_BIT - 1))) -#define TYPE_MINVAL(t) (TYPE_ISSIGNED(t) \ - ? TYPE_MSBVAL(t) \ - : ((t)0)) -#define TYPE_MAXVAL(t) ((t)(~((t)0) - TYPE_MINVAL(t))) - -/* - * MSVC has size_t in stddef.h - */ -#ifdef HAVE_STDDEF_H -#ifndef _INCL_STDDEF_H -#include -#define _INCL_STDDEF_H -#endif -#endif - -#ifdef __CHAR_UNSIGNED__ /* GNU GCC define (dynamic) */ -#ifndef CHAR_IS_UNSIGNED -#define CHAR_IS_UNSIGNED /* Sing Schily define (static) */ -#endif -#endif - -/* - * Several unsigned cardinal types - */ -typedef unsigned long Ulong; -typedef unsigned int Uint; -typedef unsigned short Ushort; -typedef unsigned char Uchar; - -/* - * This is a definition for a compiler dependant 64 bit type. - * It currently is silently a long if the compiler does not - * support it. Check if this is the right way. - * - * Be very careful here as MSVC does not implement long long but rather __int64 - * and once someone makes 'long long' 128 bits on a 64 bit machine, we need to - * check for a MSVC __int128 type. - */ -#ifndef NO_LONGLONG -# if defined(HAVE_LONGLONG) -# define USE_LONGLONG -# endif -#endif - -#ifdef USE_LONGLONG - -# if defined(HAVE___INT64) - -typedef __int64 Llong; -typedef unsigned __int64 Ullong; /* We should avoid this */ -typedef unsigned __int64 ULlong; - -#define SIZEOF_LLONG SIZEOF___INT64 -#define SIZEOF_ULLONG SIZEOF_UNSIGNED___INT64 - -# else /* We must have HAVE_LONG_LONG */ - -typedef long long Llong; -typedef unsigned long long Ullong; /* We should avoid this */ -typedef unsigned long long ULlong; - -#define SIZEOF_LLONG SIZEOF_LONG_LONG -#define SIZEOF_ULLONG SIZEOF_UNSIGNED_LONG_LONG - -# endif /* HAVE___INT64 / HAVE_LONG_LONG */ - -#else - -typedef long Llong; -typedef unsigned long Ullong; /* We should avoid this */ -typedef unsigned long ULlong; - -#define SIZEOF_LLONG SIZEOF_LONG -#define SIZEOF_ULLONG SIZEOF_UNSIGNED_LONG - -#endif -#ifndef LLONG_MIN -#define LLONG_MIN TYPE_MINVAL(Llong) -#endif -#ifndef LLONG_MAX -#define LLONG_MAX TYPE_MAXVAL(Llong) -#endif -#ifndef ULLONG_MAX -#define ULLONG_MAX TYPE_MAXVAL(Ullong) -#endif - -/* - * The IBM AIX C-compiler seems to be the only compiler on the world - * which does not allow to use unsigned char bit fields as a hint - * for packed bit fields. Define a pesical type to avoid warnings. - * The packed attribute is honored wit unsigned int in this case too. - */ -#if defined(_AIX) && !defined(__GNUC__) - -typedef unsigned int Ucbit; - -#else - -typedef unsigned char Ucbit; - -#endif - -/* - * Start inttypes.h emulation. - * - * Thanks to Solaris 2.4 and even recent 1999 Linux versions, we - * cannot use the official UNIX-98 names here. Old Solaris versions - * define parts of the types in some exotic include files. - * Linux even defines incompatible types in . - */ - -#ifdef HAVE_INTTYPES_H -# ifndef _INCL_INTTYPES_H -# include -# define _INCL_INTTYPES_H -# endif -# define HAVE_INT64_T -# define HAVE_UINT64_T - -#define Int8_t int8_t -#define Int16_t int16_t -#define Int32_t int32_t -#define Int64_t int64_t -#define Intmax_t intmax_t -#define UInt8_t uint8_t -#define UInt16_t uint16_t -#define UInt32_t uint32_t -#define UInt64_t uint64_t -#define UIntmax_t uintmax_t - -#define Intptr_t intptr_t -#define UIntptr_t uintptr_t - -#else /* !HAVE_INTTYPES_H */ - -#if SIZEOF_CHAR != 1 || SIZEOF_UNSIGNED_CHAR != 1 -/* - * #error will not work for all compilers (e.g. sunos4) - * The following line will abort compilation on all compilers - * if the above is true. And that's what we want. - */ -error Sizeof char is not equal 1 -#endif - -#if defined(__STDC__) || defined(CHAR_IS_UNSIGNED) - typedef signed char Int8_t; -#else - typedef char Int8_t; -#endif - -#if SIZEOF_SHORT_INT == 2 - typedef short Int16_t; -#else - error No int16_t found -#endif - -#if SIZEOF_INT == 4 - typedef int Int32_t; -#else - error No int32_t found -#endif - -#if SIZEOF_LONG_INT == 8 - typedef long Int64_t; -# define HAVE_INT64_T -#else -#if SIZEOF_LONG_LONG == 8 - typedef long long Int64_t; -# define HAVE_INT64_T -#else -#if SIZEOF___INT64 == 8 - typedef __int64 Int64_t; -# define HAVE_INT64_T -#else -/* error No int64_t found*/ -#endif -#endif -#endif - -#if SIZEOF_CHAR_P == SIZEOF_INT - typedef int Intptr_t; -#else -#if SIZEOF_CHAR_P == SIZEOF_LONG_INT - typedef long Intptr_t; -#else - error No intptr_t found -#endif -#endif - -typedef unsigned char UInt8_t; - -#if SIZEOF_UNSIGNED_SHORT_INT == 2 - typedef unsigned short UInt16_t; -#else - error No uint16_t found -#endif - -#if SIZEOF_UNSIGNED_INT == 4 - typedef unsigned int UInt32_t; -#else - error No int32_t found -#endif - -#if SIZEOF_UNSIGNED_LONG_INT == 8 - typedef unsigned long UInt64_t; -# define HAVE_UINT64_T -#else -#if SIZEOF_UNSIGNED_LONG_LONG == 8 - typedef unsigned long long UInt64_t; -# define HAVE_UINT64_T -#else -#if SIZEOF_UNSIGNED___INT64 == 8 - typedef unsigned __int64 UInt64_t; -# define HAVE_UINT64_T -#else -/* error No uint64_t found*/ -#endif -#endif -#endif - -#define Intmax_t Llong -#define UIntmax_t Ullong - -#if SIZEOF_CHAR_P == SIZEOF_UNSIGNED_INT - typedef unsigned int UIntptr_t; -#else -#if SIZEOF_CHAR_P == SIZEOF_UNSIGNED_LONG_INT - typedef unsigned long UIntptr_t; -#else - error No uintptr_t found -#endif -#endif - -#ifdef _MSC_VER -/* - * All recent platforms define the POSIX/C-99 compliant types from inttypes.h - * except Microsoft. With these #defines, we may also use official types on a - * Microsoft environment. - * - * Warning: Linux-2.2 and before do not have inttypes.h and define some of the - * types in an incmpatible way. - */ -#undef int8_t -#define int8_t Int8_t -#undef int16_t -#define int16_t Int16_t -#undef int32_t -#define int32_t Int32_t -#undef int64_t -#define int64_t Int64_t -#undef intmax_t -#define intmax_t Intmax_t -#undef uint8_t -#define uint8_t UInt8_t -#undef uint16_t -#define uint16_t UInt16_t -#undef uint32_t -#define uint32_t UInt32_t -#undef uint64_t -#define uint64_t UInt64_t -#undef uintmax_t -#define uintmax_t UIntmax_t - -#undef intptr_t -#define intptr_t Intptr_t -#undef uintptr_t -#define uintptr_t UIntptr_t -#endif /* _MSC_VER */ - -#endif /* HAVE_INTTYPES_H */ - -#ifndef CHAR_MIN -#define CHAR_MIN TYPE_MINVAL(char) -#endif -#ifndef CHAR_MAX -#define CHAR_MAX TYPE_MAXVAL(char) -#endif -#ifndef UCHAR_MAX -#define UCHAR_MAX TYPE_MAXVAL(unsigned char) -#endif - -#ifndef SHRT_MIN -#define SHRT_MIN TYPE_MINVAL(short) -#endif -#ifndef SHRT_MAX -#define SHRT_MAX TYPE_MAXVAL(short) -#endif -#ifndef USHRT_MAX -#define USHRT_MAX TYPE_MAXVAL(unsigned short) -#endif - -#ifndef INT_MIN -#define INT_MIN TYPE_MINVAL(int) -#endif -#ifndef INT_MAX -#define INT_MAX TYPE_MAXVAL(int) -#endif -#ifndef UINT_MAX -#define UINT_MAX TYPE_MAXVAL(unsigned int) -#endif - -#ifndef LONG_MIN -#define LONG_MIN TYPE_MINVAL(long) -#endif -#ifndef LONG_MAX -#define LONG_MAX TYPE_MAXVAL(long) -#endif -#ifndef ULONG_MAX -#define ULONG_MAX TYPE_MAXVAL(unsigned long) -#endif - -#ifndef INT8_MIN -#define INT8_MIN TYPE_MINVAL(Int8_t) -#endif -#ifndef INT8_MAX -#define INT8_MAX TYPE_MAXVAL(Int8_t) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX TYPE_MAXVAL(UInt8_t) -#endif - -#ifndef INT16_MIN -#define INT16_MIN TYPE_MINVAL(Int16_t) -#endif -#ifndef INT16_MAX -#define INT16_MAX TYPE_MAXVAL(Int16_t) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX TYPE_MAXVAL(UInt16_t) -#endif - -#ifndef INT32_MIN -#define INT32_MIN TYPE_MINVAL(Int32_t) -#endif -#ifndef INT32_MAX -#define INT32_MAX TYPE_MAXVAL(Int32_t) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX TYPE_MAXVAL(UInt32_t) -#endif - -#ifdef HAVE_INT64_T -#ifndef INT64_MIN -#define INT64_MIN TYPE_MINVAL(Int64_t) -#endif -#ifndef INT64_MAX -#define INT64_MAX TYPE_MAXVAL(Int64_t) -#endif -#endif -#ifdef HAVE_UINT64_T -#ifndef UINT64_MAX -#define UINT64_MAX TYPE_MAXVAL(UInt64_t) -#endif -#endif - -#ifndef INTMAX_MIN -#define INTMAX_MIN TYPE_MINVAL(Intmax_t) -#endif -#ifndef INTMAX_MAX -#define INTMAX_MAX TYPE_MAXVAL(Intmax_t) -#endif -#ifndef UINTMAX_MAX -#define UINTMAX_MAX TYPE_MAXVAL(UIntmax_t) -#endif - -#define SIZE_T_MIN TYPE_MINVAL(size_t) -#ifdef SIZE_T_MAX -#undef SIZE_T_MAX /* FreeBSD has a similar #define */ -#endif -#define SIZE_T_MAX TYPE_MAXVAL(size_t) - -#define SSIZE_T_MIN TYPE_MINVAL(ssize_t) -#define SSIZE_T_MAX TYPE_MAXVAL(ssize_t) - -#define OFF_T_MIN TYPE_MINVAL(off_t) -#define OFF_T_MAX TYPE_MAXVAL(off_t) - -#define UID_T_MIN TYPE_MINVAL(uid_t) -#define UID_T_MAX TYPE_MAXVAL(uid_t) - -#define GID_T_MIN TYPE_MINVAL(gid_t) -#define GID_T_MAX TYPE_MAXVAL(gid_t) - -#define PID_T_MIN TYPE_MINVAL(pid_t) -#define PID_T_MAX TYPE_MAXVAL(pid_t) - -#define MODE_T_MIN TYPE_MINVAL(mode_t) -#define MODE_T_MAX TYPE_MAXVAL(mode_t) - -#define TIME_T_MIN TYPE_MINVAL(time_t) -#define TIME_T_MAX TYPE_MAXVAL(time_t) - -#define CADDR_T_MIN TYPE_MINVAL(caddr_t) -#define CADDR_T_MAX TYPE_MAXVAL(caddr_t) - -#define DADDR_T_MIN TYPE_MINVAL(daddr_t) -#define DADDR_T_MAX TYPE_MAXVAL(daddr_t) - -#define DEV_T_MIN TYPE_MINVAL(dev_t) -#define DEV_T_MAX TYPE_MAXVAL(dev_t) - -#define MAJOR_T_MIN TYPE_MINVAL(major_t) -#define MAJOR_T_MAX TYPE_MAXVAL(major_t) - -#define MINOR_T_MIN TYPE_MINVAL(minor_t) -#define MINOR_T_MAX TYPE_MAXVAL(minor_t) - -#define INO_T_MIN TYPE_MINVAL(ino_t) -#define INO_T_MAX TYPE_MAXVAL(ino_t) - -#define NLINK_T_MIN TYPE_MINVAL(nlink_t) -#define NLINK_T_MAX TYPE_MAXVAL(nlink_t) - -#define BLKSIZE_T_MIN TYPE_MINVAL(blksize_t) -#define BLKSIZE_T_MAX TYPE_MAXVAL(blksize_t) - -#define BLKCNT_T_MIN TYPE_MINVAL(blkcnt_t) -#define BLKCNT_T_MAX TYPE_MAXVAL(blkcnt_t) - -#define CLOCK_T_MIN TYPE_MINVAL(clock_t) -#define CLOCK_T_MAX TYPE_MAXVAL(clock_t) - -#define SOCKLEN_T_MIN TYPE_MINVAL(socklen_t) -#define SOCKLEN_T_MAX TYPE_MAXVAL(socklen_t) - -#endif /* _SCHILY_UTYPES_H */ diff -Nru smake-1.2a41/psmake/include/schily/varargs.h smake-1.2a49/psmake/include/schily/varargs.h --- smake-1.2a41/psmake/include/schily/varargs.h 2006-09-13 01:44:11.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/varargs.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,116 +0,0 @@ -/* @(#)varargs.h 1.6 06/09/13 Copyright 1998 J. Schilling */ -/* - * Generic header for users of var args ... - * - * Includes a default definition for va_copy() - * and some magic know how about the SVr4 Power PC var args ABI - * to create a __va_arg_list() macro. - * - * Copyright (c) 1998 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_VARARGS_H -#define _SCHILY_VARARGS_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -#ifdef PROTOTYPES -/* - * For ANSI C-compilers prefer stdarg.h - */ -# ifdef HAVE_STDARG_H -# ifndef _INCL_STDARG_H -# include -# define _INCL_STDARG_H -# endif -# else -# ifndef _INCL_VARARGS_H -# include -# define _INCL_VARARGS_H -# endif -# endif -#else -/* - * For K&R C-compilers prefer varargs.h - */ -# ifdef HAVE_VARARGS_H -# ifndef _INCL_VARARGS_H -# include -# define _INCL_VARARGS_H -# endif -# else -# ifndef _INCL_STDARG_H -# include -# define _INCL_STDARG_H -# endif -# endif -#endif - -#if (defined(__linux__) || defined(__linux) || defined(sun)) && \ - (defined(__ppc) || defined(__PPC) || defined(powerpc) || defined(__powerpc__)) - -# ifndef VA_LIST_IS_ARRAY -# define VA_LIST_IS_ARRAY -# endif -#endif - - -/* - * __va_copy() is used by GCC 2.8 or newer until va_copy() becomes - * a final ISO standard. - */ -#if !defined(va_copy) && !defined(HAVE_VA_COPY) -# if defined(__va_copy) -# define va_copy(to, from) __va_copy(to, from) -# endif -#endif - -/* - * va_copy() is a Solaris extension to provide a portable way to perform a - * variable argument list "bookmarking" function. - * If it is not available via stdarg.h, use a simple assignement for backward - * compatibility. - */ -#if !defined(va_copy) && !defined(HAVE_VA_COPY) -#ifdef VA_LIST_IS_ARRAY -# define va_copy(to, from) ((to)[0] = (from)[0]) -#else -# define va_copy(to, from) ((to) = (from)) -#endif -#endif - -/* - * I don't know any portable way to get an arbitrary - * C object from a var arg list so I use a - * system-specific routine __va_arg_list() that knows - * if 'va_list' is an array. You will not be able to - * assign the value of __va_arg_list() but it works - * to be used as an argument of a function. - * It is a requirement for recursive printf to be able - * to use this function argument. If your system - * defines va_list to be an array you need to know this - * via autoconf or another mechanism. - * It would be nice to have something like - * __va_arg_list() in stdarg.h - */ - -#ifdef VA_LIST_IS_ARRAY -# define __va_arg_list(list) va_arg(list, void *) -#else -# define __va_arg_list(list) va_arg(list, va_list) -#endif - -#endif /* _SCHILY_VARARGS_H */ diff -Nru smake-1.2a41/psmake/include/schily/wait.h smake-1.2a49/psmake/include/schily/wait.h --- smake-1.2a41/psmake/include/schily/wait.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/wait.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,136 +0,0 @@ -/* @(#)wait.h 1.13 07/01/16 Copyright 1995-2007 J. Schilling */ -/* - * Definitions to deal with various kinds of wait flavour - * - * Copyright (c) 1995-2007 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_WAIT_H -#define _SCHILY_WAIT_H - -#ifndef _SCHILY_MCONFIG_H -#include -#endif - -/* - * Needed for SysVr4 - */ -#ifndef _SCHILY_TYPES_H -#include -#endif - -#if defined(HAVE_WAIT_H) -# ifndef _INCL_WAIT_H -# include -# define _INCL_WAIT_H -# endif -#else -/* - * K&R Compiler doesn't like #elif - */ -# if defined(HAVE_SYS_WAIT_H) /* POSIX.1 compl. sys/wait.h */ -# undef HAVE_UNION_WAIT /* POSIX.1 doesn't use U_W */ -# ifndef _INCL_SYS_WAIT_H -# include -# define _INCL_SYS_WAIT_H -# endif -# else -# if defined(HAVE_UNION_WAIT) /* Pure BSD U_W / sys/wait.h */ -# ifndef _INCL_SYS_WAIT_H -# include -# define _INCL_SYS_WAIT_H -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef HAVE_UNION_WAIT -# define WAIT_T union wait -# ifndef WSTOPPED -# define WSTOPPED 0x7F -# endif -# ifndef WTERMSIG -# define WTERMSIG(status) ((status).w_termsig) -# endif -# ifndef WCOREDUMP -# define WCOREDUMP(status) ((status).w_coredump) -# endif -# ifndef WEXITSTATUS -# define WEXITSTATUS(status) ((status).w_retcode) -# endif -# ifndef WSTOPSIG -# define WSTOPSIG(status) ((status).w_stopsig) -# endif -# ifndef WIFSTOPPED -# define WIFSTOPPED(status) ((status).w_stopval == \ - WSTOPPED) -# endif -# ifndef WIFSIGNALED -# define WIFSIGNALED(status) ((status).w_stopval != \ - WSTOPPED && \ - (status).w_termsig != 0) -# endif -# ifndef WIFEXITED -# define WIFEXITED(status) ((status).w_stopval != \ - WSTOPPED && \ - (status).w_termsig == 0) -# endif -#else -# define WAIT_T int -# ifndef WTERMSIG -# define WTERMSIG(status) ((status) & 0x7F) -# endif -# ifndef WCOREDUMP -# define WCOREDUMP(status) ((status) & 0x80) -# endif -# ifndef WEXITSTATUS -# define WEXITSTATUS(status) (((status) >> 8) & 0xFF) -# endif -# ifndef WSTOPSIG -# define WSTOPSIG(status) (((status) >> 8) & 0xFF) -# endif -# ifndef WIFSTOPPED -# define WIFSTOPPED(status) (((status) & 0xFF) == 0x7F) -# endif -# ifndef WIFSIGNALED -# define WIFSIGNALED(status) (((status) & 0xFF) != 0x7F && \ - WTERMSIG(status) != 0) -# endif -# ifndef WIFEXITED -# define WIFEXITED(status) (((status) & 0xFF) == 0) -# endif -#endif - - -#ifndef WCOREFLG -#define WCOREFLG 0x80 -#endif - -#ifndef WSTOPFLG -#define WSTOPFLG 0x7F -#endif - -#ifndef WCONTFLG -#define WCONTFLG 0xFFFF -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_WAIT_H */ diff -Nru smake-1.2a41/psmake/include/schily/xconfig.h smake-1.2a49/psmake/include/schily/xconfig.h --- smake-1.2a41/psmake/include/schily/xconfig.h 2007-01-16 14:19:13.000000000 +0000 +++ smake-1.2a49/psmake/include/schily/xconfig.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,106 +0,0 @@ -/* @(#)xconfig.h 1.5 07/01/16 Copyright 1995-2007 J. Schilling */ -/* - * This file either includes the dynamic or manual autoconf stuff. - * - * Copyright (c) 1995-2007 J. Schilling - * - * This file is included from and usually - * includes $(SRCROOT)/incs/$(OARCH)/xconfig.h via - * -I$(SRCROOT)/incs/$(OARCH)/ - * - * Use only cpp instructions. - * - * NOTE: SING: (Schily Is Not Gnu) - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_XCONFIG_H -#define _SCHILY_XCONFIG_H - -/* - * This hack that is needed as long as VMS has no POSIX shell. - * It will go away soon. VMS users: in future you need to specify: - * cc -DUSE_STATIC_CONF - */ -#ifdef VMS -# define USE_STATIC_CONF -#endif - -#ifdef USE_STATIC_CONF -# include /* The static autoconf stuff */ -#else /* USE_STATIC_CONF */ - - -#ifdef SCHILY_BUILD /* #defined by Schily makefile system */ - /* - * Include $(SRCROOT)/incs/$(OARCH)/xconfig.h via - * -I$(SRCROOT)/incs/$(OARCH)/ - */ -# include /* The current dynamic autoconf stuff */ -#else /* !SCHILY_BUILD */ -/* - * The stuff for static compilation. Include files from a previous - * dynamic autoconfiguration. - */ -#ifdef __SUNOS5_SPARC_CC32 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_SPARC_CC64 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_SPARC_GCC32 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_SPARC_GCC64 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_X86_CC32 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_X86_CC64 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_X86_GCC32 -#include -#define __JS_ARCH_CONF_INCL -#endif -#ifdef __SUNOS5_X86_GCC64 -#include -#define __JS_ARCH_CONF_INCL -#endif - -#ifdef __MSWIN_X86_CL32 -#include -#define __JS_ARCH_CONF_INCL -#endif - -#ifdef __CYGWIN_X86_GCC -#include -#define __JS_ARCH_CONF_INCL -#endif - -#ifndef __JS_ARCH_CONF_INCL -Error unconfigured architecture -#endif - -#endif /* SCHILY_BUILD */ - -#endif /* USE_STATIC_CONF */ - -#endif /* _SCHILY_XCONFIG_H */ diff -Nru smake-1.2a41/psmake/include/schily/xmconfig.h smake-1.2a49/psmake/include/schily/xmconfig.h --- smake-1.2a41/psmake/include/schily/xmconfig.h 2006-10-21 09:27:44.000000000 +0100 +++ smake-1.2a49/psmake/include/schily/xmconfig.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,200 +0,0 @@ -/* @(#)xmconfig.h 1.34 06/10/21 Copyright 1995-2006 J. Schilling */ -/* - * This file either includes the manual generated - * static definitions for a machine configuration. - * - * Copyright (c) 1995-2006 J. Schilling - * - * Use only cpp instructions. - * - * NOTE: SING: (Schily Is Not Gnu) - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_XMCONFIG_H -#define _SCHILY_XMCONFIG_H - -/* - * This is the only static (hand crafted) set of machine configuration - * left over. We are trying to avoid even this in future. - */ - - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(VMS) -# define PROTOTYPES -# define HAVE_OSDEF /* prevent later definitions to overwrite current */ -# define __NOT_SVR4__ /* Not a real SVR4 implementation */ - -# define HAVE_UNISTD_H -/* # define HAVE_SYS_TIME_H */ -# define HAVE_FCNTL_H -# define HAVE_USLEEP -# if __DECC_VER >= 60000000 -# define HAVE_INTTYPES_H -# endif /* __DECC_VER >= 60000000 */ -# define SIZEOF_CHAR 1 -# define SIZEOF_UNSIGNED_CHAR SIZEOF_CHAR -# define SIZEOF_SHORT_INT 2 -# define SIZEOF_UNSIGNED_SHORT_INT SIZEOF_SHORT_INT -# define SIZEOF_INT 4 -# define SIZEOF_UNSIGNED_INT SIZEOF_INT -# define SIZEOF_LONG_INT 4 -# define SIZEOF_UNSIGNED_LONG_INT SIZEOF_LONG_INT -# ifdef __VAX -# define SIZEOF_LONG_LONG 4 -# else /* def __VAX */ -# endif /* def __VAX [else] */ -# define SIZEOF_UNSIGNED_LONG_LONG SIZEOF_LONG_LONG -# define SIZEOF_CHAR_P 4 - -# include -# ifndef __OFF_T - typedef int off_t; -# endif /* ndef __OFF_T */ - -# if defined(__alpha) -# define HOST_CPU "Alpha" -# elif defined(__ia64) -# define HOST_CPU "IA64" -# elif defined(__vax) -# define HOST_CPU "VAX" -# else -# define HOST_CPU "VAX(?)" -# endif -# define HOST_VENDOR "HP" -# define HOST_OS "VMS/OpenVMS" -# define RETSIGTYPE void -/*# define HAVE_ELF */ -/*# define HAVE_COFF */ -/*# define HAVE_AOUT */ -# define HAVE_STDARG_H -/*# define HAVE_VA_COPY */ -# define HAVE_STDLIB_H -# define HAVE_STRING_H -# define HAVE_STDC_HEADERS -# define STDC_HEADERS -/*# define HAVE_LONGLONG */ - -# define HAVE_UNISTD_H -# define HAVE_FCNTL_H -# define HAVE_DIRENT_H -/*# define HAVE_SYS_DIR_H */ -/*# define HAVE_NDIR_H */ -/*# define HAVE_SYS_NDIR_H */ -/*# define HAVE_TERMIOS_H */ -/*# define HAVE_TERMIO_H */ -/*# define HAVE_SYS_TIME_H */ -/*# define HAVE_UTIMES */ -/*# define HAVE_UTIME_H */ -# define HAVE_WAIT_H -/*# define HAVE_SYS_WAIT_H */ -/*# define HAVE_SYS_SYSTEMINFO_H */ -/*# define HAVE_SYS_UTSNAME_H */ -/*# define HAVE_SYS_PRIOCNTL_H */ -/*# define HAVE_SYS_RTPRIOCNTL_H */ -/*# define HAVE_SYS_MTIO_H */ -/*# define HAVE_MTGET_DSREG */ -/*# define HAVE_MTGET_RESID */ -/*# define HAVE_MTGET_FILENO */ -/*# define HAVE_MTGET_BLKNO */ -/*# define MAJOR_IN_MKDEV */ -/*# define MAJOR_IN_SYSMACROS */ -/*# define HAVE_USG_STDIO */ -/*# define HAVE_DTOA */ -# define HAVE_GETCWD -# define HAVE_STRERROR -# define HAVE_MEMMOVE -# define HAVE_MMAP -/*# define HAVE_SMMAP */ -/*# define HAVE_USGSHM */ -/*# define HAVE_USGSEM */ -/*# define HAVE_MSEM */ -/*# define HAVE_LDSTUB */ -/*# define HAVE_XCHG */ -# define HAVE_FLOCK -/*# define HAVE_FCHDIR */ -/*# define HAVE_STATVFS */ -/*# define HAVE_QUOTA */ -/*# define HAVE_YP */ -/*# define HAVE_SHADOW */ -/*# define HAVE_SETREUID */ -/*# define HAVE_SETRESUID */ -/*# define HAVE_SETEUID */ -/*# define HAVE_LCHOWN */ -/*# define HAVE_PROCFS */ -/*# define HAVE_PROCFS2 */ -/*# define HAVE_SIGINFO */ -/*# define HAVE_WAIT3 */ -/*# define HAVE_WAITPID */ -/*# define HAVE_UNION_WAIT */ -# define HAVE_GETHOSTNAME -/*# define HAVE_STREAMS */ -/*# define HAVE_STRPTYS */ -/*# define HAVE_POLL */ -# define HAVE_SELECT -/*# define HAVE_TIRPC */ -/*# define GID_T gid_t */ -# define USLEEPRETURN_T uint -/*# define USLEEPRETURN_T void */ -/*# define USLEEPISVOID */ -/*# define HAVE_GETAV0 */ -/*# define HAVE_SCANSTACK */ - -/* 2005-11-22 SMS. Enabled some above. Added some below. */ -# define HAVE_ECVT -# define HAVE_FCVT -# define HAVE_GCVT -# define HAVE_NICE 1 -# define HAVE_SELECT -# define HAVE_STRCASECMP -# if __CRTL_VER >= 70312000 -# define HAVE_SNPRINTF -# endif /* __CRTL_VER >= 70312000 */ -# define NICE_DECR -8 - -/* 2005-03-14 SMS. Need VMS-specific open() parameters. */ -# define _OPENFD_SRC /* Use VMS-specific _openfd() function.*/ -# define _openfd openfd_vms /* This one. */ -# define O_BINARY 0x0004 /* DOS-like value. Implies "ctx=bin". */ - -# define HAVE_C_BIGENDIAN -# define HAVE_C_BITFIELDS -# define BITFIELDS_LTOH - -/* 2006-09-14 SMS. Various things for libfind. */ -# define fork fork_dummy -# ifndef _POSIX_ARG_MAX -# define _POSIX_ARG_MAX 4096 /* Probably needed. */ -# endif /* ndef _POSIX_ARG_MAX */ -# define HAVE_DECL_STAT -# define HAVE_DECL_LSTAT - -/* 2006-09-17 SMS. */ -# if __CRTL_VER >= 70000000 -# define HAVE_GETPAGESIZE -# endif /* __CRTL_VER >= 70000000 */ - - extern pid_t fork_dummy(void); - -#endif /* defined(VMS) */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _SCHILY_XMCONFIG_H */ diff -Nru smake-1.2a41/psmake/install-sh smake-1.2a49/psmake/install-sh --- smake-1.2a41/psmake/install-sh 2005-05-03 14:04:43.000000000 +0100 +++ smake-1.2a49/psmake/install-sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,291 +0,0 @@ -#! /bin/sh -# -# @(#)install-sh 1.7 05/05/03 1999 J. Schilling -# -# install - install a program, script, or datafile -# This comes from X11R5 (mit/util/scripts/install.sh). -# Mods to make install-sh behave reasonable when called by -# non root user by J. Schilling -# -# Copyright 1991 by the Massachusetts Institute of Technology -# Copyright 1999 by J. Schilling -# -# Permission to use, copy, modify, distribute, and sell this software and its -# documentation for any purpose is hereby granted without fee, provided that -# the above copyright notice appear in all copies and that both that -# copyright notice and this permission notice appear in supporting -# documentation, and that the name of M.I.T. not be used in advertising or -# publicity pertaining to distribution of the software without specific, -# written prior permission. M.I.T. makes no representations about the -# suitability of this software for any purpose. It is provided "as is" -# without express or implied warranty. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - -# on BSDi chown is in /usr/sbin - -PATH="${PATH}:/usr/sbin" - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -# -# Check if we are 'root' to avoid chown as non root user -# -rootflag=FALSE -dstdir=/tmp/xd.$$ -dsttmp=${dstdir}/xx.$$ -trap "rm -f ${dsttmp}; rm -rf ${dstdir}" 0 -mkdir ${dstdir} -${chmodcmd} ${dstdir} -echo > ${dsttmp} -${chownprog} root ${dsttmp} 2> /dev/null && ${chmodcmd} ${dsttmp} 2> /dev/null && rootflag=TRUE -# -# Win95 has no user 'root' and chown succeeds always. -# Unfortunately, there is also no user 'bin' and chown complains about -# user 'bin' being non-existant. -# Check if the fie is now really owned by 'root' to avoid the Win95 probems -# -if [ $rootflag = TRUE ]; then - ls -l ${dsttmp} 2> /dev/null | grep root > /dev/null || rootflag=FALSE -fi -rm -f ${dsttmp} -rm -rf ${dstdir} - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) if [ $rootflag = TRUE ] - then - chowncmd="$chownprog $2" - else - echo "install: -o option available only to root -- ignored" - fi - shift - shift - continue;; - - -g) if [ $rootflag = TRUE ] - then - chgrpcmd="$chgrpprog $2" - else - echo "install: -g option available only to root -- ignored" - fi - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi - - pathcomp="${pathcomp}/" -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - - -exit 0 diff -Nru smake-1.2a41/psmake/jsprintf.c smake-1.2a49/psmake/jsprintf.c --- smake-1.2a41/psmake/jsprintf.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/jsprintf.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,125 +0,0 @@ -/* @(#)jsprintf.c 1.16 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include - -#define BFSIZ 256 - -typedef struct { - short cnt; - char *ptr; - char buf[BFSIZ]; - int count; - FILE *f; -} *BUF, _BUF; - -LOCAL void _bflush __PR((BUF)); -LOCAL void _bput __PR((char, long)); -EXPORT int js_fprintf __PR((FILE *, const char *, ...)); -EXPORT int js_printf __PR((const char *, ...)); - -LOCAL void -_bflush(bp) - register BUF bp; -{ - bp->count += bp->ptr - bp->buf; - if (filewrite(bp->f, bp->buf, bp->ptr - bp->buf) < 0) - bp->count = EOF; - bp->ptr = bp->buf; - bp->cnt = BFSIZ; -} - -#ifdef PROTOTYPES -LOCAL void -_bput(char c, long l) -#else -LOCAL void -_bput(c, l) - char c; - long l; -#endif -{ - register BUF bp = (BUF)l; - - *bp->ptr++ = c; - if (--bp->cnt <= 0) - _bflush(bp); -} - -/* VARARGS1 */ -#ifdef PROTOTYPES -EXPORT int -js_printf(const char *form, ...) -#else -EXPORT int -js_printf(form, va_alist) - char *form; - va_dcl -#endif -{ - va_list args; - _BUF bb; - - bb.ptr = bb.buf; - bb.cnt = BFSIZ; - bb.count = 0; - bb.f = stdout; -#ifdef PROTOTYPES - va_start(args, form); -#else - va_start(args); -#endif - format(_bput, (long)&bb, form, args); - va_end(args); - if (bb.cnt < BFSIZ) - _bflush(&bb); - return (bb.count); -} - -/* VARARGS2 */ -#ifdef PROTOTYPES -EXPORT int -js_fprintf(FILE *file, const char *form, ...) -#else -EXPORT int -js_fprintf(file, form, va_alist) - FILE *file; - char *form; - va_dcl -#endif -{ - va_list args; - _BUF bb; - - bb.ptr = bb.buf; - bb.cnt = BFSIZ; - bb.count = 0; - bb.f = file; -#ifdef PROTOTYPES - va_start(args, form); -#else - va_start(args); -#endif - format(_bput, (long)&bb, form, args); - va_end(args); - if (bb.cnt < BFSIZ) - _bflush(&bb); - return (bb.count); -} diff -Nru smake-1.2a41/psmake/jssnprintf.c smake-1.2a49/psmake/jssnprintf.c --- smake-1.2a41/psmake/jssnprintf.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/jssnprintf.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,85 +0,0 @@ -/* @(#)jssnprintf.c 1.11 06/09/13 Copyright 1985, 1995-2004 J. Schilling */ -/* - * Copyright (c) 1985, 1995-2004 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include /* include try to get size_t */ -#include /* Try again for size_t */ -#include /* Try again for size_t */ -#include -#include -#include - -EXPORT int js_snprintf __PR((char *, size_t maxcnt, const char *, ...)); - -typedef struct { - char *ptr; - int count; -} *BUF, _BUF; - -#ifdef PROTOTYPES -static void _cput(char c, long l) -#else -static void _cput(c, l) - char c; - long l; -#endif -{ - register BUF bp = (BUF)l; - - if (--bp->count > 0) { - *bp->ptr++ = c; - } else { - /* - * Make sure that there will never be a negative overflow. - */ - bp->count++; - } -} - -/* VARARGS2 */ -#ifdef PROTOTYPES -EXPORT int -js_snprintf(char *buf, size_t maxcnt, const char *form, ...) -#else -EXPORT int -js_snprintf(buf, maxcnt, form, va_alist) - char *buf; - unsigned maxcnt; - char *form; - va_dcl -#endif -{ - va_list args; - int cnt; - _BUF bb; - - bb.ptr = buf; - bb.count = maxcnt; - -#ifdef PROTOTYPES - va_start(args, form); -#else - va_start(args); -#endif - cnt = format(_cput, (long)&bb, form, args); - va_end(args); - if (maxcnt > 0) - *(bb.ptr) = '\0'; - if (bb.count < 0) - return (-1); - - return (cnt); -} diff -Nru smake-1.2a41/psmake/lnfiles smake-1.2a49/psmake/lnfiles --- smake-1.2a41/psmake/lnfiles 2007-01-22 12:04:56.000000000 +0000 +++ smake-1.2a49/psmake/lnfiles 2009-11-14 12:22:58.000000000 +0000 @@ -1,80 +1,124 @@ #!/bin/sh -# @(#)lnfiles 1.7 07/01/22 Copyright 1999 J. Schilling +# @(#)lnfiles 1.16 09/11/14 Copyright 1999 J. Schilling cp='ln -s' +smake=smake +lib=libschily +incsrc=.. +if [ -r ${incsrc}/${smake}/make.c ]; then + : +else + if [ -r ${incsrc}/build/make.c ]; then + smake=build + else + incsrc=../.. + if [ -r ${incsrc}/build/make.c ]; then + smake=build + fi + fi +fi +if [ -r ${incsrc}/${lib}/error.c ]; then + : +else + lib=lib +fi -$cp ../archconf.c archconf.c -$cp ../make.c make.c -$cp ../make.h make.h -$cp ../memory.c memory.c -$cp ../parse.c parse.c -$cp ../readfile.c readfile.c -$cp ../rules.c rules.c -$cp ../update.c update.c -$cp ../../../include/schily/archdefs.h include/schily/archdefs.h -$cp ../../../include/schily/ccomdefs.h include/schily/ccomdefs.h -$cp ../../../include/schily/dirent.h include/schily/dirent.h -$cp ../../../include/schily/fcntl.h include/schily/fcntl.h -$cp ../../../include/schily/getargs.h include/schily/getargs.h -$cp ../../../include/schily/getcwd.h include/schily/getcwd.h -$cp ../../../include/schily/libport.h include/schily/libport.h -$cp ../../../include/schily/maxpath.h include/schily/maxpath.h -$cp ../../../include/schily/mconfig.h include/schily/mconfig.h -$cp ../../../include/schily/xconfig.h include/schily/xconfig.h -$cp ../../../include/schily/xmconfig.h include/schily/xmconfig.h -$cp ../../../include/schily/prototyp.h include/schily/prototyp.h -$cp ../../../include/schily/sigblk.h include/schily/sigblk.h -$cp ../../../include/schily/standard.h include/schily/standard.h -$cp ../../../include/schily/stat.h include/schily/stat.h -$cp ../../../include/schily/stdlib.h include/schily/stdlib.h -$cp ../../../include/schily/string.h include/schily/string.h -$cp ../../../include/schily/time.h include/schily/time.h -$cp ../../../include/schily/unistd.h include/schily/unistd.h -$cp ../../../include/schily/utime.h include/schily/utime.h -$cp ../../../include/schily/utypes.h include/schily/utypes.h -$cp ../../../include/schily/types.h include/schily/types.h -$cp ../../../include/schily/param.h include/schily/param.h -$cp ../../../include/schily/varargs.h include/schily/varargs.h -$cp ../../../include/schily/wait.h include/schily/wait.h -$cp ../../../include/schily/schily.h include/schily/schily.h -$cp ../../../include/schily/errno.h include/schily/errno.h -$cp ../../../include/schily/align.h include/schily/align.h -$cp ../../../include/schily/avoffset.h include/schily/avoffset.h -$cp ../../conf/config.guess config.guess -$cp ../../conf/config.sub config.sub -$cp ../../conf/configure configure -$cp ../../conf/rules.cnf.in rules.cnf.in -$cp ../../conf/xconfig.h.in xconfig.h.in -$cp ../../conf/install-sh install-sh -$cp ../../lib/stdio/schilyio.h schilyio.h -$cp ../../lib/astoi.c astoi.c -$cp ../../lib/astoll.c astoll.c -$cp ../../lib/comerr.c comerr.c -$cp ../../lib/error.c error.c -$cp ../../lib/format.c format.c -$cp ../../lib/printf.c printf.c -$cp ../../lib/sprintf.c sprintf.c -$cp ../../lib/snprintf.c snprintf.c -$cp ../../lib/saveargs.c saveargs.c -$cp ../../lib/seterrno.c seterrno.c -$cp ../../lib/strcatl.c strcatl.c -$cp ../../lib/strlcpy.c strlcpy.c -$cp ../../lib/strncpy.c strncpy.c -$cp ../../lib/streql.c streql.c -$cp ../../lib/fillbytes.c fillbytes.c -$cp ../../lib/getargs.c getargs.c -$cp ../../lib/geterrno.c geterrno.c -$cp ../../lib/movebytes.c movebytes.c -$cp ../../lib/raisecond.c raisecond.c -$cp ../../lib/rename.c rename.c -$cp ../../lib/jsprintf.c jsprintf.c -$cp ../../lib/jssnprintf.c jssnprintf.c -$cp ../../lib/stdio/cvmod.c cvmod.c -$cp ../../lib/stdio/fcons.c fcons.c -$cp ../../lib/stdio/fileopen.c fileopen.c -$cp ../../lib/stdio/dat.c dat.c -$cp ../../lib/stdio/fileread.c fileread.c -$cp ../../lib/stdio/fileseek.c fileseek.c -$cp ../../lib/stdio/filewrite.c filewrite.c -$cp ../../lib/stdio/flag.c flag.c -$cp ../../lib/stdio/niread.c niread.c +if [ ! -d include/schily ]; then + mkdir include/schily +fi + +$cp ${incsrc}/${smake}/archconf.c archconf.c +$cp ${incsrc}/${smake}/make.c make.c +$cp ${incsrc}/${smake}/make.h make.h +$cp ${incsrc}/${smake}/memory.c memory.c +$cp ${incsrc}/${smake}/parse.c parse.c +$cp ${incsrc}/${smake}/readfile.c readfile.c +$cp ${incsrc}/${smake}/rules.c rules.c +$cp ${incsrc}/${smake}/update.c update.c +$cp ${incsrc}/../../include/schily/archdefs.h include/schily/archdefs.h +$cp ${incsrc}/../../include/schily/ccomdefs.h include/schily/ccomdefs.h +$cp ${incsrc}/../../include/schily/ctype.h include/schily/ctype.h +$cp ${incsrc}/../../include/schily/dirent.h include/schily/dirent.h +$cp ${incsrc}/../../include/schily/fcntl.h include/schily/fcntl.h +$cp ${incsrc}/../../include/schily/getargs.h include/schily/getargs.h +$cp ${incsrc}/../../include/schily/getcwd.h include/schily/getcwd.h +$cp ${incsrc}/../../include/schily/hostname.h include/schily/hostname.h +$cp ${incsrc}/../../include/schily/libport.h include/schily/libport.h +$cp ${incsrc}/../../include/schily/limits.h include/schily/limits.h +$cp ${incsrc}/../../include/schily/maxpath.h include/schily/maxpath.h +$cp ${incsrc}/../../include/schily/mconfig.h include/schily/mconfig.h +$cp ${incsrc}/../../include/schily/xconfig.h include/schily/xconfig.h +$cp ${incsrc}/../../include/schily/xmconfig.h include/schily/xmconfig.h +$cp ${incsrc}/../../include/schily/prototyp.h include/schily/prototyp.h +$cp ${incsrc}/../../include/schily/sigblk.h include/schily/sigblk.h +$cp ${incsrc}/../../include/schily/signal.h include/schily/signal.h +$cp ${incsrc}/../../include/schily/standard.h include/schily/standard.h +$cp ${incsrc}/../../include/schily/stat.h include/schily/stat.h +$cp ${incsrc}/../../include/schily/stdio.h include/schily/stdio.h +$cp ${incsrc}/../../include/schily/stdlib.h include/schily/stdlib.h +$cp ${incsrc}/../../include/schily/stkframe.h include/schily/stkframe.h +$cp ${incsrc}/../../include/schily/string.h include/schily/string.h +$cp ${incsrc}/../../include/schily/systeminfo.h include/schily/systeminfo.h +$cp ${incsrc}/../../include/schily/time.h include/schily/time.h +$cp ${incsrc}/../../include/schily/unistd.h include/schily/unistd.h +$cp ${incsrc}/../../include/schily/utime.h include/schily/utime.h +$cp ${incsrc}/../../include/schily/utsname.h include/schily/utsname.h +$cp ${incsrc}/../../include/schily/utypes.h include/schily/utypes.h +$cp ${incsrc}/../../include/schily/types.h include/schily/types.h +$cp ${incsrc}/../../include/schily/param.h include/schily/param.h +$cp ${incsrc}/../../include/schily/varargs.h include/schily/varargs.h +$cp ${incsrc}/../../include/schily/vfork.h include/schily/vfork.h +$cp ${incsrc}/../../include/schily/wait.h include/schily/wait.h +$cp ${incsrc}/../../include/schily/schily.h include/schily/schily.h +$cp ${incsrc}/../../include/schily/errno.h include/schily/errno.h +$cp ${incsrc}/../../include/schily/align.h include/schily/align.h +$cp ${incsrc}/../../include/schily/avoffset.h include/schily/avoffset.h +$cp ${incsrc}/autoconf/config.guess config.guess +$cp ${incsrc}/autoconf/config.sub config.sub +$cp ${incsrc}/autoconf/configure configure +if [ -r ${incsrc}/autoconf/rules.cnf.in ]; then + $cp ${incsrc}/autoconf/rules.cnf.in rules.cnf.in +fi +if [ -r ${incsrc}/autoconf/xconfig.h.in ]; then + $cp ${incsrc}/autoconf/xconfig.h.in xconfig.h.in +fi +if [ -r ${incsrc}/autoconf/rules.cnf_in ]; then + $cp ${incsrc}/autoconf/rules.cnf_in rules.cnf_in +fi +if [ -r ${incsrc}/autoconf/xconfig.h_in ]; then + $cp ${incsrc}/autoconf/xconfig.h_in xconfig.h_in +fi +$cp ${incsrc}/conf/install-sh install-sh +$cp ${incsrc}/${lib}/stdio/schilyio.h schilyio.h +$cp ${incsrc}/${lib}/astoi.c astoi.c +$cp ${incsrc}/${lib}/astoll.c astoll.c +$cp ${incsrc}/${lib}/comerr.c comerr.c +$cp ${incsrc}/${lib}/error.c error.c +$cp ${incsrc}/${lib}/format.c format.c +#$cp ${incsrc}/${lib}/printf.c printf.c +#$cp ${incsrc}/${lib}/sprintf.c sprintf.c +#$cp ${incsrc}/${lib}/snprintf.c snprintf.c +$cp ${incsrc}/${lib}/saveargs.c saveargs.c +$cp ${incsrc}/${lib}/seterrno.c seterrno.c +$cp ${incsrc}/${lib}/strcatl.c strcatl.c +$cp ${incsrc}/${lib}/strlcpy.c strlcpy.c +$cp ${incsrc}/${lib}/strncpy.c strncpy.c +$cp ${incsrc}/${lib}/streql.c streql.c +$cp ${incsrc}/${lib}/fillbytes.c fillbytes.c +$cp ${incsrc}/${lib}/getargs.c getargs.c +$cp ${incsrc}/${lib}/geterrno.c geterrno.c +$cp ${incsrc}/${lib}/movebytes.c movebytes.c +$cp ${incsrc}/${lib}/raisecond.c raisecond.c +$cp ${incsrc}/${lib}/rename.c rename.c +$cp ${incsrc}/${lib}/jsprintf.c jsprintf.c +$cp ${incsrc}/${lib}/jssnprintf.c jssnprintf.c +$cp ${incsrc}/${lib}/stdio/cvmod.c cvmod.c +$cp ${incsrc}/${lib}/stdio/fcons.c fcons.c +$cp ${incsrc}/${lib}/stdio/fileopen.c fileopen.c +$cp ${incsrc}/${lib}/stdio/dat.c dat.c +$cp ${incsrc}/${lib}/stdio/fileread.c fileread.c +$cp ${incsrc}/${lib}/stdio/fileseek.c fileseek.c +$cp ${incsrc}/${lib}/stdio/filewrite.c filewrite.c +$cp ${incsrc}/${lib}/stdio/flag.c flag.c +$cp ${incsrc}/${lib}/stdio/niread.c niread.c +$cp ${incsrc}/${lib}/stdio/niwrite.c niwrite.c diff -Nru smake-1.2a41/psmake/MAKE-all smake-1.2a49/psmake/MAKE-all --- smake-1.2a41/psmake/MAKE-all 2003-07-15 02:18:30.000000000 +0100 +++ smake-1.2a49/psmake/MAKE-all 2009-11-01 20:18:06.000000000 +0000 @@ -1,10 +1,14 @@ #!/bin/sh +# @(#)MAKE-all 1.4 09/11/01 Copyright 1998-2008 J. Schilling # # Check if there already is a working 'smake' in the current directory # echo "Checking for working bootstrap make..." -./smake -version && exit +./smake -version +if [ $? = 0 ]; then + exit +fi echo "Creating bootstrap make..." sh ./.clean diff -Nru smake-1.2a41/psmake/make.c smake-1.2a49/psmake/make.c --- smake-1.2a41/psmake/make.c 2007-03-07 11:39:13.000000000 +0000 +++ smake-1.2a49/psmake/make.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,2259 +0,0 @@ -/* @(#)make.c 1.136 07/03/07 Copyright 1985, 87, 88, 91, 1995-2007 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)make.c 1.136 07/03/07 Copyright 1985, 87, 88, 91, 1995-2007 J. Schilling"; -#endif -/* - * Make program - * - * Copyright (c) 1985, 87, 88, 91, 1995-2007 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "make.h" - -#include -#include -#include -#include -#if defined(__EMX__) || defined(__DJGPP__) -#include -#endif -#include -#include - -char make_version[] = "1.2a41"; - -#ifdef _FASCII -LOCAL void setup_env __PR((void)); -#endif -EXPORT void usage __PR((int exitcode)); -LOCAL void initmakefiles __PR((void)); -LOCAL int addmakefile __PR((char *name)); -LOCAL void read_defs __PR((void)); -LOCAL void read_makefiles __PR((void)); -EXPORT void setup_dotvars __PR((void)); -LOCAL void setup_vars __PR((void)); -LOCAL void setup_MAKE __PR((char *name)); -EXPORT char *searchtype __PR((int mode)); -LOCAL void printdirs __PR((void)); -LOCAL int addcommandline __PR((char * name)); -LOCAL void read_cmdline __PR((void)); -EXPORT void doexport __PR((char *)); -LOCAL void read_environ __PR((void)); -EXPORT int main __PR((int ac, char ** av)); -LOCAL void check_old_makefiles __PR((void)); -LOCAL void getmakeflags __PR((void)); -LOCAL void read_makemacs __PR((void)); -LOCAL char *nextmakemac __PR((char *s)); -LOCAL BOOL read_mac __PR((char *mf)); -LOCAL void setmakeflags __PR((void)); -LOCAL char *stripmacros __PR((char *macbase, char *new)); -LOCAL void setmakeenv __PR((char *envbase, char *envp)); -EXPORT int docmd __PR((char * cmd, obj_t * obj)); -EXPORT BOOL move_tgt __PR((obj_t * from)); -LOCAL int copy_file __PR((char * from, char * objname)); -EXPORT BOOL touch_file __PR((char * name)); -LOCAL date_t gcurtime __PR((void)); -LOCAL date_t gnewtime __PR((void)); -EXPORT date_t gftime __PR((char * file)); -LOCAL BOOL isdir __PR((char * file)); -EXPORT Llong gfileid __PR((char * file)); -EXPORT char *prtime __PR((date_t date)); -LOCAL void handler __PR((int signo)); -LOCAL void exhandler __PR((int excode, void *arg)); -EXPORT char *curwdir __PR((void)); -LOCAL char *getdefaultsfile __PR((void)); -LOCAL char *searchfileinpath __PR((char *name)); -LOCAL char *searchonefile __PR((char *name, char *nbuf, char *np, char *ep)); -#ifndef HAVE_PUTENV -EXPORT int putenv __PR((const char *new)); -#endif -#if defined(__DJGPP__) -LOCAL char *strbs2s __PR((char *s)); -#endif - -BOOL posixmode = FALSE; /* We found a .POSIX target */ -BOOL Eflag = FALSE; /* -e Environment overrides vars*/ -BOOL Iflag = FALSE; /* -i Ignore command errors */ -BOOL Kflag = FALSE; /* -k Continue on unrelated tgts */ -BOOL Stopflag = FALSE; /* -S Stop on make errors */ -BOOL NSflag = FALSE; /* -N Ignore no Source on dep. */ -BOOL Nflag = FALSE; /* -n Only show what to do */ -BOOL Qflag = FALSE; /* -q If up to date exit (0) */ -BOOL Rflag = FALSE; /* -r Turn off internal rules */ -BOOL Sflag = FALSE; /* -s Be silent */ -BOOL Tflag = FALSE; /* -t Touch objects */ -int Mlevel = 0; /* MAKE_LEVEL from environment */ -int Debug = 0; /* -d Print reason for rebuild */ -int XDebug = 0; /* -xd Print extended debug info*/ -BOOL Prdep = FALSE; /* -xM Print include dependency */ -BOOL Probj = FALSE; /* -probj Print object tree */ -BOOL Print = FALSE; /* -p Print macro/target definitions*/ -int Dmake = 0; /* -D Display makefile */ -BOOL help = FALSE; /* -help Show Usage */ -BOOL pversion = FALSE; /* -version Show version string */ -BOOL NoWarn = FALSE; /* -w No warnings */ -BOOL DoWarn = FALSE; /* -W Print extra warnings */ -char Makeflags[] = "MAKEFLAGS"; -char Make_Flags[] = "MAKE_FLAGS"; -char Make_Macs[] = "MAKE_MACS"; -char Make_Level[] = "MAKE_LEVEL"; -char Envdefs[] = "Environment defs"; -char Makedefs[] = "Internal Makefile"; -char Ldefaults[] = "defaults.smk"; -#ifdef SVR4 -char Defaults[] = "/opt/schily/lib/defaults.smk"; -#else -char Defaults[] = "/usr/bert/lib/defaults.smk"; -#endif -#define MAKEFILECOUNT 32 /* Max number of Makefiles */ -char SMakefile[] = "SMakefile"; /* smake's default Makefile */ -char Makefile[] = "Makefile"; /* Primary default Makefile */ -char makefile[] = "makefile"; /* Secondary default Makefile */ -char **MakeFileNames; /* To hold all Makefilenames */ -int Mfileindex; /* Current Makefile index */ -int Mfilesize; /* Size of Makefile array */ -int Mfilecount; /* Number of Makefiles found+2 */ -char CmdLMac[] = "Command Line Macro"; /* Makefile Name for .. */ -char **CmdLDefs; /* To hold all Cmdline Macros */ -int Cmdlinecount; /* Number of Cmdline Macros */ -int Cmdlinesize; /* Size of Cmdline Macro array */ -char *MFCmdline; /* Pointer to Cmdl. Macs fr. env*/ - -int Mflags; - -char *ObjDir; /* .OBJDIR: pathname Target destination dir */ -int ObjDirlen; /* strlen(.OBJDIR) */ -int ObjSearch = SALL; /* .OBJSEARCH: searchtype for explicit rules*/ -list_t *SearchList; /* .SEARCHLIST: list of src/obj dir pairs */ -list_t *Suffixes; /* .SUFFIXES: list of suffixes (POSIX) */ -BOOL SSuffrules; -obj_t *Init; /* .INIT: command to execute at startup */ -obj_t *Done; /* .DONE: command do execute on success */ -obj_t *Failed; /* .FAILED: command to execute on failure */ -obj_t *IncludeFailed; /* .INCLUDE_FAILED: cmd to exec if missing */ -obj_t *Deflt; /* .DEFAULT: command to execute if no rule */ -obj_t *Precious; /* .PRECIOUS: list of targets not to remove */ -obj_t *Phony; /* .PHONY: list of false targets, no check */ -obj_t *curtarget; /* current target of actually running cmd */ -date_t curtime; /* Current time */ -date_t newtime; /* Special time newer than all */ - -/* - * POSIX requieres commands to be executed via 'sh -c command' which is - * wrong as it causes make not to stop on errors if called with complex - * commands (e.g. commands that contain a ';'). - * - * We used to call /bin/sh -ce 'cmd' in former times which was correct, - * but we got (unfortunately undocumented) problems on QNX and we changed - * it to sh -c 'cmd' on 00/11/19. In hope that newer versions of QNX have - * no problems with sh -ce, we changed it back on May 9th 2004. - * - * XXX Switching between both variants via .POSIX does not look like a good - * XXX idea. We rather try to send a bug report against the POSIX standard. - */ -#define POSIX_SHELL_CEFLAG "-c" /* Does not work correctly */ -#define SHELL_CEFLAG "-ce" /* Needed for correct behavior */ -#define SHELL_CFLAG "-c" /* Used with make -i */ - -LOCAL char ceflag[] = SHELL_CEFLAG; /* Used by default for cmds */ -LOCAL char cflag[] = SHELL_CFLAG; /* Used with make -i */ - -#define MINSECS 60 -#define HOURSECS (MINSECS*60) -#define DAYSECS (HOURSECS*24) -#define MONTHSECS (DAYSECS*30) -#define YEARSECS (DAYSECS*365) - -char Nullstr[] = ""; -char slash[] = PATH_DELIM_STR; -int slashlen = sizeof (PATH_DELIM_STR) -1; /* strlen(slash) */ - -LOCAL BOOL xpatrules; /* Have non local pattern rules in Makefile */ -EXPORT int xssrules; /* Have non local simple suffix rules */ - -#ifdef _FASCII /* Mark Williams C */ -char *_stksize = (char *) 8192; - -/* - * Old and probably outdated setup that was needed in 1986 to make - * 'smake' run on a ATARI ST using the Marc Williams C development tools. - */ -LOCAL void -setup_env() -{ - register char *ep; - extern char *getenv(); - - if ((ep = getenv("PATH")) == (char *) NULL || *ep == '\0') - putenv("PATH=.bin,,\\bin,\\lib"); - - if ((ep = getenv("SUFF")) == (char *) NULL || *ep == '\0') - putenv("SUFF=,.prg,.tos,.ttp"); - - if ((ep = getenv("LIBPATH")) == (char *) NULL || *ep == '\0') - putenv("LIBPATH=\\lib,\\bin"); - - if ((ep = getenv("TMPDIR")) == (char *) NULL || *ep == '\0') - putenv("TMPDIR=\\tmp"); - - if ((ep = getenv("INCDIR")) == (char *) NULL || *ep == '\0') - putenv("INCDIR=\\include"); -} -#endif - -EXPORT void -usage(exitcode) - int exitcode; -{ - error("Usage: smake [options] [target...] [macro=value...]\n"); - error("Options:\n"); - error(" -e Environment overrides variables in Makefile.\n"); - error(" -i Ignore errors from commands.\n"); - error(" -k Ignore target errors, continue on unrelated targets.\n"); - error(" -N Continue if no source for nonexistent dependencies found.\n"); - error(" -n Don't make - only say what to do.\n"); - error(" -p Print all macro and target definitions.\n"); - error(" -q Question mode. Exit code is 0 if target is up to date.\n"); - error(" -r Turn off internal rules.\n"); - error(" -s Be silent.\n"); - error(" -t Touch Objects instead of executing defined commands.\n"); - error(" -w Don't print warning Messages.\n"); - error(" -W Print extra (debug) warning Messages.\n"); - error(" -D Display Makefiles as read in.\n"); - error(" -DD Display Makefiles/Rules as read in.\n"); - error(" -d Print reason why a target has to be rebuilt.\n"); - error(" -dd Debug dependency check.\n"); - error(" -xM Print include dependency.\n"); - error(" -xd Print extended debug info.\n"); - error(" -probj Print object tree.\n"); - error(" -help Print this help.\n"); - error(" -version Print version number.\n"); - error(" -posix Force POSIX behaviour.\n"); - error(" mf=makefilename | -f makefilename\n"); - error("More than -f makefile option may be specified.\n"); - exit(exitcode); -} - -LOCAL void -initmakefiles() -{ - /* - * Mfilecount als Index fuer MakeFileNames[] bei addmakefile() - * Mfileindex als globale Index Variable fuer den Parser - * - * This code needs to be kept in sync with the MF_IDX_* #defines - * in make.h - */ - Mfilecount = 0; - addmakefile(Makedefs); /* Implicit rules */ - addmakefile(Envdefs); /* Environment strings */ - addmakefile(Makefile); /* Default make file */ - Mfilecount--; /* -f name overwrites Makefile */ -} - -/* - * Add a new makefile to the list of makefiles. - * Called by getargs() if a -f option was found. - */ -LOCAL int -addmakefile(name) - char *name; -{ - if (MakeFileNames == NULL) { - /* - * Use a default size of 4 as we usually have 4 Makefiles. - */ - Mfilesize = 4; - MakeFileNames = malloc(Mfilesize * sizeof (char *)); - } else if (Mfilesize <= (Mfilecount+1)) { /* One spare for CmdLMac */ - Mfilesize += 4; - MakeFileNames = realloc(MakeFileNames, Mfilesize * sizeof (char *)); - } - if (MakeFileNames == NULL) - comerr("No memory for Makefiles.\n"); - - MakeFileNames[Mfilecount++] = name; - - return (1); -} - -/* - * Read the default rules - either compiled in or from file. - */ -LOCAL void -read_defs() -{ - int MFsave = Mfileindex; - char *deflts; - extern char implicit_rules[]; /* Default rules compiled into make */ - - Dmake--; - Mfileindex = MF_IDX_IMPICIT; /* Index 0 Implicit Rules */ - - if (gftime(Ldefaults) != 0) { - MakeFileNames[0] = Ldefaults; - readfile(Ldefaults, TRUE); -#ifdef DEFAULTS_PATH_SEARCH_FIRST - } else if ((deflts = getdefaultsfile()) != NULL) { - MakeFileNames[0] = deflts; - readfile(deflts, TRUE); -#endif -#ifdef DEFAULTS_PATH /* This is the install path */ - } else if (gftime(DEFAULTS_PATH) != 0) { - MakeFileNames[0] = DEFAULTS_PATH; - readfile(DEFAULTS_PATH, TRUE); -#endif - } else if (gftime(Defaults) != 0) { - MakeFileNames[0] = Defaults; - readfile(Defaults, TRUE); -#ifndef DEFAULTS_PATH_SEARCH_FIRST - } else if ((deflts = getdefaultsfile()) != NULL) { - MakeFileNames[0] = deflts; - readfile(deflts, TRUE); -#endif - } else { - readstring(implicit_rules, Makedefs); - } - Dmake++; - Mfileindex = MFsave; -} - -/* - * Read in all external makefiles. Use either the names from command line - * or look for the default names "Makefile" and "makefile". - */ -LOCAL void -read_makefiles() -{ - int MFsave = Mfileindex; - patr_t *oPatrules = Patrules; - patr_t **opattail = pattail; - - Patrules = 0; - pattail = &Patrules; - xssrules = 0; - - Mfileindex = MF_IDX_MAKEFILE; /* Index 2 Default Makefile */ - if (Mfilecount == MF_IDX_MAKEFILE) { - /* - * First look for "SMakefile", - * then for "Makefile", then for "makefile" - */ - if (gftime(SMakefile) != 0) { /* "SMakefile" */ - Mfilecount++; - MakeFileNames[2] = SMakefile; - } else if (gftime(Makefile) != 0) { /* "Makefile" */ - Mfilecount++; - MakeFileNames[2] = Makefile; - } else if (gftime(makefile) != 0) { /* "makefile" */ - Mfilecount++; - MakeFileNames[2] = makefile; - } - } - while (Mfileindex < Mfilecount) { - readfile(MakeFileNames[Mfileindex], TRUE); - Mfileindex++; - } - - /* - * Check for external pattern rule definitions. - */ - xpatrules = Patrules != NULL; - /* - * The pattern rules which are defined in the external makefiles - * must superseede the pattern rules from the internal rules. - * Concat the pattern rules found in internal rules to the end of - * the patern rules list from external makefiles. - */ - *pattail = oPatrules; - pattail = opattail; - - Mfileindex = MFsave; -} - -/* - * Setup special variables. - * - * NOTE: Must be reentrant because it may be called more than once - * if the "include" directive is used. - * As there is (currently) no way to delete an object - * it is OK not to do anything special if objlook() returns NULL. - */ -EXPORT void -setup_dotvars() -{ - obj_t *obj; - list_t *l; - char *name; - - obj = objlook(".OBJDIR", FALSE); - if (obj != NULL && obj->o_type != ':') /* Must be a special target */ - obj = NULL; - - if (obj != NULL) { - if (obj->o_list && (ObjDir = obj->o_list->l_obj->o_name)) { - if (gfileid(ObjDir) == gfileid(".")) { - /* - * Do not allow moving targets to themselves. - */ - ObjDir = NULL; - } - ObjDirlen = strlen(ObjDir); - } - } -#ifdef no_longer_needed /* Has been moved to dynmac expansion */ - /* - * XXX We cannot do this here as we are called more than once and - * XXX we like to allow $O to be overwritten from Makefiles that - * XXX do not know about smake's special features. - */ - /* - * Create special variable $O -> ObjDir - */ - define_var("O", ObjDir ? ObjDir : "."); -} -#endif - - obj = objlook(".OBJSEARCH", FALSE); - if (obj != NULL && obj->o_type != ':') /* Must be a special target */ - obj = NULL; - if (obj != NULL) { - if ((l = obj->o_list) != NULL) { - name = l->l_obj->o_name; - if (streql("src", name)) { - ObjSearch = SSRC; - } else if (streql("obj", name)) { - ObjSearch = SOBJ; - } else if (streql("all", name)) { - ObjSearch = SALL; - } else { - /* - * This is the default. - */ - ObjSearch = SALL; - } - } - } - - obj = objlook(".SEARCHLIST", FALSE); - if (obj != NULL && obj->o_type != ':') /* Must be a special target */ - obj = NULL; - if (obj != NULL) { - SearchList = obj->o_list; - } else if ((obj = objlook("VPATH", FALSE)) != NULL && obj->o_type == '=') { - SearchList = cvtvpath(obj->o_list); - } - - if (objlook(".IGNORE", FALSE)) - Iflag = TRUE; - if (objlook(".SILENT", FALSE)) - Sflag = TRUE; - - Init = objlook(".INIT", FALSE); - Done = objlook(".DONE", FALSE); - Failed = objlook(".FAILED", FALSE); - IncludeFailed = objlook(".INCLUDE_FAILED", FALSE); - if (IncludeFailed != NULL && IncludeFailed->o_cmd == NULL) - IncludeFailed = NULL; - Deflt = objlook(".DEFAULT", FALSE); - Precious = objlook(".PRECIOUS", FALSE); - Phony = objlook(".PHONY", FALSE); - - if (objlook(".POSIX", FALSE)) - posixmode = TRUE; - obj = objlook(".SUFFIXES", FALSE); - if (obj != NULL && obj->o_type != ':') /* Must be a special target */ - obj = NULL; - if (obj != NULL) - Suffixes = obj->o_list; - if (Debug > 1 && Suffixes != (list_t *) NULL) { - register list_t *p; - - error(".SUFFIXES :\t"); - for (p = Suffixes; p; p = p->l_next) - error("%s ", p->l_obj->o_name); - error("\n"); - } - SSuffrules = check_ssufftab(); -} - -/* - * Set up some known special macros. - */ -LOCAL void -setup_vars() -{ - int i; - char make_level[64]; - char *p; - - define_var("$", "$"); /* Really needed ? */ - define_var("MAKE_NAME", "smake"); /* Needed to identify syntax */ - define_var("MAKE_VERSION", make_version); /* Version dependant files? */ - if ((p = getenv(Make_Level)) != NULL) { - p = astoi(p, &i); - if (*p == '\0') - Mlevel = i; - } - snprintf(make_level, sizeof (make_level), "%d", Mlevel+1); - define_var(Make_Level, make_level); - doexport(Make_Level); -} - -/* - * Set up the special macro $(MAKE). - * If we were called with an absolute PATH or without any '/', use argv[0], - * else compute the absolute PATH by prepending working dir to argv[0]. - */ -LOCAL void -setup_MAKE(name) - char *name; -{ - char wd[MAXPATHNAME + 1]; - int len; - - /* - * If argv[0] starts with a slash or contains no slash, - * or on DOS like OS starts with MS-DOS drive letter, - * it is useful as $(MAKE). - */ -#ifdef HAVE_DOS_DRIVELETTER - if (name[0] == SLASH || strchr(name, SLASH) == NULL || name[1] == ':') { -#else - if (name[0] == SLASH || strchr(name, SLASH) == NULL) { -#endif - define_var("MAKE", name); - } else { - /* - * Compute abs pathname for $(MAKE) - */ - strncpy(wd, curwdir(), sizeof (wd)); - wd[sizeof (wd)-1] = '\0'; - len = strlen(wd); - if ((strlen(name) + len + 2) < sizeof (wd)) { - strcat(wd, PATH_DELIM_STR); - strcat(wd, name); - } - define_var("MAKE", wd); - } -} - -/* - * Transfer object search types into human readable names. - */ -EXPORT char * -searchtype(mode) - int mode; -{ - if (mode == SSRC) - return ("src"); - if (mode == SOBJ) - return ("obj"); - if (mode == SALL) - return ("all"); - return ("invalid Object search mode"); -} - -/* - * Print some 'smake' special macros: - * .OBJDIR, .SEARCHLIST and .OBJSEARCH - */ -LOCAL void -printdirs() -{ - if (ObjDir != NULL) - error(".OBJDIR :\t%s\n", ObjDir); - - error(".OBJSEARCH :\t%s\n", searchtype(ObjSearch)); - - if (SearchList != (list_t *) NULL) { - register list_t *p; - error(".SEARCHLIST :\t"); - for (p = SearchList; p; p = p->l_next) - error("%s ", p->l_obj->o_name); - error("\n"); - } -} - -/* - * Add a command line macro to our list. - * This is called by getargs(). - */ -LOCAL int -addcommandline(name) - char *name; -{ - if (Debug > 1) - error("got_it: %s\n", name); - -/* UNIX make: ":;=$\n\t" */ - - if (!strchr(name, '=')) - return (NOTAFILE); /* Tell getargs that this may be a flag */ - if (CmdLDefs == NULL) { - Cmdlinesize = 8; - CmdLDefs = malloc(Cmdlinesize * sizeof (char *)); - } else if (Cmdlinesize <= Cmdlinecount) { - Cmdlinesize += 8; - CmdLDefs = realloc(CmdLDefs, Cmdlinesize * sizeof (char *)); - } - if (CmdLDefs == NULL) - comerr("No memory for Commandline Macros.\n"); - - CmdLDefs[Cmdlinecount++] = name; - return (1); -} - -/* - * Read in and parse all command line macro definitions from list. - */ -LOCAL void -read_cmdline() -{ - int MFsave = Mfileindex; - register int i; - - if (Cmdlinecount == 0) - return; - - /* - * Register the command line macros past the last makefile - */ - Mfileindex = Mfilecount; - if (Mfileindex == MF_IDX_MAKEFILE) - Mfileindex = MF_IDX_MAKEFILE + 1; - MakeFileNames[Mfileindex] = CmdLMac; - - Mflags |= F_READONLY; - for (i = 0; i < Cmdlinecount; i++) { - readstring(CmdLDefs[i], CmdLMac); - putenv(CmdLDefs[i]); - } - Mflags &= ~F_READONLY; - Mfileindex = MFsave; -} - -/* - * Export a macro into the environment. - * This is mainly done by the "export" directive inside a makefile. - */ -EXPORT void -doexport(oname) - char *oname; -{ - obj_t *obj; - list_t *l; - char *name; - int len; - - obj = objlook(oname, FALSE); - if (obj != NULL && basetype(obj->o_type) != '=') /* Must be a macro type target */ - obj = NULL; - if (obj != NULL) { - if ((l = obj->o_list) != NULL) { - char *xname; - - len = strlen(oname)+1; /* Env name + '=' */ - while (l && l->l_obj->o_name) { - xname = l->l_obj->o_name; - if (gbuf != NULL) - xname = substitute(xname, - NullObj, 0, 0); - len += strlen(xname)+1; - l = l->l_next; - } - name = malloc(len); - if (name == NULL) - comerr("Cannot alloc memory for env.\n"); - name[0] = '\0'; - l = obj->o_list; - strcat(name, oname); - strcat(name, "="); - while (l && l->l_obj->o_name) { - xname = l->l_obj->o_name; - if (gbuf != NULL) - xname = substitute(xname, - NullObj, 0, 0); - strcat(name, xname); - if (l->l_next == NULL) - break; - strcat(name, " "); - l = l->l_next; - } - putenv(name); - } - } -} - -/* - * Read in and parse all environment vars to make them make macros. - */ -LOCAL void -read_environ() -{ - int MFsave = Mfileindex; - register char **env; - extern char **environ; - char *ev; - char *p; - - Dmake -= 2; - Mfileindex = MF_IDX_ENVIRON; /* Index 1 Environment vars */ - - if (Eflag) - Mflags |= F_READONLY; - mfname = Envdefs; - for (env = environ; *env; env++) { - ev = *env; - p = strchr(ev, EQUAL); - if (p == NULL) - continue; - if (strncmp(ev, "SHELL=", 6) == 0) - continue; /* Never import SHELL */ - *p = '\0'; - define_var(ev, &p[1]); - *p = EQUAL; - } - mfname = NULL; - Mflags &= ~F_READONLY; - - Dmake += 2; - Mfileindex = MFsave; -} - - -EXPORT int -main(ac, av) - int ac; - char *av[]; -{ - int failures = 0; - int i; - int cac = ac; - char * const *cav = av; - static char options[] = "help,version,posix,e,i,k,n,N,p,q,r,s,S,t,w,W,d+,D+,xM,xd+,probj,mf&,f&,&"; - - save_args(ac, av); - -#ifdef __DJGPP__ - set_progname("smake"); /* We may have strange av[0] on DJGPP */ -#endif - -#ifdef HAVE_GETPID - getpid(); /* Give some info for truss(1) users */ -#endif -#ifdef HAVE_GETPGRP - getpgrp(); /* Give some info for truss(1) users */ -#endif - -#ifdef _FASCII /* Mark Williams C */ - stderr->_ff &= ~_FSTBUF; /* setbuf was called ??? */ - - setup_env(); -#endif - getmakeflags(); /* Default options from MAKEFLAGS= */ - initmakefiles(); /* Set up MakeFileNames[] array */ - - cac--; cav++; - if (getallargs(&cac, &cav, options, &help, &pversion, &posixmode, - &Eflag, &Iflag, &Kflag, &Nflag, &NSflag, &Print, - &Qflag, &Rflag, &Sflag, &Stopflag, &Tflag, - &NoWarn, &DoWarn, - &Debug, &Dmake, &Prdep, &XDebug, &Probj, - addmakefile, NULL, - addmakefile, NULL, - addcommandline, NULL) < 0) { - errmsgno(EX_BAD, "Bad flag: %s.\n", cav[0]); - usage(EX_BAD); - } - if (help) - usage(0); - if (pversion) { - printf("Smake release %s (%s-%s-%s) Copyright (C) 1985, 87, 88, 91, 1995-2007 Jörg Schilling\n", - make_version, - HOST_CPU, HOST_VENDOR, HOST_OS); - exit(0); - } - /* - * XXX Is this the right place to set the options and cmd line macros - * XXX to the exported environment? - * XXX Later in read_makemacs() we may find that MAKEFLAGS= may contain - * XXX garbage that has been propagated to MFCmdline. - * For this reason, we call read_makemacs() before, let it parse only - * and kill any unwanted content from MFCmdline. - */ - if (NullObj == 0) /* First make sure we may expand vars */ - NullObj = objlook(Nullstr, TRUE); - - read_makemacs(); /* With gbuf == NULL, this is parse only */ - setmakeflags(); - if (Qflag) { - Sflag = TRUE; - Nflag = TRUE; - } - if (Stopflag) { - Kflag = FALSE; - } - if (Debug > 0) - error("MAKEFLAGS value: '%s'\n", getenv(Makeflags)); - - /* - * XXX Reihenfolge bei UNIX make beachten!!! - */ - if (signal(SIGINT, SIG_IGN) != SIG_IGN) - signal(SIGINT, handler); -#ifdef SIGQUIT - if (signal(SIGQUIT, SIG_IGN) != SIG_IGN) - signal(SIGQUIT, handler); -#endif -#ifdef SIGHUP - if (signal(SIGHUP, SIG_IGN) != SIG_IGN) - signal(SIGHUP, handler); -#endif - if (signal(SIGTERM, SIG_IGN) != SIG_IGN) - signal(SIGTERM, handler); - curtime = gcurtime(); - newtime = gnewtime(); - - initchars(); - initgbuf(NAMEMAX); /* Now the Makefile parser becomes usable */ - - /* - * The functions read_cmdline() and read_makemacs() are setting - * the F_READONLY flag in all objects. The function read_environ() - * sets F_READONLY if the -e option was specified. - * This differs from the description in POSIX for 'make' but it - * is the only way to allow 'include' directives to work as expected. - * For the same reason, we are reading the macros in the opposite - * order as described in POSIX. - */ - read_cmdline(); /* First read cmd line macros */ - read_makemacs(); /* then the inherited cmd line macros */ - if (!Rflag) - read_defs(); /* read "defaults.smk" */ - setup_MAKE(av[0]); /* Set up $(MAKE) */ - setup_vars(); /* Set up some known special macros */ - setup_arch(); /* Set up srch specific macros */ - read_environ(); /* Sets F_READONLY if -e flag is present*/ - - if (Debug > 0 && Mlevel > 0) - error("Starting '%s'[%d] in directory '%s'\n", - av[0], Mlevel, curwdir()); - - /* - * Clear default target, then look again in makefiles - */ - default_tgt = NULL; - read_makefiles(); - - /* - * Let all objects created later seem to bee in - * last Makefile or in implicit rules if no - * Makefile is present. - */ - Mfileindex = Mfilecount - 1; - if (Mfileindex < MF_IDX_MAKEFILE) - Mfileindex = MF_IDX_IMPICIT; - - setup_dotvars(); - if (!Rflag) - check_old_makefiles(); - - if (Probj) /* -probj Flag */ - printtree(); - if (Print) { /* -p Flag */ - prtree(); - exit(0); /* XXX Really exit() here for make -p -f /dev/null ??? */ - /* XXX Posix requires make -p -f /dev/null 2>/dev/null */ - /* XXX to print the internal macros */ - } - on_comerr(exhandler, av[0]); - if (Debug > 0) - printdirs(); /* .OBJDIR .OBJSEARCH .SEARCHLIST */ - - makeincs(); /* Re-make included files */ - omake(Init, TRUE); - cac = ac; - cav = av; - cac--; cav++; - for (i = 0; getfiles(&cac, &cav, options); cac--, cav++, i++) - if (!domake(cav[0])) - failures++; - - if (i == 0 && !domake((char *) NULL)) - failures++; - if (failures && Failed) { - omake(Failed, TRUE); - } else { - omake(Done, TRUE); - } -#ifdef DEBUG - prmem(); -#endif - if (failures > 0) - comexit(1); - comexit(0); - return (0); /* keep lint happy :-) */ -} - -/* - * Check for old makefile systems without patten matching rules. - * - * Old makefile systems only define simple suffix rules. Now that newer smake - * releases support POSIX suffix rules, the makefile system will only work - * if the makefile system uses pattern matching rules. - * We may remove this function in 2005. - */ -LOCAL void -check_old_makefiles() -{ - obj_t *o; - - if (Suffixes == NULL) /* No/Empty .SUFFIXES, no compat probelems */ - return; - if (xssrules == 0) /* Makefile did not define simple suff rule*/ - return; - if (xpatrules) /* New makefiles define pattern rules */ - return; - - /* - * All makefiles from the Schily (SING) makefile system define - * _UNIQ=.XxZzy- - */ - if ((o = objlook("_UNIQ", FALSE)) == NULL) - return; - if (!streql(".XxZzy-", o->o_list->l_obj->o_name)) - return; - - errmsgno(EX_BAD, "WARNING: this project uses an old version of the makefile system.\n"); - comerrno(EX_BAD, "Update the makefiles or call 'smake -r'.\n"); -} - -/* - * Read in and parse the makeflags we got from the MAKEFLAGS= environment var. - * MAKEFLAGS= may be: - * - * - "et..." Only option letters. - * No space and no macro definitions. - * - "NAME=value..." Only a list of macro definitions (like a - * make command line). - * - "-et..." Options as they appear on the command line. - * Space and multiple '-' are allowed. - * "-et -- NAME=value..." A complete make command line (except - * -f filename options). - */ -LOCAL void -getmakeflags() -{ - int MFsave = Mfileindex; - char *mf = getenv(Makeflags); - - if (!mf || *mf == '\0') /* No MAKEFLAGS= or empty MAKEFLAGS= */ - return; - - Mfileindex = MF_IDX_ENVIRON; /* Index 1 Environment vars */ - if (*mf != '-') { /* Only macros if does not start with '-'*/ - char *p = nextmakemac(mf); /* Next unescaped ' ' */ - char *eql = strchr(mf, '='); - - /* - * Be gracious to non POSIX make programs like 'GNUmake' which - * may have "e -- MAKE=smake" in the MAKEFLAGS environment. - * The correct string would rather be "-e -- MAKE=smake". - */ - if (eql != NULL && (p == NULL || eql < p)) { - /* - * No options at all, only cmdline macros. - */ - MFCmdline = mf; - goto out; /* Allow debug prints */ - } - } - - while (*mf) { - switch (*mf) { - - case ' ': - break; /* Ignore blanks */ - - case '-': /* look for " -- " separator */ - if (mf[1] == '-') { - if (mf[2] != ' ') { - char *p = nextmakemac(mf); - - errmsgno(EX_BAD, - "Found illegal option '%s' in MAKEFLAGS.\n", - mf); - if (p != NULL) { - size_t d = p - mf; - if (d > 50) - d = 50; - errmsgno(EX_BAD, - "Skipping illegal option '%.*s'.\n", - (int)d, mf); - mf = p; - break; - } else { - errmsgno(EX_BAD, - "Ignoring illegal option '%s'.\n", - mf); - } - goto out; /* Allow debug prints */ - } - MFCmdline = &mf[3]; - goto out; /* Allow debug prints */ - } - break; /* Ignore single '-' */ - - case 'D': /* Display makefile */ - Dmake++; - break; - - case 'd': /* Debug */ - Debug++; - break; - - case 'X': /* XDebug */ - XDebug++; - break; - - case 'e': /* Environment overrides vars */ - Eflag = TRUE; - break; - - case 'i': /* Ignore errors from cmds */ - Iflag = TRUE; - break; - - case 'k': /* Ignore target errors */ - Kflag = TRUE; - break; - - case 'N': /* Ignore no Source on dep. */ - NSflag = TRUE; - break; - - case 'n': /* Do not exec any commands */ - Nflag = TRUE; - break; - - case 'p': /* Print macros/targets */ - Print = TRUE; - break; - - case 'q': /* Question */ - Qflag = TRUE; - break; - - case 'r': /* Turn off internal Rules */ - Rflag = TRUE; - break; - - case 's': /* Silent */ - Sflag = TRUE; - break; - - case 'S': /* Stop on error (opposite of -k) */ - Stopflag = TRUE; - break; - - case 't': /* Touch */ - Tflag = TRUE; - break; - - case 'W': /* Extra Warnings */ - DoWarn = TRUE; - break; - - case 'w': /* No Warnings */ - NoWarn = TRUE; - break; - - case 'Z': /* Print includes */ - Prdep = TRUE; - break; - } - mf++; - } -out: - /* - * As this is called before we call getargs(), Debug may only be true - * if the 'd' option is present in the MAKEFLAGS environment. - */ - if (Debug > 0) - error("Read MAKEFLAGS: '%s'\n", getenv(Makeflags)); - - Mfileindex = MFsave; -} - -/* - * Parse a list of macro=value command line macros from the - * MAKEFLAGS= environment and set up the macro in the make tree. - * If gbuf is NULL, read_mac() is parse only. - */ -LOCAL void -read_makemacs() -{ - register char *mf = MFCmdline; - register char *p; - int MFsave = Mfileindex; - - if (mf == NULL) - return; - - Mfileindex = MF_IDX_ENVIRON; /* Index 1 Environment vars */ - while (*mf) { - p = nextmakemac(mf); - if (p == NULL) { /* No other macro def follows */ - if (!read_mac(mf)) - *mf = '\0'; - break; - } else { /* Need to temporarily null terminate */ - *p = '\0'; - if (!read_mac(mf)) { - strcpy(mf, &p[1]); - } else { - *p = ' '; - mf = &p[1]; - } - } - } - Mfileindex = MFsave; -} - -/* - * Find next un-escaped blank (' ') which is a separator - * for a list of macro=value items. - */ -LOCAL char * -nextmakemac(s) - char *s; -{ - while (*s) { - if (*s == '\\') { /* escaped character */ - if (*++s == '\0') - return (NULL); - } else if (*s == ' ') { /* un-escaped space */ - return (s); - } - s++; - } - return (NULL); -} - -/* - * Remove the escapes that have been introduced before the name=value - * lists are put together into the MAKEFLAGS= environment. - * Then parse the result as a string. - * If gbuf is NULL, read_mac() is parse only. - */ -LOCAL BOOL -read_mac(mf) - char *mf; -{ - char macdef[NAMEMAX*2+1]; - char *p; - - p = macdef; - while (*mf) { - if (p >= &macdef[NAMEMAX*2]) - break; - /* - * Only remove those escape sequences, that we created. - * This is "\\" and "\ ". - */ - if (mf[0] == '\\' && (mf[1] == '\\' || mf[1] == ' ')) - mf++; - *p++ = *mf++; - } - *p = '\0'; - - if (macdef[0] == '\0') /* Ignore empty definition */ - return (TRUE); - if (strchr(macdef, '=') == NULL) { /* Check if it is a macro def*/ - errmsgno(EX_BAD, - "Found illegal macro definition '%s' in MAKEFLAGS.\n", - macdef); - return (FALSE); - } - - if (gbuf == NULL) /* Parse only and kill */ - return (TRUE); /* unwanted content */ - - Mflags |= F_READONLY; - readstring(macdef, Makeflags); - Mflags &= ~F_READONLY; - return (TRUE); -} - -/* - * Prepare the MAKEFLAGS= environment for export. - */ -LOCAL void -setmakeflags() -{ - /* - * MAKEFLAGS=- 12 bytes incl '\0' - * 3 x 8 bytes= 24 bytes - * 12 flags 12 bytes - * '-- ' 3 bytes - * ===================== - * 51 bytes - */ -#define MAKEENV_SIZE_STATIC 64 -static char makeenv[MAKEENV_SIZE_STATIC]; - char *p; - int i; - - p = strcatl(makeenv, Makeflags, (char *)NULL); - *p++ = '='; - *p++ = '-'; /* Posix make includes '-' */ - /* "MAKEFLAGS=-" 12 incl. '\0' */ - - i = Dmake; /* Display makefile */ - if (i > 8) - i = 8; - while (--i >= 0) - *p++ = 'D'; - - i = Debug; /* Debug */ - if (i > 8) - i = 8; - while (--i >= 0) - *p++ = 'd'; - - i = XDebug; /* XDebug */ - if (i > 8) - i = 8; - while (--i >= 0) - *p++ = 'X'; - - if (Eflag) /* Environment overrides vars */ - *p++ = 'e'; - if (Iflag) /* Ignore errors from cmds */ - *p++ = 'i'; - if (Kflag) /* Ignore target errors */ - *p++ = 'k'; - if (NSflag) /* Ignore no Source on dep. */ - *p++ = 'N'; - if (Nflag) /* Do not exec any commands */ - *p++ = 'n'; - if (Print) /* Print macros/targets */ - *p++ = 'p'; - if (Qflag) /* Question */ - *p++ = 'q'; - if (Rflag) /* Turn off internal Rules */ - *p++ = 'r'; - if (Sflag) /* Silent */ - *p++ = 's'; - if (Stopflag) /* Stop on error (opposite of -k) */ - *p++ = 'S'; - if (Tflag) /* Touch */ - *p++ = 't'; - if (DoWarn) /* Extra Warnings */ - *p++ = 'W'; - if (NoWarn) /* No Warnings */ - *p++ = 'w'; - if (Prdep) /* Print includes */ - *p++ = 'Z'; - - if (p - makeenv == 11) /* Empty flags, remove '-' */ - --p; - *p = '\0'; - define_var(Make_Flags, &makeenv[10]); /* MAKE_FLAGS= ... */ - doexport(Make_Flags); - setmakeenv(makeenv, p); /* Add cmdline macs */ -} - -/* - * Strip out macro defs inherited from MAKELAGS, that will be overwritten - * by command line macro defs. - * Return new write poiner at end of string. - */ -LOCAL char * -stripmacros(macbase, new) - char *macbase; - char *new; -{ - char *p = strchr(new, '='); - char *p2; - - if (p == NULL) /* Paranoia */ - return (macbase + strlen(macbase)); - - do { - p2 = nextmakemac(macbase); /* Find next macro delim */ - - if (strncmp(macbase, new, p - new) == 0) { - /* - * Got a match, need to remove this entry. - */ - if (p2 == NULL) { /* This is the only, zap out */ - *macbase = '\0'; - } else { /* Copy rest over current */ - strcpy(macbase, &p2[1]); - } - } else if (p2) { /* Continue with next extry */ - macbase = &p2[1]; - } - } while (p2); - return (macbase + strlen(macbase)); -} - -/* - * Add the actual command line macro definitions to the MAKEFLAGS= string - * and then putenv() the result. - */ -LOCAL void -setmakeenv(envbase, envp) - char *envbase; - char *envp; -{ - register int i; - register int l; - register int len = 0; - register char *p; - register char *macbase; - - if (Cmdlinecount == 0 && (MFCmdline == 0 || *MFCmdline == '\0')) { - /* - * No command line macros and no inherited command line - * macros from MAKEFLAGS, so just call putenv() and return. - */ - putenv(envbase); - return; - } - - if ((envp - envbase) > 10) { /* envbase[] is currently not empty */ - strcpy(envp, " -- "); /* we need a separator to the flags */ - - envp += 4; - *envp = '\0'; - } - if (MFCmdline) /* Add one for '\0' or ' ' at end */ - len = strlen(MFCmdline) + 1; - - for (i = 0; i < Cmdlinecount; i++) { - p = CmdLDefs[i]; - while (*p) { - if (*p == '\\' || *p == ' ') - len++; - len++; - p++; - } - len += 1; /* Add one for '\0' or ' ' at end */ - } - - l = strlen(envbase) + len + 1; /* Add one (see stripmacro comment) */ - if (l > MAKEENV_SIZE_STATIC) { - p = malloc(l); - strcpy(p, envbase); - envp = p + (envp - envbase); - envbase = p; - } - - macbase = envp; - if (MFCmdline) { - for (p = MFCmdline; *p; ) - *envp++ = *p++; - *envp++ = ' '; - } - *envp = '\0'; - - for (i = 0; i < Cmdlinecount; i++) { - p = CmdLDefs[i]; - envp = stripmacros(macbase, p); - while (*p) { - if (*p == '\\' || *p == ' ') - *envp++ = '\\'; - *envp++ = *p++; - } - *envp++ = ' '; - *envp = '\0'; /* Needed for stripmacros */ - } /* But overshoots by one */ - *--envp = '\0'; - putenv(envbase); - define_var(Make_Macs, macbase); /* MAKE_MACS= ... */ - doexport(Make_Macs); -} - -#define iswhite(c) ((c) == ' ' || (c) == '\t') - -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) -/* - * Needed to handle the Linux bash signal bug. - */ -int lpid; -#endif - -/* - * Execute or print a command line. - * Return exit code from command line. - */ -EXPORT int -docmd(cmd, obj) - register char *cmd; - obj_t *obj; -{ - int code; - int pid = 0; - int retries; - int Exit; - int Silent = Sflag; - int NoError = Iflag; - int NoExec = Nflag; - BOOL foundplus = FALSE; - obj_t *shello; - char *shell = NULL; - - while (iswhite(*cmd)) - cmd++; -/* - * '-' Ignore error, '@' Silent, '+' Always execute - * '?' No command dependency checking, '!' Force command dependency checking - */ - for (code = 0; code < 5 && - (*cmd == '@' || *cmd == '-' || *cmd == '+' || - *cmd == '?' || *cmd == '!'); - code++, cmd++) { - if (*cmd == '@') - Silent = TRUE; - if (*cmd == '-') - NoError = TRUE; - if (*cmd == '+') { - NoExec = FALSE; - foundplus = TRUE; - } - if (*cmd == '?') { - /* EMPTY */ ; /* XXX To be defined !!! */ - } - if (*cmd == '!') { - /* EMPTY */ ; /* XXX To be defined !!! */ - } - } - if (foundplus) - Silent = FALSE; - - if (!Silent || NoExec || Debug > 0) { -/* error("...%s\n", cmd);*/ - printf("%s%s\n", posixmode?"\t":"...", cmd); /* POSIX !!! */ - } - if (NoExec && !found_make) - return (0); - - curtarget = obj; - - shello = objlook("SHELL", FALSE); - if (shello != NULL && basetype(shello->o_type) == EQUAL && - shello->o_list != NULL) - shell = shello->o_list->l_obj->o_name; - if (shell == NULL || *shell == '\0') { - shello = NULL; - shell = "/bin/sh"; - } - -#if !defined(USE_SYSTEM) && /* XXX else system() ??? */ \ - ((defined(HAVE_FORK) && defined HAVE_EXECL) || defined(JOS)) - -#if defined(__EMX__) || defined(__DJGPP__) -#ifdef __EMX__ - pid = spawnl(P_NOWAIT, shell, filename(shell), NoError ? cflag:ceflag, - cmd, (char *)NULL); - if (pid < 0) - comerr("Can't spawn %s.\n", shell); -#else - { - /* - * exec '/bin/sh' does not work under DJGPP. - * Strings like 'c:\djgpp\bin\sh.exe' or '/dev/c/djgpp/bin/sh.exe' - * must be used instead. - * - * Notes: c:/djgpp/share/config.site defines 'SHELL' with the required string. - * - * Using system("sh -ce 'cmd'") and spawn("command.com /c sh -ce 'cmd'") - * cause GPF's (not enough memmory?) - * - * Temporary solution: Use DJGPP_SH envp. var. (must be set manually) - */ - static char *shellname = NULL; - - if (shello != NULL) /* On DJGPP too? */ - shellname = shell; - if (shellname == NULL) - shellname = getenv("DJGPP_SH"); /* Backward compat */ - if (shellname == NULL) - shellname = searchfileinpath("bin/sh.exe"); /* alloc() */ - if (shellname == NULL) - shellname = searchfileinpath("sh.exe"); /* alloc() */ - if (shellname == NULL) - comerr("Can't find sh.exe.\n"); - - Exit = spawnl(P_WAIT, shellname, filename(shellname), - NoError ? cflag:ceflag, - cmd, (char *)NULL); - if (Exit) { - /* TODO: DOS error code to UNIX error code */ - Exit = 0xFF<<8; - } - } -#endif -#else - /* - * Do several tries to fork child to allow working on loaded systems. - */ - for (retries = 0; retries < 10; retries++) { - pid = fork(); - if (pid >= 0) - break; - sleep(1L); /* Wait for resources to become free.*/ - } - if (pid < 0) - comerr("Can't fork.\n"); - - if (pid == 0) { /* Child process: do the work. */ - /* - * We used to call /bin/sh -ce 'cmd' but we get problems on QNX - * and UNIX-98 requests that the command shall be called as in - * system() which means /bin/sh -c 'cmd'. - */ - execl(shell, filename(shell), NoError ? cflag:ceflag, - cmd, (char *)NULL); - comerr("Can't exec %s.\n", shell); - } -#endif /* __EMX__ || __DJGPP__ */ - -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) - /* - * Needed to handle the Linux bash signal bug. - */ - lpid = pid; -#endif - - /* Parent process: wait for child. */ -#ifndef __DJGPP__ - if ((code = wait((WAIT_T *)&Exit)) != pid) - comerrno(Exit, "code %d waiting for %s.\n", geterrno(), shell); -#endif -#else /* Use system() */ - Exit = system(cmd); -#endif - if (Exit) { - errmsgno(Exit>>8, "*** Code %d from command line for target '%s'%s.\n", - Exit>>8, - obj->o_name, - NoError?" (ignored)":""); - if (Silent && Debug <= 0) { - errmsgno(EX_BAD, "The following command caused the error:\n"); - error("%s\n", cmd); - } - } - curtarget = (obj_t *)NULL; - - if (NoError) - return (0); - return (Exit); -} - -#ifdef tos -# include "osbind.h" -#endif - -/* - * Move a target file to ObjDir. - */ -EXPORT BOOL -move_tgt(from) - register obj_t *from; -{ - date_t fromtime; - int code; - char _objname[TYPICAL_NAMEMAX]; - char *objname = NULL; - BOOL ret = TRUE; - - /* - * Move only if: - * objdir to corresponding srcdir exists - * target is known in Makefile - */ - if ((ObjDir == NULL && from->o_level == OBJLEVEL) || - from->o_level < OBJLEVEL) - return (TRUE); - - fromtime = gftime(from->o_name); - if (fromtime == 0) /* Nothing to move found */ - return (TRUE); - - if (strchr(from->o_name, SLASH)) /* Only move from current directory */ - return (TRUE); - - if (Debug > 3) error("move: from->o_level: %d\n", from->o_level); - if ((objname = build_path(from->o_level, from->o_name, from->o_namelen, - _objname, sizeof (_objname))) == NULL) - return (FALSE); - if (!Sflag || Nflag) - printf("%smove %s %s\n", posixmode?"\t":"...", from->o_name, objname); - if (Nflag) { - ret = TRUE; - goto out; - } - - if ((from->o_name == objname) || - (gfileid(from->o_name) == gfileid(objname))) { - errmsgno(EX_BAD, "Will not move '%s' to itself.\n", - from->o_name); - ret = TRUE; - goto out; - } -# ifdef tos - unlink(objname); - if ((code = Frename(0, from->o_name, objname)) < 0) { - if (code == EXDEV) { - code = copy_file(from->o_name, objname); - if (unlink(from->o_name) < 0) - errmsg("Can't remove old name '%s'.\n", - from->o_name); - } else { - errmsgno(-code, "Can't rename '%s' to '%s'.\n", - from->o_name, objname); - } - } - if (code < 0) { - ret = FALSE; - goto out; - } -# else - if ((code = rename(from->o_name, objname)) < 0) { - if (geterrno() == EXDEV) { - if (rmdir(objname) < 0 && geterrno() == ENOTDIR) - unlink(objname); - code = copy_file(from->o_name, objname); - if (unlink(from->o_name) < 0) - errmsg("Can't remove old name '%s'.\n", - from->o_name); - } else { - errmsg("Can't rename '%s' to '%s'.\n", - from->o_name, objname); - } - } - if (code < 0) { - ret = FALSE; - goto out; - } -#endif /* tos */ -out: - if (objname != NULL && objname != from->o_name && objname != _objname) - free(objname); - return (ret); -} - -/* - * Copy File if we cannot rename the file. - */ -#ifdef tos -LOCAL int -copy_file(from, objname) - char *from; - char *objname; -{ - int fin; - int fout; - int cnt = -1; - - if ((fin = open(from, 0)) < 0) - errmsg("Can't open '%s'.\n", from); - else { - if ((fout = creat(objname, 0666)) < 0) - errmsg("Can't create '%s'.\n", objname); - else { - while ((cnt = read(fin, gbuf, gbufsize)) > 0) - if (write(fout, gbuf, cnt) != cnt) { - errmsg("Write error on '%s'.\n", - objname); - cnt = -1; - break; - } - close(fout); - } - close(fin); - } - return (cnt); -} -#else -LOCAL int -copy_file(from, objname) - char *from; - char *objname; -{ - FILE *fin; - FILE *fout; - int cnt = -1; - - if ((fin = fileopen(from, "rub")) == 0) - errmsg("Can't open '%s'.\n", from); - else { - if ((fout = fileopen(objname, "wtcub")) == 0) - errmsg("Can't create '%s'.\n", objname); - else { - while ((cnt = fileread(fin, gbuf, gbufsize)) > 0) - filewrite(fout, gbuf, cnt); - fclose(fout); - } - fclose(fin); - } - return (cnt); -} -#endif - -/* - * This function behaves similar to the UNIX 'touch' command. - */ -EXPORT BOOL -touch_file(name) - char *name; -{ - FILE *f; - char _objname[TYPICAL_NAMEMAX]; - char *objname = _objname; - size_t objlen = sizeof (_objname); - char *np = NULL; -#ifndef HAVE_UTIME - char c; -#endif - -again: - if (snprintf(objname, objlen, "%s%s%s", ObjDir, - slash, filename(name)) >= objlen) { - objlen = strlen(filename(name)) + ObjDirlen + slashlen + 1; - objname = np = __realloc(np, objlen, "touch path"); - goto again; - } -#ifdef __is_this_ok__ - if (!gftime(objname)) - snprintf(_objname, sizeof (_objname), name); -#endif - if (!Sflag) - printf("%stouch %s\n", posixmode?"\t":"...", objname); - if (Nflag) - return (TRUE); - if ((f = fileopen(objname, "rwcub")) != (FILE *)NULL) { -#ifdef HAVE_UTIME - utime(objname, NULL); -#else - c = getc(f); - fileseek(f, (off_t)0); - putc(c, f); -#endif - fclose(f); - if (np) - free(np); - return (TRUE); - } - if (np) - free(np); - return (FALSE); -} - -# include -# define STATBUF struct stat - -/* - * Get current time. - */ -LOCAL date_t -gcurtime() -{ - return ((date_t) time((time_t *) 0)); -} - -/* - * Get a time that is in the future (as far as possible). - */ -LOCAL date_t -gnewtime() -{ - time_t t = curtime; - time_t a = YEARSECS; - int i = 0; - - while ((a * 2) > a) { - a *= 2; - if (++i > 100) - break; - } - i = 0; - while (a > 0) { - while ((t + a) > t) { - t += a; - if (++i > 100) - break; - } - if (i > 1000) - break; - a /= 2; - } - while (t == NOTIME || t == BADTIME || - t == RECURSETIME || t == PHONYTIME) { - t--; - } -/*printf("i: %d, %lu, %lx, %s\n", i, t, t, prtime(-3));*/ - return (t); -} - -/* - * Get the time of last modification for a file. - * Cannot call it gmtime() - */ -EXPORT date_t -gftime(file) - char *file; -{ - STATBUF stbuf; - char this_time[32]; - char cur_time[32]; - - stbuf.st_mtime = NOTIME; - if (stat(file, &stbuf) < 0) { - /* - * GNU libc.6 destroys st_mtime - */ - stbuf.st_mtime = NOTIME; - } else { - register time_t t; - /* - * Make sure that the time for an existing file is not - * in the list of special time stamps. - */ - t = stbuf.st_mtime; - while (t == NOTIME || t == BADTIME || - t == RECURSETIME || t == PHONYTIME) { - t++; - } - stbuf.st_mtime = t; - } - - if (Debug > 3) - error("gftime(%s) = %s\n", file, prtime(stbuf.st_mtime)); - - if (stbuf.st_mtime > (curtime +5)) { - date_t xcurtime; - - xcurtime = gcurtime(); - if (stbuf.st_mtime <= (xcurtime +5)) { - curtime = xcurtime; - return (stbuf.st_mtime); - } - strncpy(this_time, prtime(stbuf.st_mtime), sizeof (this_time)); - this_time[sizeof (this_time)-1] = '\0'; - strncpy(cur_time, prtime(curtime), sizeof (cur_time)); - cur_time[sizeof (cur_time)-1] = '\0'; - errmsgno(EX_BAD, - "WARNING: '%s' has modification time in the future (%s > %s).\n", - file, this_time, cur_time); - } - return (stbuf.st_mtime); -} - -/* - * Check if file is a directory. - */ -LOCAL BOOL -isdir(file) - char *file; -{ - STATBUF stbuf; - - if (stat(file, &stbuf) < 0) - return (TRUE); - if ((stbuf.st_mode&S_IFMT) == S_IFDIR) - return (TRUE); - return (FALSE); -} - -/* - * Get a unique number for a file to prevent moving targets to themselves. - * XXX inode number is now long !!! - */ -EXPORT Llong -gfileid(file) - char *file; -{ - STATBUF stbuf; - Llong result; - - /* - * Setup a unique default. In case stat() will fail. - */ - stbuf.st_ino = (ino_t) (long) file; - stbuf.st_dev = 0; - if (stat(file, &stbuf) < 0) { - /* - * GNU libc.6 destroys st_mtime - * Paranoia .... we fall back here too. - */ - stbuf.st_ino = (ino_t) (long) file; - stbuf.st_dev = 0; - } -#if SIZEOF_LLONG > 4 - result = stbuf.st_dev; - result <<= 32; - result |= stbuf.st_ino; -#else - result = stbuf.st_dev; - result <<= 16; - result |= stbuf.st_ino; -#endif - if (Debug > 3) - error("gfileid: %s %lld\n", file, result); - return (result); -} - -/* - * Transfer UNIX time stamps into human readable names. - * Take care of our "special timestamps". - */ -EXPORT char * -prtime(date) - date_t date; -{ - char *s; - - if (date == (date_t)0) - return ("File does not exist"); - if (date == BADTIME) - return ("File could not be made"); - if (date == RECURSETIME) - return ("Recursive dependencies"); - if (date == PHONYTIME) - return ("File is phony"); - if (date == newtime) - return ("Younger than any file"); - - s = ctime((const time_t *)&date); - s[strlen(s)-1] = '\0'; - return (s); -} - -/* - * Our general signal handler. Does some needed clean up and includes - * workarounds for buggy OS like Linux. - */ -LOCAL void -handler(signo) - int signo; -{ - char *name; - - signal(signo, handler); - errmsgno(EX_BAD, "Got signal %d\n", signo); - if (!curtarget) - goto out; - - errmsgno(EX_BAD, "Current target is: %s precious: %d phony: %d\n", - curtarget->o_name, - isprecious(curtarget), - isprecious(curtarget)); - -/* while(wait(0) >= 0) */ -/* ;*/ - /* - * Keine Bibliotheken - * Kein -t, -q etc. - */ - if (isprecious(curtarget)) - goto out; - if (isphony(curtarget)) - goto out; - - name = curtarget->o_name; - - if (isdir(name)) { - error("*** %s not removed.\n", name); - goto out; - } - if (unlink(name) >= 0) { - error("*** %s removed.\n", name); - } else { - errmsg("*** %s could not be removed.\n", name); - } - /* - * Test ob ObjDir/name existiert und neuer als vorher ist. - */ - -out: - -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) - /* - * Linux signal handling is broken. This is caused by a bug in 'bash'. - * Bash does jobcontrol even if called as "sh -ce 'command'". - * This is illegal. Only the foregound (make) process and with some - * bash versions the descendant 'make' processes are killed. - * The following code tries to kill the others too. - */ - signal(signo, SIG_IGN); /* Make us immune to death ;-) */ - - /* - * First shoot everyone into the foot. - */ - kill(lpid, signo); /* Kill bash that is our child */ - kill(-lpid, signo); /* Kill possible bash children */ - kill(-getpgrp(), signo); /* Kill our process group */ - - /* - * Now shoot everyone into the head. - */ - kill(lpid, SIGKILL); /* Kill bash that is our child */ - kill(-lpid, SIGKILL); /* Kill possible bash children */ - kill(-getpgrp(), SIGKILL); /* Kill our process group */ -#endif - comexit(signo); -} - -LOCAL void -exhandler(excode, arg) - int excode; - void *arg; -{ - /* - * Ausgabe wenn: - * - * - excode != 0 && Mlevel > 0 - * - Debug > 0 && Mlevel > 0 - */ - if ((Debug <= 1 && excode == 0) || Mlevel <= 0) - return; - - errmsgno(EX_BAD, "Leaving '%s'[%d] from directory '%s'\n", - (char *)arg, Mlevel, curwdir()); - if (default_tgt != NULL) - errmsgno(EX_BAD, - "Default commandline target: '%s'\n", default_tgt->o_name); - errmsgno(EX_BAD, "Doing exit(%d)\n", excode); -} - -/* - * Return current working directory in an allocated string. - */ -EXPORT char * -curwdir() -{ - static char *wdir; - char wd[MAXPATHNAME + 1]; - - if (wdir != NULL) - return (wdir); - - if (getcwd(wd, MAXPATHNAME) == NULL) { - wd[0] = '/'; - wd[1] = '\0'; - } - wdir = malloc(strlen(wd)+1); - if (wdir == NULL) - comerr("Cannot malloc working dir.\n"); - strcpy(wdir, wd); - return (wdir); -} - -/* - * Search for the defaults.smk file in the PATH of the user. - * Assume that the file is ... bin/../lib/defaults.smk - */ -LOCAL char * -getdefaultsfile() -{ - return (searchfileinpath("lib/defaults.smk")); -} - -LOCAL char * -searchfileinpath(name) - char *name; -{ - char *path = getenv("PATH"); - char pbuf[NAMEMAX]; - char *nbuf = pbuf; - char *np; - int nlen = strlen(name); - char *pn = get_progname(); - - if (strchr(pn, '/') != NULL) { - strncpy(nbuf, pn, sizeof (pbuf)); - nbuf[sizeof (pbuf) - 1] = '\0'; - np = nbuf + strlen(nbuf); - - while (np > nbuf && np[-1] != '/') - *--np = '\0'; - pn = &nbuf[sizeof (pbuf) - 1]; - if ((np = searchonefile(name, nbuf, np, pn)) != NULL) - return (np); - } - - if (path == NULL) - return (NULL); - - -#ifdef __DJGPP__ - strbs2s(path); /* PATH under DJGPP can contain both slashes */ -#endif - - pn = &nbuf[sizeof (pbuf) - 1]; - for (;;) { - np = nbuf; - while (*path != PATH_ENV_DELIM && *path != '\0' && - np < &nbuf[sizeof (pbuf) - nlen]) - *np++ = *path++; - *np = '\0'; - if ((np = searchonefile(name, nbuf, np, pn)) != NULL) - return (np); - - if (*path == '\0') - break; - path++; - } - return (NULL); -} - -LOCAL char * -searchonefile(name, nbuf, np, ep) - register char *name; - register char *nbuf; - register char *np; - register char *ep; -{ - while (np > nbuf && np[-1] == '/') - *--np = '\0'; - if (np >= &nbuf[4] && streql(&np[-4], "/bin")) - np = &np[-4]; - *np++ = '/'; - *np = '\0'; - strncpy(np, name, ep - np); - *ep = '\0'; - - if (gftime(nbuf)) { - np = malloc(strlen(nbuf)+1); - if (np == NULL) - return (NULL); - strcpy(np, nbuf); - return (np); - } - return (NULL); -} - -#ifdef __DJGPP__ -LOCAL char * -strbs2s(s) - char *s; -{ - char *tmp = s; - - if (tmp) { - while (*tmp) { - if (*tmp == '\\') - *tmp = '/'; - tmp++; - } - } - return (s); -} -#endif - -#ifndef HAVE_PUTENV - -EXPORT int putenv __PR((const char *new)); -LOCAL int ev_find __PR((const char *s)); - -extern char **environ; /* The environment array */ -LOCAL BOOL ealloc = FALSE; /* TRUE if environ is already allocated */ - -/* - * Our local putenv implementation for systems that don't have it. - */ -EXPORT int -putenv(new) - const char *new; -{ - char **newenv; - register int idx; - - if ((idx = ev_find(new)) >= 0) { - /* - * An old entry with the same name exists, replace it. - */ - environ[idx] = (char *)new; - } else { - /* - * If idx is < 0, we need to expand environ for the new entry. - * In this case -idx is the inverted size of the old environ. - */ - idx = -idx + 1; /* Add space for new entry */ - if (ealloc) { - /* - * environ is allocated, expand with realloc - */ - newenv = (char **)realloc(environ, idx*sizeof (char *)); - if (newenv == NULL) - return (-1); - } else { - /* - * environ is orig space, copy to malloc'ed space - */ - ealloc = TRUE; - newenv = (char **)malloc(idx*sizeof (char *)); - if (newenv == NULL) - return (-1); - (void) movebytes((char *)environ, (char *)newenv, - (int)(idx*sizeof (char *))); - } - environ = newenv; - environ[idx-2] = (char *)new; - environ[idx-1] = NULL; - } - return (0); -} - -/* - * Check if arg of form name=value is part of environ. - * Return index on success and -environ_size if not. - */ -LOCAL int -ev_find(s) - register const char *s; -{ - register int i = 0; - register const char *ep; - register const char *s2; - - for (i = 0; environ[i] != NULL; i++) { - /* - * Find string in environment entry. - */ - for (ep = environ[i], s2 = s; *ep == *s2++; ep++) { - if (*ep == '=') - return (i); - } - } - return (-(++i)); -} -#endif /* HAVE_PUTENV */ diff -Nru smake-1.2a41/psmake/make.h smake-1.2a49/psmake/make.h --- smake-1.2a41/psmake/make.h 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/psmake/make.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,306 +0,0 @@ -/* @(#)make.h 1.78 07/03/07 Copyright 1985, 87, 91, 1995-2007 J. Schilling */ -/* - * Definitions for make. - * Copyright (c) 1985, 87, 91, 1995-2007 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _SCHILY_UTYPES_H -#include /* Includes sys/types.h */ -#endif -#ifndef _SCHILY_STANDARD_H -#include /* #defines BOOL */ -#endif - -/* - * XXX if sizeof(date_t) is < sizeof(time_t) there may be problems - */ -typedef unsigned long date_t; - -/* - * XXX It may be a good idea to make "newtime" > RECURSETIME as - * XXX the date of unknown targets is set to RECURSETIME before - * XXX it is made. - */ -#define NOTIME ((date_t)0) /* Obj not (yet) found */ -#define BADTIME ((date_t)-1) /* Obj could not be made */ -#define RECURSETIME ((date_t)-2) /* Obj depends on itself */ -#define PHONYTIME ((date_t)-3) /* Obj is Phony */ - -/* - * We may need to check whether PHONYTIME is a "valid" time... - */ -#define VALIDTIME(t) ((t) > NOTIME && \ - (t) < PHONYTIME) - - /* NOTE: MAXLEVEL must be odd */ -#define MAXLEVEL 255 /* Obj is not yet searched for */ -#define WDLEVEL 0 /* Obj is in working dir (".") */ -#define OBJLEVEL 1 /* Obj is in .OBJDIR */ - -#define SSRC 1 /* Search in source directories */ -#define SOBJ 2 /* Search in obj directories */ -#define SALL (SSRC | SOBJ) /* Search in source/obj directories */ - -#ifdef pdp11 -#define NAMEMAX 512 /* Max size of a name */ -#else -#define NAMEMAX 4096 /* Max size of a name POSIX linelen */ -#endif -#define TYPICAL_NAMEMAX 128 /* Namelen that avoids malloc() */ - -/* - * one unique element is used for each target or member in a dependency list - * also used for macros and macro definition lists - */ -typedef struct obj { - struct obj *o_left; /* Left next node in binary tree */ - struct obj *o_right; /* Right next node in binary tree */ - struct list *o_list; /* List of dependencies for target */ - struct cmd *o_cmd; /* List of commands for this target */ - char *o_name; /* Name of this target */ - struct obj *o_node; /* Auxilliary node pointer */ - date_t o_date; /* Current date for this target */ - size_t o_namelen; /* strlen(o_name) */ - short o_type; /* Type of node */ - short o_flags; /* Flags for this node */ - short o_level; /* Obj level this target was found */ - short o_fileindex; /* Makefile idx for this definition */ -} obj_t; - -#define F_READONLY 1 -#define F_CMDLINE 2 -#define F_EXPORT 4 -#define F_MULTITARGET 8 -#define F_DCOLON 16 /* Intermediate :: object */ -#define F_TERM 32 /* Object is source of a TERM rule */ - -/* - * list element, used to build dependency lists from unique obj elements - */ -typedef struct list { - struct list *l_next; /* Next entry in dependency list */ - struct obj *l_obj; /* Obj structure for this entry */ -} list_t; - -/* - * element for commands that are used to update a target - * one allocated for each command line - */ -typedef struct cmd { - struct cmd *c_next; /* Next command for this target */ - char *c_line; /* Command line for this element */ -} cmd_t; - -/* - * element used to describe pattern rules (rules that contain a '%' sign) - * format is: - * target: source (a%b: c%d) - * cmdlist - */ -typedef struct patrule { - struct patrule *p_next; /* Next pattern rule */ - struct cmd *p_cmd; /* List of commands for this rule */ - struct obj *p_name; /* Node for complete target name */ - int p_flags; /* Flags related to this rule */ -#ifdef xxx - struct obj *p_tgt_prefix; /* */ - struct obj *p_tgt_suffix; /* */ - struct obj *p_src_prefix; /* */ - struct obj *p_src_suffix; /* */ -#else - char *p_tgt_prefix; /* "a" (the string before the '%') */ - char *p_tgt_suffix; /* "b" (the string after the '%') */ - char *p_src_prefix; /* "c" (the string before the '%') */ - char *p_src_suffix; /* "d" (the string after the '%') */ - size_t p_tgt_pfxlen; - size_t p_tgt_suflen; - size_t p_src_pfxlen; - size_t p_src_suflen; -#endif -} patr_t; - -/* - * Definitions for Patrule Flags - */ -#define PF_TERM 0x01 /* This is a terminator rule */ - - -#define EQUAL '=' -#define COLON ':' -#define SEMI ';' -#define ADDMAC ('=' | ('+'<<8)) /* += */ -#define ASSIGN ('=' | (':'<<8)) /* := */ -#define DCOLON (':' | (':'<<8)) /* :: */ -#define SHVAR 0x1001 /* :sh= */ - -#define basetype(x) ((x) & 0xFF) - -/* - * make.c - */ -extern void usage __PR((int exitcode)); -extern void setup_dotvars __PR((void)); -extern char *searchtype __PR((int mode)); -extern void doexport __PR((char *)); -extern int docmd __PR((char * cmd, obj_t * obj)); -extern BOOL move_tgt __PR((obj_t * from)); -extern BOOL touch_file __PR((char * name)); -extern date_t gftime __PR((char * file)); -extern Llong gfileid __PR((char * file)); -extern char *prtime __PR((date_t date)); -extern char *curwdir __PR((void)); - -/* - * archconf.c - */ -extern void setup_arch __PR((void)); - -/* - * readfile.c - */ -extern char *peekrdbuf __PR((void)); -extern char *getrdbuf __PR((void)); -extern int getrdbufsize __PR((void)); -extern void setincmd __PR((BOOL isincmd)); -extern void getch __PR((void)); -extern int peekch __PR((void)); -extern void skipline __PR((void)); -extern void readstring __PR((char * str, char * strname)); -extern void readfile __PR((char * name, BOOL must_exist)); -extern void doinclude __PR((char * name, BOOL must_exist)); -extern void makeincs __PR((void)); - -/* - * parse.c - */ -extern void parsefile __PR((void)); -extern void define_var __PR((char *name, char *val)); -extern list_t *cvtvpath __PR((list_t *l)); -extern BOOL nowarn __PR((char *name)); -extern obj_t *objlook __PR((char * name, BOOL create)); -extern list_t *objlist __PR((char * name)); -extern obj_t *ssufflook __PR((char * name, BOOL create)); -extern BOOL check_ssufftab __PR((void)); -extern void printtree __PR((void)); -#ifdef EOF -extern void probj __PR((FILE *f, obj_t * o, int type)); -#endif -extern void prtree __PR((void)); - -/* - * update.c - */ -extern void initchars __PR((void)); -extern char *filename __PR((char * name)); -extern BOOL isprecious __PR((obj_t * obj)); -extern BOOL isphony __PR((obj_t * obj)); -extern list_t *list_nth __PR((list_t * list, int n)); -extern char *build_path __PR((int level, char * ename, size_t namelen, - char * path, size_t psize)); -extern char *substitute __PR((char * cmd, obj_t * obj, obj_t * source, - char *suffix)); -extern char *shout __PR((char * cmd)); -extern BOOL domake __PR((char * name)); -extern BOOL omake __PR((obj_t * obj, BOOL must_exist)); -extern BOOL xmake __PR((char * name, BOOL must_exist)); - -/* - * memory.c - */ -extern void *__realloc __PR((void *ptr, size_t size, char *msg)); -#ifdef DEBUG -extern void prmem __PR((void)); -#endif -extern char *fastalloc __PR((unsigned int size)); -extern void fastfree __PR((char *p, unsigned int size)); -extern void freelist __PR((list_t *l)); -extern char *strsave __PR((char *p)); -extern char *initgbuf __PR((int size)); -extern char *growgbuf __PR((char *p)); - - -/* - * Command line options. - */ -extern BOOL Kflag; /* Continue on unrelated targets */ -extern BOOL NSflag; /* Ignore no Source on dependency */ -extern BOOL Sflag; /* Do not print command lines on exec. */ -extern BOOL Tflag; /* Touch files instead of make. */ -extern BOOL Qflag; /* If up to date exit (0) */ -extern int Debug; /* Print reson for rebuild */ -extern int XDebug; /* Print extended debug info */ -extern int Dmake; /* Display makefile */ -extern BOOL Prdep; /* Print include dependendy */ -extern BOOL NoWarn; /* Don't print warning Messages. */ -extern BOOL DoWarn; /* Print extra warnings */ -extern char **MakeFileNames; /* List of pathnames of the Makefiles. */ -extern int Mfileindex; /* Current index in MakeFileNames. */ - -/* - * Various common variables. - */ -extern BOOL posixmode; /* We found a .POSIX target */ -extern int Mflags; -extern char *ObjDir; /* .OBJDIR: pathname Target destination dir */ -extern int ObjDirlen; /* strlen(.OBJDIR) */ -extern int ObjSearch; /* .OBJSEARCH: searchtype for explicit rules */ -extern list_t *SearchList; /* .SEARCHLIST: list of src/obj dir pairs */ -extern list_t *Suffixes; /* .SUFFIXES: list of suffixes (POSIX) */ -extern BOOL SSuffrules; /* Found any simple suffix rules */ -extern obj_t *Init; /* .INIT: command to execute at startup */ -extern obj_t *Done; /* .DONE: command do execute on success */ -extern obj_t *Failed; /* .FAILED: command to execute on failure */ -extern obj_t *IncludeFailed; /* .INCLUDEFAILED: cmd to execute if missing */ -extern obj_t *Deflt; /* .DEFAULT: command to execute if no rule */ -extern obj_t *Precious; /* .PRECIOUS: list of targets not to remove */ -extern obj_t *Phony; /* .PHONY: list of false targets, no check */ -extern obj_t *default_tgt; /* Current or Default target */ -extern date_t curtime; /* current fime */ -extern date_t newtime; /* Special time newer than all XXX */ -extern char *gbuf; /* Global growable buffer */ -extern char *gbufend; /* Current end of growable buffer */ -extern int gbufsize; /* Current size of buffer (bufend - buf) */ -extern BOOL found_make; /* Did we expand the $(MAKE) macro? */ - -extern int lastc; /* last input character */ -extern int firstc; /* first character in line */ -extern char *mfname; /* name of current make file */ -extern int lineno; /* current line number */ -extern int col; /* current column */ - -extern char Nullstr[]; /* global empty string */ -extern obj_t *NullObj; /* global empty string obj */ -extern char slash[]; /* string holding path delimiter */ -extern int slashlen; /* strlen(slash) */ -#define SLASH PATH_DELIM - -extern patr_t *Patrules; -extern patr_t **pattail; - -extern char chartype[256]; - -/* - * Definitiond for chartype[] bits: - */ -#define DYNCHAR 0x01 -#define NUMBER 0x02 - -/* - * Definitions for Makefile Index values - * The values need to be kept in sync with initmakefiles() in make.c - */ -#define MF_IDX_IMPICIT 0 /* Implicit rules */ -#define MF_IDX_ENVIRON 1 /* Environment strings */ -#define MF_IDX_MAKEFILE 2 /* Default make file */ -#define MF_IDX_BASE MF_IDX_DEFAULT diff -Nru smake-1.2a41/psmake/MAKE-sh smake-1.2a49/psmake/MAKE-sh --- smake-1.2a41/psmake/MAKE-sh 2007-02-13 17:05:49.000000000 +0000 +++ smake-1.2a49/psmake/MAKE-sh 2009-10-29 23:33:08.000000000 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -#ident "@(#)MAKE-sh 1.2 07/02/13 " +#ident "@(#)MAKE-sh 1.9 09/10/30 " ############################################################################### # # The shell variables CFLAGS & LDFLAGS may be used to pass additional flags @@ -7,6 +7,79 @@ # ############################################################################### +forceconfig="no" + +while [ x"$1" != x ]; do + case $1 in + -help) + echo "Usage: $0 [options]" + echo "Options:" + echo " -force-config Force a new 'configure' run" + echo "" + echo "Environment variables:" + echo "CC= The C-compiler to use" + echo "CC_OPT= The Options for the C-compiler (e.g. -O)" + echo "CFLAGS= Additional C-compiler flags" + echo "LDFLAGS= Additional Linker flags" + exit + continue;; + + -force-config) forceconfig="yes" + shift + continue;; + + *) echo "$0: Illegal parameter '$1'." + exit 1 + continue;; + esac +done + +# +# Check whether the configure script is present. If we are compiling from a +# clean SCCS tree, this file is missing because configure is a compilation +# result created by autoconf. +# +srcroot=.. +if [ -d ${srcroot}/autoconf ]; then + : +else + srcroot=../.. +fi +if [ ! -r ${srcroot}/autoconf/configure ]; then + (cd ${srcroot}/autoconf; sh ./autoconf) +fi +if [ ! -d ${srcroot}/RULES/. ]; then + (cd ${srcroot}; sh ./MKLINKS) +fi +if [ ! -r ${srcroot}/RULES/ldummy.lnk ]; then + (cd ${srcroot}/RULES/.; sh ./MKLINKS) +fi + +# +# Check whether the source files are present. If we are compiling from a +# clean SCCS tree, these files are missing because they are links to the +# original source at the original location. +# +echo "Checking for source files..." +if [ ! -r make.c ]; then + echo "Source files are not present..." + + # + # Check if the current system allows to create symlinks + # + lnfiles="sh lnfiles" + rm -f xxzzy.123 xxzzy.345 + echo test > xxzzy.123 + ln -s xxzzy.123 xxzzy.345 + test $? = 0 || lnfiles="sh cpfiles" + test -r xxzzy.345 || lnfiles="sh cpfiles" + rm -f xxzzy.123 xxzzy.345 + + echo "Creating links to source files..." + sh rmlinks + ${lnfiles} +fi + # # Check if the current system allows to create symlinks # If not, it seems that all symlinks appear to be plain files of size 0 @@ -29,6 +102,8 @@ CC=${CC-cc} CF= LF= +INCLUDE="-Iinclude -I." +DEFINES="-DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO" o=o if [ $ENV_CC = none ]; then @@ -51,21 +126,49 @@ # # Set dynamic linking and auto .exe suffix for OS/2 # -if [ $SYSTEM = OS/2 ]; then +if [ "$SYSTEM" = OS/2 ]; then LF="-Zexe -Zcrtdll" fi # # Set stack size to 256k on QNX # -if [ $SYSTEM = QNX -a $CC != gcc ]; then +if [ "$SYSTEM" = QNX -a $CC != gcc ]; then LF="-N 256k" fi +# +# VMS does not like -Iinclude, catch "OpenVMS" case also +# +case "$SYSTEM" in + +*VMS*) + # + # Default to cc on VMS + # + if [ $ENV_CC = none ]; then + CC=cc + fi + INCLUDE="-I./include -I." + DEFINES="$DEFINES -D_USE_STD_STAT -DNO_OPENFD_SRC" + if [ ! -r config.cache ]; then + : > config.cache + fi + if [ ! -r xconfig.h ]; then + : > xconfig.h + fi + ;; +esac echo "SYSTEM: $SYSTEM" echo "CC: $CC" echo "OPT: $OPT" echo "CFLAGS: $CF" +echo "INCLUDE: $INCLUDE" +echo +if [ "$forceconfig" = "yes" ]; then + echo "Removing old configure run results..." + rm -f config.cache xconfig.h +fi if [ -r config.cache ]; then echo "Using old configure run results..." else @@ -76,41 +179,52 @@ fi fi +# +# Check whether "configure" worked or whether there is a compiler problem +# +if [ ! -r xconfig.h ]; then + echo + echo "Configure did not create 'xconfig.h'. Check for Compiler problems." + echo "Cannot continue..." + exit 1 +fi + set -x -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO make.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO readfile.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO parse.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO update.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO rules.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO archconf.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DSCHILY_PRINT -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO memory.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO astoi.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO astoll.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO comerr.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO error.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO format.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO jsprintf.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO jssnprintf.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO saveargs.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO seterrno.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO strcatl.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO strlcpy.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO strncpy.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO streql.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO getargs.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO geterrno.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO movebytes.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO fillbytes.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO raisecond.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO rename.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO fileopen.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO fcons.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO cvmod.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO flag.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO dat.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO filewrite.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO fileread.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO fileseek.c -$CC $OPT $CF $CFLAGS -c -Iinclude -I. -DSCHILY_BUILD -DNO_FLOATINGPOINT -DNO_SCANSTACK -DNO_USG_STDIO niread.c -$CC $LF $LDFLAGS -o smake make.$o readfile.$o parse.$o update.$o rules.$o archconf.$o memory.$o astoi.$o astoll.$o comerr.$o error.$o format.$o jsprintf.$o jssnprintf.$o saveargs.$o seterrno.$o strcatl.$o strlcpy.$o strncpy.$o streql.$o getargs.$o geterrno.$o movebytes.$o fillbytes.$o raisecond.$o rename.$o fileopen.$o fcons.$o cvmod.$o flag.$o dat.$o filewrite.$o fileread.$o fileseek.$o niread.$o +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT make.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT readfile.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT parse.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT update.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT rules.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT archconf.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES -DSCHILY_PRINT memory.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES astoi.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES astoll.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES comerr.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES error.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES format.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES jsprintf.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES jssnprintf.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES saveargs.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES seterrno.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES strcatl.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES strlcpy.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES strncpy.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES streql.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES getargs.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES geterrno.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES movebytes.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fillbytes.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES raisecond.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES rename.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fileopen.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fcons.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES cvmod.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES flag.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES dat.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES filewrite.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fileread.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES fileseek.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES niread.c +$CC $OPT $CF $CFLAGS -c $INCLUDE $DEFINES niwrite.c +$CC $LF $LDFLAGS -o smake make.$o readfile.$o parse.$o update.$o rules.$o archconf.$o memory.$o astoi.$o astoll.$o comerr.$o error.$o format.$o jsprintf.$o jssnprintf.$o saveargs.$o seterrno.$o strcatl.$o strlcpy.$o strncpy.$o streql.$o getargs.$o geterrno.$o movebytes.$o fillbytes.$o raisecond.$o rename.$o fileopen.$o fcons.$o cvmod.$o flag.$o dat.$o filewrite.$o fileread.$o fileseek.$o niread.$o niwrite.$o diff -Nru smake-1.2a41/psmake/memory.c smake-1.2a49/psmake/memory.c --- smake-1.2a41/psmake/memory.c 2006-10-12 15:17:37.000000000 +0100 +++ smake-1.2a49/psmake/memory.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,266 +0,0 @@ -/* @(#)memory.c 1.13 06/10/12 Copyright 1985-2006 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)memory.c 1.13 06/10/12 Copyright 1985-2006 J. Schilling"; -#endif -/* - * Make program - * Memory allocation routines - * - * Copyright (c) 1985-2006 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include "make.h" - -EXPORT char *gbuf; -EXPORT char *gbufend; -EXPORT int gbufsize; - -EXPORT void *__realloc __PR((void *ptr, size_t size, char *msg)); -LOCAL char *checkalloc __PR((unsigned int size)); -#ifdef DEBUG -EXPORT void prmem __PR((void)); -#endif -EXPORT char *fastalloc __PR((unsigned int size)); -EXPORT void freelist __PR((list_t *l)); -EXPORT char *strsave __PR((char *p)); -EXPORT char *initgbuf __PR((int size)); -EXPORT char *growgbuf __PR((char *p)); - -#ifdef DEBUG -char *heapanfang; -char *heapende; -int sumfastfree; -int countfastfree; -#endif - -EXPORT void * -__realloc(ptr, size, msg) - void *ptr; - size_t size; - char *msg; -{ - void *ret; - - if (ptr == NULL) - ret = malloc(size); - else - ret = realloc(ptr, size); - if (ret == NULL) { - comerr("Cannot realloc memory for %s.\n", msg); - /* NOTREACHED */ - } - return (ret); -} - -/* - * Memory allocation with error handling - */ -LOCAL char * -checkalloc(size) - unsigned size; -{ - char *result; - - if ((result = malloc(size)) == NULL) - comerr("No memory\n"); -#ifdef DEBUG - if (heapanfang == 0) - heapanfang = result; - if (heapende < (result + size)) - heapende = result + size; -#endif - return (result); -} - - -LOCAL char **ffstack; - -#ifdef DEBUG -/* - * Print memory usage. Used to debug 'smake' size at end of execution. - */ -EXPORT void -prmem() -{ - int i = 0; - char **p = ffstack; - - while (p) { - i++; - p = (char **)*p; - } - printf("start: %lX end: %lX size: %d freed: %d, freecnt: %d, faststacksize: %d\n", - (long)heapanfang, (long)heapende, heapende - heapanfang, - sumfastfree, countfastfree, i); - printf("gbufsize: %d\n", gbufsize); -} -#endif - - -/* - * malloc() needs 16 bytes for each allocated chunk. - * We need to allocate 8 bytes in most cases (hundereds or thousands of - * times) and therefore try to optimize things. - */ -EXPORT char * -fastalloc(size) - unsigned size; -{ - static char *spc = NULL; - static char *spcend = NULL; - register char *result = spc; - - /* - * Round things up to sizeof (ptr) - * XXX This may not work for double * or 64 Bit architectures. - * XXX Should rather include schily/align.h and use the right - * XXX macros. - */ -/*#define round_up(x) ((x) + (4 - ((x) & 3)))*/ -#define ALIGN_PTR (sizeof (char *)) -#define ALIGN_PMASK (sizeof (char *)-1) -/*#define round_up(x) ((x) + (ALIGN_PTR - ((x) & ALIGN_PMASK)))*/ -#define round_up(x) ((x) + (ALIGN_PTR - 1 - (((x)-1) & ALIGN_PMASK))) - - size = round_up(size); - - if (ffstack && size == sizeof (list_t)) { - result = (char *)ffstack; - ffstack = (char **)*ffstack; - return (result); - } - - if (result + size > spcend) { - - if (size >= 4*sizeof (long)) - return (checkalloc(size)); /* keep rest of space */ - - spc = result = checkalloc(512); - spcend = result + 512; - } - spc += size; - return (result); -} - -/* - * Return a chunk of storage to the fast allocation stack for re-usage - * by fastalloc(). - */ -EXPORT void -fastfree(p, size) - char *p; - unsigned int size; -{ - char **pp; - - if (size != sizeof (list_t)) - comerrno(EX_BAD, "Panic: fastfree size.\n"); -#ifdef DEBUG - sumfastfree += size; - countfastfree++; -#endif - pp = (char **)p; - *pp = (char *)ffstack; - ffstack = pp; -} - -/* - * Free a list chain. Don't free the objects behind as they might - * be still in use. - */ -EXPORT void -freelist(l) - register list_t *l; -{ - register list_t *next; - - while (l) { - next = l->l_next; - fastfree((char *)l, sizeof (*l)); - l = next; - } -} - -/* - * Copy a string into allocated memory and return a pointer to the allocated - * memory. - */ -EXPORT char * -strsave(p) - char *p; -{ - unsigned i = strlen(p) + 1; - char *res = fastalloc(i); - - if (i > 16) { - movebytes(p, res, (int) i); - } else { - char *p2 = res; - - while ((*p2++ = *p++) != '\0') { - ; - /* LINTED */ - } - } - return (res); -} - -/* - * Create growable general purpose buffer. - */ -EXPORT char * -initgbuf(size) - int size; -{ - if (gbuf) { - if (size <= gbufsize) - return (gbuf); - free(gbuf); - } - gbuf = checkalloc((unsigned) (gbufsize = size)); - gbufend = gbuf + size; - return (gbuf); -} - -/* - * Grow growable general purpose buffer. - */ -EXPORT char * -growgbuf(p) - char *p; -{ - register char *new; - register int newsize = gbufsize; - - if (gbufsize == 0) - return (initgbuf(512)); - if (newsize < 8192) - newsize *= 2; - else - newsize += 8192; - new = checkalloc((unsigned)newsize); - movebytes(gbuf, new, gbufsize); - free(gbuf); - p += new - gbuf; /* Re-adjust pointer into callers buffer. */ - gbuf = new; - gbufend = new + newsize; - gbufsize = newsize; - return (p); -} diff -Nru smake-1.2a41/psmake/movebytes.c smake-1.2a49/psmake/movebytes.c --- smake-1.2a41/psmake/movebytes.c 2006-09-25 22:41:48.000000000 +0100 +++ smake-1.2a49/psmake/movebytes.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,121 +0,0 @@ -/* @(#)movebytes.c 1.15 06/09/25 Copyright 1985, 1989, 1995-2006 J. Schilling */ -/* - * move data - * - * Copyright (c) 1985, 1989, 1995-2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include - -#define DO8(a) a; a; a; a; a; a; a; a; - -EXPORT char * -movebytes(fromv, tov, cnt) - const void *fromv; - void *tov; - int cnt; -{ - register const char *from = fromv; - register char *to = tov; - register int n; - - /* - * If we change cnt to be unsigned, check for == instead of <= - */ - if ((n = cnt) <= 0) - return (to); - - if (from >= to) { - /* - * source is on higher adresses than destination: - * move bytes forwards - */ - if (n >= (int)(8 * sizeof (long))) { - if (l2aligned(from, to)) { - register const long *froml = (const long *)from; - register long *tol = (long *)to; - register int rem = n % (8 * sizeof (long)); - - n /= (8 * sizeof (long)); - do { - DO8 (*tol++ = *froml++); - } while (--n > 0); - - from = (const char *)froml; - to = (char *)tol; - n = rem; - } - - if (n >= 8) { - n -= 8; - do { - DO8 (*to++ = *from++); - } while ((n -= 8) >= 0); - n += 8; - } - - if (n > 0) do { - *to++ = *from++; - } while (--n > 0); - return (to); - } - if (n > 0) do { - *to++ = *from++; - } while (--n > 0); - return (to); - } else { - char *ep; - - /* - * source is on lower adresses than destination: - * move bytes backwards - */ - to += n; - from += n; - ep = to; - if (n >= (int)(8 * sizeof (long))) { - if (l2aligned(from, to)) { - register const long *froml = (const long *)from; - register long *tol = (long *)to; - register int rem = n % (8 * sizeof (long)); - - n /= (8 * sizeof (long)); - do { - DO8 (*--tol = *--froml); - } while (--n > 0); - - from = (const char *)froml; - to = (char *)tol; - n = rem; - } - if (n >= 8) { - n -= 8; - do { - DO8 (*--to = *--from); - } while ((n -= 8) >= 0); - n += 8; - } - if (n > 0) do { - *--to = *--from; - } while (--n > 0); - return (ep); - } - if (n > 0) do { - *--to = *--from; - } while (--n > 0); - return (ep); - } -} diff -Nru smake-1.2a41/psmake/niread.c smake-1.2a49/psmake/niread.c --- smake-1.2a41/psmake/niread.c 2006-09-26 12:16:36.000000000 +0100 +++ smake-1.2a49/psmake/niread.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -/* @(#)niread.c 1.13 06/09/26 Copyright 1986, 1996-2003 J. Schilling */ -/* - * Non interruptable read - * - * Copyright (c) 1986, 1996-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include "schilyio.h" - -EXPORT int -_niread(f, buf, count) - int f; - void *buf; - int count; -{ - int ret; - int oerrno = geterrno(); - - while ((ret = read(f, buf, count)) < 0 && geterrno() == EINTR) { - /* - * Set back old 'errno' so we don't change the errno visible - * to the outside if we did not fail. - */ - seterrno(oerrno); - } - return (ret); -} diff -Nru smake-1.2a41/psmake/parse.c smake-1.2a49/psmake/parse.c --- smake-1.2a41/psmake/parse.c 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/psmake/parse.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,1528 +0,0 @@ -/* @(#)parse.c 1.87 07/03/07 Copyright 1985 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)parse.c 1.87 07/03/07 Copyright 1985 J. Schilling"; -#endif -/* - * Make program - * Parsing routines - * - * Copyright (c) 1985 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include /* include sys/types.h for schily/schily.h */ -#include -#include -#include -#include "make.h" - -#ifdef pdp11 -#define MAXOBJS 64 /* Max # of targets in target list. */ -#else -#define MAXOBJS 512 /* Max # of targets in target list. */ -#endif - - -EXPORT void parsefile __PR((void)); -LOCAL void define_obj __PR((obj_t * obj, int n, int objcnt, int type, list_t * dep, cmd_t * cmd)); -LOCAL obj_t *define_dcolon __PR((obj_t *obj)); -LOCAL void listappend __PR((obj_t *obj, list_t *dep)); -LOCAL void define_patrule __PR((obj_t * obj, list_t * dep, cmd_t * cmd, int type)); -LOCAL void print_patrules __PR((FILE *f)); -LOCAL obj_t *check_ssuffrule __PR((obj_t *obj, list_t *dep)); -EXPORT void define_var __PR((char *name, char *val)); -LOCAL int getobjname __PR((void)); -LOCAL obj_t *getobj __PR((void)); -LOCAL int getname __PR((int type)); -LOCAL obj_t *getnam __PR((int type)); -LOCAL int getln __PR((void)); -LOCAL list_t **listcat __PR((obj_t * obj, list_t ** tail)); -LOCAL list_t **mklist __PR((char *line, list_t ** tail, BOOL doexpand)); -LOCAL list_t *cplist __PR((list_t * l)); -LOCAL list_t **exp_list __PR((obj_t * o, list_t ** tail)); -LOCAL list_t *getlist __PR((int *typep)); -LOCAL BOOL is_shvar __PR((obj_t ** op, int *typep, list_t *** tailp)); -LOCAL list_t *getshvar __PR((int *typep)); -LOCAL cmd_t *getcmd __PR((void)); -LOCAL int exp_ovec __PR((obj_t ** ovec, int objcnt)); -LOCAL int read_ovec __PR((obj_t ** ovec, int *typep)); -EXPORT list_t *cvtvpath __PR((list_t *l)); -EXPORT BOOL nowarn __PR((char *name)); -LOCAL void warn __PR((char *, ...)) __printflike__(1, 2); -LOCAL void exerror __PR((char *, ...)) __printflike__(1, 2); -LOCAL obj_t *_objlook __PR((obj_t *table[], char *name, BOOL create)); -EXPORT obj_t *objlook __PR((char *name, BOOL create)); -EXPORT list_t *objlist __PR((char *name)); -EXPORT obj_t *ssufflook __PR((char *name, BOOL create)); -EXPORT BOOL check_ssufftab __PR((void)); -LOCAL void prvar __PR((obj_t * p)); -LOCAL void ptree __PR((obj_t * p, int n)); -EXPORT void printtree __PR((void)); -EXPORT void probj __PR((FILE *f, obj_t * o, int type)); -EXPORT void prtree __PR((void)); -LOCAL char *typestr __PR((int type)); -LOCAL void printobj __PR((FILE *f, obj_t ** ovec, int objcnt, int type, list_t * deplist, cmd_t * cmdlist)); - -/* - * parse the dependency file - * - * { ...} : - * { } - * - * = - * - * += - * - * :sh= - */ -EXPORT void -parsefile() -{ - int i, objcnt; - int type; - obj_t *ovec[MAXOBJS]; - list_t *deplist; - cmd_t *cmdlist; - - if (DoWarn) - error("Parsing file '%s'\n", mfname); - - if (Dmake > 0) - error(">>>>>>>>>>>>>>>> Reading makefile '%s'\n", mfname); - - lineno = 1; - col = 0; - getch(); - while (lastc != EOF) { - if (lastc == '\t') { - /* - * Skip leading white space that follows a TAB. - */ - while (lastc != EOF && (lastc == ' ' || lastc == '\t')) - getch(); - /* - * Abort if such a line is not empty or contains more - * than only a comment. This has the side effect that - * '^ include' will not work anymore. - */ - if (lastc != '\n') { - exerror( - "Unexpected character followed by nonblank '%c' <%o>", - lastc, lastc); - } - getch(); /* Eat up new line character */ - continue; /* Continue with next line */ - } - if ((objcnt = read_ovec(ovec, &type)) == 0) - continue; - - if (objcnt < 0) { - errmsgno(EX_BAD, "Objcount: %d Objects: ", -objcnt); - for (i = 0; i < -objcnt; i++) - error("'%s' ", ovec[i]->o_name); - error("\n"); - exerror("Too many target items"); - } - -#ifdef XXX /* Begin new code for include */ -printf("objcnt: %d ovec[0]: %s lastc: '%c'\n", objcnt, ovec[0]->o_name, lastc); -for (i = 0; i < objcnt; i++) - printf("name[%d] = %s ", i, ovec[i]->o_name); -printf("\n"); -#endif - if (lastc == '\n') { - if (streql(ovec[0]->o_name, "include") || - streql(ovec[0]->o_name, "-include")) { - for (i = 1; i < objcnt; i++) { - doinclude(ovec[i]->o_name, - ovec[0]->o_name[0] != '-'); - } - /* XXX freeobj ??? */ - continue; - } - if (streql(ovec[0]->o_name, "export")) { - for (i = 1; i < objcnt; i++) { - doexport(ovec[i]->o_name); - } - /* XXX freeobj ??? */ - continue; - } - if (streql(ovec[0]->o_name, "readonly")) { - for (i = 1; i < objcnt; i++) { - ovec[i]->o_flags |= F_READONLY; - } - /* XXX freeobj ??? */ - continue; - } - /* - * Any other word on the beginning of a line - * that is not followed by a ':' or a '=' is an error. - */ - } /* end new code for include */ - - if (lastc != ':' && lastc != '=') { - errmsgno(EX_BAD, "Objcount: %d Objects: ", objcnt); - for (i = 0; i < objcnt; i++) - error("'%s' ", ovec[i]->o_name); - error("\n"); - exerror("Missing : or =, got '%c' <%o>", lastc, lastc); - } - getch(); - deplist = getlist(&type); - if (type == SHVAR) - deplist = getshvar(&type); - - if (lastc == ';') { - lastc = '\t'; - firstc = '\t'; - } - - /* - * We should test for type == COLON only but unfortunately, - * the makefilesystem contained some simple pattern rule - * definitions that are written as: tgt_suff = list. - * We only allow what has been used in the makefilesystem. - * This changed in late 1999, we should keep support - * for it for at least 5 years. - */ -/* if (basetype(type) == COLON) {*/ - if (basetype(type) == COLON || - (basetype(type) == EQUAL && deplist && - ovec[0]->o_name[0] == '.')) { - cmdlist = getcmd(); - } else { - cmdlist = NULL; - } - while (lastc == '\n') - getch(); - for (i = 0; i < objcnt; i++) - define_obj(ovec[i], i, objcnt, type, deplist, cmdlist); - - if (Dmake > 0) - printobj(stderr, ovec, objcnt, type, deplist, cmdlist); - } - if (Dmake > 0) - error(">>>>>>>>>>>>>>>> End of makefile '%s'\n", mfname); -} - -/* - * Add dependency and command lists to a node in the object tree. - * Allow definitions to be overridden if the new definition in in - * a different file. - */ -LOCAL void -define_obj(obj, n, objcnt, type, dep, cmd) - register obj_t *obj; - int n; - int objcnt; - int type; - register list_t *dep; - cmd_t *cmd; -{ - /* - * If we have a list of targets with the same dependency list, - * we copy the list structure to be able to separately - * append new elements to each of the targets. - */ - if (n > 0) - dep = cplist(dep); - - if (objcnt == 1) { - if (basetype(type) == COLON && - strchr(obj->o_name, '%') != NULL) { - define_patrule(obj, dep, cmd, type); - return; - } - /* - * We should test for type == COLON too but unfortunately, - * the makefilesystem contained some simple pattern rule - * definitions that are written as: tgt_suff = list. - * This changed in late 1999, we should keep support - * for it for at least 5 years. - */ -/* if (type == COLON && && dep != NULL && cmd != NULL) {*/ - if (dep != NULL && cmd != NULL) { - obj = check_ssuffrule(obj, dep); - } - } else { - obj->o_flags |= F_MULTITARGET; - } - if (obj->o_type == 0) - obj->o_type = type; - - /* - * Save first target that does not start with - * a dot in case no arguments have been supplied - * to make. - */ - if (n == 0 && !default_tgt && basetype(type) == COLON && - (obj->o_name[0] != '.' || obj->o_name[1] == SLASH)) - default_tgt = obj; - - if (type == DCOLON) - obj = define_dcolon(obj); - - /* - * XXX Probleme gibt es mit der Gleichbehandlung von ':' und '=' typen. - * XXX So definiert 'smake' MAKE_NAME= smake und später kommt evt. - * XXX smake: $(OBJLIST) - */ - - - if (obj->o_flags & F_READONLY) /* Check for "read only" */ - return; - obj->o_flags |= Mflags; /* Add current global flags */ - - /* - * Definition in new Makefile overrides existing definitions - */ - if ((obj->o_fileindex < MF_IDX_MAKEFILE || obj->o_type == EQUAL) && -/* if (((obj->o_fileindex != Mfileindex) || (obj->o_type == EQUAL)) &&*/ - (type != ADDMAC) && - !streql(obj->o_name, ".SUFFIXES")) { - - if (DoWarn) - warn("'%s' RE-defined", obj->o_name); - if (obj->o_fileindex == MF_IDX_ENVIRON) { - obj->o_fileindex = Mfileindex; - obj->o_type = type; - } - obj->o_list = dep; - obj->o_cmd = cmd; - return; - } - - /* - * Add new definitions to list. - * Ignore definitions already in list. - */ - listappend(obj, dep); - - if (obj->o_cmd != (cmd_t *) NULL) { - if (cmd != (cmd_t *) NULL) { - warn("Multiple commands defined for '%s'", obj->o_name); - /* XXX freelist()/freecmd() ??? */ - } - } else { - obj->o_cmd = cmd; - } -} - -/* - * Define an intermediate target for Double Colon :: Rules - */ -LOCAL obj_t * -define_dcolon(obj) - register obj_t *obj; -{ -static int serial = 0; - obj_t *o; - list_t *l; - list_t *lo; - char _name[TYPICAL_NAMEMAX]; - char *name = _name; - size_t namelen = sizeof (_name); - char *np = NULL; - - if (obj->o_namelen + 16 >= namelen) { - namelen = obj->o_namelen + 16; - name = np = __realloc(np, namelen, "dcolon target"); - } - snprintf(name, namelen, "::%d@%s", ++serial, obj->o_name); - o = objlook(name, TRUE); - if (np) - free(np); - o->o_type = ':'; - o->o_flags |= F_DCOLON; - l = obj->o_list; - lo = (list_t *) fastalloc(sizeof (list_t)); - lo->l_next = NULL; - lo->l_obj = o; - - listappend(obj, lo); - - o->o_node = obj; - return (o); -} - -/* - * Append new definitions to dependencies in o_list, but - * ignore them if they are already in the list. - */ -LOCAL void -listappend(obj, dep) - register obj_t *obj; - register list_t *dep; -{ - if (obj->o_list != (list_t *) NULL) { - register list_t *l = obj->o_list; - - if (dep == NULL) { - /* - * Allow to clear special targets. - */ - if (streql(obj->o_name, ".SUFFIXES") || - streql(obj->o_name, ".DEFAULT") || - streql(obj->o_name, ".NO_WARN") || - streql(obj->o_name, ".SCCS_GET") || - streql(obj->o_name, ".SPACE_IN_NAMES")) - obj->o_list = NULL; - return; - } - - if (DoWarn) - warn("'%s' ADD-defined", obj->o_name); - /* - * if not already head of list, try to append ... - */ - if (l != dep) { - while (l->l_next && l->l_next != dep) - l = l->l_next; - if (l->l_next == (list_t *) NULL) - l->l_next = dep; - } - } else { - obj->o_list = dep; - } -} - -patr_t *Patrules; -patr_t **pattail = &Patrules; - -/* - * Parse a pattern rule definition. This is a special type of implicit rules. - */ -LOCAL void -define_patrule(obj, dep, cmd, type) - obj_t *obj; - list_t *dep; - cmd_t *cmd; - int type; -{ - patr_t *p; - char *s; - - p = (patr_t *) fastalloc(sizeof (*p)); - - p->p_name = obj; - p->p_cmd = cmd; - s = strchr(obj->o_name, '%'); - if (s != NULL) { - *s = '\0'; - p->p_tgt_prefix = strsave(obj->o_name); - p->p_tgt_suffix = strsave(&s[1]); - *s = '%'; - } else { - p->p_tgt_prefix = strsave(Nullstr); - p->p_tgt_suffix = strsave(obj->o_name); - } - s = strchr(dep->l_obj->o_name, '%'); - if (s != NULL) { - *s = '\0'; - p->p_src_prefix = strsave(dep->l_obj->o_name); - p->p_src_suffix = strsave(&s[1]); - *s = '%'; - } else { - p->p_src_prefix = strsave(Nullstr); - p->p_src_suffix = strsave(dep->l_obj->o_name); - } - p->p_tgt_pfxlen = strlen(p->p_tgt_prefix); - p->p_tgt_suflen = strlen(p->p_tgt_suffix); - p->p_src_pfxlen = strlen(p->p_src_prefix); - p->p_src_suflen = strlen(p->p_src_suffix); - p->p_flags = 0; - if (type == DCOLON) - p->p_flags |= PF_TERM; /* Make it a termiator rule */ - *pattail = p; - pattail = &p->p_next; - p->p_next = 0; -} - -/* - * Print the complete list of pattern rules. - */ -LOCAL void -print_patrules(f) - FILE *f; -{ - patr_t *p = Patrules; - cmd_t *c; - - while (p) { - fprintf(f, "%s%%%s:%s %s%%%s\n", - p->p_tgt_prefix, p->p_tgt_suffix, - (p->p_flags & PF_TERM) ? ":":"", - p->p_src_prefix, p->p_src_suffix); - - for (c = p->p_cmd; c; c = c->c_next) - fprintf(f, "\t%s\n", c->c_line); - p = p->p_next; - } -} - -/* - * Check for a simple suffix rule definition. - * In case we found a simple suffix rule definition, return a new obj_t *. - */ -LOCAL obj_t * -check_ssuffrule(obj, dep) - obj_t *obj; - list_t *dep; -{ - register char *name = obj->o_name; - register list_t *l; - extern int xssrules; - - /* - * Check if the first charater of the target is a '.' or - * if the target name equals "", but make sure this is - * not a vanilla target that just starts with "./". - */ - if ((name[0] == '.' && strchr(name, SLASH) == NULL) || - (name[0] == '"' && name[1] == '"' && name[2] == '\0')) { - - /* - * All dependency names must start with a '.' - * and may not contain a SLASH. - */ - for (l = dep; l; l = l->l_next) { - if (l->l_obj->o_name[0] != '.') - return (obj); - if (strchr(l->l_obj->o_name, SLASH) != NULL) - return (obj); - } - obj = ssufflook(obj->o_name, TRUE); - xssrules++; - } - return (obj); -} - -/* - * Define a macro as in the form macro=value. - * Value may only be one word. - */ -EXPORT void -define_var(name, val) - char *name; - char *val; -{ - obj_t *o; - obj_t *ov; - list_t *list; - list_t **tail = &list; - - o = objlook(name, TRUE); - if (o->o_flags & F_READONLY) /* Check for "read only" */ - return; - o->o_flags |= Mflags; /* Add current global flags */ - if (*val) { /* Only if not empty */ - ov = objlook(val, TRUE); - tail = listcat(ov, tail); - } - *tail = (list_t *) NULL; - o->o_list = list; - o->o_type = EQUAL; -} - -#ifdef NEEDED -/* - * Define a macro as in the form macro=vallist. - * Vallist may be a list of words that is white space separated in one string. - */ -EXPORT void -define_lvar(name, vallist) - char *name; - char *vallist; -{ - obj_t *o; - obj_t *ov; - list_t *list; - list_t **tail = &list; - - o = objlook(name, TRUE); - if (o->o_flags & F_READONLY) /* Check for "read only" */ - return; - o->o_flags |= Mflags; /* Add current global flags */ - tail = mklist(vallist, tail, FALSE); - *tail = (list_t *) NULL; - o->o_list = list; - o->o_type = EQUAL; -} - -/* - * Return a list_t pointer to the nth word in a macro value list. - */ -list_t * -varvaln(name, n) - char *name; - int n; -{ - obj_t *o = objlook(name, FALSE); - - if (o) - return (list_nth(o->o_list, n)); - return ((list_t *)0); -} -#endif /* NEEDED */ - -#define white(c) (c == ' ' || c == '\t') - -/* - * Read a space separated word from current Makefile. - * Used for target list. Stop at space, ':' '=' and ','. - * Returns the length of the word. - */ -LOCAL int -getobjname() -{ - register int n = 0; - register char *p = gbuf; - register int beg = 0; - register int end = 0; - register int nestlevel = 0; - - while (white(lastc)) - getch(); /* Skip white space. */ - if (lastc == '$') { - switch (beg = peekch()) { - - case '(': end = ')'; break; - case '{': end = '}'; break; - - default: - beg = end = -1; - } - } - while (lastc != EOF && (' ' < lastc || nestlevel > 0)) { - if (lastc == beg) - nestlevel++; - else if (lastc == end) - nestlevel--; - if (nestlevel <= 0) { - if (lastc == ':' || lastc == '=' || lastc == ',') - break; - } -#ifdef __CHECK_NAMEMAX_IN_GETOBJNAME__ - if (n >= NAMEMAX - 2) - exerror("Name more than %d chars long", NAMEMAX - 2); -#endif /* __CHECK_NAMEMAX_IN_GETOBJNAME__ */ - if (p >= gbufend) - p = growgbuf(p); - *p++ = lastc; - if (nestlevel <= 0 && lastc == '\\') { - if (white(peekch()) && objlist(".SPACE_IN_NAMES")) { - getch(); - p--; - *p++ = lastc; - } - } - n++; - getch(); - } - *p = '\0'; /* Terminate with null char */ - return (n); -} - -/* - * Read a target file name. - */ -LOCAL obj_t -*getobj() -{ - return (getobjname() ? objlook(gbuf, TRUE) : (obj_t *) NULL); -} - -/* - * Read a space separated word from current Makefile. - * General purpose version for dependency list. - * Returns the length of the word. - */ -LOCAL int -getname(type) - int type; -{ - register int n = 0; - register char *p = gbuf; - register int beg = 0; - register int end = 0; - register int nestlevel = 0; - - if (type == ':') - type = ';'; - else - type = '\0'; - - while (white(lastc)) - getch(); /* Skip white space. */ - if (lastc == '$') { - switch (beg = peekch()) { - - case '(': end = ')'; break; - case '{': end = '}'; break; - - default: - beg = end = -1; - } - } - while (lastc != EOF && (' ' < lastc || nestlevel > 0)) { - if (lastc == beg) - nestlevel++; - else if (lastc == end) - nestlevel--; - if (nestlevel <= 0) { - if (lastc == type) - break; - } -#ifdef __CHECK_NAMEMAX_IN_GETNAME__ - if (n >= NAMEMAX - 2) - exerror("Name more than %d chars long", NAMEMAX - 2); -#endif /* __CHECK_NAMEMAX_IN_GETNAME__ */ - if (p >= gbufend) - p = growgbuf(p); - *p++ = lastc; - if (nestlevel <= 0 && lastc == '\\') { - if (white(peekch()) && objlist(".SPACE_IN_NAMES")) { - getch(); - p--; - *p++ = lastc; - } - } - n++; - getch(); - } - *p = '\0'; /* Terminate with null char */ - return (n); -} - -/* - * Read a dependency file name. - */ -LOCAL obj_t * -getnam(type) - int type; -{ - return (getname(type) ? objlook(gbuf, TRUE) : (obj_t *) NULL); -} - -/* - * Reads a line from current Makefile. - * Returns the length of the string. - */ -LOCAL int -getln() -{ - register int n = 0; - register char *p = gbuf; - - while (white(lastc)) - getch(); /* Skip white space. */ - while (lastc != EOF && lastc != '\n') { -#ifdef __CHECK_NAMEMAX_IN_GETLN__ - if (n >= NAMEMAX - 2) { - exerror("Line more than %d chars long", NAMEMAX - 2); - } -#endif /* __CHECK_NAMEMAX_IN_GETLN__ */ - if (p >= gbufend) - p = growgbuf(p); - *p++ = lastc; - n++; - getch(); - } - *p = '\0'; /* Terminate with null char */ - return (n); -} - -/* - * Add one new object to the end of a list of objects. - */ -LOCAL list_t ** -listcat(obj, tail) - obj_t *obj; - list_t **tail; -{ - list_t *item; - - *tail = item = (list_t *) fastalloc(sizeof (list_t)); - item->l_obj = obj; - tail = &item->l_next; - return (tail); -} - -/* - * Make a list of objects by parsing a line - * and cutting it at whitespaces. - */ -LOCAL list_t ** -mklist(line, tail, doexpand) - register char *line; - register list_t **tail; - BOOL doexpand; -{ - register obj_t *o; - register char *p; - -/*printf("Line: '%s'\n", line);*/ - - for (p = line; *p; ) { - while (*p && white(*p)) - p++; - line = p; - while (*p) { - if (white(*p)) { - *p++ = '\0'; - if (*line) - break; - } - p++; - } -/*printf("line: '%s'\n", line);*/ - /* - * If the list ends with white space, we will see - * an empty string at the end of the list unless - * we apply this test. - */ - if (*line == '\0') - break; - o = objlook(line, TRUE); - if (doexpand) - tail = exp_list(o, tail); - else - tail = listcat(o, tail); - } - return (tail); -} - -/* - * Copy a list. - * Generate new list pointers and re-use the old obj pointers. - */ -LOCAL list_t * -cplist(l) - list_t *l; -{ - list_t *list; - register list_t **tail = &list; - - while (l) { - tail = listcat(l->l_obj, tail); - l = l->l_next; - } - *tail = (list_t *) NULL; - return (list); -} - -/* - * Expand one object name using make macro definitions. - * Add the new objects to the end of a list of objects. - */ -LOCAL list_t ** -exp_list(o, tail) - obj_t *o; - list_t **tail; -{ - char *name; - char *xname; - - name = o->o_name; - if (strchr(name, '$')) { - xname = substitute(name, NullObj, 0, 0); - if (streql(name, xname)) { - printf("eql: %s\n", name); - tail = listcat(o, tail); - } else { -/*printf("Sxname: %s <- %s\n", xname, name);*/ - tail = mklist(xname, tail, FALSE); - } - } else { - tail = listcat(o, tail); - } - *tail = (list_t *) NULL; - return (tail); -} - -#ifdef NEEDED -/* - * Expand a list of object names using make macro definitions. - * Add the new objects to the end of a list of objects. - */ -LOCAL list_t * -exp_olist(l) - list_t *l; -{ - list_t *list; - list_t **tail = &list; - - while (l) { - tail = exp_list(l->l_obj, tail); - l = l->l_next; - } - *tail = (list_t *) NULL; - return (list); -} -#endif /* NEEDED */ - -/* - * Read a list of dependency file names. - */ -LOCAL list_t * -getlist(typep) - int *typep; -{ - list_t *list; - list_t **tail = &list; - obj_t *o; - int type = basetype(*typep); - BOOL first = TRUE; - - if (type == '=') { - int n; -#ifdef nono - char *p; -#endif - - n = getln(); - -#ifdef nono /* Do not kill trailing whitespace !!! */ - - p = &gbuf[n-1]; - while (white(*p)) - p--; - *++p = '\0'; -#endif - /* - * Only add to list if right hand side is not completely white. - */ - if (n) { - o = objlook(gbuf, TRUE); - if (*typep == ASSIGN) - tail = exp_list(o, tail); - else - tail = listcat(o, tail); - } - } else while ((o = getnam(type)) != (obj_t *) NULL) { - if (type == '=') { - tail = listcat(o, tail); - } else { - if (first) { - first = FALSE; - if (is_shvar(&o, typep, &tail)) - break; - } - tail = exp_list(o, tail); - } - } - *tail = (list_t *) NULL; - return (list); -} - -/* - * Check if a definition for immediate shell expansion follows. - */ -LOCAL BOOL -is_shvar(op, typep, tailp) - obj_t **op; - int *typep; - list_t ***tailp; -{ - obj_t *o = *op; - - if (streql(o->o_name, "sh=")) { - *typep = SHVAR; - return (TRUE); - } - if (streql(o->o_name, "sh")) { - if ((o = getnam(*typep)) == (obj_t *)NULL) { - return (FALSE); - } - if (streql(o->o_name, "=")) { - *typep = SHVAR; - return (TRUE); - } else { - *tailp = exp_list(*op, *tailp); - *op = o; - } - } - return (FALSE); -} - -/* - * read a line and expand by shell - */ -LOCAL list_t * -getshvar(typep) - int *typep; -{ - list_t *list; - register list_t **tail = &list; - char *p; - - *typep = '='; - getln(); - p = shout(gbuf); - - tail = mklist(p, tail, FALSE); - *tail = (list_t *) NULL; - return (list); -} - -/* - * Read a list of command lines that follow a dependency list. - */ -LOCAL cmd_t * -getcmd() -{ - cmd_t *list; - register cmd_t *item, **tail = &list; - register char *p; - - setincmd(TRUE); /* Switch reader to command mode */ - if (lastc == '\n') /* Not a ';' command type */ - getch(); - - while (lastc != EOF && (firstc == '\t' || firstc == '#')) { - /* - * We handle comment in command lines as in old UNIX 'make' and - * not as required by POSIX. A command line that starts with - * a '#' (the following code) is handled as usual. - * A '#' inside a command line and escaped newlines are - * forwarded to the shell. This is needed to allow something - * like cc -# with SunPRO C. - */ - if (firstc == '#') { - skipline(); /* Skip commented out line */ - getch(); /* Skip newline character. */ - continue; - } - while (white(lastc)) - getch(); /* Skip white space. */ - - for (p = gbuf; lastc != EOF; getch()) { - if (lastc == '\n' && p[-1] != '\\') - break; - if (p >= gbufend) - p = growgbuf(p); - *p++ = lastc; - } - *p = '\0'; - *tail = item = (cmd_t *) fastalloc(sizeof (cmd_t)); - item->c_line = strsave(gbuf); - tail = &item->c_next; - - if (lastc == '\n') /* Skip newline character. */ - getch(); - } -/*printf("getcmd: lastc: %c %CX '%.20s'\n", lastc, lastc, readbufp);*/ - setincmd(FALSE); - *tail = (cmd_t *) NULL; - return (list); -} - -/* - * Expand a list of target names using make macro definitions. - */ -LOCAL int -exp_ovec(ovec, objcnt) - obj_t *ovec[]; - int objcnt; -{ - list_t *list; - list_t *l; - register list_t **tail = &list; - int i; - - if (objcnt == 0) - return (0); - /* - * Catch easy case. - */ - if (objcnt == 1 && (strchr(ovec[0]->o_name, '$') == NULL)) - return (objcnt); - - for (i = 0; i < objcnt; i++) { - tail = exp_list(ovec[i], tail); - *tail = (list_t *) NULL; - } - - for (i = 0; list; i++) { - if (i >= MAXOBJS) { - warn("Too many expanded target items"); - return (-i); - } - ovec[i] = list->l_obj; - l = list; - list = list->l_next; - fastfree((char *)l, sizeof (*l)); - } - return (i); -} - -/* - * Read a list of target names. - */ -LOCAL int -read_ovec(ovec, typep) - obj_t *ovec[]; - int *typep; -{ - obj_t *o; - int objcnt; - char *p; - int c; - -/*printf("read_ovec\n");*/ - for (objcnt = 0; lastc != EOF; ) { - o = getobj(); - c = lastc; - while (white(lastc)) - getch(); -/*printf("lastc: '%c'", lastc); if (o) printf("nameL %s\n", o->o_name);*/ - if (o != (obj_t *) NULL) { - p = o->o_name; - if (p[0] == '+' && p[1] == '\0' && c == '=') { - *typep = ADDMAC; - break; - } - if (objcnt >= MAXOBJS) { - warn("Too many target items"); - return (-objcnt); - } - ovec[objcnt++] = o; - } else { - if (lastc == '\n') { - getch(); - continue; - } - if (lastc == EOF && objcnt == 0) - break; - exerror("Missing object name"); - } - /* - * end of definition: - * colon, equal or end of line - */ - if (lastc == ':' && peekch() == ':') { - getch(); - *typep = DCOLON; - break; - } - if (lastc == ':' && peekch() == '=') { - getch(); - *typep = ASSIGN; - if (!nowarn(":=")) { - warn( - "Nonportable ':=' assignement found for macro '%s'.\n", - o->o_name); - } - break; - } - if (lastc == ':' || lastc == '=' || lastc == '\n') { - *typep = lastc; - break; - } - if (lastc == ',') - getch(); - } - /* - * XXX Achtung: UNIX make expandiert alles was links und rechts von ':' - * steht, sowie Variablennamen (links von '='). - */ - objcnt = exp_ovec(ovec, objcnt); - - return (objcnt); -} - -/* - * - */ -EXPORT list_t * -cvtvpath(l) - list_t *l; -{ - list_t *lsave; - list_t *list = (list_t *)0; - list_t **tail = &list; - char vpath[NAMEMAX]; - char *p1, *p2; - - if (l != NULL) { - for (p1 = l->l_obj->o_name, p2 = vpath; *p1; p2++) { - if ((*p2 = *p1++) == ':') - *p2 = ' '; - } - *p2 = '\0'; - tail = mklist(vpath, tail, TRUE); - *tail = (list_t *) NULL; - lsave = l = list; - - tail = &list; - - for (; l; l = l->l_next) { - tail = listcat(l->l_obj, tail); - tail = listcat(l->l_obj, tail); - } - *tail = (list_t *) NULL; - freelist(lsave); - } - if (DoWarn) - error("VPATH but no .SEARCHLIST\n"); - return (list); -} - - -EXPORT BOOL -nowarn(name) - char *name; -{ - list_t *l; - - for (l = objlist(".NO_WARN"); l != NULL; l = l->l_next) { - if (streql(l->l_obj->o_name, name)) - return (TRUE); - } - return (FALSE); -} - -/* - * NOTE: as long as warn() and exerror() use the global vars - * lineno, col and Mfileindex, - * we cannot use them at any other time than parse time. - */ - -/* - * Print a warning with text, line number, column and filename. - */ - -/* VARARGS1 */ -#ifdef PROTOTYPES -LOCAL void -warn(char *msg, ...) -#else -LOCAL void -warn(msg, va_alist) - char *msg; - va_dcl -#endif -{ - va_list args; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - if (!NoWarn) - errmsgno(EX_BAD, - "WARNING: %r in line %d col %d of '%s'\n", msg, args, - lineno, col, mfname); - va_end(args); -} - -/* - * Print an error message with text, line number, column and filename, then exit. - */ - -/* VARARGS1 */ -#ifdef PROTOTYPES -LOCAL void -exerror(char *msg, ...) -#else -LOCAL void -exerror(msg, va_alist) - char *msg; - va_dcl -#endif -{ - va_list args; - int len; - -#ifdef PROTOTYPES - va_start(args, msg); -#else - va_start(args); -#endif - errmsgno(EX_BAD, "%r in line %d col %d of '%s'\n", msg, args, - lineno, col, mfname); - va_end(args); - - len = getrdbufsize(); - if (len > 80) - len = 80; - if (Debug > 0) - errmsgno(EX_BAD, "Current read buffer is: '%.*s'\n", len, getrdbuf()); - comerrno(EX_BAD, "Bad syntax in '%s'.\n", mfname); -} - - -#define MyObjTabSize 128 /* # of Hash table entries (power of two) .*/ - -#define ObjHash(name) (name[0] & (MyObjTabSize - 1)) - -LOCAL obj_t *ObjTab[MyObjTabSize]; -LOCAL obj_t *SuffTab[MyObjTabSize]; -EXPORT obj_t *NullObj; - -/* - * Look up name in 'table'. - * First look up in hash table then do binary search. - */ -LOCAL obj_t * -_objlook(table, name, create) - obj_t *table[]; - char *name; - BOOL create; -{ - register obj_t **pp; - register obj_t *p; - register char *new; - register char *old; - - for (pp = &table[ObjHash(name)]; (p = *pp) != NULL; ) { - for (new = name, old = p->o_name; *new++ == *old; ) { - if (*old++ == '\0') /* Found 'name' */ - return (p); - } - if (*--new < *old) - pp = &p->o_left; - else - pp = &p->o_right; - } - if (!create) - return ((obj_t *) NULL); - - /* - * Add new entry to ObjTab. - */ - *pp = p = (obj_t *) fastalloc(sizeof (obj_t)); /* insert into list */ - p->o_left = p->o_right = (obj_t *) NULL; /* old 'p' was NULL */ - p->o_cmd = (cmd_t *) NULL; - p->o_list = (list_t *) NULL; - p->o_date = NOTIME; - p->o_level = MAXLEVEL; - p->o_type = 0; - p->o_flags = 0; - p->o_fileindex = Mfileindex; - p->o_name = strsave(name); - p->o_namelen = strlen(name); - p->o_node = NULL; - return (p); -} - -/* - * Look up name in ObjTab. - */ -EXPORT obj_t * -objlook(name, create) - char *name; - BOOL create; -{ - return (_objlook(ObjTab, name, create)); -} - -EXPORT list_t * -objlist(name) - char *name; -{ - obj_t *o; - - if ((o = objlook(name, FALSE)) == NULL) - return ((list_t *)NULL); - return (o->o_list); -} - -/* - * Look up name in SuffTab. - */ -EXPORT obj_t * -ssufflook(name, create) - char *name; - BOOL create; -{ - return (_objlook(SuffTab, name, create)); -} - -/* - * Check is SuffTab contains any entry. - */ -EXPORT BOOL -check_ssufftab() -{ - int i; - - for (i = 0; i < MyObjTabSize; i++) - if (SuffTab[i]) - return (TRUE); - return (FALSE); -} - -/* - * Used by ptree() to print one single object. - */ -LOCAL void -prvar(p) - register obj_t *p; -{ - register list_t *q; - register cmd_t *c; - - if (!p) - return; - - error("%s:", p->o_name); - for (q = p->o_list; q; q = q->l_next) - error(" %s", q->l_obj->o_name); - putc('\n', stderr); - for (c = p->o_cmd; c; c = c->c_next) - error("\t...%s\n", c->c_line); -} - -/* - * Currently only used by printtree() to implement the -probj option. - */ -LOCAL void -ptree(p, n) - register obj_t *p; - int n; -{ - register int i; - - for (; p; p = p->o_right) { - ptree(p->o_left, ++n); - for (i = 1; i < n; i++) - putc(' ', stderr); - prvar(p); - } -} - -/* - * Used by -probj Flag - */ -EXPORT void -printtree() -{ - int i; - - print_patrules(stderr); - for (i = 0; i < MyObjTabSize; i++) - ptree(ObjTab[i], 0); -} - -/* - * Currently only used by prtree() to implement the -p option. - */ -EXPORT void -probj(f, o, type) - FILE *f; - obj_t *o; - int type; -{ - for (; o; o = o->o_right) { - probj(f, o->o_left, type); - if (type >= 0 && type != o->o_type) - continue; - if (type < 0 && (o->o_type == ':' || o->o_type == '=')) - continue; - if (Debug <= 0 && o->o_type == 0) - continue; /* Ommit target only strings */ - - printobj(f, &o, 1, o->o_type, o->o_list, o->o_cmd); - } -} - -/* - * Used by -p Flag, called from main(). - */ -EXPORT void -prtree() -{ - int i; - - printf("# Implicit Pattern Rules:\n"); - print_patrules(stdout); - printf("# Implicit Suffix Rules:\n"); - for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], ':'); - } - printf("# Simple Suffix Rules:\n"); - for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, SuffTab[i], ':'); - } - printf("# Macro definitions:\n"); - for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], '='); - } - printf("# Various other definitions:\n"); - for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], -1); - } -} - -/* - * Convert the object type into a human readable string. - */ -LOCAL char * -typestr(type) - int type; -{ - if (type == 0) - return ("(%)"); - if (type == EQUAL) - return ("="); - if (type == COLON) - return (":"); - if (type == DCOLON) - return ("::"); - if (type == SEMI) - return (";"); - if (type == ADDMAC) - return ("+="); - if (type == ASSIGN) - return (":="); - if (type == SHVAR) - return (":sh="); - return ("UNKNOWN TYPE"); -} - -/* - * This is the central routine to print an object. - */ -LOCAL void -printobj(f, ovec, objcnt, type, deplist, cmdlist) - FILE *f; - obj_t *ovec[]; - int objcnt; - int type; - list_t *deplist; - cmd_t *cmdlist; -{ - register list_t *l; - register cmd_t *c; - register int i; - - for (i = 0; i < objcnt; i++) - fprintf(f, "%s ", ovec[i]->o_name); - fprintf(f, "%2s\t", typestr(type)); - - for (l = deplist; l; l = l->l_next) - fprintf(f, "%s ", l->l_obj->o_name); - fprintf(f, "\n"); - - for (c = cmdlist; c; c = c->c_next) - fprintf(f, "\t%s\n", c->c_line); - fflush(f); -} diff -Nru smake-1.2a41/psmake/raisecond.c smake-1.2a49/psmake/raisecond.c --- smake-1.2a41/psmake/raisecond.c 2007-02-07 13:59:01.000000000 +0000 +++ smake-1.2a49/psmake/raisecond.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,172 +0,0 @@ -/* @(#)raisecond.c 1.21 07/02/07 Copyright 1985, 1989, 1995-2004 J. Schilling */ -/* - * raise a condition (software signal) - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ -/* - * Check for installed condition handlers. - * If a handler is found, the function is called with the appropriate args. - * If no handler is found or no handler signals success, - * the program will be aborted. - * - * Copyright (c) 1985, 1989, 1995-2004 J. Schilling - */ -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#if !defined(AV_OFFSET) || !defined(FP_INDIR) -# ifdef HAVE_SCANSTACK -# undef HAVE_SCANSTACK -# endif -#endif - -/* - * Macros to print to stderr without stdio, to avoid screwing up. - */ -#ifndef STDERR_FILENO -#define STDERR_FILENO 2 -#endif -#define eprints(a) (void)write(STDERR_FILENO, (a), sizeof (a)-1) -#define eprintl(a) (void)write(STDERR_FILENO, (a), strlen(a)) - -#define is_even(p) ((((long)(p)) & 1) == 0) -#define even(p) (((long)(p)) & ~1L) -#ifdef __future__ -#define even(p) (((long)(p)) - 1) /* will this work with 64 bit ?? */ -#endif - - -LOCAL void raiseabort __PR((const char *)); - -#ifdef HAVE_SCANSTACK -#include -#define next_frame(vp) do { \ - if (((struct frame *)(vp))->fr_savfp == 0) { \ - vp = (void *)0; \ - break; \ - } \ - if (((struct frame *)(vp))->fr_savpc == 0) { \ - vp = (void *)0; \ - break; \ - } \ - vp = \ - (void *)((struct frame *)(vp))->fr_savfp; \ - } while (vp != NULL && is_even(vp)); \ - vp = (struct frame *)even(vp); -#else -#if defined(IS_MACOS_X) -/* - * The MAC OS X linker does not grok "common" varaibles. - * Make __roothandle a "data" variable. - */ -EXPORT SIGBLK *__roothandle = 0; -#else -EXPORT SIGBLK *__roothandle; -#endif - -#define next_frame(vp) vp = (((SIGBLK *)(vp))->sb_savfp); -#endif - -LOCAL BOOL framehandle __PR((SIGBLK *, const char *, const char *, long)); - -/* - * Loop through the chain of procedure frames on the stack. - * - * Frame pointers normally have even values. - * Frame pointers of procedures with an installed handler are marked odd. - * The even base value, in this case actually points to a SIGBLK which - * holds the saved "real" frame pointer. - * The SIGBLK mentioned above may me the start of a chain of SIGBLK's, - * containing different handlers. - */ -EXPORT void -raisecond(signame, arg2) - const char *signame; - long arg2; -{ - register void *vp = NULL; - -#ifdef HAVE_SCANSTACK - /* - * As the SCO OpenServer C-Compiler has a bug that may cause - * the first function call to getfp() been done before the - * new stack frame is created, we call getfp() twice. - */ - (void) getfp(); - vp = getfp(); - next_frame(vp); -#else - vp = __roothandle; -#endif - - while (vp) { - if (framehandle((SIGBLK *)vp, signame, signame, arg2)) - return; - else if (framehandle((SIGBLK *)vp, "any_other", signame, arg2)) - return; -#ifdef HAVE_SCANSTACK - vp = (struct frame *)((SIGBLK *)vp)->sb_savfp; -#endif - next_frame(vp); - } - /* - * No matching handler that signals success found. - * Print error message and abort. - */ - raiseabort(signame); - /* NOTREACHED */ -} - -/* - * Loop through the handler chain for a procedure frame. - * - * If no handler with matching name is found, return FALSE, - * otherwise the first handler with matching name is called. - * The return value in the latter case depends on the called function. - */ -LOCAL BOOL -framehandle(sp, handlename, signame, arg2) - register SIGBLK *sp; - const char *handlename; - const char *signame; - long arg2; -{ - for (; sp; sp = sp->sb_signext) { - if (sp->sb_signame != NULL && - streql(sp->sb_signame, handlename)) { - if (sp->sb_sigfun == NULL) { /* deactivated */ - return (FALSE); - } else { - return (*sp->sb_sigfun)(signame, - sp->sb_sigarg, arg2); - } - } - } - return (FALSE); -} - -LOCAL void -raiseabort(signame) - const char *signame; -{ - eprints("Condition not caught: "); eprintl(signame); eprints(".\n"); - abort(); - /* NOTREACHED */ -} diff -Nru smake-1.2a41/psmake/readfile.c smake-1.2a49/psmake/readfile.c --- smake-1.2a41/psmake/readfile.c 2006-10-14 15:22:38.000000000 +0100 +++ smake-1.2a49/psmake/readfile.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,381 +0,0 @@ -/* @(#)readfile.c 1.54 06/10/14 Copyright 1985 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)readfile.c 1.54 06/10/14 Copyright 1985 J. Schilling"; -#endif -/* - * Make program - * File/string reading routines - * - * Copyright (c) 1985 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include -#include "make.h" - -LOCAL int fillrdbuf __PR((void)); -EXPORT char *peekrdbuf __PR((void)); -EXPORT char *getrdbuf __PR((void)); -EXPORT int getrdbufsize __PR((void)); -EXPORT void setincmd __PR((BOOL isincmd)); -EXPORT void getch __PR((void)); -EXPORT int peekch __PR((void)); -EXPORT void skipline __PR((void)); -EXPORT void readstring __PR((char *str, char *strname)); -EXPORT void readfile __PR((char *name, BOOL must_exist)); -EXPORT void doinclude __PR((char *name, BOOL must_exist)); -EXPORT void makeincs __PR((void)); - -#if defined(unix) || defined(IS_UNIX) -# define RDBUF_SIZE 1024 -#else -# define RDBUF_SIZE 512 -#endif - -/* - * Several variables needed for reading with look ahead - * to allow easy parsing of make files. - */ -EXPORT int lastc = 0; /* last input character */ -EXPORT int firstc = 0; /* first character in line */ -LOCAL FILE *mfp = (FILE *)NULL; /* currently open make file */ -EXPORT char *mfname = NULL; /* name of current make file */ -LOCAL int olineno = 1; /* old line number (include) */ -EXPORT int lineno = 1; /* current line number */ -EXPORT int col = 0; /* current column */ -LOCAL BOOL incmd = FALSE; /* cmd list line starts \n\t */ -LOCAL char *readbfp; /* current read buf pointer */ -LOCAL char *readbfstart; /* start of current read buf */ -LOCAL char *readbfend; /* end of current read buf */ -LOCAL char rdbuf[RDBUF_SIZE]; /* the real read buffer */ -LOCAL char *rd_buffer = rdbuf; /* a pointer to start of buf */ - -/* - * Get or peek a character from current Makefile. - */ -#define mygetc() ((readbfp >= readbfend) ? fillrdbuf() : *readbfp++) -#define mypeekc() ((readbfp >= readbfend) ? (fillrdbuf() == EOF ? \ - EOF:*--readbfp) : *readbfp) - -/* - * Fill or refill the read buffer that is used by the mygetc() CPP macro. - */ -LOCAL int -fillrdbuf() -{ - if (mfp == (FILE *) NULL) /* EOF while reading from a string. */ - return (EOF); - readbfp = rd_buffer; - readbfstart = rd_buffer; /* used for better error reporting */ - readbfend = rd_buffer + fileread(mfp, rd_buffer, RDBUF_SIZE); - if (readbfp >= readbfend) - return (EOF); - return ((int) *readbfp++); -} - -EXPORT char * -peekrdbuf() -{ - return (readbfp); -} - -EXPORT char * -getrdbuf() -{ - return (readbfstart); -} - -EXPORT int -getrdbufsize() -{ - return (readbfend - readbfstart); -} - -/* - * Switch the bahaviour of the reader for parsing commandlines/others. - */ -EXPORT void -setincmd(isincmd) - BOOL isincmd; -{ - incmd = isincmd ? TRUE:FALSE; -} - -/* - * Get a character. - * Handle backslash-newline combinations and special conditions - * for comment and command lines. - * Count lines for error messages. - */ -EXPORT void -getch() -{ - col++; - lastc = mygetc(); - if (lastc == EOF) - return; - if (lastc == '\n') { - firstc = mypeekc(); - lineno++; - col = 0; - return; - } else if (lastc == '\\' && !incmd && mypeekc() == '\n') { - lastc = mygetc(); - firstc = mypeekc(); - lineno++; - col = 0; - for (;;) { /* Skip white space at start of line */ - register int c; - - c = mypeekc(); - if (c != ' ' && c != '\t') { - lastc = ' '; - return; - } - mygetc(); - col++; - } - } - - if (lastc == '#' && !incmd) { - if (mfp == (FILE *) NULL) /* Do not skip past # when */ - return; /* reading from string. */ - skipline(); - } -} - -EXPORT int -peekch() -{ - return (mypeekc()); -} - -/* - * Fast method to skip to the end of a commented out line. - * Always use the POSIX method (skip to next un-escaped new line). - */ -EXPORT void -skipline() -{ - register int c = lastc; - - if (c == '\n') - return; - - while (c != EOF) { - c = mygetc(); - if (c == '\n') { - lineno++; - col = 0; - lastc = c; - firstc = mypeekc(); - return; - } else if (c == '\\' && mypeekc() == '\n') { - lineno++; - col = 0; - c = mygetc(); - } - } - firstc = lastc = c; -} - -/* - * Parse input from a string. - */ -EXPORT void -readstring(str, strname) - char *str; - char *strname; -{ - mfname = strname; - readbfp = str; - readbfstart = str; /* used for better error reporting */ - readbfend = str + strlen(str); - firstc = *str; - incmd = FALSE; - parsefile(); - mfname = NULL; -} - -/* - * Parse input from the current Makefile. - */ -EXPORT void -readfile(name, must_exist) - char *name; - BOOL must_exist; -{ - /* - * Diese Meldung ist noch falsch (Rekursion/Makefiles) - */ - if (DoWarn) - error("Reading file '%s' in line %d of '%s'\n", name, - olineno, mfname); - - if (streql(name, "-")) { - mfp = stdin; - name = "Standard in"; - } else { - if ((mfp = fileopen(name, "ru")) == (FILE *)NULL && must_exist) - comerr("Can not open '%s'.\n", name); - } - mfname = name; - readbfp = readbfend; /* Force immediate call of fillrdbuf.*/ - firstc = mypeekc(); - incmd = FALSE; - if (mfp) { - parsefile(); - fclose(mfp); - } - mfp = (FILE *) NULL; - mfname = NULL; - col = 0; -} - -list_t *Incs; -list_t **inctail = &Incs; - -/* - * Handle the "include" directive in makefiles. - * If an include file does not exists, first try to find a rule to make it. - * If this does not help, try to call include failure exception handling. - * This exception handling enables some automake features of smake in allowing - * the to call a shell script that will create the missing (may be architecture - * dependant) include file on the fly with something that will at least allow - * smake to continue on this platform. - */ -EXPORT void -doinclude(name, must_exist) - char *name; - BOOL must_exist; -{ - int slc = lastc; - int sfc = firstc; - FILE *smf = mfp; - char *smfn = mfname; - int slineno = lineno; - int scol = col; - char *srbp = readbfp; - char *srbs = readbfstart; - char *srbe = readbfend; - char *srbf = rd_buffer; - char include_buf[RDBUF_SIZE]; - obj_t *st = default_tgt; - obj_t *o; - list_t *lp; - - olineno = lineno-1; - lastc = 0; - firstc = 0; - lineno = 1; - col = 0; - rd_buffer = include_buf; - - setup_dotvars(); - name = substitute(name, NullObj, 0, 0); - name = strsave(name); - - xmake(name, FALSE); - default_tgt = st; - - o = objlook(name, TRUE); - - if (Debug > 1) - error("doinclude(%s, %d)= date: %s level: %d\n", - name, must_exist, prtime(o->o_date), o->o_level); - - if (must_exist && o->o_date == 0 && IncludeFailed) { - list_t l; - - o->o_date = newtime; /* Force to be out of date */ - l.l_next = (list_t *)0; /* Only one element: */ - l.l_obj = o; /* The file to be included */ - IncludeFailed->o_list = &l; /* Make it $^ */ - IncludeFailed->o_date = (date_t)0; - omake(IncludeFailed, FALSE); /* Try to apply rules */ - o->o_date = gftime(name); /* Check if file is present */ - } - - if (must_exist || o->o_date != 0) { - char includename[TYPICAL_NAMEMAX]; - char *iname; - - if (Prdep) - error("Reading file '%s' from '%s'\n", name, mfname); - - /* - * Zurücksetzen des Datums bewirkt Neuauswertung - * der Abhängigkeitsliste. - * XXX Das kann Probleme bei make depend geben. - */ - o->o_date = 0; - /* - * Now add this object to the list of objects that must be - * remade to force integrity of uour lists before we start - * to make the real targets. - */ - lp = (list_t *) fastalloc(sizeof (*lp)); - lp->l_obj = o; - *inctail = lp; - inctail = &lp->l_next; - lp->l_next = 0; - - iname = build_path(o->o_level, o->o_name, o->o_namelen, - includename, sizeof (includename)); -/*error("include '%s' -> '%s' %s\n", o->o_name, iname, prtime(o->o_date));*/ - if (iname != NULL) { - readfile(iname, must_exist); - if (iname != o->o_name && iname != includename) - free(iname); - } else { - comerrno(EX_BAD, - "Cannot build path for 'include %s'.\n", - o->o_name); - } - } - - lastc = slc; - firstc = sfc; - mfp = smf; - mfname = smfn; - lineno = slineno; - col = scol; - readbfp = srbp; - readbfstart = srbs; - readbfend = srbe; - rd_buffer = srbf; -} - -/* - * Re-make the included files. - * This must be done because after they have been made the first time, - * the dependency list may have changed. If we don't remake the included - * files, the xxx.d dependency files will not be remade after we touch a file - * that is not in the primary source list. - */ -EXPORT void -makeincs() -{ - list_t *l; - - for (l = Incs; l != 0; l = l->l_next) { -/* printf("inc(%s)\n", l->l_obj->o_name);*/ - omake(l->l_obj, TRUE); - } -} diff -Nru smake-1.2a41/psmake/rename.c smake-1.2a49/psmake/rename.c --- smake-1.2a41/psmake/rename.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/psmake/rename.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,133 +0,0 @@ -/* @(#)rename.c 1.8 06/09/26 Copyright 1998-2003 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)rename.c 1.8 06/09/26 Copyright 1998-2003 J. Schilling"; -#endif -/* - * rename() for old systems that don't have it. - * - * Copyright (c) 1998-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#define rename __nothing__ -#include - -#ifndef HAVE_RENAME - -#include /* XXX not OK but needed for js_xx() in schily/schily.h */ -#include -#include -#include -#include -#include -#include -#include -#include -#undef rename -#include - -#ifndef MAXPATHNAME -#define MAXPATHNAME 1024 -#endif - -#if MAXPATHNAME < 1024 -#undef MAXPATHNAME -#define MAXPATHNAME 1024 -#endif - -#define MAXNAME MAXPATHNAME - -#define FILEDESC struct stat - -#ifndef HAVE_LSTAT -#define lstat stat -#endif - -EXPORT int -rename(old, new) - const char *old; - const char *new; -{ - char nname[MAXNAME]; - char bakname[MAXNAME]; - char strpid[32]; - int strplen; - BOOL savpresent = FALSE; - BOOL newpresent = FALSE; - int serrno; - FILEDESC ostat; - FILEDESC xstat; - - serrno = geterrno(); - - if (lstat(old, &ostat) < 0) - return (-1); - - if (lstat(new, &xstat) >= 0) { - newpresent = TRUE; - if (ostat.st_dev == xstat.st_dev && - ostat.st_ino == xstat.st_ino) - return (0); /* old == new we are done */ - } - - strplen = js_snprintf(strpid, sizeof (strpid), ".%lld", - (Llong)getpid()); - - if (strlen(new) <= (MAXNAME-strplen) || - strchr(&new[MAXNAME-strplen], '/') == NULL) { - /* - * Save old version of file 'new'. - */ - strncpy(nname, new, MAXNAME-strplen); - nname[MAXNAME-strplen] = '\0'; - js_snprintf(bakname, sizeof (bakname), "%s%s", nname, strpid); - unlink(bakname); - if (link(new, bakname) >= 0) - savpresent = TRUE; - } - - if (newpresent) { - if (rmdir(new) < 0) { - if (geterrno() == ENOTDIR) { - if (unlink(new) < 0) - return (-1); - } else { - return (-1); - } - } - } - - /* - * Now add 'new' name to 'old'. - */ - if (link(old, new) < 0) { - serrno = geterrno(); - /* - * Make sure not to loose old version of 'new'. - */ - if (savpresent) { - unlink(new); - link(bakname, new); - unlink(bakname); - } - seterrno(serrno); - return (-1); - } - if (unlink(old) < 0) - return (-1); - unlink(bakname); /* Fails in most cases... */ - seterrno(serrno); /* ...so restore errno */ - return (0); -} -#endif /* HAVE_RENAME */ diff -Nru smake-1.2a41/psmake/rmlinks smake-1.2a49/psmake/rmlinks --- smake-1.2a41/psmake/rmlinks 2007-01-22 12:00:34.000000000 +0000 +++ smake-1.2a49/psmake/rmlinks 2009-11-14 12:22:58.000000000 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# @(#)rmlinks 1.7 07/01/22 Copyright 1999 J. Schilling +# @(#)rmlinks 1.13 09/11/14 Copyright 1999 J. Schilling rm -f archconf.c rm -f make.c @@ -11,28 +11,37 @@ rm -f update.c rm -f include/schily/archdefs.h rm -f include/schily/ccomdefs.h +rm -f include/schily/ctype.h rm -f include/schily/dirent.h rm -f include/schily/fcntl.h rm -f include/schily/getargs.h rm -f include/schily/getcwd.h +rm -f include/schily/hostname.h rm -f include/schily/libport.h +rm -f include/schily/limits.h rm -f include/schily/maxpath.h rm -f include/schily/mconfig.h rm -f include/schily/xconfig.h rm -f include/schily/xmconfig.h rm -f include/schily/prototyp.h rm -f include/schily/sigblk.h +rm -f include/schily/signal.h rm -f include/schily/standard.h rm -f include/schily/stat.h +rm -f include/schily/stdio.h rm -f include/schily/stdlib.h +rm -f include/schily/stkframe.h rm -f include/schily/string.h +rm -f include/schily/systeminfo.h rm -f include/schily/time.h rm -f include/schily/unistd.h rm -f include/schily/utime.h +rm -f include/schily/utsname.h rm -f include/schily/utypes.h rm -f include/schily/types.h rm -f include/schily/param.h rm -f include/schily/varargs.h +rm -f include/schily/vfork.h rm -f include/schily/wait.h rm -f include/schily/schily.h rm -f include/schily/errno.h @@ -42,8 +51,18 @@ rm -f config.guess rm -f config.sub rm -f configure -rm -f rules.cnf.in -rm -f xconfig.h.in +if [ -r rules.cnf.in ]; then + rm -f rules.cnf.in +fi +if [ -r rules.cnf_in ]; then + rm -f rules.cnf_in +fi +if [ -r xconfig.h.in ]; then + rm -f xconfig.h.in +fi +if [ -r xconfig.h_in ]; then + rm -f xconfig.h_in +fi rm -f install-sh rm -f astoi.c rm -f astoll.c @@ -76,3 +95,4 @@ rm -f filewrite.c rm -f flag.c rm -f niread.c +rm -f niwrite.c diff -Nru smake-1.2a41/psmake/rules.c smake-1.2a49/psmake/rules.c --- smake-1.2a41/psmake/rules.c 2006-09-13 20:00:56.000000000 +0100 +++ smake-1.2a49/psmake/rules.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,100 +0,0 @@ -/* @(#)rules.c 1.14 06/09/13 Copyright 1987 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)rules.c 1.14 06/09/13 Copyright 1987 J. Schilling"; -#endif -/* - * Copyright (c) 1987 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include "make.h" - -/* - * Default rules complied into make. - * - * Should rather read in a setup file... - */ -char implicit_rules[] = - - -#if defined(unix) || defined(IS_UNIX) || defined(IS_GCC_WIN32) || \ - defined(__EMX__) || defined(__BEOS__) || defined(__DJGPP__) -# define _OS_ - -"\ -FC= f77\n\ -RC= f77\n\ -PC= pc\n\ -AS= as\n\ -CC= cc\n\ -LD= ld\n\ -LEX= lex\n\ -MAKE= smake\n\ -YACCR= yacc -r\n\ -YACC= yacc\n\ -ROFF= nroff\n\ -ASFLAGS=\n\ -FFLAGS=\n\ -LDFLAGS=\n\ -RFLAGS= -ms\n\ -YFLAGS=\n\ -.o: .c .s .l\n\ - $(CC) -c $(CFLAGS) $(CPPFLAGS) $<\n\ - $(AS) -o $*.o $(ASFLAGS) $<\n\ - $(LEX) $(LFLAGS) $<;$(CC) -c $(CFLAGS) lex.yy.c;rm lex.yy.c;mv lex.yy.o $@\n\ -.c: .y\n\ - $(YACC) $(YFLAGS) $<;mv y.tab.c $@\n\ -\"\": .o .sc\n\ - $(CC) -o $* $<\n\ - $(ROFF) $(RFLAGS) $< > $@\n"; -#endif - -#ifdef tos -# define _OS_ - -"\ -FC= f77\n\ -RC= f77\n\ -PC= pc\n\ -AS= as\n\ -CC= cc\n\ -LD= ld\n\ -LEX= lex\n\ -MAKE= smake\n\ -YACCR= yacc -r\n\ -YACC= yacc\n\ -ROFF= nroff\n\ -ASFLAGS=\n\ -FFLAGS=\n\ -LDFLAGS=\n\ -RFLAGS= -ms\n\ -.o: .c .s .l\n\ - $(CC) -c $(CFLAGS) $(CPPFLAGS) $<\n\ - $(AS) -o $*.o $(ASFLAGS) $<\n\ - $(LEX) $(LFLAGS) $<;$(CC) -c $(CFLAGS) lexyy.c;rm lexyy.c;mv lexyy.o $@\n\ -.c: .y\n\ - $(YACC) $(YFLAGS) $<;mv ytab.c $@\n\ -\"\": .sc\n\ - $(ROFF) $(RFLAGS) $< > $@\n\ -.prg .tos .ttp: .o\n\ - $(CC) -o $* $<\n"; -#endif - -#ifndef _OS_ -""; -#endif - diff -Nru smake-1.2a41/psmake/rules.cnf.in smake-1.2a49/psmake/rules.cnf.in --- smake-1.2a41/psmake/rules.cnf.in 2007-01-24 13:45:39.000000000 +0000 +++ smake-1.2a49/psmake/rules.cnf.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -# @(#)rules.cnf.in 1.12 07/01/24 Copyright 1998-2003 J. Schilling - -EXEEXT= @EXEEXT@ -OBJEXT= @OBJEXT@ - -LARGEFILE_CC_OPT= @largefile_cc_opt@ - -MAY_LINUX_SRC_INCLUDE= @may_linux_src_include@ - -SCSILIB= @scsi_lib@ -LIB_SCSI= @lib_scsi@ -LIB_RESOLV= @lib_resolv@ -LIB_CRYPT= @lib_crypt@ -LIB_INTL= @lib_intl@ -LIB_ACL= @lib_acl@ -LIB_ACL_TEST= @lib_acl_test@ -LIB_ATTR = @lib_attr@ -LIB_SECDB = @lib_secdb@ -LIB_PTHREAD = @lib_pthread@ -LIB_RT = @lib_rt@ diff -Nru smake-1.2a41/psmake/saveargs.c smake-1.2a49/psmake/saveargs.c --- smake-1.2a41/psmake/saveargs.c 2006-10-05 16:56:51.000000000 +0100 +++ smake-1.2a49/psmake/saveargs.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,120 +0,0 @@ -/* @(#)saveargs.c 1.13 06/10/05 Copyright 1995-2003 J. Schilling */ -/* - * save argc, argv for command error printing routines - * - * Copyright (c) 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include -#include - -#if !defined(AV_OFFSET) || !defined(FP_INDIR) -# ifdef HAVE_SCANSTACK -# undef HAVE_SCANSTACK -# endif -#endif - -static int ac_saved; -static char **av_saved; -static char *av0_saved; -static char *progname_saved; - -static char av0_sp[32]; /* av0 space, avoid malloc() in most cases */ -static char prn_sp[32]; /* name space, avoid malloc() in most cases */ -static char dfl_str[] = "?"; - -EXPORT void -save_args(ac, av) - int ac; - char *av[]; -{ - int slen; - - ac_saved = ac; - av_saved = av; - - if (av0_saved && av0_saved != av0_sp) - free(av0_saved); - - slen = strlen(av[0]) + 1; - - if (slen <= (int)sizeof (av0_sp)) - av0_saved = av0_sp; - else - av0_saved = malloc(slen); - - if (av0_saved) - strcpy(av0_saved, av[0]); -} - -EXPORT int -saved_ac() -{ - return (ac_saved); -} - -EXPORT char ** -saved_av() -{ - return (av_saved); -} - -EXPORT char * -saved_av0() -{ - return (av0_saved); -} - -EXPORT void -set_progname(name) - const char *name; -{ - int slen; - - if (progname_saved && progname_saved != prn_sp) - free(progname_saved); - - slen = strlen(name) + 1; - - if (slen <= sizeof (prn_sp)) - progname_saved = prn_sp; - else - progname_saved = malloc(slen); - - if (progname_saved) - strcpy(progname_saved, name); -} - -EXPORT char * -get_progname() -{ -#ifdef HAVE_SCANSTACK - char *progname; -#endif - - if (progname_saved) - return (progname_saved); - if (av0_saved) - return (av0_saved); -#ifdef HAVE_SCANSTACK - progname = getav0(); /* scan stack to get argv[0] */ - if (progname) - return (progname); -#endif - return (dfl_str); -} diff -Nru smake-1.2a41/psmake/schilyio.h smake-1.2a49/psmake/schilyio.h --- smake-1.2a41/psmake/schilyio.h 2006-11-28 16:46:05.000000000 +0000 +++ smake-1.2a49/psmake/schilyio.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,234 +0,0 @@ -/* @(#)schilyio.h 2.25 06/11/28 Copyright 1986, 1995-2003 J. Schilling */ -/* - * Copyright (c) 1986, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#ifndef _STDIO_SCHILYIO_H -#define _STDIO_SCHILYIO_H - -#include -#include -#include -#include -#include -#include -#include - -#ifdef NO_USG_STDIO -# ifdef HAVE_USG_STDIO -# undef HAVE_USG_STDIO -# endif -#endif - -/*#if _LFS_LARGEFILE*/ -#ifdef HAVE_LARGEFILES -/* - * XXX We may need to put this code to a more global place to allow all - * XXX users of fseek()/ftell() to automaticaly use fseeko()/ftello() - * XXX if the latter are available. - * - * If HAVE_LARGEFILES is defined, it is guaranteed that fseeko()/ftello() - * both are available. - */ -# define fseek fseeko -# define ftell ftello - -#else /* !HAVE_LARGEFILES */ -/* - * If HAVE_LARGEFILES is not defined, we depend on specific tests for - * fseeko()/ftello() which must have been done before the tests for - * Large File support have been done. - * Note that this only works if the tests used below are really done before - * the Large File autoconf test is run. This is because autoconf does no - * clean testing but instead cumulatively modifes the envivonment used for - * testing. - */ -#ifdef HAVE_FSEEKO -# define fseek fseeko -#endif -#ifdef HAVE_FTELLO -# define ftell ftello -#endif - -#endif - -/* - * speed things up... - */ -#ifndef _OPENFD_SRC -#ifdef _openfd -#undef _openfd -#endif -#define _openfd(name, omode) (open(name, omode, (mode_t)0666)) -#endif - -#define DO_MYFLAG /* use local flags */ - -/* - * Flags used during fileopen(), ... by _fcons()/ _cvmod() - */ -#define FI_NONE 0x0000 /* no flags defined */ - -#define FI_READ 0x0001 /* open for reading */ -#define FI_WRITE 0x0002 /* open for writing */ -#define FI_BINARY 0x0004 /* open in binary mode */ -#define FI_APPEND 0x0008 /* append on each write */ - -#define FI_CREATE 0x0010 /* create if nessecary */ -#define FI_TRUNC 0x0020 /* truncate file on open */ -#define FI_UNBUF 0x0080 /* dont't buffer io */ -#define FI_CLOSE 0x1000 /* close file on error */ - -/* - * local flags - */ -#define _IONORAISE 01 /* do no raisecond() on errors */ -#define _IOUNBUF 02 /* do unbuffered i/o */ - -#ifdef DO_MYFLAG - -struct _io_flags { - FILE *fl_io; /* file pointer */ - struct _io_flags /* pointer to next struct */ - *fl_next; /* if more file pointer to same fd */ - int fl_flags; /* my flags */ -}; - -typedef struct _io_flags _io_fl; - -extern int _io_glflag; /* global default flag */ -extern _io_fl *_io_myfl; /* array of structs to hold my flags */ -extern int _fl_max; /* max fd currently in _io_myfl */ - -/* - * if fileno > max - * expand - * else if map[fileno].pointer == 0 - * return 0 - * else if map[fileno].pointer == p - * return map[fileno].flags - * else - * search list - */ -#define flp(p) (&_io_myfl[fileno(p)]) - -#ifdef MY_FLAG_IS_MACRO -#define my_flag(p) ((int)fileno(p) >= _fl_max ? \ - _io_get_my_flag(p) : \ - ((flp(p)->fl_io == 0 || flp(p)->fl_io == p) ? \ - flp(p)->fl_flags : \ - _io_get_my_flag(p))) -#else -#define my_flag(p) _io_get_my_flag(p) -#endif - -#define set_my_flag(p, v) _io_set_my_flag(p, v) -#define add_my_flag(p, v) _io_add_my_flag(p, v) - -extern int _io_get_my_flag __PR((FILE *)); -extern void _io_set_my_flag __PR((FILE *, int)); -extern void _io_add_my_flag __PR((FILE *, int)); - -#else /* DO_MYFLAG */ - -#define my_flag(p) _IONORAISE /* Always noraise */ -#define set_my_flag(p, v) /* Ignore */ -#define add_my_flag(p, v) /* Ignore */ - -#endif /* DO_MYFLAG */ - -#ifdef HAVE_USG_STDIO - -/* - * Use the right filbuf()/flsbuf() function. - */ -#ifdef HAVE___FILBUF -# define usg_filbuf(fp) __filbuf(fp) -# define usg_flsbuf(c, fp) __flsbuf(c, fp) -/* - * Define prototypes to verify if our interface is right - */ -extern int __filbuf __PR((FILE *)); -/*extern int __flsbuf __PR(());*/ -#else -# ifdef HAVE__FILBUF -# define usg_filbuf(fp) _filbuf(fp) -# define usg_flsbuf(c, fp) _flsbuf(c, fp) -/* - * Define prototypes to verify if our interface is right - */ -extern int _filbuf __PR((FILE *)); -/*extern int _flsbuf __PR(());*/ -# else -/* - * no filbuf() but this will not happen on USG_STDIO systems. - */ -# endif -#endif -/* - * Do not check this because flsbuf()'s 1st parameter may be - * int SunOS - * unsigned int Apollo - * unsigned char HP-UX-11 - * - * Note that the interface is now checked by autoconf. - */ -/*extern int _flsbuf __PR((int, FILE *));*/ -#else -/* - * If we are on a non USG system we cannot down file pointers - */ -#undef DO_DOWN -#endif - -#ifndef DO_DOWN -/* - * No stream checking - */ -#define down(f) -#define down1(f, fl1) -#define down2(f, fl1, fl2) -#else -/* - * Do stream checking (works only on USG stdio) - * - * New version of USG stdio. - * _iob[] holds only a small amount of pointers. - * Aditional space is allocated. - * We may check only if the file pointer is != NULL - * and if iop->_flag refers to a stream with appropriate modes. - * If _iob[] gets expanded by malloc() we cannot check upper bound. - */ -#define down(f) ((f) == 0 || (f)->_flag == 0 ? \ - (raisecond(_badfile, 0L), (FILE *)0) : (f)) - -#define down1(f, fl1) ((f) == 0 || (f)->_flag == 0 ? \ - (raisecond(_badfile, 0L), (FILE *)0) : \ - (((f)->_flag & fl1) != fl1 ? \ - (raisecond(_badop, 0L), (FILE *)0) : \ - (f))) - -#define down2(f, fl1, fl2) ((f) == 0 || (f)->_flag == 0 ? \ - (raisecond(_badfile, 0L), (FILE *)0) : \ - (((f)->_flag & fl1) != fl1 && \ - ((f)->_flag & fl2) != fl2 ? \ - (raisecond(_badop, 0L), (FILE *)0) : \ - (f))) -#endif /* DO_DOWN */ - -extern char _badfile[]; -extern char _badmode[]; -extern char _badop[]; - -#endif /* _STDIO_SCHILYIO_H */ diff -Nru smake-1.2a41/psmake/seterrno.c smake-1.2a49/psmake/seterrno.c --- smake-1.2a41/psmake/seterrno.c 2006-09-26 12:29:58.000000000 +0100 +++ smake-1.2a49/psmake/seterrno.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,35 +0,0 @@ -/* @(#)seterrno.c 1.10 06/09/26 Copyright 1985, 1995-2003 J. Schilling */ -/* - * Set error number - * - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include - -#ifdef seterrno -#undef seterrno -#endif - -EXPORT int -seterrno(err) - int err; -{ - int old = errno; - - errno = err; - return (old); -} diff -Nru smake-1.2a41/psmake/strcatl.c smake-1.2a49/psmake/strcatl.c --- smake-1.2a41/psmake/strcatl.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/strcatl.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,59 +0,0 @@ -/* @(#)strcatl.c 1.13 06/09/13 Copyright 1985, 1989, 1995-2003 J. Schilling */ -/* - * list version of strcat() - * - * concatenates all past first parameter until a NULL pointer is reached - * - * WARNING: a NULL constant is not a NULL pointer, so a caller must - * cast a NULL constant to a pointer: (char *)NULL - * - * returns pointer past last character (to '\0' byte) - * - * Copyright (c) 1985, 1989, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include - -/* VARARGS3 */ -#ifdef PROTOTYPES -EXPORT char * -strcatl(char *to, ...) -#else -EXPORT char * -strcatl(to, va_alist) - char *to; - va_dcl -#endif -{ - va_list args; - register char *p; - register char *tor = to; - -#ifdef PROTOTYPES - va_start(args, to); -#else - va_start(args); -#endif - while ((p = va_arg(args, char *)) != NULL) { - while ((*tor = *p++) != '\0') { - tor++; - } - } - *tor = '\0'; - va_end(args); - return (tor); -} diff -Nru smake-1.2a41/psmake/streql.c smake-1.2a49/psmake/streql.c --- smake-1.2a41/psmake/streql.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/streql.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -/* @(#)streql.c 1.8 06/09/13 Copyright 1985, 1995-2003 J. Schilling */ -/* - * Check if two strings are equal - * - * Copyright (c) 1985, 1995-2003 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include - -EXPORT int -streql(a, b) - const char *a; - const char *b; -{ - register const char *s1 = a; - register const char *s2 = b; - - if (s1 == NULL || s2 == NULL) - return (FALSE); - - while (*s1 == *s2++) - if (*s1++ == '\0') - return (TRUE); - - return (FALSE); -} diff -Nru smake-1.2a41/psmake/strlcpy.c smake-1.2a49/psmake/strlcpy.c --- smake-1.2a41/psmake/strlcpy.c 2006-10-12 14:05:29.000000000 +0100 +++ smake-1.2a49/psmake/strlcpy.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -/* @(#)strlcpy.c 1.2 06/09/13 Copyright 2006 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)strlcpy.c 1.2 06/09/13 Copyright 2006 J. Schilling"; -#endif -/* - * strlcpy() to be used if missing on libc - * - * Copyright (c) 2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include - -#ifndef HAVE_STRLCPY - -EXPORT size_t -strlcpy(s1, s2, len) - register char *s1; - register const char *s2; - register size_t len; -{ - const char *os2 = s2; - - if (len > 0) { - while (--len > 0 && (*s1++ = *s2++) != '\0') - ; - if (len == 0) { - *s1 = '\0'; - while (*s2++ != '\0') - ; - } - } else { - while (*s2++ != '\0') - ; - } - return (--s2 - os2); -} -#endif /* HAVE_STRLCPY */ diff -Nru smake-1.2a41/psmake/strncpy.c smake-1.2a49/psmake/strncpy.c --- smake-1.2a41/psmake/strncpy.c 2006-09-13 16:05:35.000000000 +0100 +++ smake-1.2a49/psmake/strncpy.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,53 +0,0 @@ -/* @(#)strncpy.c 1.2 06/09/13 Copyright 2006 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)strncpy.c 1.2 06/09/13 Copyright 2006 J. Schilling"; -#endif -/* - * strncpy() to be used if missing on libc - * - * Copyright (c) 2006 J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include - -#ifndef HAVE_STRNCPY - -EXPORT char * -strncpy(s1, s2, len) - register char *s1; - register const char *s2; - register size_t len; -{ - char *ret = s1; - - if (++len == 0) { /* unsigned overflow */ - --len; - while (len-- > 0 && (*s1++ = *s2++) != '\0') - ; - len++; - } else { - while (--len > 0 && (*s1++ = *s2++) != '\0') - ; - } - if (len > 0) { - while (--len > 0) - *s1++ = '\0'; - } - return (ret); -} -#endif /* HAVE_STRNCPY */ diff -Nru smake-1.2a41/psmake/update.c smake-1.2a49/psmake/update.c --- smake-1.2a41/psmake/update.c 2007-03-08 10:29:16.000000000 +0000 +++ smake-1.2a49/psmake/update.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,2629 +0,0 @@ -/* @(#)update.c 1.102 07/03/08 Copyright 1985, 88, 91, 1995-2007 J. Schilling */ -#ifndef lint -static char sccsid[] = - "@(#)update.c 1.102 07/03/08 Copyright 1985, 88, 91, 1995-2007 J. Schilling"; -#endif -/* - * Make program - * Macro handling / Dependency Update - * - * Copyright (c) 1985, 88, 91, 1995-2007 by J. Schilling - */ -/* - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * See the file CDDL.Schily.txt in this distribution for details. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file CDDL.Schily.txt from this distribution. - */ - -#include -#include -#include -#include -#include /* for free() */ -#include -#include -#include -#include "make.h" - -EXPORT obj_t *default_tgt; /* Current 'make' arg or default tgt */ -EXPORT BOOL found_make; /* Did we expand the $(MAKE) macro? */ - -#define RTYPE_NONE -1 /* Undefined type (used to init) */ -#define RTYPE_DEFAULT 0 /* Rule from .DEFAULT: target */ -#define RTYPE_SSUFFIX 1 /* Simple suffix rule */ -#define RTYPE_SUFFIX 2 /* Single suffix rule */ -#define RTYPE_DSUFFIX 3 /* Double suffix rule */ -#define RTYPE_PATTERN 4 /* Pattern matching rule */ - -#define RTYPE_NEEDFREE 0x1000 /* cmd_t * list needs to be free'd */ - -#define rule_type(t) ((t) & ~RTYPE_NEEDFREE) - -EXPORT void initchars __PR((void)); -EXPORT char *filename __PR((char * name)); -LOCAL void copy_dir __PR((char * name, char *dir, size_t dsize)); -LOCAL char *get_suffix __PR((char *name, char *suffix)); -LOCAL void copy_base __PR((char *name, char *dir, size_t dsize, char *suffix)); -EXPORT BOOL isprecious __PR((obj_t * obj)); -EXPORT BOOL isphony __PR((obj_t * obj)); -LOCAL patr_t *_pattern_rule __PR((patr_t * prule, char *name)); -LOCAL obj_t *pattern_rule __PR((obj_t * obj)); -LOCAL obj_t *suffix_rule __PR((obj_t * obj, int *rtypep)); -LOCAL void suffix_warn __PR((obj_t * obj)); -LOCAL obj_t *ssuffix_rule __PR((obj_t * obj)); -LOCAL obj_t *default_rule __PR((obj_t * obj, int *rtypep)); -EXPORT list_t *list_nth __PR((list_t * list, int n)); -EXPORT char *build_path __PR((int level, char *name, size_t namelen, - char *path, size_t psize)); -LOCAL void etoolong __PR((char *topic, char *name)); -LOCAL void grant_gbuf __PR((int size)); -LOCAL void sub_put __PR((char *chunk, int size)); -LOCAL void sub_c_put __PR((int c)); -LOCAL void sub_s_put __PR((char *chunk)); -LOCAL BOOL sub_arg __PR((int n, list_t * depends, obj_t * target)); -EXPORT char *substitute __PR((char *cmd, obj_t * obj, obj_t * source, char *suffix)); -LOCAL char *subst __PR((char *cmd, obj_t * obj, obj_t * source, char *suffix, list_t * depends)); -LOCAL char *dynmac __PR((char *cmd, obj_t * obj, obj_t * source, char *suffix, list_t * depends, BOOL domod)); -LOCAL void warn_implicit __PR((obj_t *obj, char *mac, char *exp)); -LOCAL void extr_filenames __PR((char *names)); -LOCAL void extr_dirnames __PR((char *names)); -LOCAL char *exp_var __PR((char end, char *cmd, obj_t * obj, obj_t * source, char *suffix, list_t *depends)); -LOCAL char *rstr __PR((char * s1, char * s2)); -LOCAL BOOL patsub __PR((char *name, char *f1, char *f2, char *t1, char *t2)); -LOCAL void patmsub __PR((char *name, char *f1, char *f2, char *t1, char *t2)); -LOCAL void parsepat __PR((char *pat, char **fp1, char **fp2, char **tp1, char **tp2)); -EXPORT char *shout __PR((char *cmd)); -LOCAL char *shsub __PR((list_t * l, obj_t * obj, obj_t * source, char *suffix, list_t * depends)); -LOCAL void exp_name __PR((char * name, obj_t * obj, obj_t * source, char *suffix, list_t * depends, char *)); -LOCAL void dcolon_time __PR((obj_t *obj)); -LOCAL date_t searchobj __PR((obj_t * obj, int maxlevel, int mode)); -LOCAL obj_t *patr_src __PR((char *name, patr_t * prule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); -LOCAL obj_t *suff_src __PR((char *name, obj_t * rule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); -LOCAL obj_t *one_suff_src __PR((char *name, char *suffix, cmd_t **pcmd, int dlev)); -LOCAL obj_t *ssuff_src __PR((char *name, obj_t * rule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); -LOCAL obj_t *findsrc __PR((obj_t *obj, obj_t * rule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); -LOCAL date_t default_cmd __PR((obj_t * obj, char *depname, date_t deptime, int deplevel, BOOL must_exist, int dlev)); -LOCAL date_t make __PR((obj_t * obj, BOOL lust_exist, int dlev)); -EXPORT BOOL domake __PR((char *name)); -EXPORT BOOL omake __PR((obj_t * obj, BOOL must_exist)); -EXPORT BOOL xmake __PR((char *name, BOOL must_exist)); - -char chartype[256]; - -/* - * Optimise character classification - */ -EXPORT void -initchars() -{ - char *p; - int c; - - p = "@*<0123456789r^?"; - - while ((c = *p++) != '\0') { - chartype[c] |= DYNCHAR; - } - - p = "0123456789"; - - while ((c = *p++) != '\0') { - chartype[c] |= NUMBER; - } -} - -/* - * Return last pathname component. - */ -EXPORT char * -filename(name) - register char *name; -{ - register char *fname; - - for (fname = name; *name; ) - if (*name++ == SLASH) - fname = name; - return (fname); -} - -/* - * Copy directory component of pathname. - */ -LOCAL void -copy_dir(name, dir, dsize) - register char *name; - register char *dir; - register size_t dsize; -{ - register char *p = filename(name); - char *ns = name; - - if (XDebug > 0) - error("copy_dir(name:'%s', dir:'%s', dsize: %d) fn: '%s' \n", - name, dir, dsize, p); - *dir = '\0'; - if (p == name) { - if (dsize < 2) - etoolong("copy directory name", ns); - *dir++ = '.'; - *dir = '\0'; - } else { - if (++dsize == 0) { /* unsigned overflow */ - dsize--; - while (name < p && dsize-- > 0) - *dir++ = *name++; - dsize++; - } else { - while (name < p && --dsize > 0) - *dir++ = *name++; - } - if (dsize == 0) - etoolong("copy directory name", ns); - - *--dir = '\0'; /* POSIX wants the '/' to be removed */ - /* This will make dir(/filename) */ - /* not usable... */ - *dir = '\0'; - } -} - -/* - * Return part after '.' of last pathname component. - */ -LOCAL char * -get_suffix(name, suffix) - char *name; - char *suffix; -{ - register char *p; - register char *suff = (char *)NULL; - - if (suffix != NULL) { - p = filename(name); - suff = rstr(p, suffix); - if (suff == (char *)NULL) /* No suffix: return end of string */ - suff = &p[strlen(p)]; - return (suff); - } - - for (p = filename(name); *p; p++) - if (*p == '.') - suff = p; - if (suff == (char *)NULL) /* No suffix: return end of string */ - suff = p; - return (suff); -} - -/* - * Copy namebase (everything before '.'). - */ -LOCAL void -copy_base(name, dir, dsize, suffix) - register char *name; - register char *dir; - register size_t dsize; - char *suffix; -{ - register char *p = get_suffix(name, suffix); - char *ns = name; - - if (++dsize == 0) { /* unsigned overflow */ - dsize--; - while (name < p && dsize-- > 0) - *dir++ = *name++; - dsize++; - } else { - while (name < p && --dsize > 0) - *dir++ = *name++; - } - if (dsize == 0) - etoolong("copy base name", ns); - - *dir = '\0'; -} - -/* - * Return TRUE if 'obj' is in the list of targets that should not be removed. - */ -EXPORT BOOL -isprecious(obj) - obj_t *obj; -{ - list_t *l; - - if (Precious == (obj_t *)NULL) - return (FALSE); - - for (l = Precious->o_list; l; l = l->l_next) - if (obj == l->l_obj) - return (TRUE); - return (FALSE); -} - -/* - * Return TRUE if 'obj' is in the list of targets that should not be checked - * aginst existing files. A .PHONY target is asumed to be never up to date, - * it is not removed in case a signal is received. - */ -EXPORT BOOL -isphony(obj) - obj_t *obj; -{ - list_t *l; - - if (Phony == (obj_t *)NULL) - return (FALSE); - - for (l = Phony->o_list; l; l = l->l_next) - if (obj == l->l_obj) - return (TRUE); - return (FALSE); -} - -/* - * Find pattern rule for 'name' starting at 'prule' in rules list. - */ -LOCAL patr_t * -_pattern_rule(prule, name) - register patr_t *prule; - register char *name; -{ - register char *p; - - if (prule == NULL) - return ((patr_t *)0); - - if (Debug > 1) - printf("Searching pattern rule for: %s \n", name); - - for (; prule != NULL; prule = prule->p_next) { - register char *np; - - /* - * XXX NeXT Step has a buggy strstr(); returns NULL if p == "" - */ - p = (char *)prule->p_tgt_prefix; - - if (*p != '\0' && strstr(name, p) != name) - continue; /* no matching prefix */ - - np = name + prule->p_tgt_pfxlen; /* strip matching prefix */ - - if ((p = rstr(np, (char *)prule->p_tgt_suffix)) == NULL) - continue; - -#ifdef DEBUG - if (Debug > 1) { - register cmd_t *cmd; - - printf("name: %s (%s %% %s): (%s %% %s)\n", name, - prule->p_tgt_prefix, prule->p_tgt_suffix, - prule->p_src_prefix, prule->p_src_suffix); - - for (cmd = prule->p_cmd; cmd; cmd = cmd->c_next) { - printf("\t%s\n", cmd->c_line); - } - } -#endif - break; - } - return (prule); -} - -/* - * Find pattern rule for 'obj' ... not yet ready. - */ -LOCAL obj_t * -pattern_rule(obj) - obj_t *obj; -{ - /* - * XXX Hack for now (cast to obj_t *), should return prule. - */ - return ((obj_t *)_pattern_rule(Patrules, obj->o_name)); -} - -/* - * Find a POSIX suffix rule. - * - * Check if obj has a file name with a default dependency for the - * corresponding source and a rule to compile it. - */ -LOCAL obj_t * -suffix_rule(obj, rtypep) - register obj_t *obj; - int *rtypep; -{ - list_t *l; - list_t *l2; - obj_t *o; - char *suffix; - char rulename[TYPICAL_NAMEMAX]; /* Space for two suffixes */ - char *rule = rulename; - char *rp = NULL; - int rlen = sizeof (rulename); - BOOL found_suffix = FALSE; - - if (Suffixes == NULL) - return ((obj_t *)0); - - if (Debug > 1) - printf("Searching double suffix rule for: %s \n", obj->o_name); - - for (l = Suffixes; l; l = l->l_next) { - suffix = l->l_obj->o_name; - if (rstr(obj->o_name, suffix)) { /* may be a suffix */ - - found_suffix = TRUE; - - for (l2 = Suffixes; l2; l2 = l2->l_next) { - again: - if (snprintf(rule, rlen, "%s%s", - l2->l_obj->o_name, - suffix) >= rlen) { - /* - * Expand rule name space. - */ - rlen = strlen(suffix) + - l2->l_obj->o_namelen + 16; - rule = rp = __realloc(rp, rlen, - "suffix rule name"); - goto again; - } - if ((o = objlook(rule, FALSE)) != NULL && o->o_type == COLON) { - *rtypep = RTYPE_DSUFFIX; - if (rp) - free(rp); - return (o); - } - } - } - } - if (rp) - free(rp); - if (found_suffix) - return ((obj_t *) 0); - - if (Debug > 1) - printf("Searching single suffix rule for: %s \n", obj->o_name); - - for (l2 = Suffixes; l2; l2 = l2->l_next) { - rule = l2->l_obj->o_name; - if ((o = objlook(rule, FALSE)) != NULL && o->o_type == COLON) { - *rtypep = RTYPE_SUFFIX; - return (o); - } - } - return ((obj_t *) 0); -} - -LOCAL void -suffix_warn(obj) - obj_t *obj; -{ - list_t *l; - - if (obj->o_list == NULL) - return; - - errmsgno(EX_BAD, - "WARNING: suffix rule '%s' has superfluous dependency: '", - obj->o_name); - - for (l = obj->o_list; l; l = l->l_next) { - error("%s%s", - l->l_obj->o_name, - l->l_next?" ":""); - } - error("'.\n"); -} - -/* - * Find a simple suffix rule. - * - * Check if obj has a file name with a default dependency for the - * corresponding source and a rule to compile it. - */ -LOCAL obj_t * -ssuffix_rule(obj) - register obj_t *obj; -{ - register obj_t *rule; - char *ext; - - if (!SSuffrules) - return ((obj_t *)0); - - if (Debug > 1) - printf("Searching simple-suffix rule for: %s \n", obj->o_name); - - ext = get_suffix(obj->o_name, (char *)0); /* Use '.' (dot) suffix only*/ - - if (ext[0] == '\0') { - if (obj->o_list == (list_t *)NULL) { - ext = "\"\""; /* obj has no suffix: use "" */ - } else { - return ((obj_t *)NULL); /* obj has dependency list */ - } - } - rule = ssufflook(ext, FALSE); - if (rule == (obj_t *)NULL || /* no default rules known */ - rule->o_list == (list_t *)NULL || /* no source suffix list */ - rule->o_cmd == (cmd_t *)NULL) /* no commands defined */ - return ((obj_t *)NULL); - return (rule); -} - -/* - * Check if a default rules exists for the target. - */ -LOCAL obj_t * -default_rule(obj, rtypep) - obj_t *obj; - int *rtypep; -{ - obj_t *rule; - -#ifdef NO_SLASH_IMPLICIT - if (strchr(obj->o_name, SLASH) != NULL) { - if (Debug > 3) - error("%s has slash, no implicit dependency searched.\n", - obj->o_name); - /* - * XXX We need to check if this is a good idea. - */ - rule = (obj_t *)NULL; - } -#endif - rule = pattern_rule(obj); - if (rule) { - *rtypep = RTYPE_PATTERN; - return (rule); - } - - rule = suffix_rule(obj, rtypep); - if (rule) { - return (rule); - } - - rule = ssuffix_rule(obj); - if (rule) { - *rtypep = RTYPE_SSUFFIX; - return (rule); - } - - /* - * XXX Must exits wichtig ?? - */ - *rtypep = RTYPE_DEFAULT; - rule = Deflt; /* .DEFAULT: */ - - if (rule == (obj_t *)NULL || rule->o_cmd == (cmd_t *)NULL) - return ((obj_t *)NULL); - return ((obj_t *)rule->o_cmd); /* XXX Hack for now, should return drule */ -} - -/* - * Return the nth element of a list. - */ -EXPORT list_t * -list_nth(list, n) - register list_t *list; - int n; -{ - for (; list; list = list->l_next) - if (--n < 0) - return (list); - return ((list_t *)NULL); -} - -/* - * Create a new file name from name and the n'th directory in SearchList. - * SearchList lists sourcedirs before objdirs, starting with - * n = 0 for '.' and n = 1 for ObjDir. - * - * Returns: - * NULL No search path at "level" - * name level points to empty dirname - * path New path in space provided py "path" - * other Allocated new path - */ -EXPORT char * -build_path(level, name, namelen, path, psize) - int level; - char *name; - size_t namelen; - char *path; - size_t psize; -{ - list_t *lp; - char *dirname = (char *)NULL; - register int n = level; - - if (n <= 1) { - if (level == OBJLEVEL) { - dirname = ObjDir; - namelen += slashlen + ObjDirlen; - } - } else if (level != MAXLEVEL) { - if ((lp = list_nth(SearchList, n - 2)) == (list_t *)NULL) - return ((char *)NULL); - dirname = lp->l_obj->o_name; - namelen += slashlen + lp->l_obj->o_namelen; - } - if (dirname == (char *)NULL) - return (name); - - if (namelen >= psize) { - psize = namelen + 1; - path = __realloc(NULL, psize, "build path name"); - } - n = snprintf(path, psize, "%s%s%s", dirname, slash, name); - if (n >= psize) - etoolong("build path name", name); - - return (path); -} - -LOCAL void -etoolong(topic, name) - char *topic; - char *name; -{ - comerrno(EX_BAD, "String too long, could not %s for '%s'.\n", - topic, name); - /* NOTREACHED */ -} - -/* - * The growable buffer (gbuf) defines a string with the following layout - * "xxxxxxxxxxxxxxxCxxxxxxxxxxxxxxx________" - * ^ ^ ^ ^ - * | | | | - * gbuf textp sub_ptr gbufend - * textp points to a string that is currently been worked on, - * sub_ptr is the write pointer. - */ -static char *sub_ptr = (char *)NULL; - -LOCAL void -grant_gbuf(size) - int size; -{ - while (sub_ptr + size >= gbufend) - sub_ptr = growgbuf(sub_ptr); -} - -/* - * Put a string bounded by size into the growable buffer. - */ -LOCAL void -sub_put(chunk, size) - char *chunk; - int size; -{ - grant_gbuf(size); - movebytes(chunk, sub_ptr, size); - sub_ptr += size; -} - -/* - * Put a single character into the growable buffer. - */ -LOCAL void -sub_c_put(c) - int c; -{ - grant_gbuf(1); - *sub_ptr++ = c & 0xFF; -} - -/* - * Put a string bounded by strlen() into the growable buffer. - */ -LOCAL void -sub_s_put(chunk) - char *chunk; -{ - sub_put(chunk, strlen(chunk)); -} - -/* - * Put one arg into the growable buffer. - * - * It target is nonzero, check in addition if the target - * depends on the date of the currently selected obj too. - * - * Return FALSE if no more list elements are available. - */ -LOCAL BOOL -sub_arg(n, depends, target) - int n; - list_t *depends; - obj_t *target; -{ - register obj_t *obj; - char arg[TYPICAL_NAMEMAX]; - char *argp; - - if ((depends = list_nth(depends, n)) == (list_t *)NULL) - return (FALSE); - - /* - * $0 is not available if no implicit source is present! - * Just skip it. - */ - if ((obj = - depends->l_obj) == (obj_t *)NULL) - return (TRUE); - - /* - * It the target does not yet exist, target->o_date is set - * to RECURSETIME. We need to make sure that newtime in the - * dependencies (here obj) is considered > target->o_date. - */ - if (target != NULL && - VALIDTIME(target->o_date) && target->o_date > obj->o_date) { - return (TRUE); - } - if ((argp = build_path(obj->o_level, obj->o_name, obj->o_namelen, - arg, sizeof (arg))) != NULL) { - sub_s_put(argp); - if (argp != obj->o_name && argp != arg) { - free(argp); - } - } else { - sub_s_put(obj->o_name); - } - return (TRUE); -} - -/* - * Do macro substitution. Substitution is done in the growable buffer buf. - * The buffer is used as stack to allow recursive substitution. - */ -EXPORT char * -substitute(cmd, obj, source, suffix) - register char *cmd; - obj_t *obj; - obj_t *source; - char *suffix; -{ - list_t depends; - - found_make = FALSE; /* we did not expand $(MAKE) */ - depends.l_obj = source; /* define implicit source $< */ - depends.l_next = obj->o_list; - - sub_ptr = gbuf; - return (subst(cmd, obj, source, suffix, &depends)); -} - -static int depth = 0; /* Keep track of recursion */ - -/* - * Substitute macros. - */ - /* source wird eigentlich nicht gebraucht */ -LOCAL char * -subst(cmd, obj, source, suffix, depends) - register char *cmd; - obj_t *obj; - obj_t *source; - char *suffix; - list_t *depends; -{ - char *sp = sub_ptr; - char *sb = gbuf; - register char *p; - char name[2]; - - if (++depth > 100) - comerrno(EX_BAD, "Recursion in macro '%s'.\n", cmd); - - name[1] = '\0'; - while ((p = strchr(cmd, '$')) != NULL) { - sub_put(cmd, p - cmd); - cmd = ++p; - switch (*cmd++) { - - default: - if (chartype[*(Uchar *)p] & DYNCHAR) { - cmd = dynmac(p, obj, source, suffix, depends, FALSE); - continue; - } - name[0] = cmd[-1]; - exp_name(name, obj, source, suffix, depends, Nullstr); - break; - case '\0': - *sub_ptr = '\0'; - /* - * No need to update 'sb' as we exit here... - */ - if (sb != gbuf) - sp = gbuf + (sp - sb); - comerrno(EX_BAD, - "Fatal error '$' at end of string '%s$'\n", - sp); - /* NOTREACHED */ - case '$': - sub_c_put('$'); - break; - case '(': - cmd = exp_var(')', cmd, obj, source, suffix, depends); - break; - case '{': - cmd = exp_var('}', cmd, obj, source, suffix, depends); - break; - } - } - sub_s_put(cmd); - *sub_ptr = '\0'; - depth--; - if (sb != gbuf) - sp = gbuf + (sp - sb); - return (sp); -} - -/* - * Substitute dynamic macros. - */ -LOCAL char * -dynmac(cmd, obj, source, suffix, depends, domod) - char *cmd; - obj_t *obj; - obj_t *source; - char *suffix; - list_t *depends; - BOOL domod; -{ - int num; - char _base[TYPICAL_NAMEMAX]; - char *base = _base; - char *bp = NULL; - size_t blen = sizeof (_base); - char *sp = sub_ptr; - char *sb = gbuf; - char *sp1; - char *sb1; - register char *p = cmd; - - switch (*cmd++) { - - default: - return (cmd); - - case '@': - if (obj->o_flags & F_DCOLON) /* Is a ::@ target */ - sub_s_put(obj->o_node->o_name); /* $@ -> full target name */ - else - sub_s_put(obj->o_name); /* $@ -> full target name */ - break; - case '*': - if (obj->o_namelen >= blen) { - blen = obj->o_namelen + 1; - base = bp = __realloc(bp, blen, "base name"); - } - if (suffix == NULL) { - copy_base(obj->o_name, base, blen, suffix); - if (!nowarn("$*")) - warn_implicit(obj, "$*", base); - } -#ifdef used_to_be_in_former_versions - copy_base(filename(obj->o_name), base, blen, suffix); -#endif - if (ObjDir || SearchList) { /* May be removed in 2010 */ - - if (obj->o_name != filename(obj->o_name) && - objlook("VPATH", FALSE) == NULL) - error( - "WARNING: Old: convert $* from '%s' -> '%s'\n", - obj->o_name, filename(obj->o_name)); - } - copy_base(obj->o_name, base, blen, suffix); - sub_s_put(base); /* $* -> target name base */ - break; - case '<': - if (depends->l_obj == NULL && !nowarn("$<")) - warn_implicit(obj, "$<", ""); - sub_arg(0, depends, (obj_t *)0); /* $< -> implicit source */ - break; - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - cmd = astoi(p, &num); /* $1 -> first dependency */ - sub_arg(num, depends, (obj_t *)0); /* $0 -> implicit source */ - break; - case 'r': - /* - * $r0 -> all dependencies + implicit source - * $r1 -> all dependencies - */ - sp1 = sub_ptr; - sb1 = gbuf; - cmd = astoi(cmd, &num); - while (sub_arg(num++, depends, (obj_t *)0)) { - if (sb1 != gbuf) - sp1 = gbuf + (sp1 - sb1); - if (sp1 != sub_ptr) /* Add only if nonempty arg */ - sub_c_put(' '); - sp1 = sub_ptr; - sb1 = gbuf; - } - if (sb != gbuf) - sp = gbuf + (sp - sb); - if (sp != sub_ptr && sub_ptr[-1] == ' ') - sub_ptr--; /* Kill last space */ - break; - case '^': - sp1 = sub_ptr; - sb1 = gbuf; - num = 1; /* $^ -> all dependencies */ - while (sub_arg(num++, depends, (obj_t *)0)) { - if (sb1 != gbuf) - sp1 = gbuf + (sp1 - sb1); - if (sp1 != sub_ptr) /* Add only if nonempty arg */ - sub_c_put(' '); - sp1 = sub_ptr; - sb1 = gbuf; - } - if (sb != gbuf) - sp = gbuf + (sp - sb); - if (sp != sub_ptr && sub_ptr[-1] == ' ') - sub_ptr--; /* Kill last space */ - break; - case '?': - sp1 = sub_ptr; - sb1 = gbuf; - num = 1; /* $? -> outdated dependencies*/ - while (sub_arg(num++, depends, obj)) { - if (sb1 != gbuf) - sp1 = gbuf + (sp1 - sb1); - if (sp1 != sub_ptr) /* Add only if nonempty arg */ - sub_c_put(' '); - sp1 = sub_ptr; - sb1 = gbuf; - } - if (sb != gbuf) - sp = gbuf + (sp - sb); - if (sp != sub_ptr && sub_ptr[-1] == ' ') - sub_ptr--; /* Kill last space */ - break; - } - *sub_ptr = '\0'; - if (bp) - free(bp); - if (!domod) - return (cmd); - if (sb != gbuf) - sp = gbuf + (sp - sb); - if (*cmd == 'F') { - extr_filenames(sp); /* 'sp' must be in gbuf */ - return (++cmd); - } - if (*cmd == 'D') { - extr_dirnames(sp); /* 'sp' must be in gbuf */ - return (++cmd); - } - return (cmd); -} - -LOCAL void -warn_implicit(obj, mac, exp) - obj_t *obj; - char *mac; - char *exp; -{ - errmsgno(EX_BAD, - "WARNING: requesting implicit dynmac '%s' for explicit target '%s'\n", - mac, obj->o_name); - errmsgno(EX_BAD, - "WARNING: expanding implicit dynmac '%s' to '%s'\n", - mac, exp); - errmsgno(EX_BAD, - "WARNING: Current working directory: '%s', Makefile '%s'\n", - curwdir(), MakeFileNames[obj->o_fileindex]); -} - -/* - * Extract the filename parts from a string that contains a list of names. - * - * The parameter 'names' is expected to be on the 'growable buffer'. - * If we ever need to use extr_filenames() otherwise, we need to add a boolean - * parameter that tells extr_filenames() whether 'names' needs to be corrected - * if 'gbuf' did change or not. - */ -LOCAL void -extr_filenames(names) - char *names; -{ - char *p; - char *np; - char *s; - char *sp; - char *sb; - - sp = ++sub_ptr; - sb = gbuf; - /* - * Make sure that gbuf has enough room for the copy. - */ - grant_gbuf(sub_ptr - names); - if (sb != gbuf) { - sp = gbuf + (sp - sb); - names = gbuf + (names - sb); - } - for (np = p = names, s = sp; np && *np; p = np) { - np = strchr(np, ' '); - if (np) - *np++ = '\0'; - p = filename(p); - while (*p) - *s++ = *p++; - if (np) - *s++ = ' '; - } - *s = '\0'; - /* - * Now copy down from uppe part of gbuf. - */ - for (s = names, p = sp; *p; ) - *s++ = *p++; - *s = '\0'; - sub_ptr = s; -} - -/* - * Extract the directory parts from a string that contains a list of names. - * - * The parameter 'names' is expected to be on the 'growable buffer'. - * If we ever need to use extr_dirnames() otherwise, we need to add a boolean - * parameter that tells extr_dirnames() whether 'names' needs to be corrected - * if 'gbuf' did change or not. - */ -LOCAL void -extr_dirnames(names) - char *names; -{ - char *p; - char *np; - char *s; - char *sp; - char *sb; - char _base[TYPICAL_NAMEMAX]; - char *base = _base; - char *bp = NULL; - size_t blen = sizeof (_base); - size_t len; - - sp = ++sub_ptr; - sb = gbuf; - /* - * Make sure that gbuf has enough room for the copy. - */ - grant_gbuf(sub_ptr - names); - if (sb != gbuf) { - sp = gbuf + (sp - sb); - names = gbuf + (names - sb); - } - for (np = p = names, s = sp; np && *np; p = np) { - np = strchr(np, ' '); - if (np) { - *np++ = '\0'; - len = np - p; - } else { - len = strlen(p) + 1; - } - if (len > blen) { - blen = len + 32; /* Add some reserve */ - base = bp = __realloc(bp, blen, "dir base"); - } - copy_dir(p, base, blen); - p = base; - while (*p) - *s++ = *p++; - if (np) - *s++ = ' '; - } - *s = '\0'; - if (bp) - free(bp); - /* - * Now copy down from upper part of gbuf. - */ - for (s = names, p = sp; *p; ) - *s++ = *p++; - *s = '\0'; - sub_ptr = s; -} - -#define white(c) ((c) == ' ' || (c) == '\t') - -/* - * Expand a macro. - * As the replacement may be a suffix rule or a pattern rule too, - * we first must get the basic name the macro referres to. - */ -#ifdef PROTOTYPES -LOCAL char * -exp_var( - register char end, - char *cmd, - obj_t *obj, - obj_t *source, - char *suffix, - list_t *depends) -#else -LOCAL char * -exp_var(end, cmd, obj, source, suffix, depends) - register char end; - char *cmd; - obj_t *obj; - obj_t *source; - char *suffix; - list_t *depends; -#endif -{ - char _name[TYPICAL_NAMEMAX]; - char *name = _name; - char *nep = &_name[sizeof (_name) - 2]; - char *np = NULL; - size_t nlen = sizeof (_name); - char _pat[TYPICAL_NAMEMAX]; - char *pat = _pat; - char *pep = &_pat[sizeof (_pat) - 2]; - char *pp = NULL; - size_t plen = sizeof (_pat); - register char beg = cmd[-1]; - register char *s = cmd; - register char *rname = name; - register char ch; - register int nestlevel = 0; - BOOL funccall = FALSE; - -/*error("end: %c cmd: %.50s\n", end, cmd);*/ - pat[0] = '\0'; - while ((ch = *s) != '\0' && ch != ':' && !white(ch)) { - if (ch == beg) - nestlevel++; - if (ch == end) - nestlevel--; - if (nestlevel < 0) { -/*printf("name: %s\n", name);*/ - break; - } - if (rname >= nep) { - nlen += TYPICAL_NAMEMAX*2; - name = __realloc(np, nlen, "macro name"); - if (np == NULL) { - /* - * Copy old content - */ - strlcpy(name, _name, sizeof (_name)); - rname = name + (rname - _name); - } else { - rname = name + (rname - np); - } - np = name; - nep = &name[nlen - 2]; - } - *rname++ = *s++; - } - *rname = '\0'; - - if (ch == ' ') - funccall = TRUE; - - if (*s != end && *s != ':' && *s != ' ') { - comerrno(EX_BAD, "Missing '%c' in macro call '%s'\n", end, name); - /* NOTREACHED */ -/* return (cmd);*/ - } - - if (*s == ':' || *s == ' ') { - rname = pat; - if (funccall) { - while (*s && white(*s)) - s++; - } else { - s++; - } - while ((ch = *s) != '\0') { - if (ch == beg) - nestlevel++; - if (ch == end) - nestlevel--; - if (nestlevel < 0) { -/*printf("name: %s\n", name);*/ - break; - } - if (rname >= pep) { - plen += TYPICAL_NAMEMAX*2; - pat = __realloc(pp, plen, "macro pattern"); - if (pp == NULL) { - /* - * Copy old content - */ - strlcpy(pat, _pat, sizeof (_pat)); - rname = pat + (rname - _pat); - } else { - rname = pat + (rname - pp); - } - pp = pat; - pep = &pat[plen - 2]; - } - *rname++ = *s++; - } - *rname = '\0'; - - if (nestlevel >= 0) - comerrno(EX_BAD, "Missing '%c' in macro call '%s%c%s'\n", - end, name, funccall?' ':':', pat); - } - if (*s) - s++; - - if (name[0] == 'M' && streql(name, "MAKE")) - found_make = TRUE; - - /* - * If the name of the macro contains a '$', resursively expand it. - * We need to check if we should rather expand anything between the - * brackets (e.g {...}) however, this may fail to expand long lists. - * See also comment in exp_name() regarding USE_SUBPAT - */ - if (strchr(name, '$')) { - char *sp = sub_ptr; - char *sb = gbuf; - char *s2; - - *sub_ptr++ = '\0'; - - s2 = subst(name, obj, source, suffix, depends); - if (sb != gbuf) - sp = gbuf + (sp - sb); - sub_ptr = sp; - if (*s2) { - if (strlcpy(name, s2, nlen) >= nlen) { - nlen = strlen(s2) +1; - name = np = __realloc(np, nlen, "macro name"); - if (strlcpy(name, s2, nlen) >= nlen) - etoolong("copy macro content", s2); - } - } - } - - if (funccall) { - /* - * GNU type macro functions will go here. - */ - goto out; - } -/*printf("name: '%s' pat: '%s'\n", name, pat);*/ - exp_name(name, obj, source, suffix, depends, pat); -out: - if (np) - free(np); - if (pp) - free(pp); - return (s); -} - -/* - * Check if s1 ends in strings s2 - */ -LOCAL char * -rstr(s1, s2) - char *s1; - char *s2; -{ - int l1; - int l2; - - l1 = strlen(s1); - l2 = strlen(s2); - if (l2 > l1) - return ((char *)NULL); - - if (streql(&s1[l1 - l2], s2)) - return (&s1[l1 - l2]); - return ((char *)NULL); -} - -/* - * Substitute a pattern: - * 1) select the part of 'name' that is surrounded by f1 & f2 - * 2a) output the selected part from 'name' and t1 (suffix) - * 2b) output t2 - - * if t2 contains '%' substitute the selected part of 'name' - * - * The parameter 'name' is expected to be on the 'growable buffer'. - * If we ever need to use patsub() otherwise, we need to add a boolean - * parameter that tells patsub() whether 'name' needs to be corrected - * if 'gbuf' did change or not. - */ -LOCAL BOOL -patsub(name, f1, f2, t1, t2) - char *name; - char *f1; - char *f2; - char *t1; - char *t2; -{ - int l; - char *p; - char *sb = gbuf; - -/* printf("name: '%s' f1: '%s' f2: '%s' t1: '%s' t2: '%s'\n", name, f1, f2, t1, t2);*/ - - /* - * Make sure $(VAR:%=PREFIX/%) does not expand if $VAR is empty. - */ - if (*name == '\0' && *f1 == '\0' && *f2 == '\0') - return (FALSE); - /* - * XXX NeXT Step has a buggy strstr(); returns NULL if f1 == "" - * XXX f1 is guaranteed to be != NULL - */ - if (*f1 != '\0' && strstr(name, f1) != name) - return (FALSE); /* no matching prefix */ - - name += strlen(f1); /* strip matching prefix */ - - if ((p = rstr(name, f2)) == NULL) - return (FALSE); /* no matching suffix */ - - l = p - name; - if (t1 != NULL) { /* This is a suffix rule */ - grant_gbuf(l); /* Grow gbuf before sub_put() */ - if (sb != gbuf) { - name = gbuf + (name - sb); - sb = gbuf; - } - sub_put(name, l); /* 'name' is on gbuf... */ - p = t1; - } else { /* This is a pattern rule */ - p = t2; - } - while (*p) { - if (*p == '%') { - p++; - grant_gbuf(l); /* Grow gbuf before sub_put() */ - if (sb != gbuf) { - name = gbuf + (name - sb); - sb = gbuf; - } - sub_put(name, l); /* 'name' is on gbuf... */ - } else { - sub_c_put(*p++); - } - } - return (TRUE); -} - -#ifdef needed -/* - * Do pattern substitution in a macro that may only contain one word. - * - * The parameter 'name' is expected to be on the 'growable buffer'. - * If we ever need to use patssub() otherwise, we need to add a boolean - * parameter that tells patssub() whether 'name' needs to be corrected - * if 'gbuf' did change or not. - */ -LOCAL void -patssub(name, f1, f2, t1, t2) - char *name; - char *f1; - char *f2; - char *t1; - char *t2; -{ - char *osp = name; - char *sp = sub_ptr; - char *sb = gbuf; - - *sub_ptr++ = '\0'; - - if (!patsub(name, f1, f2, t1, t2)) { - sub_ptr = sp; - return; - } - *sub_ptr = '\0'; - sub_ptr = osp; - if (sb != gbuf) { - sp = gbuf + (sp - sb); - sub_ptr = gbuf + (sub_ptr - sb); - } - sub_s_put(&sp[1]); -} -#endif - -/* - * Do pattern substitution in a macro that may contain multiple words. - * Subtitution is applied separately to each word. - * - * The parameter 'name' is expected to be on the 'growable buffer'. - * If we ever need to use patmsub() otherwise, we need to add a boolean - * parameter that tells patmsub() whether 'name' needs to be corrected - * if 'gbuf' did change or not. - */ -LOCAL void -patmsub(name, f1, f2, t1, t2) - char *name; - char *f1; - char *f2; - char *t1; - char *t2; -{ - char *osp = name; - char *sp = sub_ptr; - char *sb = gbuf; - char *b; - char c; - - *sub_ptr++ = '\0'; - - do { - b = name; - while (*b != '\0' && !white(*b)) - b++; - if ((c = *b) != '\0') - *b++ = '\0'; - else - b = NULL; - -/*error("name '%s'\n", name);*/ - if (!patsub(name, f1, f2, t1, t2)) { - char *n = name; - - grant_gbuf(strlen(name)); /* Grow gbuf before */ - if (sb != gbuf) - n = gbuf + (n - sb); - sub_s_put(n); /* 'n' is on gbuf... */ - } - if (sb != gbuf) { - sp = gbuf + (sp - sb); - osp = gbuf + (osp - sb); - name = gbuf + (name - sb); - if (b != NULL) - b = gbuf + (b - sb); - sb = gbuf; - } - - if (b) { - sub_c_put(c); - while (*b != '\0' && white(*b)) - sub_c_put(*b++); - } - name = b; - } while (b); - *sub_ptr = '\0'; - sub_ptr = osp; - if (sb != gbuf) { - sp = gbuf + (sp - sb); - sub_ptr = gbuf + (sub_ptr - sb); - } - sub_s_put(&sp[1]); -} - -/* - * Parse a pattern and divide pattern into parts. - * - * Check if this is a suffix rule or a pattern rule. - * - * If this is a suffix rule (suf1=suf2), tp2 will point to a NULL pointer, - * if this is a pattern rule (pref1%suf1=pref1%suf2) tp1 will point to NULL. - */ -LOCAL void -parsepat(pat, fp1, fp2, tp1, tp2) - char *pat; - char **fp1; - char **fp2; - char **tp1; - char **tp2; -{ - char *f1; - char *f2; - char *t1; - char *t2; - - t1 = strchr(pat, '='); - if (t1 == NULL) - comerrno(EX_BAD, "'=' missing in macro substitution.\n"); - *t1++ = '\0'; - - f2 = strchr(pat, '%'); /* Find '%' in from patttern */ - if (f2 != NULL) { - *f2++ = '\0'; - f1 = pat; - } else { - f2 = pat; - f1 = Nullstr; - } - if (f1 == pat) { /* This is a pattern rule */ - t2 = t1; - t1 = NULL; - } else { /* This is a suffix rule */ - t2 = NULL; - } - *fp1 = f1; - *fp2 = f2; - *tp1 = t1; - *tp2 = t2; -/* printf("f1: '%s' f2: '%s' t1: '%s' t2: '%s'\n", f1, f2, t1, t2);*/ -} - -#if !defined(HAVE_POPEN) && defined(HAVE__POPEN) -# define popen _popen -# define HAVE_POPEN -#endif -#if !defined(HAVE_PCLOSE) && defined(HAVE__PCLOSE) -# define pclose _pclose -# define HAVE_PCLOSE -#endif -/* - * Call shell command and capture the outpout in the growable buffer. - */ -EXPORT char * -shout(cmd) - char *cmd; -{ - FILE *f; - int c; - char *sptr = sub_ptr; - char *sbuf = gbuf; - - if (sub_ptr == NULL) - sptr = sub_ptr = gbuf; - - f = popen(cmd, "r"); - if (f == NULL) - comerr("Cannot popen '%s'.\n", cmd); - - while ((c = getc(f)) != EOF) { - if (c == '\t' || c == '\n') - c = ' '; - sub_c_put(c); - } - if ((c = pclose(f)) != 0) - comerr("Shell returns %d from command line.\n", c); - *sub_ptr = '\0'; - if (sbuf != gbuf) - sptr = gbuf + (sptr - sbuf); - return (sptr); -} - -/* - * Substitute a shell command output - */ -LOCAL char * -shsub(l, obj, source, suffix, depends) - register list_t *l; - obj_t *obj; - obj_t *source; - char *suffix; - list_t *depends; -{ - char *sptr = sub_ptr; - char *sbuf = gbuf; - - if (sub_ptr == NULL) - sptr = sub_ptr = gbuf; - - for (;;) { - subst(l->l_obj->o_name, obj, source, suffix, depends); - if ((l = l->l_next) != NULL) - sub_c_put(' '); - else - break; - } - *sub_ptr = '\0'; - if (sbuf != gbuf) - sptr = gbuf + (sptr - sbuf); - sub_ptr = sptr; - - return (shout(sptr)); -} - -/* - * Expand a macro for which the name is explicitely known. - */ -LOCAL void -exp_name(name, obj, source, suffix, depends, pat) - char *name; - obj_t *obj; - obj_t *source; - char *suffix; - list_t *depends; - char *pat; -{ - register list_t *l = NULL; - obj_t *o = NULL; - BOOL ispat; - char epat[TYPICAL_NAMEMAX*2]; /* Was NAMEMAX */ - char *epa = epat; - char *ep = NULL; - char *f1, *f2; - char *t1, *t2; - char *sp; - char *sb; - - if ((chartype[*(Uchar *)name] & DYNCHAR) == 0 || - (*name == 'r' && (chartype[((Uchar *)name)[1]] & NUMBER) == 0)) { - /* - * Allow dynamic macros to appear in $() or ${} too. - */ - o = objlook(name, FALSE); - if (o == (obj_t *)NULL) { - /* - * Check for $O -> ObjDir (speudo dyn) macro. - * $O is a speudo dyn macro as we allow to overwrite it - * in order get full POSIX make compliance. - */ - if (name[0] == 'O' && name[1] == '\0') { - /* - * If $O has not been overwritten, use ObjDir. - */ - if (ObjDir == NULL) { - sp = sub_ptr; - sb = gbuf; - sub_c_put('.'); - sub_ptr = '\0'; - if (pat[0] != '\0') { - char *p; - p = subst(pat, obj, source, - suffix, depends); - if ((sub_ptr - p) >= - sizeof (epat)) { - epa = ep = __realloc(ep, - sub_ptr - p + 1, - "pattern content"); - } - strcpy(epa, p); - /* - * Free space from subpat() - */ - sub_ptr = p; - parsepat(epa, &f1, &f2, &t1, &t2); - if (sb != gbuf) - sp = gbuf + (sp - sb); - /* - * patmsub() expects first - * parameter to be in 'gbuf' - */ - patmsub(sp, f1, f2, t1, t2); - } - } else { - exp_name(".OBJDIR", obj, source, suffix, depends, pat); - } - } - if (ep) - free(ep); - return; - } - if ((l = o->o_list) == (list_t *)NULL) - return; - } - if (streql(pat, "sh")) { - /* - * Allow SunPRO make compatible shell expansion as $(NAME:sh) - */ - if (o != NULL) { - shsub(o->o_list, obj, source, suffix, depends); - } else { - /* - * Process dynamic macros that appear in $() or ${}. - */ - sp = sub_ptr; - sb = gbuf; - dynmac(name, obj, source, suffix, depends, TRUE); -/*error("expanded1: '%s'\n", sp);*/ - if (sb != gbuf) - sp = gbuf + (sp - sb); - sub_ptr = sp; - (void) shout(sp); - } - return; - } - ispat = pat[0] != '\0'; - if (ispat) { - char *p = subst(pat, obj, source, suffix, depends); - - if ((sub_ptr - p) >= sizeof (epat)) { - epa = ep = __realloc(ep, sub_ptr - p + 1, - "pattern content"); - } - strcpy(epa, p); - sub_ptr = p; /* Free space from subpat() */ - parsepat(epa, &f1, &f2, &t1, &t2); - } - - if (o == NULL) { - /* - * Process dynamic macros that appear in $() or ${}. - */ - sp = sub_ptr; - sb = gbuf; - dynmac(name, obj, source, suffix, depends, TRUE); -/*error("expanded1: '%s'\n", sp);*/ - if (ispat) { - if (sb != gbuf) - sp = gbuf + (sp - sb); - /* - * patmsub() expects first parameter to be in 'gbuf' - */ - patmsub(sp, f1, f2, t1, t2); -/*error("expanded2: '%s'\n", sp);*/ - } - if (ep) - free(ep); - return; - } - for (;;) { - sp = sub_ptr; - sb = gbuf; - subst(l->l_obj->o_name, obj, source, suffix, depends); -/*error("expanded1: '%s'\n", sp);*/ - if (ispat) { - if (sb != gbuf) - sp = gbuf + (sp - sb); - /* - * patmsub() expects first parameter to be in 'gbuf' - */ - patmsub(sp, f1, f2, t1, t2); -/*error("expanded2: '%s'\n", sp);*/ - } - if ((l = l->l_next) != NULL) - sub_c_put(' '); - else - break; -/*error("expanded3: '%s'\n", sp);*/ - } - if (ep) - free(ep); -} - -LOCAL void -dcolon_time(obj) - register obj_t *obj; -{ -#ifdef __really_needed__ - if (VALIDTIME(obj->o_node->o_date)) - return; -#endif - -#ifdef Do_not_use_o_node - name = strchr(obj->o_name, '@'); - if (name == NULL) - return; - o = objlook(++name, FALSE); -#endif - - obj->o_node->o_date = obj->o_date; - obj->o_node->o_level = obj->o_level; -} - -/* - * Find a file in .SEARCHLIST - * .SEARCHLIST is a list of of src/obj dir pairs - * Before .SEARCHLIST is searched, look for "." and .OBJDIR - */ -LOCAL date_t -searchobj(obj, maxlevel, mode) - register obj_t *obj; - int maxlevel; - int mode; -{ - char name[TYPICAL_NAMEMAX]; - char *namep = NULL; - char *oname = NULL; - register int level = MAXLEVEL; - date_t filedate; - - - name[0] = '\0'; /* for clean debug print */ - - if ((maxlevel & 1) == 0) /* Source has lower level */ - maxlevel += 1; /* include OBJ directory level */ - - if (obj->o_date == PHONYTIME) { - filedate = PHONYTIME; - - } else if (isphony(obj)) { - obj->o_date = filedate = PHONYTIME; - -#ifdef NO_SEARCHOBJ_SLASH_IN_NAME - /* - * Earlier versions of smake did allow slashes anywhere in path names - * and being searched for. A common practice in VPATH usage requires us - * to allow slashes inside a path name again. - */ - } else if (strchr(obj->o_name, SLASH) != (char *)NULL) { -#else - /* - * If an object file name starts with a slash, is is an absolute path - * name so do not search. - */ - } else if (obj->o_name[0] == SLASH) { -#endif - /* - * Do not search for pathnames. - */ - filedate = gftime(obj->o_name); - } else for (level = 0, filedate = NOTIME; level <= maxlevel; level++) { - if (level & 1 ? mode & SOBJ : mode & SSRC) { - oname = obj->o_name; - if ((obj->o_flags & F_DCOLON) != 0) { - oname = obj->o_node->o_name; - if ((namep = build_path(level, - obj->o_node->o_name, - obj->o_node->o_namelen, - name, sizeof (name))) == NULL) - break; - } else if ((namep = build_path(level, obj->o_name, - obj->o_namelen, - name, sizeof (name))) == NULL) - break; - if ((filedate = gftime(namep)) != NOTIME) - break; - if (level == WDLEVEL && ObjDir == (char *)NULL) { - /* - * Working dir has just been searched don't - * look again if no .OBJDIR has been defined. - */ - level++; - } - } - } - if (filedate == NOTIME || filedate == PHONYTIME) - level = MAXLEVEL; - - obj->o_date = filedate; - obj->o_level = level; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - if (Debug > 2) { - error("search(%s, %d, %s) = %s %s %d\n", - obj->o_name, maxlevel, searchtype(mode), - prtime(filedate), namep, level); - } - if (namep != NULL && namep != oname && namep != name) { - free(namep); - } - if (filedate == PHONYTIME) { - return (NOTIME); - } - return (filedate); -} - -/* - * Find a source file for a given object file, use pattern matching rules. - */ -LOCAL obj_t * -patr_src(name, prule, rtypep, suffixp, pcmd, dlev) - char *name; - patr_t *prule; - int *rtypep; - char **suffixp; - cmd_t **pcmd; - int dlev; -{ - char *xname = name; - register obj_t *source; - obj_t newsource; - char _sourcename[TYPICAL_NAMEMAX]; - char *sourcename = _sourcename; - char *sp = NULL; - size_t slen = sizeof (_sourcename); - char _pat[TYPICAL_NAMEMAX]; - char *pat = _pat; - char *pp = NULL; - size_t plen = sizeof (_pat); - char *p; - size_t len; - -again: - *suffixp = (char *)prule->p_tgt_suffix; - - p = (char *)prule->p_tgt_prefix; - xname += prule->p_tgt_pfxlen; /* strip matching prefix */ -/*error("name: '%s'\n", xname);*/ - p = rstr(xname, (char *)prule->p_tgt_suffix); -/*error("p: '%s'\n", p);*/ - len = p - xname + 1; - if (len > plen) { - plen = len; - pat = pp = __realloc(pp, plen, "pattern content"); - } - strlcpy(pat, xname, len); -/*error("pat: '%s' len %d strlen %d\n", pat, len, strlen(pat));*/ - /* - * "len" contains the Null Byte - */ - if ((len = prule->p_src_pfxlen + len + prule->p_src_suflen) > slen) { - slen = len; - sourcename = sp = __realloc(sp, slen, "pattern source name"); - } - if ((len = snprintf(sourcename, slen, "%s%s%s", - prule->p_src_prefix, pat, - prule->p_src_suffix)) >= slen) { - etoolong("copy pattern source name", sourcename); - /* NOTREACHED */ - } -/*error("sourcename: '%s'\n", sourcename);*/ - - newsource.o_name = sourcename; - newsource.o_namelen = len; - newsource.o_date = NOTIME; - newsource.o_type = 0; - newsource.o_flags = 0; - newsource.o_level = MAXLEVEL; - newsource.o_fileindex = 0; - newsource.o_list = (list_t *)NULL; - newsource.o_cmd = (cmd_t *)NULL; - newsource.o_node = (obj_t *)NULL; - - if (prule->p_flags & PF_TERM) - newsource.o_flags |= F_TERM; - - if ((source = objlook(sourcename, FALSE)) != (obj_t *)NULL) { - make(source, TRUE, dlev); /* source found, update it */ - /* XXX make() return value ??? */ - - } else if (make(&newsource, FALSE, - dlev) != NOTIME) { /* found or made source */ - source = objlook(sourcename, TRUE); - source->o_date = newsource.o_date; - source->o_level = newsource.o_level; - if (source->o_flags & F_DCOLON) - dcolon_time(source); - - } else { - /* - * This is a replicated search for additional matches for the - * same obj. - */ - prule = _pattern_rule(prule->p_next, name); - if (prule != NULL) - goto again; - - *pcmd = (cmd_t *)NULL; - source = (obj_t *)0; - goto out; - } - - *pcmd = prule->p_cmd; -out: - if (sp) - free(sp); - if (pp) - free(pp); - return (source); -} - -/* - * Find a source file for a given object file, use POSIX suffix rules. - * Loop over all possible source names for all possible target suffixes. - */ -LOCAL obj_t * -suff_src(name, rule, rtypep, suffixp, pcmd, dlev) - char *name; - obj_t *rule; - int *rtypep; - char **suffixp; - cmd_t **pcmd; - int dlev; -{ - register list_t *suf; /* List of possible suffixes */ - register obj_t *source; - register char *suffix = NULL; - BOOL found_suffix = FALSE; - - for (suf = Suffixes; suf; suf = suf->l_next) { - suffix = suf->l_obj->o_name; - if (rstr(name, suffix) == NULL) /* may not be a suffix */ - continue; - - found_suffix = TRUE; - *suffixp = suffix; - if ((source = one_suff_src(name, suffix, pcmd, dlev)) != NULL) - return (source); - } - if (found_suffix) { - *pcmd = (cmd_t *)NULL; - return ((obj_t *)0); - } - /* - * XXX We should never come here. - */ - errmsgno(EX_BAD, "XXX Expected double suffix rule but found none.\n"); - return (one_suff_src(name, Nullstr, pcmd, dlev)); -} - -/* - * Find a source file for a given object file, use POSIX suffix rules. - * Loop over all possible source names for one given target suffix. - */ -LOCAL obj_t * -one_suff_src(name, suffix, pcmd, dlev) - char *name; - char *suffix; - cmd_t **pcmd; - int dlev; -{ - register list_t *suf; /* List of possible suffixes */ - register obj_t *o; - register obj_t *source; - obj_t newsource; - char _sourcename[TYPICAL_NAMEMAX]; - char *sourcename = _sourcename; - char *sp = NULL; - size_t slen = sizeof (_sourcename); - char *endbase; - char _rulename[TYPICAL_NAMEMAX]; - char *rulename = _rulename; - char *rp = NULL; - size_t rlen = sizeof(_rulename); - size_t endlen; - size_t sourcelen; - size_t len; - - if ((len = strlen(name)) >= slen) { - slen = len + 16; /* Add space for '\0' and suf */ - sourcename = sp = __realloc(sp, slen, - "suffix source name"); - } - copy_base(name, sourcename, slen, suffix); - endbase = sourcename + strlen(sourcename); - endlen = slen - (endbase - sourcename); - - newsource.o_name = sourcename; - newsource.o_namelen = sourcelen = strlen(sourcename); - newsource.o_date = NOTIME; - newsource.o_type = 0; - newsource.o_flags = 0; - newsource.o_level = MAXLEVEL; - newsource.o_fileindex = 0; - newsource.o_list = (list_t *)NULL; - newsource.o_cmd = (cmd_t *)NULL; - newsource.o_node = (obj_t *)NULL; - - for (suf = Suffixes; suf; suf = suf->l_next) { - again: - if (snprintf(rulename, rlen, - "%s%s", - suf->l_obj->o_name, - suffix) >= rlen) { - /* - * Expand rule name space. - */ - rlen = strlen(suffix) + suf->l_obj->o_namelen + 16; - rulename = rp = __realloc(rp, rlen, "suffix rule name"); - goto again; - - } - - if ((o = objlook(rulename, FALSE)) == NULL || o->o_type != COLON) - continue; - - if (o->o_list) - suffix_warn(o); - - if (Debug > 1) - error("Trying %s suffix rule '%s' for: %s (suffix: '%s')\n", - *suffix?"double":"single", rulename, name, suffix); - - if (suf->l_obj->o_namelen >= endlen) { - slen = sourcelen + suf->l_obj->o_namelen + 1; - sourcename = __realloc(sp, slen, - "suffix source name"); - if (sp == NULL) { - /* - * Copy old content - */ - strlcpy(sourcename, _sourcename, sourcelen+1); - } - newsource.o_name = sp = sourcename; - endbase = sourcename + sourcelen; - endlen = slen - (endbase - sourcename); - } - if (strlcpy(endbase, suf->l_obj->o_name, endlen) >= endlen) - etoolong("build suffix source name", sourcename); - newsource.o_namelen = sourcelen + suf->l_obj->o_namelen; - if ((source = objlook(sourcename, FALSE)) != (obj_t *)NULL) { - make(source, TRUE, dlev); /* source known, update it */ - /* XXX make() return value ??? */ - - *pcmd = o->o_cmd; - if (sp) - free(sp); - if (rp) - free(rp); - return (source); - } - if (make(&newsource, FALSE, - dlev) != NOTIME) { /* found/made source */ - source = objlook(sourcename, TRUE); - source->o_date = newsource.o_date; - source->o_level = newsource.o_level; - if (source->o_flags & F_DCOLON) - dcolon_time(source); - - *pcmd = o->o_cmd; - if (sp) - free(sp); - if (rp) - free(rp); - return (source); - } - } - if (sp) - free(sp); - if (rp) - free(rp); - *pcmd = (cmd_t *)NULL; - return ((obj_t *)0); -} - -/* - * Find a source file for a given object file, use simple suffix rules. - */ -LOCAL obj_t * -ssuff_src(name, rule, rtypep, suffixp, pcmd, dlev) - char *name; - obj_t *rule; - int *rtypep; - char **suffixp; - cmd_t **pcmd; - int dlev; -{ - register list_t *suf = rule->o_list; /* List of possible suffixes */ - register cmd_t *cmd = rule->o_cmd; /* List of implicit commands */ - cmd_t *ncmd; /* for allocated new command */ - register obj_t *source; - obj_t newsource; - char _sourcename[TYPICAL_NAMEMAX]; - char *sourcename = _sourcename; - char *sp = NULL; - size_t slen = sizeof (_sourcename); - char *endbase; - size_t endlen; - size_t sourcelen; - size_t len; - - *suffixp = get_suffix(name, (char *)0); /* Use '.' (dot) suffix only */ - - if ((len = strlen(name)) >= slen) { - slen = len + 16; /* Add space for '\0' and suf */ - sourcename = sp = __realloc(sp, slen, - "simple suffix source name"); - } - copy_base(name, sourcename, slen, (char *)NULL); - endbase = sourcename + strlen(sourcename); - endlen = slen - (endbase - sourcename); - - newsource.o_name = sourcename; - newsource.o_namelen = sourcelen = strlen(sourcename); - newsource.o_date = NOTIME; - newsource.o_type = 0; - newsource.o_flags = 0; - newsource.o_level = MAXLEVEL; - newsource.o_fileindex = 0; - newsource.o_list = (list_t *)NULL; - newsource.o_cmd = (cmd_t *)NULL; - newsource.o_node = (obj_t *)NULL; - - do { - if (suf->l_obj->o_namelen >= endlen) { - slen = sourcelen + suf->l_obj->o_namelen + 1; - sourcename = __realloc(sp, slen, - "simple suffix source name"); - if (sp == NULL) { - /* - * Copy old content - */ - strlcpy(sourcename, _sourcename, sourcelen+1); - } - newsource.o_name = sp = sourcename; - endbase = sourcename + sourcelen; - endlen = slen - (endbase - sourcename); - } - if (strlcpy(endbase, suf->l_obj->o_name, endlen) >= endlen) - etoolong("build simple suffix source name", sourcename); - newsource.o_namelen = sourcelen + suf->l_obj->o_namelen; - if ((source = objlook(sourcename, FALSE)) != (obj_t *)NULL) { - make(source, TRUE, dlev); /* source known, update it */ - /* XXX make() return value ??? */ - break; - } - if (make(&newsource, FALSE, - dlev) != NOTIME) { /* found/made source */ - source = objlook(sourcename, TRUE); - source->o_date = newsource.o_date; - source->o_level = newsource.o_level; - if (source->o_flags & F_DCOLON) - dcolon_time(source); - - break; - } - } while ((suf = suf->l_next) != (list_t *)NULL && - (cmd = cmd->c_next) != (cmd_t *)NULL); - if (sp) - free(sp); - if (source) { - ncmd = (cmd_t *)fastalloc(sizeof (cmd_t)); - ncmd->c_next = (cmd_t *)NULL; - ncmd->c_line = cmd->c_line; - *pcmd = ncmd; - *rtypep |= RTYPE_NEEDFREE; - } else { - *pcmd = (cmd_t *)NULL; - } - return (source); -} - -LOCAL obj_t *BadObj; -/* - * Find a source file for a given object file. - */ -LOCAL obj_t * -findsrc(obj, rule, rtypep, suffixp, pcmd, dlev) - obj_t *obj; - obj_t *rule; - int *rtypep; - char **suffixp; - cmd_t **pcmd; - int dlev; -{ - int rtype = *rtypep; - - if (BadObj == NULL) { - BadObj = objlook("BAD OBJECT", TRUE); - BadObj->o_date = BADTIME; - BadObj->o_type = ':'; - } - *suffixp = (char *)NULL; - *pcmd = (cmd_t *)NULL; - - if (obj->o_flags & F_TERM) - return ((obj_t *)0); - - switch (rtype) { - - case RTYPE_PATTERN: - return (patr_src(obj->o_name, (patr_t *)rule, - rtypep, suffixp, pcmd, dlev)); - - case RTYPE_DSUFFIX: - return (suff_src(obj->o_name, rule, - rtypep, suffixp, pcmd, dlev)); - - case RTYPE_SUFFIX: - *suffixp = Nullstr; - return (one_suff_src(obj->o_name, Nullstr, pcmd, dlev)); - - case RTYPE_SSUFFIX: - return (ssuff_src(obj->o_name, rule, - rtypep, suffixp, pcmd, dlev)); - - case RTYPE_DEFAULT: - *pcmd = (cmd_t *)rule; - return (obj); /* This causes $< to be == $@ */ - - default: - break; - } - errmsgno(EX_BAD, "Impossible default rule type %X for '%s'.\n", - rtype, - obj->o_name); - return (BadObj); -} - -/* - * Process a target with no explicit command list. - */ -LOCAL date_t -default_cmd(obj, depname, deptime, deplevel, must_exist, dlev) - register obj_t *obj; - char *depname; - date_t deptime; - int deplevel; - BOOL must_exist; - int dlev; -{ - obj_t *rule = (obj_t *)NULL; - obj_t *source; - cmd_t *cmd; - cmd_t *cp; - char *suffix; - int rtype = RTYPE_NONE; - - - if (dlev <= 0) { - errmsgno(EX_BAD, - "Recursion in default rule for '%s'.\n", - obj->o_name); - return (NOTIME); - } - - if (((obj->o_flags & F_TERM) == 0) && - ((rule = default_rule(obj, &rtype)) == (obj_t *)NULL)) { - /* - * Found no default dependency rule for this target. - * This is most likely a placeholder target where no - * related file exists. As we did not found rules, - * we do not run commands and thus do not propagate deptime. - */ - if (obj->o_list != (list_t *)NULL) { - obj->o_level = deplevel; - return (NOTIME); -#ifdef notdef - /* - * This caused "all is up to date" messages. - */ - return (deptime); -#endif - } - /* - * Found no rule to make target. - */ - if (obj == default_tgt) { - /* - * For intermediate placeholder targets like FORCE: - * that have no prerequisites, do not create an error. - */ - if (obj->o_list == (list_t *)NULL) - return (NOTIME); - errmsgno(EX_BAD, "'%s' does not say how to make '%s'.\n", - MakeFileNames[obj->o_fileindex], obj->o_name); - return (BADTIME); - } - /* - * Check if it is a source. - */ - if (searchobj(obj, MAXLEVEL, SSRC) != NOTIME) - return (obj->o_date); - if (!must_exist) - return (NOTIME); - /* - * For intermediate placeholder targets like FORCE: - * that have no prerequisites, do not create an error. - */ - if (obj->o_list == (list_t *)NULL) - return (NOTIME); - - errmsgno(EX_BAD, "'%s' does not exist.\n", obj->o_name); - return (BADTIME); - } - if ((source = - findsrc(obj, rule, &rtype, &suffix, &cmd, - dlev)) == (obj_t *)NULL) { - - /* Probably a obj file name. */ - if (searchobj(obj, MAXLEVEL, ObjSearch) != NOTIME) - return (obj->o_date); - - if (Debug > 2) - error("Cannot find source for: %s->time: %s %s(type: %X)\n", - obj->o_name, prtime(obj->o_date), - must_exist?"but must ":"", obj->o_type); - if (!must_exist) - return (NOTIME); - /* - * A target must not exist, a dependency must. - */ - if (basetype(obj->o_type) == COLON) - return (NOTIME); - if (!NoWarn) - errmsgno(EX_BAD, - "Can't find any source for '%s'.\n", - obj->o_name); - if (NSflag) - return (NOTIME); /* -N specified */ - return (BADTIME); - } - - if (source->o_date == BADTIME) - goto badtime; - - if (source->o_date > deptime) { /* target depends on this source too */ - depname = source->o_name; - deptime = source->o_date; - } - if (source->o_level < deplevel) - deplevel = source->o_level; - if (deptime == BADTIME) /* Errors occured cannot make source.*/ - goto badtime; - - if (deptime >= newtime || /* made some targets */ - !searchobj(obj, deplevel, SALL) || /* found no obj file */ - deptime > obj->o_date) { /* target is out of date */ - - if (Debug > 0) - error("Default: %s is out of date to: %s%s\n", - obj->o_name, depname, - isphony(obj)?" and .PHONY:":""); - if (Tflag) { - if (!isphony(obj) && !touch_file(obj->o_name)) - goto badtime; - } else for (cp = cmd; cp; cp = cp->c_next) { - if (docmd(substitute(cp->c_line, obj, source, suffix), obj)) { - goto badtime; - } - } - obj->o_date = newtime; - obj->o_level = WDLEVEL; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - } - if ((rtype & RTYPE_NEEDFREE) != 0 && cmd != NULL) - fastfree((char *)cmd, sizeof (*cmd)); - - if (!Tflag && ObjDir != (char *)NULL && obj->o_level == WDLEVEL) { - if (Debug > 3) { - list_t *l = list_nth(SearchList, source->o_level-2); - - error("%s: obj->o_level: %d %s: source->o_level: %d '%s'\n", - obj->o_name, obj->o_level, - source->o_name, source->o_level, - l ? l->l_obj->o_name:Nullstr); - } - obj->o_level = source->o_level; - if ((source->o_level & 1) == 0) /* Source has lower level */ - obj->o_level += 1; /* use corresponding ObjDir*/ - - if (!move_tgt(obj)) { /* move target into ObjDir */ - obj->o_level = WDLEVEL; - return (BADTIME); /* move failed */ - } -/* obj->o_level = OBJLEVEL;*/ - } - return (obj->o_date); -badtime: - if ((rtype & RTYPE_NEEDFREE) != 0 && cmd != NULL) - fastfree((char *)cmd, sizeof (*cmd)); - - return (BADTIME); -} - -/* - * Do all commands that are required to make the current target up to date. - * - * If any step fails, return BADTIME. This will stop dependent commands but - * all other commands, not related to the failed target may be made. - * - * If must_exist is FALSE, return value 0 if no source file exists. - * In this case, findsrc will try other suffixes in the implicit rules. - */ -LOCAL date_t -make(obj, must_exist, dlev) - register obj_t *obj; - BOOL must_exist; - int dlev; -{ - char *depname = 0; - date_t deptime = NOTIME; - date_t mtime; - short deplevel = MAXLEVEL; - register list_t *l; - register obj_t *dep; - register cmd_t *cmd; - - if (Debug > 1) - error("%sing %s\n", must_exist?"Mak":"Check", obj->o_name); - - if (obj->o_date != 0) { - if (Debug > 2) - error("make: %s->time: %s\n", - obj->o_name, prtime(obj->o_date)); - /* - * We have been here before! - */ - if (obj->o_date == RECURSETIME) - comerrno(EX_BAD, "Recursion in dependencies for '%s'.\n", - obj->o_name); - return (obj->o_date); - } - obj->o_date = RECURSETIME; /* mark obj "we have been here" */ - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - /* - * Loop through the list of dependencies for obj, but do not try - * to "make" the names that appear as content of a NAME=val type macro. - */ - if (obj->o_type != EQUAL) - for (l = obj->o_list; l; l = l->l_next) { - dep = l->l_obj; - mtime = make(dep, TRUE, dlev); - if (!Kflag && mtime == BADTIME) { - deptime = BADTIME; - break; - } - - - if (dep->o_date > deptime) { - /* - * Remember the date of the newest - * object in the list. - */ - depname = dep->o_name; - deptime = dep->o_date; - } - if (dep->o_level < deplevel) { - /* - * Remember the highest index in the search path - * for all objects in the list. - */ - deplevel = dep->o_level; - } - } - if (deptime == BADTIME) { /* Errors occured cannot make target.*/ - obj->o_date = BADTIME; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - return (obj->o_date); - } - - if ((obj->o_type != DCOLON) && /* If final :: target */ - (obj->o_flags & F_DCOLON) == 0 && /* If no intermediate target */ - obj->o_cmd == (cmd_t *)NULL) { /* Find default commands */ - obj->o_date = default_cmd(obj, depname, deptime, - deplevel, must_exist, - dlev < 0?16:dlev-1); - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - /* - * Fake sucsess for targets listed in the makefile that have - * no exlicit commands no explicit dependencies (prerequisites) - * and where we * could not find implicit dependencies. - * These intermediate placeholde targets look similar to FORCE: - */ - if (obj->o_list == NULL && obj->o_date == NOTIME && must_exist) - obj->o_date = newtime; - - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - return (obj->o_date); - } - - /* - * There is an explicit command list for the current target. - */ - if (Debug > 2) - error("deptime: %s\n", prtime(deptime)); - if (deptime >= newtime || /* made some targets */ - !searchobj(obj, deplevel, ObjSearch) || /* found no obj file */ - deptime > obj->o_date) { /* tgt is out of date*/ - - if (Debug > 0) - error("Make: %s is out of date to: %s%s\n", - obj->o_name, depname, - isphony(obj)?" and .PHONY:":""); - if (Tflag) { - if (!isphony(obj) && !touch_file(obj->o_name)) { - - obj->o_date = BADTIME; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - - return (obj->o_date); - } - } else for (cmd = obj->o_cmd; cmd; cmd = cmd->c_next) { - if (docmd(substitute(cmd->c_line, obj, (obj_t *)NULL, (char *)NULL), - obj)) { - - obj->o_date = BADTIME; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - return (obj->o_date); - } - } - if (obj->o_level == MAXLEVEL) - searchobj(obj, deplevel, SALL); - obj->o_date = newtime; - if (obj->o_flags & F_DCOLON) - dcolon_time(obj); - } - return (obj->o_date); -} - -/* - * This is the interface function that is to be called from main() - * If called with a NULL pointer, it checks for the default target first, - * otherwise the named target is made. - */ -EXPORT BOOL -domake(name) - char *name; -{ - date_t mtime; - - if (name) { - default_tgt = objlook(name, TRUE); - if (Debug > 0) - error("Target: %s\n", name); - } else if (default_tgt) { - name = default_tgt->o_name; - if (Debug > 0) - error("DTarget: %s\n", name); - } - if (default_tgt) { - mtime = make(default_tgt, TRUE, -1); - if (mtime == BADTIME) { - errmsgno(EX_BAD, "Couldn't make '%s'.\n", name); - if (Debug > 0) - error("Current working directory: %s\n", curwdir()); - return (FALSE); - } - if (mtime != NOTIME && mtime != newtime) { - /* - * Nothing to do. - */ - if (!Qflag) - errmsgno(EX_BAD, "'%s' is up to date.\n", name); - return (TRUE); - } - if (Qflag) - return (FALSE); - return (TRUE); - } - errmsgno(EX_BAD, "No default Command defined.\n"); - usage(1); - return (FALSE); /* keep lint happy */ -} - -/* - * Try to make target 'obj'. - * Return TRUE, if target could be made. - * - * omake and xmake are used to make intermediate targets with no direct - * dependency (e.g. .INIT and included files). - */ -EXPORT BOOL -omake(obj, must_exist) - obj_t *obj; - BOOL must_exist; -{ - date_t mtime; - - if (obj == (obj_t *)NULL) - return (TRUE); - - if (Debug > 2) - error("xmake: %s->time: %s\n", - obj->o_name, prtime(obj->o_date)); - mtime = make(obj, must_exist, -1); - - if (Debug > 2) - error("xmake: %s\n", prtime(mtime)); - if (mtime == BADTIME) { -/* errmsgno(EX_BAD, "Couldn't make '%s'.\n", obj->o_name);*/ - return (FALSE); - } - return (TRUE); -} - -/* - * First do an objlook(name), then make it using omake. - */ -EXPORT BOOL -xmake(name, must_exist) - char *name; - BOOL must_exist; -{ - obj_t *o; - - o = objlook(name, TRUE); - return (omake(o, must_exist)); -} diff -Nru smake-1.2a41/psmake/xconfig.h.in smake-1.2a49/psmake/xconfig.h.in --- smake-1.2a41/psmake/xconfig.h.in 2007-03-06 15:05:43.000000000 +0000 +++ smake-1.2a49/psmake/xconfig.h.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,687 +0,0 @@ -/* @(#)xconfig.h.in 1.115 07/03/06 Copyright 1998-2003 J. Schilling */ -/* - * Dynamic autoconf C-include code. - * - * Copyright (c) 1998-2003 J. Schilling - */ - -/* - * Header Files - */ -#undef PROTOTYPES /* if Compiler supports ANSI C prototypes */ -#undef HAVE_STDIO_H /* to use stdio.h */ -#undef HAVE_STDARG_H /* to use stdarg.h, else use varargs.h NOTE: SaberC on a Sun has prototypes but no stdarg.h */ -#undef HAVE_VARARGS_H /* to use use varargs.h NOTE: The free HP-UX C-compiler has stdarg.h but no PROTOTYPES */ -#undef HAVE_STDLIB_H /* to use general utility defines (malloc(), size_t ...) and general C library prototypes */ -#undef HAVE_STDDEF_H /* to use offsetof(), ptrdiff_t, wchar>t, size_t */ -#undef HAVE_STRING_H /* to get NULL and ANSI C string function prototypes */ -#undef HAVE_STRINGS_H /* to get BSD string function prototypes */ -#undef STDC_HEADERS /* if ANSI compliant stdlib.h, stdarg.h, string.h, float.h are present */ -#undef HAVE_UNISTD_H /* to get POSIX syscall prototypes XXX sys/file.h fcntl.h (unixstd/fctl)XXX*/ -#undef HAVE_GETOPT_H /* to get getopt() prototype from getopt.h instead of unistd.h */ -#undef HAVE_LIMITS_H /* to get POSIX numeric limits constants */ -#undef HAVE_A_OUT_H /* if a.out.h is present (may be a system using a.out format) */ -#undef HAVE_AOUTHDR_H /* if aouthdr.h is present. This is a COFF system */ -#undef HAVE_ELF_H /* if elf.h is present. This is an ELF system */ -#undef HAVE_FCNTL_H /* to access, O_XXX constants for open(), otherwise use sys/file.h */ -#undef HAVE_SYS_FILE_H /* to use O_XXX constants for open() and flock() defs */ -#undef HAVE_INTTYPES_H /* to use UNIX-98 inttypes.h */ -#undef HAVE_DIRENT_H /* to use POSIX dirent.h */ -#undef HAVE_SYS_DIR_H /* to use BSD sys/dir.h */ -#undef HAVE_NDIR_H /* to use ndir.h */ -#undef HAVE_SYS_NDIR_H /* to use sys/ndir.h */ -#undef HAVE_ALLOCA_H /* if alloca.h exists */ -#undef HAVE_MALLOC_H /* if malloc.h exists */ -#undef HAVE_TERMIOS_H /* to use POSIX termios.h */ -#undef HAVE_TERMIO_H /* to use SVR4 termio.h */ -#undef HAVE_PWD_H /* if pwd.h exists */ -#undef HAVE_GRP_H /* if grp.h exists */ -#undef HAVE_SYS_ACL_H /* to use for ACL definitions */ -#undef HAVE_ACLLIB_H /* if HP-UX is present */ -#undef HAVE_ACL_LIBACL_H /* if Linux is present */ -#undef HAVE_SHADOW_H /* if shadow.h exists */ -#undef HAVE_SYSLOG_H /* if syslog.h exists */ -#undef HAVE_SYS_TIME_H /* may include sys/time.h for struct timeval */ -#undef TIME_WITH_SYS_TIME /* may include both time.h and sys/time.h */ -#undef HAVE_TIMES /* to use times() and sys/times.h */ -#undef HAVE_SYS_TIMES_H /* may include sys/times.h for struct tms */ -#undef HAVE_UTIME /* to use AT&T utime() and utimbuf */ -#undef HAVE_UTIMES /* to use BSD utimes() and sys/time.h */ -#undef HAVE_FUTIMES /* to use BSD futimes() and sys/time.h */ -#undef HAVE_LUTIMES /* to use BSD lutimes() and sys/time.h */ -#undef HAVE_UTIME_H /* to use utime.h for the utimbuf structure declaration, else declare struct utimbuf yourself */ -#undef HAVE_SYS_UTIME_H /* to use sys/utime.h if utime.h does not exist */ -#undef HAVE_SYS_IOCTL_H /* if sys/ioctl.h is present */ -#undef HAVE_SYS_FILIO_H /* if sys/ioctl.h is present */ -#undef HAVE_SYS_PARAM_H /* if sys/param.h is present */ -#undef HAVE_MACH_MACHINE_H /* if mach/machine.h is present */ -#undef HAVE_MNTENT_H /* if mntent.h is present */ -#undef HAVE_SYS_MNTENT_H /* if sys/mntent.h is present */ -#undef HAVE_SYS_MNTTAB_H /* if sys/mnttab.h is present */ -#undef HAVE_SYS_MOUNT_H /* if sys/mount.h is present */ -#undef HAVE_WAIT_H /* to use wait.h for prototypes and union wait */ -#undef HAVE_SYS_WAIT_H /* else use sys/wait.h */ -#undef HAVE_SYS_RESOURCE_H /* to use sys/resource.h for rlimit() and wait3() */ -#undef HAVE_PROCFS_H /* to use procfs.h instead of sys/procfs.h (Solaris forces profcs-2) */ -#undef HAVE_SYS_PROCFS_H /* to use sys/procfs.h for wait3() emulation */ -#undef HAVE_SYS_SYSTEMINFO_H /* to use SVr4 sysinfo() */ -#undef HAVE_SYS_SYSCTL_H /* to use BSD sysctl() */ -#undef HAVE_SYS_UTSNAME_H /* to use uname() */ -#undef HAVE_SYS_PRIOCNTL_H /* to use SVr4 priocntl() instead of nice()/setpriority() */ -#undef HAVE_SYS_RTPRIOCNTL_H /* if the system supports SVr4 real time classes */ -#undef HAVE_SYS_SYSCALL_H /* to use syscall() */ -#undef HAVE_SYS_MTIO_H /* to use mtio definitions from sys/mtio.h */ -#undef HAVE_SYS_TAPE_H /* to use mtio definitions from AIX sys/tape.h */ -#undef HAVE_SYS_MMAN_H /* to use definitions for mmap()/madvise()... from sys/mman.h */ -#undef HAVE_SYS_SHM_H /* to use definitions for shmget() ... from sys/shm.h */ -#undef HAVE_SYS_IPC_H /* to use definitions for shmget() ... from sys/ipc.h */ -#undef MAJOR_IN_MKDEV /* if we should include sys/mkdev.h to get major()/minor()/makedev() */ -#undef MAJOR_IN_SYSMACROS /* if we should include sys/sysmacros.h to get major()/minor()/makedev() */ -#undef HAVE_SYS_DKIO_H /* if we may include sys/dkio.h for disk ioctls */ -#undef HAVE_SYS_DKLABEL_H /* if we may include sys/dklabel.h for disk label */ -#undef HAVE_SUN_DKIO_H /* if we may include sun/dkio.h for disk ioctls */ -#undef HAVE_SUN_DKLABEL_H /* if we may include sun/dklabel.h for disk label */ -#undef HAVE_SYS_TYPES_H /* if we may include sys/types.h (the standard) */ -#undef HAVE_SYS_STYPES_H /* if we may include sys/stypes.h (JOS) */ -#undef HAVE_SYS_FILEDESC_H /* if we may include sys/filedesc.h (JOS) */ -#undef HAVE_SYS_STAT_H /* if we may include sys/stat.h (the standard) */ -#undef HAVE_TYPES_H /* if we may include types.h (rare cases e.g. ATARI TOS) */ -#undef HAVE_STAT_H /* if we may include stat.h (rare cases e.g. ATARI TOS) */ -#undef HAVE_POLL_H /* if we may include poll.h to use poll() */ -#undef HAVE_SYS_POLL_H /* if we may include sys/poll.h to use poll() */ -#undef HAVE_SYS_SELECT_H /* if we may have sys/select.h nonstandard use for select() on some systems*/ -#undef NEED_SYS_SELECT_H /* if we need sys/select.h to use select() (this is nonstandard) */ -#undef HAVE_NETDB_H /* if we have netdb.h for get*by*() and rcmd() */ -#undef HAVE_SYS_SOCKET_H /* if we have sys/socket.h for socket() */ -#undef NEED_SYS_SOCKET_H /* if we need sys/socket.h to use select() (this is nonstandard) */ -#undef HAVE_LINUX_PG_H /* if we may include linux/pg.h for PP ATAPI sypport */ -#undef HAVE_CAMLIB_H /* if we may include camlib.h for CAM SCSI transport definitions */ -#undef HAVE_IEEEFP_H /* if we may include ieeefp.h for finite()/isnand() */ -#undef HAVE_FP_H /* if we may include fp.h for FINITE()/IS_INF()/IS_NAN() */ -#undef HAVE_VALUES_H /* if we may include values.h for MAXFLOAT */ -#undef HAVE_FLOAT_H /* if we may include float.h for FLT_MAX */ -#undef HAVE__FILBUF /* if we have _filbuf() for USG derived STDIO */ -#undef HAVE___FILBUF /* if we have __filbuf() for USG derived STDIO */ -#undef HAVE_USG_STDIO /* if we have USG derived STDIO */ -#undef HAVE_ERRNO_DEF /* if we have errno definition in */ -#undef HAVE_VFORK_H /* if we should include vfork.h for vfork() definitions */ -#undef HAVE_ARPA_INET_H /* if we have arpa/inet.h (missing on BeOS) */ - /* BeOS has inet_ntoa() in */ -#undef HAVE_BSD_DEV_SCSIREG_H /* if we have a NeXT Step compatible sg driver */ -#undef HAVE_SYS_BSDTTY_H /* if we have sys/bsdtty.h on HP-UX for TIOCGPGRP */ -#undef HAVE_OS_H /* if we have the BeOS kernel definitions in OS.h */ -#undef HAVE_EXT2FS_EXT2_FS_H /* if we have the Linux moving target ext2fs/ext2_fs.h */ -#undef HAVE_ATTR_XATTR_H /* if we have the Linux Extended File Attr definitions in attr/xattr.h */ -#undef HAVE_CRT_EXTERNS_H /* if we have the Mac OS X env definitions in crt_externs.h */ -#undef HAVE_FNMATCH_H /* if we may include fnmatch.h */ -#undef HAVE_DIRECT_H /* if we may include direct.h (MSVC for getcwd()/chdir()/mkdir()/rmdir()) */ - -#undef HAVE_LIBINTL_H /* if we may include libintl.h */ -#undef HAVE_LOCALE_H /* if we may include locale.h */ -#undef HAVE_LANGINFO_H /* if we may include langinfo.h */ -#undef HAVE_WCHAR_H /* if we may include wchar.h */ -#undef HAVE_PRIV_H /* if we may include priv.h */ -#undef HAVE_EXEC_ATTR_H /* if we may include exec_attr.h */ -#undef HAVE_SECDB_H /* if we may include secdb.h */ -#undef HAVE_PTHREAD_H /* if we may include pthread.h */ -#undef HAVE_THREAD_H /* if we may include thread.h */ - -/* - * Convert to SCHILY name - */ -#ifdef STDC_HEADERS -# ifndef HAVE_STDC_HEADERS -# define HAVE_STDC_HEADERS -# endif -#endif - -#ifdef HAVE_ELF_H -#define HAVE_ELF /* This system uses ELF */ -#else -# ifdef HAVE_AOUTHDR_H -# define HAVE_COFF /* This system uses COFF */ -# else -# ifdef HAVE_A_OUT_H -# define HAVE_AOUT /* This system uses AOUT */ -# endif -# endif -#endif - -/* - * Function declarations - */ -#undef HAVE_DECL_STAT /* Whether defines extern stat(); */ -#undef HAVE_DECL_LSTAT /* Whether defines extern lstat(); */ - -/* - * Library Functions - */ -#undef HAVE_ACCESS /* access() is present in libc */ -#undef HAVE_EACCESS /* eaccess() is present in libc */ -#undef HAVE_EUIDACCESS /* euidaccess() is present in libc */ -#undef HAVE_ACCESS_E_OK /* access() implements E_OK (010) for effective UIDs */ -#undef HAVE_CRYPT /* crypt() is present in libc or libcrypt */ -#undef HAVE_STRERROR /* strerror() is present in libc */ -#undef HAVE_MEMMOVE /* memmove() is present in libc */ -#undef HAVE_MADVISE /* madvise() is present in libc */ -#undef HAVE_MLOCK /* mlock() is present in libc */ -#undef HAVE_MLOCKALL /* working mlockall() is present in libc */ -#undef HAVE_MMAP /* working mmap() is present in libc */ -#undef _MMAP_WITH_SIZEP /* mmap() needs address of size parameter */ -#undef HAVE_FLOCK /* *BSD flock() is present in libc */ -#undef HAVE_LOCKF /* lockf() is present in libc (XOPEN) */ -#undef HAVE_FCNTL_LOCKF /* file locking via fcntl() is present in libc */ -#undef HAVE_FCHDIR /* fchdir() is present in libc */ -#undef HAVE_FDOPENDIR /* fdopendir() is present in libc */ -#undef HAVE_OPENAT /* openat() is present in libc */ -#undef HAVE_ATTROPEN /* attropen() is present in libc */ -#undef HAVE_FSTATAT /* fstatat() is present in libc */ -#undef HAVE_FCHOWNAT /* fchownat() is present in libc */ -#undef HAVE_FUTIMESAT /* futimesat() is present in libc */ -#undef HAVE_RENAMEAT /* renameat() is present in libc */ -#undef HAVE_UNLINKAT /* unlinkat() is present in libc */ -#undef HAVE_POPEN /* popen() is present in libc */ -#undef HAVE_PCLOSE /* pclose() is present in libc */ -#undef HAVE__POPEN /* _popen() is present in libc */ -#undef HAVE__PCLOSE /* _pclose() is present in libc */ -#undef HAVE_STATVFS /* statvfs() is present in libc */ -#undef HAVE_QUOTACTL /* quotactl() is present in libc */ -#undef HAVE_QUOTAIOCTL /* use ioctl(f, Q_QUOTACTL, &q) instead of quotactl() */ -#undef HAVE_GETPID /* getpid() is present in libc */ -#undef HAVE_GETPPID /* getppid() is present in libc */ -#undef HAVE_SETREUID /* setreuid() is present in libc */ -#undef HAVE_SETRESUID /* setresuid() is present in libc */ -#undef HAVE_SETEUID /* seteuid() is present in libc */ -#undef HAVE_SETUID /* setuid() is present in libc */ -#undef HAVE_SETREGID /* setregid() is present in libc */ -#undef HAVE_SETRESGID /* setresgid() is present in libc */ -#undef HAVE_SETEGID /* setegid() is present in libc */ -#undef HAVE_SETGID /* setgid() is present in libc */ -#undef HAVE_GETPGID /* getpgid() is present in libc (POSIX) */ -#undef HAVE_SETPGID /* setpgid() is present in libc (POSIX) */ -#undef HAVE_GETPGRP /* getpgrp() is present in libc (ANY) */ -#undef HAVE_SETPGRP /* setpgrp() is present in libc (ANY) */ -#undef HAVE_BSD_GETPGRP /* getpgrp() in libc is BSD-4.2 compliant */ -#undef HAVE_BSD_SETPGRP /* setpgrp() in libc is BSD-4.2 compliant */ -#undef HAVE_GETSPNAM /* getspnam() in libc (SVR4 compliant) */ -#undef HAVE_GETSPWNAM /* getspwnam() in libsec.a (HP-UX) */ -#undef HAVE_SYNC /* sync() is present in libc */ -#undef HAVE_FSYNC /* fsync() is present in libc */ -#undef HAVE_TCGETATTR /* tcgetattr() is present in libc */ -#undef HAVE_TCSETATTR /* tcsetattr() is present in libc */ -#undef HAVE_TCGETPGRP /* tcgetpgrp() is present in libc */ -#undef HAVE_TCSETPGRP /* tcsetpgrp() is present in libc */ -#undef HAVE_WAIT3 /* working wait3() is present in libc */ -#undef HAVE_WAIT4 /* wait4() is present in libc */ -#undef HAVE_WAITID /* waitid() is present in libc */ -#undef HAVE_WAITPID /* waitpid() is present in libc */ -#undef HAVE_GETHOSTID /* gethostid() is present in libc */ -#undef HAVE_GETHOSTNAME /* gethostname() is present in libc */ -#undef HAVE_GETDOMAINNAME /* getdomainname() is present in libc */ -#undef HAVE_GETPAGESIZE /* getpagesize() is present in libc */ -#undef HAVE_GETDTABLESIZE /* getdtablesize() is present in libc */ -#undef HAVE_GETRUSAGE /* getrusage() is present in libc */ -#undef HAVE_GETRLIMIT /* getrlimit() is present in libc */ -#undef HAVE_SETRLIMIT /* setrlimit() is present in libc */ -#undef HAVE_ULIMIT /* ulimit() is present in libc */ -#undef HAVE_GETTIMEOFDAY /* gettimeofday() is present in libc */ -#undef HAVE_SETTIMEOFDAY /* settimeofday() is present in libc */ -#undef HAVE_VAR_TIMEZONE /* extern long timezone is present in libc */ -#undef HAVE_TIME /* time() is present in libc */ -#undef HAVE_GMTIME /* gmtime() is present in libc */ -#undef HAVE_LOCALTIME /* localtime() is present in libc */ -#undef HAVE_MKTIME /* mktime() is present in libc */ -#undef HAVE_TIMEGM /* timegm() is present in libc */ -#undef HAVE_TIMELOCAL /* timelocal() is present in libc */ -#undef HAVE_FTIME /* ftime() is present in libc */ -#undef HAVE_STIME /* stime() is present in libc */ -#undef HAVE_TZSET /* tzset() is present in libc */ -#undef HAVE_CTIME /* ctime() is present in libc */ -#undef HAVE_CFTIME /* cftime() is present in libc */ -#undef HAVE_ASCFTIME /* ascftime() is present in libc */ -#undef HAVE_STRFTIME /* strftime() is present in libc */ -#undef HAVE_GETHRTIME /* gethrtime() is present in libc */ -#undef HAVE_POLL /* poll() is present in libc */ -#undef HAVE_SELECT /* select() is present in libc */ -#undef HAVE_CHMOD /* chmod() is present in libc */ -#undef HAVE_FCHMOD /* fchmod() is present in libc */ -#undef HAVE_LCHMOD /* lchmod() is present in libc */ -#undef HAVE_CHOWN /* chown() is present in libc */ -#undef HAVE_FCHOWN /* fchown() is present in libc */ -#undef HAVE_LCHOWN /* lchown() is present in libc */ -#undef HAVE_TRUNCATE /* truncate() is present in libc */ -#undef HAVE_FTRUNCATE /* ftruncate() is present in libc */ -#undef HAVE_BRK /* brk() is present in libc */ -#undef HAVE_SBRK /* sbrk() is present in libc */ -#undef HAVE_VA_COPY /* va_copy() is present in varargs.h/stdarg.h */ -#undef HAVE__VA_COPY /* __va_copy() is present in varargs.h/stdarg.h */ -#undef HAVE_DTOA /* BSD-4.4 __dtoa() is present in libc */ -#undef HAVE_DTOA_R /* BSD-4.4 __dtoa() with result ptr (reentrant) */ -#undef HAVE_DUP2 /* dup2() is present in libc */ -#undef HAVE_GETCWD /* POSIX getcwd() is present in libc */ -#undef HAVE_SMMAP /* may map anonymous memory to get shared mem */ -#undef HAVE_SHMAT /* shmat() is present in libc */ -#undef HAVE_SEMGET /* semget() is present in libc */ -#undef HAVE_LSTAT /* lstat() is present in libc */ -#undef HAVE_READLINK /* readlink() is present in libc */ -#undef HAVE_SYMLINK /* symlink() is present in libc */ -#undef HAVE_LINK /* link() is present in libc */ -#undef HAVE_HARD_SYMLINKS /* link() allows hard links on symlinks */ -#undef HAVE_LINK_NOFOLLOW /* link() does not follow symlinks when hard linking symlinks */ -#undef HAVE_RENAME /* rename() is present in libc */ -#undef HAVE_MKFIFO /* mkfifo() is present in libc */ -#undef HAVE_MKNOD /* mknod() is present in libc */ -#undef HAVE_ECVT /* ecvt() is present in libc */ -#undef HAVE_FCVT /* fcvt() is present in libc */ -#undef HAVE_GCVT /* gcvt() is present in libc */ -#undef HAVE_ECVT_R /* ecvt_r() is present in libc */ -#undef HAVE_FCVT_R /* fcvt_r() is present in libc */ -#undef HAVE_GCVT_R /* gcvt_r() is present in libc */ -#undef HAVE_ECONVERT /* econvert() is present in libc */ -#undef HAVE_FCONVERT /* fconvert() is present in libc */ -#undef HAVE_GCONVERT /* gconvert() is present in libc */ -#undef HAVE_ISINF /* isinf() is present in libc */ -#undef HAVE_ISNAN /* isnan() is present in libc */ -#undef HAVE_C99_ISINF /* isinf() is present in math.h/libc */ -#undef HAVE_C99_ISNAN /* isnan() is present in math.h/libc */ -#undef HAVE_RAND /* rand() is present in libc */ -#undef HAVE_DRAND48 /* drand48() is present in libc */ -#undef HAVE_SETPRIORITY /* setpriority() is present in libc */ -#undef HAVE_NICE /* nice() is present in libc */ -#undef HAVE_DOSSETPRIORITY /* DosSetPriority() is present in libc */ -#undef HAVE_DOSALLOCSHAREDMEM /* DosAllocSharedMem() is present in libc */ -#undef HAVE_SEEKDIR /* seekdir() is present in libc */ -#undef HAVE_PUTENV /* putenv() is present in libc (preferred function) */ -#undef HAVE_SETENV /* setenv() is present in libc (use instead of putenv()) */ -#undef HAVE_UNAME /* uname() is present in libc */ -#undef HAVE_SNPRINTF /* snprintf() is present in libc */ -#undef HAVE_STRCASECMP /* strcasecmp() is present in libc */ -#undef HAVE_STRNCPY /* strncpy() is present in libc */ -#undef HAVE_STRLCPY /* strlcpy() is present in libc */ -#undef HAVE_STRDUP /* strdup() is present in libc */ -#undef HAVE_STRSIGNAL /* strsignal() is present in libc */ -#undef HAVE_STR2SIG /* str2sig() is present in libc */ -#undef HAVE_SIG2STR /* sig2str() is present in libc */ -#undef HAVE_SIGSETJMP /* sigsetjmp() is present in libc */ -#undef HAVE_SIGLONGJMP /* siglongjmp() is present in libc */ -#undef HAVE_KILLPG /* killpg() is present in libc */ -#undef HAVE_SIGRELSE /* sigrelse() is present in libc */ -#undef HAVE_SIGPROCMASK /* sigprocmask() is present in libc (POSIX) */ -#undef HAVE_SIGSETMASK /* sigsetmask() is present in libc (BSD) */ -#undef HAVE_SIGSET /* sigset() is present in libc (POSIX) */ -#undef HAVE_SYS_SIGLIST /* char *sys_siglist[] is present in libc */ -#undef HAVE_USLEEP /* usleep() is present in libc */ -#undef HAVE_FORK /* fork() is present in libc */ -#undef HAVE_EXECL /* execl() is present in libc */ -#undef HAVE_EXECLE /* execle() is present in libc */ -#undef HAVE_EXECLP /* execlp() is present in libc */ -#undef HAVE_EXECV /* execv() is present in libc */ -#undef HAVE_EXECVE /* execve() is present in libc */ -#undef HAVE_EXECVP /* execvp() is present in libc */ -#undef HAVE_ALLOCA /* alloca() is present (else use malloc())*/ -#undef HAVE_VALLOC /* valloc() is present in libc (else use malloc())*/ -#undef vfork - -#undef HAVE_CHFLAGS /* chflags() is present in libc */ -#undef HAVE_FCHFLAGS /* fchflags() is present in libc */ -#undef HAVE_FFLAGSTOSTR /* fflagstostr() is present in libc */ -#undef HAVE_STRTOFFLAGS /* strtofflags() is present in libc */ - -#undef HAVE_GETTEXT /* gettext() is present in -lintl */ - -#undef HAVE_FNMATCH /* fnmatch() is present in libc */ - -#undef HAVE_MKTEMP /* mktemp() is present in libc */ -#undef HAVE_MKSTEMP /* mkstemp() is present in libc */ - -#undef HAVE_GETPPRIV /* getppriv() is present in libc */ -#undef HAVE_SETPPRIV /* setppriv() is present in libc */ -#undef HAVE_PRIV_SET /* priv_set() is present in libc */ - -#undef HAVE_GETAUTHATTR /* getauthattr() is present in -lsec */ -#undef HAVE_GETUSERATTR /* getuserattr() is present in -lsec */ -#undef HAVE_GETEXECATTR /* getexecattr() is present in -lsec */ -#undef HAVE_GETPROFATTR /* getprofattr() is present in -lsec */ - -#undef HAVE_CLONE_AREA /* clone_area() is present in libc */ -#undef HAVE_CREATE_AREA /* create_area() is present in libc */ -#undef HAVE_DELETE_AREA /* delete_area() is present in libc */ - -#undef HAVE_YIELD /* yield() is present in libc */ -#undef HAVE_THR_YIELD /* thr_yield() is present in libc */ - -#undef HAVE_PTHREAD_CREATE /* pthread_create() is present in libpthread */ -#undef HAVE_PTHREAD_KILL /* pthread_kill() is present in libpthread */ -#undef HAVE_PTHREAD_MUTEX_LOCK /* pthread_mutex_lock() is present in libpthread */ -#undef HAVE_PTHREAD_COND_WAIT /* pthread_cond_wait() is present in libpthread */ -#undef HAVE_PTHREAD_SPIN_LOCK /* pthread_spin_lock() is present in libpthread */ - -#undef HAVE_CLOCK_GETTIME /* clock_gettime() is present in librt */ -#undef HAVE_CLOCK_SETTIME /* clock_settime() is present in librt */ -#undef HAVE_CLOCK_GETRES /* clock_getres() is present in librt */ -#undef HAVE_SCHED_GETPARAM /* sched_getparam() is present in librt */ -#undef HAVE_SCHED_SETPARAM /* sched_setparam() is present in librt */ -#undef HAVE_SCHED_GETSCHEDULER /* sched_getscheduler() is present in librt */ -#undef HAVE_SCHED_SETSCHEDULER /* sched_setscheduler() is present in librt */ -#undef HAVE_SCHED_YIELD /* sched_yield() is present in librt */ -#undef HAVE_NANOSLEEP /* nanosleep() is present in librt */ - -/* - * Misc OS stuff - */ -#undef HAVE_DEV_TTY /* /dev/tty present */ -#undef HAVE_DEV_NULL /* /dev/null present */ -#undef HAVE_DEV_ZERO /* /dev/zero present */ - -/* - * Misc OS programs - */ -#undef SHELL_IS_BASH /* /bin/sh is bash */ - -/* - * OS madness - */ -#undef HAVE_BROKEN_LINUX_EXT2_FS_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_LINUX_EXT2_FS_H /* whether /usr/src/linux/include/linux/ext2_fs.h is broken */ -#undef HAVE_BROKEN_SCSI_SCSI_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_SCSI_SCSI_H /* whether /usr/src/linux/include/scsi/scsi.h is broken */ -#undef HAVE_BROKEN_SCSI_SG_H /* whether is broken */ -#undef HAVE_BROKEN_SRC_SCSI_SG_H /* whether /usr/src/linux/include/scsi/sg.h is broken */ - -/* - * Linux Extended File Attributes - */ -#undef HAVE_GETXATTR /* getxattr() */ -#undef HAVE_SETXATTR /* setxattr() */ -#undef HAVE_LISTXATTR /* listxattr() */ -#undef HAVE_LGETXATTR /* lgetxattr() */ -#undef HAVE_LSETXATTR /* lsetxattr() */ -#undef HAVE_LLISTXATTR /* llistxattr() */ - -/* - * Important: This must be a result from a check _before_ the Large File test - * has been run. It then tells us whether these functions are - * available even when not in Large File mode. - * - * Do not run the AC_FUNC_FSEEKO test from the GNU tar Large File test - * siute. It will use the same cache names and interfere with our test. - * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure - * they are placed before the large file tests. - */ -#undef HAVE_FSEEKO /* fseeko() is present in default compile mode */ -#undef HAVE_FTELLO /* ftello() is present in default compile mode */ - -#undef HAVE_RCMD /* rcmd() is present in libc/libsocket */ -#undef HAVE_SOCKET /* socket() is present in libc/libsocket */ -#undef HAVE_SOCKETPAIR /* socketpair() is present in libc/libsocket */ -#undef HAVE_GETSERVBYNAME /* getservbyname() is present in libc/libsocket */ -#undef HAVE_INET_NTOA /* inet_ntoa() is present in libc/libsocket */ -#undef HAVE_GETADDRINFO /* getaddrinfo() is present in libc/libsocket */ -#undef HAVE_GETNAMEINFO /* getnameinfo() is present in libc/libsocket */ - -#if defined(HAVE_QUOTACTL) || defined(HAVE_QUOTAIOCTL) -# define HAVE_QUOTA /* The system inludes quota */ -#endif - -/* - * We need to test for the include files too because Apollo Domain/OS has a - * libc that includes the functions but the includes files are not visible - * from the BSD compile environment. - */ -#if defined(HAVE_SHMAT) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) -# define HAVE_USGSHM /* USG shared memory is present */ -#endif -#if defined(HAVE_SEMGET) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H) -# define HAVE_USGSEM /* USG semaphores are present */ -#endif - -#if defined(HAVE_GETPGRP) && !defined(HAVE_BSD_GETPGRP) -#define HAVE_POSIX_GETPGRP 1 /* getpgrp() in libc is POSIX compliant */ -#endif -#if defined(HAVE_SETPGRP) && !defined(HAVE_BSD_SETPGRP) -#define HAVE_POSIX_SETPGRP 1 /* setpgrp() in libc is POSIX compliant */ -#endif - -/* - * Structures - */ -#undef HAVE_MTGET_TYPE /* if struct mtget contains mt_type (drive type) */ -#undef HAVE_MTGET_MODEL /* if struct mtget contains mt_model (drive type) */ -#undef HAVE_MTGET_DSREG /* if struct mtget contains mt_dsreg (drive status) */ -#undef HAVE_MTGET_DSREG1 /* if struct mtget contains mt_dsreg1 (drive status msb) */ -#undef HAVE_MTGET_DSREG2 /* if struct mtget contains mt_dsreg2 (drive status lsb) */ -#undef HAVE_MTGET_GSTAT /* if struct mtget contains mt_gstat (generic status) */ -#undef HAVE_MTGET_ERREG /* if struct mtget contains mt_erreg (error register) */ -#undef HAVE_MTGET_RESID /* if struct mtget contains mt_resid (residual count) */ -#undef HAVE_MTGET_FILENO /* if struct mtget contains mt_fileno (file #) */ -#undef HAVE_MTGET_BLKNO /* if struct mtget contains mt_blkno (block #) */ -#undef HAVE_MTGET_FLAGS /* if struct mtget contains mt_flags (flags) */ -#undef HAVE_MTGET_BF /* if struct mtget contains mt_bf (optimum blocking factor) */ -#undef HAVE_STRUCT_RUSAGE /* have struct rusage in sys/resource.h */ -#undef HAVE_SI_UTIME /* if struct siginfo contains si_utime */ -#undef HAVE_UNION_SEMUN /* have an illegal definition for union semun in sys/sem.h */ -#undef HAVE_UNION_WAIT /* have union wait in wait.h */ -#undef HAVE_DIRENT_D_INO /* have d_ino in struct dirent */ -/* - * SCO UnixWare has st_atim.st__tim.tv_nsec but the st_atim.tv_nsec tests also - * succeeds. If you use st_atim.tv_nsec on UnixWare, you get a warning about - * illegal structure usage. For this reason, your code needs to have - * #ifdef HAVE_ST__TIM before #ifdef HAVE_ST_NSEC. - */ -#undef HAVE_ST_SPARE1 /* if struct stat contains st_spare1 (usecs) */ -#undef HAVE_ST_ATIMENSEC /* if struct stat contains st_atimensec (nanosecs) */ -#undef HAVE_ST_NSEC /* if struct stat contains st_atim.tv_nsec (nanosecs) */ -#undef HAVE_ST__TIM /* if struct stat contains st_atim.st__tim.tv_nsec (nanosecs) */ -#undef HAVE_ST_ATIMESPEC /* if struct stat contains st_atimespec.tv_nsec (nanosecs) */ -#undef HAVE_ST_BLKSIZE /* if struct stat contains st_blksize */ -#undef HAVE_ST_BLOCKS /* if struct stat contains st_blocks */ -#undef HAVE_ST_FSTYPE /* if struct stat contains st_fstype */ -#undef HAVE_ST_ACLCNT /* if struct stat contains st_aclcnt */ -#undef HAVE_ST_RDEV /* if struct stat contains st_rdev */ -#undef HAVE_ST_FLAGS /* if struct stat contains st_flags */ -#undef STAT_MACROS_BROKEN /* if the macros S_ISDIR, S_ISREG .. don't work */ - -#undef DEV_MINOR_BITS /* # if bits needed to hold minor device number */ -#undef DEV_MINOR_NONCONTIG /* if bits in minor device number are noncontiguous */ - -#undef HAVE_SOCKADDR_STORAGE /* if socket.h defines struct sockaddr_storage */ - - -/* - * Byteorder/Bitorder - */ -#define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ -#undef WORDS_BIGENDIAN /* If using network byte order */ -#define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ -#undef BITFIELDS_HTOL /* If high bits come first in structures */ - -/* - * Types/Keywords - */ -#undef SIZEOF_CHAR -#undef SIZEOF_SHORT_INT -#undef SIZEOF_INT -#undef SIZEOF_LONG_INT -#undef SIZEOF_LONG_LONG -#undef SIZEOF___INT64 -#undef SIZEOF_CHAR_P -#undef SIZEOF_UNSIGNED_CHAR -#undef SIZEOF_UNSIGNED_SHORT_INT -#undef SIZEOF_UNSIGNED_INT -#undef SIZEOF_UNSIGNED_LONG_INT -#undef SIZEOF_UNSIGNED_LONG_LONG -#undef SIZEOF_UNSIGNED___INT64 -#undef SIZEOF_UNSIGNED_CHAR_P - -#undef HAVE_LONGLONG /* Compiler defines long long type */ -#undef HAVE___INT64 /* Compiler defines __int64 type */ -#undef CHAR_IS_UNSIGNED /* Compiler defines char to be unsigned */ - -#undef const /* Define to empty if const doesn't work */ -#undef uid_t /* To be used if uid_t is not present */ -#undef gid_t /* To be used if gid_t is not present */ -#undef size_t /* To be used if size_t is not present */ -#undef ssize_t /* To be used if ssize_t is not present */ -#undef pid_t /* To be used if pid_t is not present */ -#undef off_t /* To be used if off_t is not present */ -#undef mode_t /* To be used if mode_t is not present */ -#undef time_t /* To be used if time_t is not present */ -#undef caddr_t /* To be used if caddr_t is not present */ -#undef daddr_t /* To be used if daddr_t is not present */ -#undef dev_t /* To be used if dev_t is not present */ -#undef major_t /* To be used if major_t is not present */ -#undef minor_t /* To be used if minor_t is not present */ -#undef ino_t /* To be used if ino_t is not present */ -#undef nlink_t /* To be used if nlink_t is not present */ -#undef blksize_t /* To be used if blksize_t is not present */ -#undef blkcnt_t /* To be used if blkcnt_t is not present */ -/* - * Important: Next Step needs time.h for clock_t (because of a bug) - */ -#undef clock_t /* To be used if clock_t is not present */ -#undef socklen_t /* To be used if socklen_t is not present */ - -/* - * These types are present on all UNIX systems but should be avoided - * for portability. - * On Apollo/Domain OS we don't have them.... - * - * Better include and use Uchar, Uint & Ulong - */ -#undef u_char /* To be used if u_char is not present */ -#undef u_short /* To be used if u_short is not present */ -#undef u_int /* To be used if u_int is not present */ -#undef u_long /* To be used if u_long is not present */ - -/*#undef HAVE_SIZE_T*/ -/*#undef NO_SIZE_T*/ -#undef VA_LIST_IS_ARRAY /* va_list is an array */ -#undef GETGROUPS_T -#define GID_T GETGROUPS_T - -/* - * Define as the return type of signal handlers (int or void). - */ -#undef RETSIGTYPE - -/* - * Defines needed to get large file support. - */ -#ifdef USE_LARGEFILES - -#undef HAVE_LARGEFILES - -#ifdef HAVE_LARGEFILES /* If we have working largefiles at all */ - /* This is not defined with glibc-2.1.3 */ - -#undef _FILE_OFFSET_BITS /* # of bits in off_t if settable */ -#undef _LARGEFILE_SOURCE /* To make ftello() visible (HP-UX 10.20). */ -#undef _LARGE_FILES /* Large file defined on AIX-style hosts. */ -#undef _XOPEN_SOURCE /* To make ftello() visible (glibc 2.1.3). */ - /* XXX We don't use this because glibc2.1.3*/ - /* XXX is bad anyway. If we define */ - /* XXX _XOPEN_SOURCE we will loose caddr_t */ - -#undef HAVE_FSEEKO /* Do we need this? If HAVE_LARGEFILES is */ - /* defined, we have fseeko() */ - -#endif /* HAVE_LARGEFILES */ -#endif /* USE_LARGEFILES */ - -#ifdef USE_ACL /* Enable/disable ACL support */ -/* - * POSIX ACL support - */ -#undef HAVE_ACL_GET_FILE /* acl_get_file() function */ -#undef HAVE_ACL_SET_FILE /* acl_set_file() function */ -#undef HAVE_ACL_FROM_TEXT /* acl_from_text() function */ -#undef HAVE_ACL_TO_TEXT /* acl_to_text() function */ -#undef HAVE_ACL_FREE /* acl_free() function */ -#undef HAVE_ACL_DELETE_DEF_FILE /* acl_delete_def_file() function */ -#undef HAVE_ACL_EXTENDED_FILE /* acl_extended_file() function (Linux only)*/ - -#if defined(HAVE_ACL_GET_FILE) && defined(HAVE_ACL_SET_FILE) && \ - defined(HAVE_ACL_FROM_TEXT) && defined(HAVE_ACL_TO_TEXT) && \ - defined(HAVE_ACL_FREE) -# define HAVE_POSIX_ACL 1 /* POSIX ACL's present */ -#endif - -/* - * Sun ACL support. - * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. - */ -#undef HAVE_ACL /* acl() function */ -#undef HAVE_FACL /* facl() function */ -#undef HAVE_ACLFROMTEXT /* aclfromtext() function */ -#undef HAVE_ACLTOTEXT /* acltotext() function */ - -#if defined(HAVE_ACL) && defined(HAVE_FACL) && \ - defined(HAVE_ACLFROMTEXT) && defined(HAVE_ACLTOTEXT) -# define HAVE_SUN_ACL 1 /* Sun ACL's present */ -#endif - -/* - * HP-UX ACL support. - * Note: unfortunately, HP-UX has an (undocumented) acl() function in libc. - */ -#undef HAVE_GETACL /* getacl() function */ -#undef HAVE_FGETACL /* fgetacl() function */ -#undef HAVE_SETACL /* setacl() function */ -#undef HAVE_FSETACL /* fsetacl() function */ -#undef HAVE_STRTOACL /* strtoacl() function */ -#undef HAVE_ACLTOSTR /* acltostr() function */ -#undef HAVE_CPACL /* cpacl() function */ -#undef HAVE_FCPACL /* fcpacl() function */ -#undef HAVE_CHOWNACL /* chownacl() function */ -#undef HAVE_SETACLENTRY /* setaclentry() function */ -#undef HAVE_FSETACLENTRY /* fsetaclentry() function */ - -#if defined(HAVE_GETACL) && defined(HAVE_FGETACL) && \ - defined(HAVE_SETACL) && defined(HAVE_FSETACL) && \ - defined(HAVE_STRTOACL) && defined(HAVE_ACLTOTEXT) -# define HAVE_HP_ACL 1 /* HP-UX ACL's present */ -#endif - -/* - * Global definition whether ACL support is present. - * As HP-UX differs too much from other implementations, HAVE_HP_ACL is not - * included in HAVE_ANY_ACL. - */ -#if defined(HAVE_POSIX_ACL) || defined(HAVE_SUN_ACL) -# define HAVE_ANY_ACL 1 /* Any ACL implementation present */ -#endif - -#endif /* USE_ACL */ - -/* - * Misc CC / LD related stuff - */ -#undef NO_USER_MALLOC /* If we cannot define our own malloc() */ -#undef HAVE_DYN_ARRAYS /* If the compiler allows dynamic sized arrays */ - -/* - * Strings that help to maintain OS/platform id's in C-programs - */ -#undef HOST_ALIAS /* Output from config.guess (orig) */ -#undef HOST_SUB /* Output from config.sub (modified) */ -#undef HOST_CPU /* CPU part from HOST_SUB */ -#undef HOST_VENDOR /* VENDOR part from HOST_SUB */ -#undef HOST_OS /* CPU part from HOST_SUB */ - - -/* - * Begin restricted code for quality assurance. - * - * Warning: you are not allowed to include the #define below if you are not - * using the Schily makefile system or if you modified the autoconfiguration - * tests. - * - * If you only added other tests you are allowed to keep this #define. - * - * This restiction is introduced because this way, I hope that people - * contribute to the project instead of creating branches. - */ -#define IS_SCHILY_XCONFIG -/* - * End restricted code for quality assurance. - */ diff -Nru smake-1.2a41/README.compile smake-1.2a49/README.compile --- smake-1.2a41/README.compile 2004-05-19 15:13:47.000000000 +0100 +++ smake-1.2a49/README.compile 2009-04-11 16:56:42.000000000 +0100 @@ -15,7 +15,7 @@ You **need** either my "smake" program, the SunPRO make from /usr/bin/make (SunOS 4.x) or /usr/ccs/bin/make (SunOS 5.x) - or GNU make to compile this program. Read README.gmake for + or GNU make to compile this program. Read READMEs/README.gmake for more information on gmake and a list of the most annoying bugs in gmake. All other make programs are either not smart enough or have bugs. @@ -169,6 +169,19 @@ env INS_BASE=/usr/local make -e install + Note that INS_BASE=/usr/local needs to be specified for every operation + that compiles or links programs as the path is stored inside the + binaries. + + +Installing to a prototype directory to implement package creation staging: + + If you like to create a prototype directory tree that is used as an + intermediate store for package creation, use the DESTDIR macro: + + smake INS_BASE=/usr/local DESTDIR=/tmp install + + This will create a usr/local tree below /tmp (i.e. /tmp/usr/local). Using a different C-compiler: @@ -189,27 +202,33 @@ Creating 64 bit executables on Solaris: - If you like to create 64 bit executables you always need first to - remove any old make results. This includes all autoconf results. In - order to make sure that the source tree is in a "clean" state, call: - - ./.clean + Simply call: - at the top level directory. Then configure and compile everything by - calling: - - smake COPTX=-xarch=v9 LDOPTX=-xarch=v9 - - To do this with GCC, you need at least GCC-3.1. It is the first 64 bit - aware GCC. With GCC, call on Solaris: - - smake CCOM=gcc COPTX=-m64 LDOPTX=-m64 + make CCOM=gcc64 + or + make CCOM=cc64 It is not clear if GCC already supports other platforms in 64 bit mode. As all GCC versions before 3.1 did emit hundreds of compilation warnings related to 64 bit bugs when compiling itself, there is little hope that other platforms are already supported in 64 bit mode. +Creating executables using the Sun Studio compiler on Linux: + + Simply call: + + make CCOM=suncc + + If the compilation does not work, try: + + mkdir /opt/sunstudio12/prod/include/cc/linux + cp /usr/include/linux/types.h /opt/sunstudio12/prod/include/cc/linux + + Then edit /opt/sunstudio12/prod/include/cc/linux/types.h and remove all + lines like: "#if defined(__GNUC__) && !defined(__STRICT_ANSI__)" + as well as the related #endif. + + Getting help from make: @@ -239,7 +258,7 @@ SunPro make will work as is. GNU make need some special preparation. - Read README.gmake for more information on gmake. + Read READMEs/README.gmake for more information on gmake. To use GNU make create a file called 'Gmake' in your search path that contains: @@ -307,6 +326,22 @@ make COPTX=-g LDOPTX=-g +Creting Blastwave packages: + + Call: + .clean + smake -f Mcsw + + You need the program "fakeroot" and will find the results + in packages/ + + Note that a single program source tree will allow you to create + packages like CSWstar but not the packages CSWschilybase and + CSWschilyutils on which CSWstar depends. + + + + If you want to see an example, please have a look at the "star" source. It may be found on: @@ -322,6 +357,7 @@ man -F + Author: Joerg Schilling @@ -330,6 +366,6 @@ Germany Email: joerg@schily.isdn.cs.tu-berlin.de, js@cs.tu-berlin.de - schilling@fokus.fhg.de + joerg.schilling@fokus.fraunhufer.de Please mail bugs and suggestions to me. diff -Nru smake-1.2a41/RULES/9000-710-hp-ux-cc.rul smake-1.2a49/RULES/9000-710-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-710-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-710-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-710-hp-ux-gcc.rul smake-1.2a49/RULES/9000-710-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-710-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-710-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-712-hp-ux-cc.rul smake-1.2a49/RULES/9000-712-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-712-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-712-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-712-hp-ux-gcc.rul smake-1.2a49/RULES/9000-712-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-712-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-712-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-715-hp-ux-cc.rul smake-1.2a49/RULES/9000-715-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-715-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-715-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-715-hp-ux-gcc.rul smake-1.2a49/RULES/9000-715-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-715-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-715-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-725-hp-ux-cc64.rul smake-1.2a49/RULES/9000-725-hp-ux-cc64.rul --- smake-1.2a41/RULES/9000-725-hp-ux-cc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/9000-725-hp-ux-cc64.rul 2009-10-10 21:09:19.000000000 +0100 @@ -0,0 +1,34 @@ +#ident "@(#)9000-725-hp-ux-cc64.rul 1.14 09/10/10 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for HP/UX +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-hp64.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/9000-725-hp-ux-cc.rul smake-1.2a49/RULES/9000-725-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-725-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-725-hp-ux-cc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " +#ident "@(#)9000-725-hp-ux-cc.rul 1.13 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-hp.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/9000-725-hp-ux-gcc.rul smake-1.2a49/RULES/9000-725-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-725-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-725-hp-ux-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " +#ident "@(#)9000-725-hp-ux-gcc.rul 1.10 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/9000-735-hp-ux-cc.rul smake-1.2a49/RULES/9000-735-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-735-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-735-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-735-hp-ux-gcc.rul smake-1.2a49/RULES/9000-735-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-735-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-735-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-743-hp-ux-cc.rul smake-1.2a49/RULES/9000-743-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-743-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-743-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-743-hp-ux-gcc.rul smake-1.2a49/RULES/9000-743-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-743-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-743-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-755-hp-ux-cc.rul smake-1.2a49/RULES/9000-755-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-755-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-755-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-755-hp-ux-gcc.rul smake-1.2a49/RULES/9000-755-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-755-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-755-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-777-hp-ux-cc.rul smake-1.2a49/RULES/9000-777-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-777-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-777-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-777-hp-ux-gcc.rul smake-1.2a49/RULES/9000-777-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-777-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-777-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-778-hp-ux-cc.rul smake-1.2a49/RULES/9000-778-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-778-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-778-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-778-hp-ux-gcc.rul smake-1.2a49/RULES/9000-778-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-778-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-778-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-780-hp-ux-cc.rul smake-1.2a49/RULES/9000-780-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-780-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-780-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-780-hp-ux-gcc.rul smake-1.2a49/RULES/9000-780-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-780-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-780-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-782-hp-ux-cc.rul smake-1.2a49/RULES/9000-782-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-782-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-782-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-782-hp-ux-gcc.rul smake-1.2a49/RULES/9000-782-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-782-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-782-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-785-hp-ux-cc.rul smake-1.2a49/RULES/9000-785-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-785-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-785-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-785-hp-ux-gcc.rul smake-1.2a49/RULES/9000-785-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-785-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-785-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-800-hp-ux-cc.rul smake-1.2a49/RULES/9000-800-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-800-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-800-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-800-hp-ux-gcc.rul smake-1.2a49/RULES/9000-800-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-800-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-800-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-820-hp-ux-cc.rul smake-1.2a49/RULES/9000-820-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-820-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-820-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-820-hp-ux-gcc.rul smake-1.2a49/RULES/9000-820-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-820-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-820-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-831-hp-ux-cc.rul smake-1.2a49/RULES/9000-831-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-831-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-831-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-831-hp-ux-gcc.rul smake-1.2a49/RULES/9000-831-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-831-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-831-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-899-hp-ux-cc.rul smake-1.2a49/RULES/9000-899-hp-ux-cc.rul --- smake-1.2a41/RULES/9000-899-hp-ux-cc.rul 2006-07-06 12:18:52.000000000 +0100 +++ smake-1.2a49/RULES/9000-899-hp-ux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)9000-725-hp-ux-cc.rul 1.12 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-hp.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/9000-899-hp-ux-gcc.rul smake-1.2a49/RULES/9000-899-hp-ux-gcc.rul --- smake-1.2a41/RULES/9000-899-hp-ux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/9000-899-hp-ux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#ident "@(#)9000-725-hp-ux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for HP/UX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .sl - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LNDYNLIB= @ - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/alpha-linux-cc.rul smake-1.2a49/RULES/alpha-linux-cc.rul --- smake-1.2a41/RULES/alpha-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/alpha-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/alpha-linux-gcc.rul smake-1.2a49/RULES/alpha-linux-gcc.rul --- smake-1.2a41/RULES/alpha-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/alpha-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/alpha-netbsd-cc.rul smake-1.2a49/RULES/alpha-netbsd-cc.rul --- smake-1.2a41/RULES/alpha-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/alpha-netbsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/alpha-netbsd-gcc.rul smake-1.2a49/RULES/alpha-netbsd-gcc.rul --- smake-1.2a41/RULES/alpha-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/alpha-netbsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/alpha-openvms-cc.rul smake-1.2a49/RULES/alpha-openvms-cc.rul --- smake-1.2a41/RULES/alpha-openvms-cc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/alpha-openvms-cc.rul 2009-10-31 20:44:29.000000000 +0000 @@ -0,0 +1,36 @@ +#ident "@(#)alpha-openvms-cc.rul 1.1 09/10/31 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for OpenVMS using GNV +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-openvms.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +#LIB_SOCKET= -lsocket -lnsl -ldl +LIB_SOCKET= +LIB_MATH= -lm +#LIB_KVM= -lkvm +LIB_KVM= + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/alpha-osf1-cc.rul smake-1.2a49/RULES/alpha-osf1-cc.rul --- smake-1.2a41/RULES/alpha-osf1-cc.rul 2006-07-06 12:22:17.000000000 +0100 +++ smake-1.2a49/RULES/alpha-osf1-cc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)alpha-osf1-cc.rul 1.6 06/07/06 " +#ident "@(#)alpha-osf1-cc.rul 1.7 07/05/08 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-dec.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/alpha-osf1-gcc.rul smake-1.2a49/RULES/alpha-osf1-gcc.rul --- smake-1.2a41/RULES/alpha-osf1-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/alpha-osf1-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)alpha-osf1-gcc.rul 1.6 06/07/06 " +#ident "@(#)alpha-osf1-gcc.rul 1.8 07/05/09 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -38,7 +38,7 @@ LDLIBS= $(LIBS) $(LIBX) -lrt -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/amiga-netbsd-cc.rul smake-1.2a49/RULES/amiga-netbsd-cc.rul --- smake-1.2a41/RULES/amiga-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/amiga-netbsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/amiga-netbsd-gcc.rul smake-1.2a49/RULES/amiga-netbsd-gcc.rul --- smake-1.2a41/RULES/amiga-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/amiga-netbsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/armv4l-linux-cc.rul smake-1.2a49/RULES/armv4l-linux-cc.rul --- smake-1.2a41/RULES/armv4l-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/armv4l-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/armv4l-linux-gcc.rul smake-1.2a49/RULES/armv4l-linux-gcc.rul --- smake-1.2a41/RULES/armv4l-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/armv4l-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/armv5teb-linux-cc.rul smake-1.2a49/RULES/armv5teb-linux-cc.rul --- smake-1.2a41/RULES/armv5teb-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/armv5teb-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/armv5teb-linux-gcc.rul smake-1.2a49/RULES/armv5teb-linux-gcc.rul --- smake-1.2a41/RULES/armv5teb-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/armv5teb-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/atarist-freemint-gcc.rul smake-1.2a49/RULES/atarist-freemint-gcc.rul --- smake-1.2a41/RULES/atarist-freemint-gcc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/atarist-freemint-gcc.rul 2008-11-14 21:49:56.000000000 +0000 @@ -0,0 +1,59 @@ +#ident @(#)atarist-freemint-gcc.rul 1.4 08/11/14 +########################################################################### +# Written 2008 by Y. Doyeux +########################################################################### +# +# Platform dependent MACROS for FreeMiNT on ATARI computers +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul + +OSDEFS += -DNO_USER_XCVT + +KDEFINES= -DKERNEL -D_KERNEL + +#COPTDYN= -fpic +COPTDYN= + +LIB_PREFIX= lib +LIB_SUFFIX= .a +#SHL_SUFFIX= .so.1.0 +SHL_SUFFIX= + +LIB_SOCKET= -lsocket +LIB_MATH= -lm +LIB_KVM= + +_STACKSIZE= $(_UNIQ)$(STACKSIZE) +__STACKSIZE= $(_STACKSIZE:$(_UNIQ)=0x10000) # Default stack size 64kB +STACK_SIZE= $(__STACKSIZE:$(_UNIQ)%=%) + +LDLIBS= $(LIBS) $(LIBX) && stack -S $(STACK_SIZE) $@ # Hack to set stack size + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTDYN= -shared -Wl,-soname,$(TARGET) +#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so +LDOPTDYN= +LNDYNLIB= + +# +# ranlib does not work and is not needed +# +#RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib + +LORDER= echo diff -Nru smake-1.2a41/RULES/aviion-dgux3-cc.rul smake-1.2a49/RULES/aviion-dgux3-cc.rul --- smake-1.2a41/RULES/aviion-dgux3-cc.rul 2006-07-06 12:07:42.000000000 +0100 +++ smake-1.2a49/RULES/aviion-dgux3-cc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)aviion-dgux3-cc.rul 1.7 06/07/06 " +#ident "@(#)aviion-dgux3-cc.rul 1.8 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-dg.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/aviion-dgux3-gcc.rul smake-1.2a49/RULES/aviion-dgux3-gcc.rul --- smake-1.2a41/RULES/aviion-dgux3-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/aviion-dgux3-gcc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)aviion-dgux3-gcc.rul 1.8 06/07/06 " +#ident "@(#)aviion-dgux3-gcc.rul 1.9 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/aviion-dgux4-cc.rul smake-1.2a49/RULES/aviion-dgux4-cc.rul --- smake-1.2a41/RULES/aviion-dgux4-cc.rul 2006-07-06 12:07:42.000000000 +0100 +++ smake-1.2a49/RULES/aviion-dgux4-cc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)aviion-dgux4-cc.rul 1.7 06/07/06 " +#ident "@(#)aviion-dgux4-cc.rul 1.8 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-dg.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/aviion-dgux4-gcc.rul smake-1.2a49/RULES/aviion-dgux4-gcc.rul --- smake-1.2a41/RULES/aviion-dgux4-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/aviion-dgux4-gcc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)aviion-dgux4-gcc.rul 1.8 06/07/06 " +#ident "@(#)aviion-dgux4-gcc.rul 1.9 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/bemac-beos-cc.rul smake-1.2a49/RULES/bemac-beos-cc.rul --- smake-1.2a41/RULES/bemac-beos-cc.rul 2007-02-22 13:33:16.000000000 +0000 +++ smake-1.2a49/RULES/bemac-beos-cc.rul 2007-05-08 12:07:57.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)bemac-beos-cc.rul 1.7 07/02/22 +#ident @(#)bemac-beos-cc.rul 1.9 07/05/08 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,9 +22,9 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-bemwcc.rul -OSDEFS= +OSDEFS += -CPPOPTS= -O4 -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -O4 -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/bemac-beos-mwcc.rul smake-1.2a49/RULES/bemac-beos-mwcc.rul --- smake-1.2a41/RULES/bemac-beos-mwcc.rul 2007-02-22 13:33:16.000000000 +0000 +++ smake-1.2a49/RULES/bemac-beos-mwcc.rul 2007-05-08 12:07:57.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)bemac-beos-mwcc.rul 1.7 07/02/22 +#ident @(#)bemac-beos-mwcc.rul 1.9 07/05/08 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,9 +22,9 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-bemwcc.rul -OSDEFS= +OSDEFS += -CPPOPTS= -relax_pointers -opt all -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -relax_pointers -opt all -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/bepc-beos-cc.rul smake-1.2a49/RULES/bepc-beos-cc.rul --- smake-1.2a41/RULES/bepc-beos-cc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/bepc-beos-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)bepc-beos-cc.rul 1.8 07/03/08 +#ident @(#)bepc-beos-cc.rul 1.10 07/05/09 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -30,7 +30,7 @@ # XXX removed and printing floating numbers will work with old/new BeOS # #OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -44,7 +44,7 @@ LIB_MATH= LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/bepc-beos-gcc.rul smake-1.2a49/RULES/bepc-beos-gcc.rul --- smake-1.2a41/RULES/bepc-beos-gcc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/bepc-beos-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)bepc-beos-gcc.rul 1.10 07/03/08 +#ident @(#)bepc-beos-gcc.rul 1.12 07/05/09 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -30,7 +30,7 @@ # XXX removed and printing floating numbers will work with old/new BeOS # #OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -44,7 +44,7 @@ LIB_MATH= LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/bepc-haiku-cc.rul smake-1.2a49/RULES/bepc-haiku-cc.rul --- smake-1.2a41/RULES/bepc-haiku-cc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/bepc-haiku-cc.rul 2009-02-04 23:34:22.000000000 +0000 @@ -0,0 +1,54 @@ +#ident "@(#)bepc-haiku-cc.rul 1.3 09/02/05 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Haiku, a BeOS like OS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul + +# +# XXX Old BeOS needs libroot.so to get [efg]cvt() +# XXX New BeOS seems to have this in libc and in addition we include +# XXX strtod.c for floating point conversion on OS without such code. +# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been +# XXX removed and printing floating numbers will work with old/new BeOS +# +#OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +#CONFFLAGS= i586 + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so + +#LIB_SOCKET= -lsocket -lbind +LIB_SOCKET= -lnetwork +LIB_MATH= +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) + +LORDER= echo +TSORT= cat + +LN= /bin/ln -s diff -Nru smake-1.2a41/RULES/bepc-haiku-gcc.rul smake-1.2a49/RULES/bepc-haiku-gcc.rul --- smake-1.2a41/RULES/bepc-haiku-gcc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/bepc-haiku-gcc.rul 2009-02-04 23:34:22.000000000 +0000 @@ -0,0 +1,54 @@ +#ident "@(#)bepc-haiku-gcc.rul 1.3 09/02/05 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Haiku, a BeOS like OS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul + +# +# XXX Old BeOS needs libroot.so to get [efg]cvt() +# XXX New BeOS seems to have this in libc and in addition we include +# XXX strtod.c for floating point conversion on OS without such code. +# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been +# XXX removed and printing floating numbers will work with old/new BeOS +# +#OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +#CONFFLAGS= i586 + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so + +#LIB_SOCKET= -lsocket -lbind +LIB_SOCKET= -lnetwork +LIB_MATH= +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) + +LORDER= echo +TSORT= cat + +LN= /bin/ln -s diff -Nru smake-1.2a41/RULES/cc-apollo.rul smake-1.2a49/RULES/cc-apollo.rul --- smake-1.2a41/RULES/cc-apollo.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-apollo.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-apollo.rul 1.7 07/03/08 " +#ident "@(#)cc-apollo.rul 1.8 07/05/08 " ########################################################################### # Written 2001-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(APOLLOCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(APOLLOC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -W0,-info,4 COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-bemwcc.rul smake-1.2a49/RULES/cc-bemwcc.rul --- smake-1.2a41/RULES/cc-bemwcc.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-bemwcc.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)cc-bemwcc.rul 1.8 07/03/08 +#ident @(#)cc-bemwcc.rul 1.9 07/05/08 ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -36,17 +36,17 @@ # # XXX This is used by bemac-beos-cc.rul # -CPPOPTS= -O4 -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -O4 -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) # # XXX This is used by bemac-beos-mwcc.rul # -CPPOPTS= -relax_pointers -opt all -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -relax_pointers -opt all -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) # # XXX This is used by powerpc-beos-mwcc.rul # -CPPOPTS= -relax_pointers -opt global -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -relax_pointers -opt global -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -w8 COPTOPT= -opt off diff -Nru smake-1.2a41/RULES/cc-dec.rul smake-1.2a49/RULES/cc-dec.rul --- smake-1.2a41/RULES/cc-dec.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-dec.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-dec.rul 1.6 07/03/08 " +#ident "@(#)cc-dec.rul 1.7 07/05/08 " ########################################################################### # Written 1998-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(DECCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(DECC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-dg.rul smake-1.2a49/RULES/cc-dg.rul --- smake-1.2a41/RULES/cc-dg.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-dg.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-dg.rul 1.6 07/03/08 " +#ident "@(#)cc-dg.rul 1.7 07/05/08 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(DGCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(DGC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= -Xa CWOPTS= -v COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-dumb.rul smake-1.2a49/RULES/cc-dumb.rul --- smake-1.2a41/RULES/cc-dumb.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-dumb.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-dumb.rul 1.6 07/03/08 " +#ident "@(#)cc-dumb.rul 1.7 07/05/08 " ########################################################################### # Written 1997-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(DUMBCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(DUMBC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= # diff -Nru smake-1.2a41/RULES/cc-gcc64.rul smake-1.2a49/RULES/cc-gcc64.rul --- smake-1.2a41/RULES/cc-gcc64.rul 2007-03-08 12:08:03.000000000 +0000 +++ smake-1.2a49/RULES/cc-gcc64.rul 2009-11-29 13:57:59.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)cc-gcc64.rul 1.8 07/03/08 " +#ident "@(#)cc-gcc64.rul 1.11 09/11/29 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -19,12 +19,14 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +GCC_OPT64= -m64 + CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(G++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) -COPTS= -m64 +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +COPTS= $(GCC_OPT64) # -Wtraditional now causes more pain than it helps CWOPTS= -Wall -Wtraditional CWOPTS= -Wall -Wno-unknown-pragmas \ @@ -32,7 +34,7 @@ COPTOPT= -O COPTDYN= -fpic COPTGPROF= -pg -C++OPTS= -m64 +C++OPTS= $(GCC_OPT64) C++WOPTS= $(CWOPTS) C++OPTOPT= $(COPTOPT) C++OPTDYN= -fpic @@ -48,22 +50,22 @@ LDFLAGS= $(LDOPTS) $(LDOPTX) LDLIBS= $(LIBS) $(LIBX) -LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTDYN= -shared -Wl,-soname,$(TARGET) LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so FLOAT_OPTIONS= CC_COM= gcc -CC= @echo " ==> COMPILING \"$@\""; gcc -m64 -CC++ = @echo " ==> COMPILING \"$@\""; g++ -m64 -LDCC= @echo " ==> LINKING \"$@\""; gcc -m64 -LDCC++ = @echo " ==> LINKING \"$@\""; g++ -m64 -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc -m64 -DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; g++ -m64 +CC= @echo " ==> COMPILING \"$@\""; gcc $(GCC_OPT64) +CC++ = @echo " ==> COMPILING \"$@\""; g++ $(GCC_OPT64) +LDCC= @echo " ==> LINKING \"$@\""; gcc $(GCC_OPT64) +LDCC++ = @echo " ==> LINKING \"$@\""; g++ $(GCC_OPT64) +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc $(GCC_OPT64) +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; g++ $(GCC_OPT64) RMDEP= : -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -m64 -M +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc $(GCC_OPT64) -M MKDEP_OUT= -MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); g++ -m64 -M +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); g++ $(GCC_OPT64) -M MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-gcc.rul smake-1.2a49/RULES/cc-gcc.rul --- smake-1.2a41/RULES/cc-gcc.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-gcc.rul 1.7 07/03/08 " +#ident "@(#)cc-gcc.rul 1.9 07/05/09 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(G++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= # -Wtraditional now causes more pain than it helps CWOPTS= -Wall -Wtraditional @@ -48,7 +48,7 @@ LDFLAGS= $(LDOPTS) $(LDOPTX) LDLIBS= $(LIBS) $(LIBX) -LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTDYN= -shared -Wl,-soname,$(TARGET) LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so diff -Nru smake-1.2a41/RULES/cc-hp64.rul smake-1.2a49/RULES/cc-hp64.rul --- smake-1.2a41/RULES/cc-hp64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/cc-hp64.rul 2009-10-12 20:49:31.000000000 +0100 @@ -0,0 +1,82 @@ +#ident "@(#)cc-hp64.rul 1.9 09/10/12 " +########################################################################### +# Written 1996-2006 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for HP/UC cc +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) +CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(HPCOPTOPT) $(COPTX) +C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(HPC++OPTOPT) $(C++OPTX) + +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +# +# -Ae -> ANSI C (non-bundled C only - bundled C ignores -Ae) +# +DAportable -> Create Parisc-1.1 code +# +HP_CC_ANSI_OPT= -Ae # May be overwritten later from $(OINCSDIR)/rules.cnf +HP_CC_OPT_OPT= -O # May be overwritten later from $(OINCSDIR)/rules.cnf +HP_CC_GPROF_OPT= -G # May be overwritten later from $(OINCSDIR)/rules.cnf + +COPTS= $(HP_CC_ANSI_OPT) +DD64 +#COPTS= $(HP_CC_ANSI_OPT) +DAportable +DD64 +CWOPTS= +COPTOPT= $(HP_CC_OPT_OPT) +COPTDYN= +z +COPTGPROF= $(HP_CC_GPROF_OPT) +C++OPTS= +DD64 +C++WOPTS= +#C++OPTOPT= -O +#C++OPTDYN= -Kpic +#C++OPTGPROF= -xpg + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .sl + +LIBS_PATH= -L$(OLIBSDIR) +LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) + +LDFLAGS= $(LDOPTS) $(LDOPTX) +LDLIBS= $(LIBS) $(LIBX) + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) +LDOPTDYN= -Wl,-soname,$(TARGET) +LNDYNLIB= @ + +FLOAT_OPTIONS= + +CC_COM= cc +CC= @echo " ==> COMPILING \"$@\""; cc +DD64 +LDCC= @echo " ==> LINKING \"$@\""; cc +DD64 +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cc +DD64 + +RMDEP= : +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(SRCROOT)/conf/mkdep-hpux.sh +MKDEP_OUT= + +#CC++ = @echo " ==> COMPILING \"$@\""; CC +#LDCC++ = @echo " ==> LINKING \"$@\""; CC +#DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC +#MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM +#MKC++DEP_OUT= +CC++ = @echo " ==> COMPILING \"$@\""; echo "C++ not yet supported"; exit -1 +LDCC++ = @echo " ==> LINKING \"$@\""; echo "C++ not yet supported"; exit -1 +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; echo "C++ not yet supported"; exit -1 +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); echo "C++ not yet supported"; exit -1 +MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-hp.rul smake-1.2a49/RULES/cc-hp.rul --- smake-1.2a41/RULES/cc-hp.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-hp.rul 2009-01-07 18:20:15.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)cc-hp.rul 1.5 07/03/08 " +#ident "@(#)cc-hp.rul 1.7 09/01/07 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -23,16 +23,20 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(HPCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(HPC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) # # -Ae -> ANSI C (non-bundled C only - bundled C ignores -Ae) # +DAportable -> Create Parisc-1.1 code # -COPTS= -Ae +DAportable +HP_CC_ANSI_OPT= -Ae # May be overwritten later from $(OINCSDIR)/rules.cnf +HP_CC_OPT_OPT= -O # May be overwritten later from $(OINCSDIR)/rules.cnf +HP_CC_GPROF_OPT= -G # May be overwritten later from $(OINCSDIR)/rules.cnf + +COPTS= $(HP_CC_ANSI_OPT) +DAportable CWOPTS= -COPTOPT= -O -COPTDYN= -fpic -COPTGPROF= -pg +COPTOPT= $(HP_CC_OPT_OPT) +COPTDYN= +z +COPTGPROF= $(HP_CC_GPROF_OPT) C++OPTS= C++WOPTS= #C++OPTOPT= -O @@ -51,7 +55,7 @@ #LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -shared -Wl,-soname,$(TARGET) +LDOPTDYN= -Wl,-soname,$(TARGET) LNDYNLIB= @ FLOAT_OPTIONS= diff -Nru smake-1.2a41/RULES/cc-ibm.rul smake-1.2a49/RULES/cc-ibm.rul --- smake-1.2a41/RULES/cc-ibm.rul 2007-03-08 12:08:03.000000000 +0000 +++ smake-1.2a49/RULES/cc-ibm.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-ibm.rul 1.5 07/03/08 " +#ident "@(#)cc-ibm.rul 1.6 07/05/08 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(IBMCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(IBMC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-msc64.rul smake-1.2a49/RULES/cc-msc64.rul --- smake-1.2a41/RULES/cc-msc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/cc-msc64.rul 2009-05-17 16:36:19.000000000 +0100 @@ -0,0 +1,26 @@ +#ident "@(#)cc-msc64.rul 1.18 09/05/17 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_NT using MSVC +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +include $(SRCROOT)/$(RULESDIR)/cc-msc.rul + +MSCOPT64= -machine:X64 + +VC=7_64 diff -Nru smake-1.2a41/RULES/cc-msc.rul smake-1.2a49/RULES/cc-msc.rul --- smake-1.2a41/RULES/cc-msc.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-msc.rul 2009-05-21 12:06:39.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-msc.rul 1.11 07/03/08 " +#ident "@(#)cc-msc.rul 1.18 09/05/21 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(MSCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(MSC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -W3 COPTOPT= -O2 @@ -46,33 +46,37 @@ LIB_SUFFIX= .lib SHL_SUFFIX= .dll -LIBS_PATH= -libpath:$(OLIBSDIR) -LIBS_PATH_STATIC= -libpath:$(OLIBSDIR_STATIC) +#LIBS_PATH= -libpath:$(OLIBSDIR) +#LIBS_PATH_STATIC= -libpath:$(OLIBSDIR_STATIC) +LIBS_PATH= -L$(OLIBSDIR) +LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) LDFLAGS= $(LDOPTS) $(LDOPTX) LDLIBS= $(LIBS:-l%=%.lib) $(LIBX:-l%=%.lib) #LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= -link $(LIBS_PATH) $(LDPATH) +#LDOPTS= -link $(LIBS_PATH) $(LDPATH) +LDOPTS= -link $(LIBS_PATH:-L%=-libpath:%) $(LDPATH:-L%=-libpath:%) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) LDOPTDYN= -dll -def:$(TARGETLIB).def LNDYNLIB= @ FLOAT_OPTIONS= -CC_COM= cl -CC= @echo " ==> COMPILING \"$@\""; cl -nologo -CC++ = @echo " ==> COMPILING \"$@\""; cl -nologo +CC_COM= cl.exe +CC= @echo " ==> COMPILING \"$@\""; $(CC_COM) -nologo +CC++ = @echo " ==> COMPILING \"$@\""; $(CC_COM) -nologo OUTPUT_OPTION= -Fo$(O:%=%/)$@ +CC_OUTPUT_FILTER= | tail +2 # Filter cl.exe filename echo LD_OUTPUT_OPTION= -Fe$@ -LDCC= @echo " ==> LINKING \"$@\""; cl -nologo -LDCC++ = @echo " ==> LINKING \"$@\""; cl -nologo -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cl -nologo -DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; cl -nologo +LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) -nologo +LDCC++ = @echo " ==> LINKING \"$@\""; $(CC_COM) -nologo +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) -nologo +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) -nologo DYNLD.o= $(DYNLD) `$(LORDER) $(POFILES) | $(TSORT)` $(LDFLAGS) -out:$@ $(LDLIBS) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true -AR= @echo " ==> ARCHIVING \"$@\""; lib -nologo +AR= @echo " ==> ARCHIVING \"$@\""; lib.exe -nologo ARFLAGS= AR.o= $(AR) $(ARFLAGS) -out:$@ @@ -85,7 +89,14 @@ VC=7 _VC_SETUP= $(_UNIQ)$(VC_SETUP) -__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)-setup) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from Defaults.* +# in order to be able to test for the existence of "cl.exe" early. +########################################################################### include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) + +OSDEFS += $(WINNTDEFS) diff -Nru smake-1.2a41/RULES/cc-msposix.rul smake-1.2a49/RULES/cc-msposix.rul --- smake-1.2a41/RULES/cc-msposix.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/cc-msposix.rul 2007-05-08 11:32:23.000000000 +0100 @@ -0,0 +1,96 @@ +#ident "@(#)cc-msposix.rul 1.18 07/05/08 " +########################################################################### +# Written 2006-2007 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for INTERIX using MSVC in POSIX c89 mode +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) +CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(MSCOPTOPT) $(COPTX) +C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(MSC++OPTOPT) $(C++OPTX) + +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +COPTS= +CWOPTS= +COPTOPT= -O2 +COPTDYN= +#COPTGPROF= -pg +# +# /EHs C++-EH aktivieren (ohne SEH-Ausnahmen) +# /EHa C++-EH aktivieren (mit SEH-Ausnahmen) +# /EHc nothrow als Standard fr externes "C" +# MS seems to need -EHsc in order to create useful code with exceptions +# +C++OPTS= -EHsc +C++WOPTS= -W3 +C++OPTOPT= -O2 +C++OPTDYN= +#C++OPTGPROF= -pg + + +LIB_PREFIX= +LIB_SUFFIX= .lib +SHL_SUFFIX= .dll + +LIBS_PATH= -L$(OLIBSDIR) +LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) + +LDFLAGS= $(LDOPTS) $(LDOPTX) +LDLIBS= $(LIBS:-l%=%.lib) $(LIBX:-l%=%.lib) + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTDYN= -shared -Wl,-soname,$(TARGET) +LDOPTDYN= -dll -def:$(TARGETLIB).def +LNDYNLIB= @ + +FLOAT_OPTIONS= + +CC_COM= cc +CC= @echo " ==> COMPILING \"$@\""; $(CC_COM) +CC++ = @echo " ==> COMPILING \"$@\""; $(CC_COM) +#OUTPUT_OPTION= -Fo$(O:%=%/)$@ +#LD_OUTPUT_OPTION= -Fe$@ +LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) +LDCC++ = @echo " ==> LINKING \"$@\""; $(CC_COM) +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) -nologo +DYNLD.o= $(DYNLD) `$(LORDER) $(POFILES) | $(TSORT)` $(LDFLAGS) -out:$@ $(LDLIBS) + +RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true +AR= @echo " ==> ARCHIVING \"$@\""; lib.exe -nologo +ARFLAGS= +AR.o= $(AR) $(ARFLAGS) -out:$@ + +RMDEP= : +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc.sh +MKDEP_OUT= +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc.sh +MKC++DEP_OUT= + +VC=7 + +_VC_SETUP= $(_UNIQ)$(VC_SETUP) +__VC_SETUP= $(_VC_SETUP:$(_UNIQ)=vc$(VC)$(_PLATFORM:%=-%)-setup) +VCSETUP= $(__VC_SETUP:$(_UNIQ)%=%) + +########################################################################### +# IMPORTANT Note: +# We also include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) from Defaults.* +# in order to be able to test for the existence of "/bin/cc" early. +########################################################################### +include $(DEFLTSROOT)/$(DEFLTSDIR)/$(VCSETUP) diff -Nru smake-1.2a41/RULES/cc-openvms.rul smake-1.2a49/RULES/cc-openvms.rul --- smake-1.2a41/RULES/cc-openvms.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/cc-openvms.rul 2009-11-05 21:47:20.000000000 +0000 @@ -0,0 +1,74 @@ +#ident "@(#)cc-openvms.rul 1.3 09/11/05 " +########################################################################### +# Written 1998-2009 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for GNV OpenVMS cc +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) +CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(DECCOPTOPT) $(COPTX) +C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(DECC++OPTOPT) $(C++OPTX) + +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +COPTS= +CWOPTS= -verbose +COPTOPT= -O +COPTDYN= -fpic +COPTGPROF= -pg +C++OPTS= +C++WOPTS= +#C++OPTOPT= -O +#C++OPTDYN= -Kpic +#C++OPTGPROF= -xpg + +LIB_PREFIX= +LIB_SUFFIX= .olb +SHL_SUFFIX= .so.1.0 + +LIBS_PATH= -L$(OLIBSDIR) -L/usr/ccs/lib +LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) + +LDFLAGS= $(LDOPTS) $(LDOPTX) +LDLIBS= $(LIBS) $(LIBX) + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) +LDOPTDYN= -shared -Wl,-soname,$(TARGET) +LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so + +FLOAT_OPTIONS= + +CC= @echo " ==> COMPILING \"$@\""; cc +LDCC= @echo " ==> LINKING \"$@\""; cc +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cc + +RMDEP= : +# cc -M t.c creates a file t.mms wich t.obj : /EISNER$DRA3/decuserve_user/schilling/t.c lines +#MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); echo "Cannot yet do -M with OpenVMS cc"; : +MKDEP_OUT= + +#CC++ = @echo " ==> COMPILING \"$@\""; CC +#LDCC++ = @echo " ==> LINKING \"$@\""; CC +#DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC +#MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM +#MKC++DEP_OUT= +CC++ = @echo " ==> COMPILING \"$@\""; echo "C++ not yet supported"; exit -1 +LDCC++ = @echo " ==> LINKING \"$@\""; echo "C++ not yet supported"; exit -1 +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; echo "C++ not yet supported"; exit -1 +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); echo "C++ not yet supported"; exit -1 +MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-sco_os.rul smake-1.2a49/RULES/cc-sco_os.rul --- smake-1.2a41/RULES/cc-sco_os.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-sco_os.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-sco_os.rul 1.7 07/03/08 " +#ident "@(#)cc-sco_os.rul 1.8 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SCO_OSCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SCO_OSC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= -belf CWOPTS= -w3 COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-sco_uw.rul smake-1.2a49/RULES/cc-sco_uw.rul --- smake-1.2a41/RULES/cc-sco_uw.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-sco_uw.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-sco_uw.rul 1.6 07/03/08 " +#ident "@(#)cc-sco_uw.rul 1.7 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SCO_UWCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SCO_UWC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -v COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-sgi64.rul smake-1.2a49/RULES/cc-sgi64.rul --- smake-1.2a41/RULES/cc-sgi64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/cc-sgi64.rul 2009-11-29 12:03:46.000000000 +0000 @@ -0,0 +1,69 @@ +#ident "@(#)cc-sgi64.rul 1.7 09/11/29 " +########################################################################### +# Written 1996-2006 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Silicon Graphics cc +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +CPPFLAGS= -DSCHILY_BUILD $(CPPOPTS) $(CPPOPTX) +CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SGICOPTOPT) $(COPTX) +C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SGIC++OPTOPT) $(C++OPTX) + +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +COPTS= -64 +CWOPTS= -fullwarn +COPTOPT= -O +COPTDYN= -Kpic +COPTGPROF= -p1 +C++OPTS= -64 +C++WOPTS= +#C++OPTOPT= -O +#C++OPTDYN= -Kpic +#C++OPTGPROF= -xpg + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so.1 + +LIBS_PATH= -L$(OLIBSDIR) +LIBS_PATH_STATIC= -L$(OLIBSDIR_STATIC) + +LDFLAGS= $(LDOPTS) $(LDOPTX) +LDLIBS= $(LIBS) $(LIBX) + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +LDOPTS= $(LIBS_PATH) $(LDPATH) $(LARGEFILE_OPT) +#LDOPTDYN= -dy -G -ztext -h $(TARGET) -ldl +LNDYNLIB= @ + +FLOAT_OPTIONS= + +CC_COM= cc +CC= @echo " ==> COMPILING \"$@\""; cc -64 +LDCC= @echo " ==> LINKING \"$@\""; cc -64 +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cc -64 +RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true + +RMDEP= : +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -64 -M +MKDEP_OUT= + +CC++ = @echo " ==> COMPILING \"$@\""; CC -64 +LDCC++ = @echo " ==> LINKING \"$@\""; CC -64 +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC -64 +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -64 -M +MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-sgi.rul smake-1.2a49/RULES/cc-sgi.rul --- smake-1.2a41/RULES/cc-sgi.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-sgi.rul 2009-11-29 12:03:29.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)cc-sgi.rul 1.5 07/03/08 " +#ident "@(#)cc-sgi.rul 1.7 09/11/29 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SGICOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SGIC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -fullwarn COPTOPT= -O @@ -61,13 +61,8 @@ MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M MKDEP_OUT= -#CC++ = @echo " ==> COMPILING \"$@\""; CC -#LDCC++ = @echo " ==> LINKING \"$@\""; CC -#DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC -#MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM -#MKC++DEP_OUT= -CC++ = @echo " ==> COMPILING \"$@\""; echo "C++ not yet supported"; exit -1 -LDCC++ = @echo " ==> LINKING \"$@\""; echo "C++ not yet supported"; exit -1 -DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; echo "C++ not yet supported"; exit -1 -MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); echo "C++ not yet supported"; exit -1 +CC++ = @echo " ==> COMPILING \"$@\""; CC +LDCC++ = @echo " ==> LINKING \"$@\""; CC +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -M MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-sony.rul smake-1.2a49/RULES/cc-sony.rul --- smake-1.2a41/RULES/cc-sony.rul 2007-03-08 12:08:03.000000000 +0000 +++ smake-1.2a49/RULES/cc-sony.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)cc-sony.rul 1.5 07/03/08 +#ident @(#)cc-sony.rul 1.6 07/05/08 # Written 1996-2006 by J. Schilling ########################################################################### # @@ -22,7 +22,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SONYCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SONYC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= -fullwarn COPTOPT= -O diff -Nru smake-1.2a41/RULES/cc-sunpro64.rul smake-1.2a49/RULES/cc-sunpro64.rul --- smake-1.2a41/RULES/cc-sunpro64.rul 2007-03-08 12:08:03.000000000 +0000 +++ smake-1.2a49/RULES/cc-sunpro64.rul 2009-01-06 22:07:12.000000000 +0000 @@ -1,6 +1,6 @@ -#ident "@(#)cc-sunpro64.rul 1.7 07/03/08 " +#ident "@(#)cc-sunpro64.rul 1.11 09/01/06 " ########################################################################### -# Written 1996-2006 by J. Schilling +# Written 1996-2009 by J. Schilling ########################################################################### # # Platform dependent MACROS for SunPro (Studio) cc @@ -25,13 +25,17 @@ LINTFLAGS= -Nlevel=4 -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) -COPTS= -Xa -xarch=generic64 +_SUNPROCOPT64= $(_UNIQ)$(SUN_CC64_OPT) +__SUNPROCOPT64= $(_SUNPROCOPT64:$(_UNIQ)=-xarch=generic64) +SUNPROCOPT64= $(__SUNPROCOPT64:$(_UNIQ)%=%) + +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) +COPTS= -Xa $(SUNPROCOPT64) CWOPTS= -v COPTOPT= -O COPTDYN= -Kpic COPTGPROF= -xpg -C++OPTS= -xarch=generic64 +C++OPTS= $(SUNPROCOPT64) C++WOPTS= C++OPTOPT= -O C++OPTDYN= -Kpic @@ -54,15 +58,15 @@ FLOAT_OPTIONS= CC_COM= cc -CC= @echo " ==> COMPILING \"$@\""; cc -xarch=generic64 -CC++ = @echo " ==> COMPILING \"$@\""; CC -xarch=generic64 -LDCC= @echo " ==> LINKING \"$@\""; cc -xarch=generic64 -LDCC++ = @echo " ==> LINKING \"$@\""; CC -xarch=generic64 -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cc -xarch=generic64 -DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC -xarch=generic64 +CC= @echo " ==> COMPILING \"$@\""; $(CC_COM) $(SUNPROCOPT64) +CC++ = @echo " ==> COMPILING \"$@\""; CC $(SUNPROCOPT64) +LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) $(SUNPROCOPT64) +LDCC++ = @echo " ==> LINKING \"$@\""; CC $(SUNPROCOPT64) +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) $(SUNPROCOPT64) +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC $(SUNPROCOPT64) RMDEP= : -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -xM -xarch=generic64 +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC_COM) -xM $(SUNPROCOPT64) MKDEP_OUT= -MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM -xarch=generic64 +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM $(SUNPROCOPT64) MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-sunpro.rul smake-1.2a49/RULES/cc-sunpro.rul --- smake-1.2a41/RULES/cc-sunpro.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-sunpro.rul 2007-06-13 23:20:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-sunpro.rul 1.6 07/03/08 " +#ident "@(#)cc-sunpro.rul 1.8 07/06/14 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -26,7 +26,7 @@ LINTFLAGS= -Nlevel=4 -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= -Xa CWOPTS= -v COPTOPT= -O @@ -54,15 +54,16 @@ FLOAT_OPTIONS= -CC= @echo " ==> COMPILING \"$@\""; cc +CC_COM= cc +CC= @echo " ==> COMPILING \"$@\""; $(CC_COM) CC++ = @echo " ==> COMPILING \"$@\""; CC -LDCC= @echo " ==> LINKING \"$@\""; cc +LDCC= @echo " ==> LINKING \"$@\""; $(CC_COM) LDCC++ = @echo " ==> LINKING \"$@\""; CC -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; cc +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; $(CC_COM) DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; CC RMDEP= : -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -xM +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); $(CC_COM) -xM MKDEP_OUT= MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); CC -xM MKC++DEP_OUT= diff -Nru smake-1.2a41/RULES/cc-sun.rul smake-1.2a49/RULES/cc-sun.rul --- smake-1.2a41/RULES/cc-sun.rul 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/cc-sun.rul 2007-05-08 11:32:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)cc-sun.rul 1.5 07/03/08 " +#ident "@(#)cc-sun.rul 1.6 07/05/08 " ########################################################################### # Written 1996-2006 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(SUNCOPTOPT) $(COPTX) C++FLAGS= $(C++OPTS) $(C++WARNOPTS) $(C++OPTOPT) $(SUNC++OPTOPT) $(C++OPTX) -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) COPTS= CWOPTS= COPTOPT= -O diff -Nru smake-1.2a41/RULES/dn5500-domainos-cc.rul smake-1.2a49/RULES/dn5500-domainos-cc.rul --- smake-1.2a41/RULES/dn5500-domainos-cc.rul 2006-07-06 12:27:08.000000000 +0100 +++ smake-1.2a49/RULES/dn5500-domainos-cc.rul 2007-05-08 12:03:07.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)dn5500-domainos-cc.rul 1.5 06/07/06 " +#ident "@(#)dn5500-domainos-cc.rul 1.6 07/05/08 " ########################################################################### # Written 2001 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-apollo.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/gmake.wrn smake-1.2a49/RULES/gmake.wrn --- smake-1.2a41/RULES/gmake.wrn 2005-04-10 16:48:42.000000000 +0100 +++ smake-1.2a49/RULES/gmake.wrn 2009-08-17 21:41:28.000000000 +0100 @@ -19,3 +19,5 @@ The related bug has been reported to the GNU make maintainers in 1998 but as the bug has not yet been fixed, it seems that GNU make is unmaintained :-( A working highly portable make program is at ftp://ftp.berlios.de/pub/smake + +You may switch off this warning by calling "gmake GMAKE_NOWARN=true ..." diff -Nru smake-1.2a41/RULES/hppa-nextstep-cc.rul smake-1.2a49/RULES/hppa-nextstep-cc.rul --- smake-1.2a41/RULES/hppa-nextstep-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/hppa-nextstep-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " +#ident "@(#)hppa-nextstep-cc.rul 1.10 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/hppa-nextstep-gcc.rul smake-1.2a49/RULES/hppa-nextstep-gcc.rul --- smake-1.2a41/RULES/hppa-nextstep-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/hppa-nextstep-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)hppa-nextstep-gcc.rul 1.8 06/07/06 " +#ident "@(#)hppa-nextstep-gcc.rul 1.10 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/i386-at386-gnu-cc.rul smake-1.2a49/RULES/i386-at386-gnu-cc.rul --- smake-1.2a41/RULES/i386-at386-gnu-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-at386-gnu-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-at386-gnu-cc.rul 1.5 06/07/06 " +#ident "@(#)i386-at386-gnu-cc.rul 1.7 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/i386-at386-gnu-gcc.rul smake-1.2a49/RULES/i386-at386-gnu-gcc.rul --- smake-1.2a41/RULES/i386-at386-gnu-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-at386-gnu-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-at386-gnu-gcc.rul 1.5 06/07/06 " +#ident "@(#)i386-at386-gnu-gcc.rul 1.7 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/i386-bsd-os3-cc.rul smake-1.2a49/RULES/i386-bsd-os3-cc.rul --- smake-1.2a41/RULES/i386-bsd-os3-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i386-bsd-os3-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-bsd-os3-cc.rul 1.9 07/03/07 " +#ident "@(#)i386-bsd-os3-cc.rul 1.12 07/05/09 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) +OSDEFS += +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL @@ -39,7 +39,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) #LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so diff -Nru smake-1.2a41/RULES/i386-bsd-os3-gcc.rul smake-1.2a49/RULES/i386-bsd-os3-gcc.rul --- smake-1.2a41/RULES/i386-bsd-os3-gcc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i386-bsd-os3-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-bsd-os3-gcc.rul 1.9 07/03/07 " +#ident "@(#)i386-bsd-os3-gcc.rul 1.12 07/05/09 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) +OSDEFS += +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL @@ -39,7 +39,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) #LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so diff -Nru smake-1.2a41/RULES/i386-bsd-os-cc.rul smake-1.2a49/RULES/i386-bsd-os-cc.rul --- smake-1.2a41/RULES/i386-bsd-os-cc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/i386-bsd-os-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-bsd-os-cc.rul 1.11 07/03/08 " +#ident "@(#)i386-bsd-os-cc.rul 1.14 07/05/09 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) +OSDEFS += +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL @@ -39,7 +39,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) #LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so diff -Nru smake-1.2a41/RULES/i386-bsd-os-gcc.rul smake-1.2a49/RULES/i386-bsd-os-gcc.rul --- smake-1.2a41/RULES/i386-bsd-os-gcc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/i386-bsd-os-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-bsd-os-gcc.rul 1.11 07/03/08 " +#ident "@(#)i386-bsd-os-gcc.rul 1.14 07/05/09 " ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) +OSDEFS += +CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL @@ -39,7 +39,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) #LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so diff -Nru smake-1.2a41/RULES/i386-cygwin32_nt-cc.rul smake-1.2a49/RULES/i386-cygwin32_nt-cc.rul --- smake-1.2a41/RULES/i386-cygwin32_nt-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i386-cygwin32_nt-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-cygwin32_nt-cl.rul smake-1.2a49/RULES/i386-cygwin32_nt-cl.rul --- smake-1.2a41/RULES/i386-cygwin32_nt-cl.rul 2007-01-24 14:55:20.000000000 +0000 +++ smake-1.2a49/RULES/i386-cygwin32_nt-cl.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cl.rul 1.6 07/01/24 " -########################################################################### -# Written 2006 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT using MSVC -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-msc.rul - -# -# Supress useless cl warnings like: -# warning C4996: 'strerror' wurde als veraltet deklariert -# Consider using strerror_s instead. -# -OSDEFS += -D_CRT_SECURE_NO_DEPRECATE - -KDEFINES= - -LIB_SOCKET= Ws2_32.lib -LIB_MATH= -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-cygwin32_nt-gcc.rul smake-1.2a49/RULES/i386-cygwin32_nt-gcc.rul --- smake-1.2a41/RULES/i386-cygwin32_nt-gcc.rul 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/i386-cygwin32_nt-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-gcc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-darwin-cc.rul smake-1.2a49/RULES/i386-darwin-cc.rul --- smake-1.2a41/RULES/i386-darwin-cc.rul 2007-02-08 12:07:10.000000000 +0000 +++ smake-1.2a49/RULES/i386-darwin-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,65 +0,0 @@ -#ident "@(#)power-macintosh-darwin-cc.rul 1.11 07/02/08 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -COPTDYN= -fPIC - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dylib - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation -LDOPTDYN= -install_name $(INS_BASE)/lib/$(TARGET) -LDLIBDYN= -lgcc -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -# -# lorder seems not to work on some versions because Apple installed -# a broken /bin/sh that is not POSIX cimpliant an will not -# be able to run the /usr/bin/lorder script. The error messages are: -# type: not found -# type: not found -# lorder: nm: not found -# ... disable it -# -LORDER= echo -TSORT= cat - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/i386-darwin-gcc.rul smake-1.2a49/RULES/i386-darwin-gcc.rul --- smake-1.2a41/RULES/i386-darwin-gcc.rul 2007-02-08 12:07:10.000000000 +0000 +++ smake-1.2a49/RULES/i386-darwin-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,58 +0,0 @@ -#ident "@(#)power-macintosh-darwin-gcc.rul 1.11 07/02/08 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -COPTDYN= -fPIC - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dylib - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation -LDOPTDYN= -install_name $(INS_BASE)/lib/$(TARGET) -LDLIBDYN= -lgcc -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -# -# lorder seems not to work on some versions because Apple installed -# a broken /bin/sh that is not POSIX cimpliant an will not -# be able to run the /usr/bin/lorder script. The error messages are: -# type: not found -# type: not found -# lorder: nm: not found -# ... disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-dragonfly-cc.rul smake-1.2a49/RULES/i386-dragonfly-cc.rul --- smake-1.2a41/RULES/i386-dragonfly-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-dragonfly-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i386-freebsd-cc.rul 1.7 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for FreeBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-dragonfly-gcc.rul smake-1.2a49/RULES/i386-dragonfly-gcc.rul --- smake-1.2a41/RULES/i386-dragonfly-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-dragonfly-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i386-freebsd-gcc.rul 1.7 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for FreeBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-freebsd-cc.rul smake-1.2a49/RULES/i386-freebsd-cc.rul --- smake-1.2a41/RULES/i386-freebsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-freebsd-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-freebsd-cc.rul 1.7 06/07/06 " +#ident "@(#)i386-freebsd-cc.rul 1.8 07/05/08 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-freebsd-gcc.rul smake-1.2a49/RULES/i386-freebsd-gcc.rul --- smake-1.2a41/RULES/i386-freebsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-freebsd-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-freebsd-gcc.rul 1.7 06/07/06 " +#ident "@(#)i386-freebsd-gcc.rul 1.8 07/05/08 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-linux-cc.rul smake-1.2a49/RULES/i386-linux-cc.rul --- smake-1.2a41/RULES/i386-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-linux-gcc.rul smake-1.2a49/RULES/i386-linux-gcc.rul --- smake-1.2a41/RULES/i386-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i386-mingw32_nt-gcc.rul smake-1.2a49/RULES/i386-mingw32_nt-gcc.rul --- smake-1.2a41/RULES/i386-mingw32_nt-gcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/i386-mingw32_nt-gcc.rul 2007-05-08 12:07:57.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-mingw32_nt-gcc.rul 1.5 07/02/22 " +#ident "@(#)i386-mingw32_nt-gcc.rul 1.7 07/05/08 " ########################################################################### # # Platform dependent MACROS for Win32/Mingw32 @@ -20,8 +20,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +OSDEFS += +CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-ms-dos-gcc.rul smake-1.2a49/RULES/i386-ms-dos-gcc.rul --- smake-1.2a41/RULES/i386-ms-dos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-ms-dos-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-ms-dos-gcc.rul 1.4 06/07/06 " +#ident "@(#)i386-ms-dos-gcc.rul 1.5 07/05/08 " ########################################################################### # # Platform dependent MACROS for MSDOS/DJGPP v2 @@ -20,7 +20,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += COPTDYN= COPTGPROF= -pg diff -Nru smake-1.2a41/RULES/i386-netbsd-cc.rul smake-1.2a49/RULES/i386-netbsd-cc.rul --- smake-1.2a41/RULES/i386-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-netbsd-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " +#ident "@(#)i386-netbsd-cc.rul 1.11 07/05/09 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -#OSDEFS= -DIS_UNIX +OSDEFS += +#OSDEFS += -DIS_UNIX KDEFINES= -DKERNEL -D_KERNEL @@ -35,7 +35,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-netbsd-gcc.rul smake-1.2a49/RULES/i386-netbsd-gcc.rul --- smake-1.2a41/RULES/i386-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-netbsd-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " +#ident "@(#)i386-netbsd-gcc.rul 1.11 07/05/09 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,8 +22,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -#OSDEFS= -DIS_UNIX +OSDEFS += +#OSDEFS += -DIS_UNIX KDEFINES= -DKERNEL -D_KERNEL @@ -35,7 +35,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-nextstep-cc.rul smake-1.2a49/RULES/i386-nextstep-cc.rul --- smake-1.2a41/RULES/i386-nextstep-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-nextstep-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/i386-nextstep-gcc.rul smake-1.2a49/RULES/i386-nextstep-gcc.rul --- smake-1.2a41/RULES/i386-nextstep-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-nextstep-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/i386-openbsd-cc.rul smake-1.2a49/RULES/i386-openbsd-cc.rul --- smake-1.2a41/RULES/i386-openbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-openbsd-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-openbsd-cc.rul 1.8 06/07/06 " +#ident "@(#)i386-openbsd-cc.rul 1.10 07/05/09 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-openbsd-gcc.rul smake-1.2a49/RULES/i386-openbsd-gcc.rul --- smake-1.2a41/RULES/i386-openbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-openbsd-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-openbsd-gcc.rul 1.8 06/07/06 " +#ident "@(#)i386-openbsd-gcc.rul 1.10 07/05/09 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/i386-openserver-cc.rul smake-1.2a49/RULES/i386-openserver-cc.rul --- smake-1.2a41/RULES/i386-openserver-cc.rul 2006-07-06 13:13:50.000000000 +0100 +++ smake-1.2a49/RULES/i386-openserver-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-openserver-cc.rul 1.3 06/07/06 " +#ident "@(#)i386-openserver-cc.rul 1.4 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sco_os.rul -OSDEFS= -DSCO -DOPENSERVER +OSDEFS += -DSCO -DOPENSERVER KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-openserver-gcc.rul smake-1.2a49/RULES/i386-openserver-gcc.rul --- smake-1.2a41/RULES/i386-openserver-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-openserver-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-openserver-gcc.rul 1.6 06/07/06 " +#ident "@(#)i386-openserver-gcc.rul 1.7 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -DSCO -DOPENSERVER +OSDEFS += -DSCO -DOPENSERVER COPTS= -melf KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-os2-gcc.rul smake-1.2a49/RULES/i386-os2-gcc.rul --- smake-1.2a41/RULES/i386-os2-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-os2-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-os2-gcc.rul 1.11 06/07/06 " +#ident "@(#)i386-os2-gcc.rul 1.13 07/05/09 " ########################################################################### # First version written 1999 by C. Wohlgemuth ########################################################################### @@ -26,7 +26,7 @@ # XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been # XXX removed and printing floating numbers will work on any OS. # -OSDEFS= -D__OS2 +OSDEFS += -D__OS2 # # Using -Zcrtdll is a hack to allow this flag to be seen @@ -45,7 +45,7 @@ LIB_MATH= LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= diff -Nru smake-1.2a41/RULES/i386-unixware-cc.rul smake-1.2a49/RULES/i386-unixware-cc.rul --- smake-1.2a41/RULES/i386-unixware-cc.rul 2006-07-06 13:28:51.000000000 +0100 +++ smake-1.2a49/RULES/i386-unixware-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-unixware-cc.rul 1.6 06/07/06 " +#ident "@(#)i386-unixware-cc.rul 1.7 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sco_uw.rul -OSDEFS= -DUNIXWARE -DSVR4 +OSDEFS += -DUNIXWARE -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i386-unixware-gcc.rul smake-1.2a49/RULES/i386-unixware-gcc.rul --- smake-1.2a41/RULES/i386-unixware-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i386-unixware-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i386-unixware-gcc.rul 1.5 06/07/06 " +#ident "@(#)i386-unixware-gcc.rul 1.6 07/05/08 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -DUNIXWARE -DSVR4 +OSDEFS += -DUNIXWARE -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i486-cygwin32_nt-cc64.rul smake-1.2a49/RULES/i486-cygwin32_nt-cc64.rul --- smake-1.2a41/RULES/i486-cygwin32_nt-cc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i486-cygwin32_nt-cc64.rul 2009-07-27 22:10:42.000000000 +0100 @@ -0,0 +1,49 @@ +#ident "@(#)i486-cygwin32_nt-cc64.rul 1.1 09/07/27 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_NT +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul + +OSDEFS += -mwin32 + +KDEFINES= +#COPTDYN= -fpic +COPTDYN= + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .dll + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTDYN= -shared -Wl,-soname,$(TARGET) +LDOPTDYN= +#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so +LNDYNLIB= + +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/i486-cygwin32_nt-cc.rul smake-1.2a49/RULES/i486-cygwin32_nt-cc.rul --- smake-1.2a41/RULES/i486-cygwin32_nt-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i486-cygwin32_nt-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i486-cygwin32_nt-cc.rul 1.9 07/03/07 " +#ident "@(#)i486-cygwin32_nt-cc.rul 1.10 07/05/09 " ########################################################################### # Written 1998 by B. Bochow ########################################################################### @@ -36,7 +36,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) LDOPTDYN= diff -Nru smake-1.2a41/RULES/i486-cygwin32_nt-cl.rul smake-1.2a49/RULES/i486-cygwin32_nt-cl.rul --- smake-1.2a41/RULES/i486-cygwin32_nt-cl.rul 2007-01-24 14:55:20.000000000 +0000 +++ smake-1.2a49/RULES/i486-cygwin32_nt-cl.rul 2009-05-21 11:46:53.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i486-cygwin32_nt-cl.rul 1.6 07/01/24 " +#ident "@(#)i486-cygwin32_nt-cl.rul 1.8 09/05/21 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,6 +20,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.prg ########################################################################### +_PLATFORM= cygwin include $(SRCROOT)/$(RULESDIR)/cc-msc.rul # @@ -29,6 +30,14 @@ # OSDEFS += -D_CRT_SECURE_NO_DEPRECATE +# +# Supress useless cl warnings like: +# warning C4996: 'fdopen' wurde als veraltet deklariert +# The POSIX name for this item is deprecated. Instead, use +# the ISO C++ conformant name: _fdopen. +# +OSDEFS += -D_CRT_NONSTDC_NO_DEPRECATE + KDEFINES= LIB_SOCKET= Ws2_32.lib diff -Nru smake-1.2a41/RULES/i486-cygwin32_nt-gcc64.rul smake-1.2a49/RULES/i486-cygwin32_nt-gcc64.rul --- smake-1.2a41/RULES/i486-cygwin32_nt-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i486-cygwin32_nt-gcc64.rul 2009-07-27 22:10:42.000000000 +0100 @@ -0,0 +1,49 @@ +#ident "@(#)i486-cygwin32_nt-gcc64.rul 1.1 09/07/27 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_NT +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul + +OSDEFS += -mwin32 + +KDEFINES= +#COPTDYN= -fpic +COPTDYN= + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .dll + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTDYN= -shared -Wl,-soname,$(TARGET) +LDOPTDYN= +#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so +LNDYNLIB= + +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/i486-cygwin32_nt-gcc.rul smake-1.2a49/RULES/i486-cygwin32_nt-gcc.rul --- smake-1.2a41/RULES/i486-cygwin32_nt-gcc.rul 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/i486-cygwin32_nt-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i486-cygwin32_nt-gcc.rul 1.9 07/03/07 " +#ident "@(#)i486-cygwin32_nt-gcc.rul 1.10 07/05/09 " ########################################################################### # Written 1998 by B. Bochow ########################################################################### @@ -36,7 +36,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) #LDOPTDYN= -shared -Wl,-soname,$(TARGET) LDOPTDYN= diff -Nru smake-1.2a41/RULES/i486-linux-cc.rul smake-1.2a49/RULES/i486-linux-cc.rul --- smake-1.2a41/RULES/i486-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i486-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i486-linux-gcc.rul smake-1.2a49/RULES/i486-linux-gcc.rul --- smake-1.2a41/RULES/i486-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i486-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i486-mingw32_nt-gcc.rul smake-1.2a49/RULES/i486-mingw32_nt-gcc.rul --- smake-1.2a41/RULES/i486-mingw32_nt-gcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/i486-mingw32_nt-gcc.rul 2007-05-08 12:07:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i486-mingw32_nt-gcc.rul 1.5 07/02/22 " +#ident "@(#)i486-mingw32_nt-gcc.rul 1.7 07/05/08 " ########################################################################### # # Platform dependent MACROS for Win32/Mingw32 @@ -20,9 +20,9 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += -CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i486-ms-dos-gcc.rul smake-1.2a49/RULES/i486-ms-dos-gcc.rul --- smake-1.2a41/RULES/i486-ms-dos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i486-ms-dos-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -#ident "@(#)i386-ms-dos-gcc.rul 1.4 06/07/06 " -########################################################################### -# -# Platform dependent MACROS for MSDOS/DJGPP v2 -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -COPTDYN= -COPTGPROF= -pg - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= - -#LDCC= @echo " ==> LINKING \"$@\""; gcc -Wl,--strip-all -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i486-unixware-cc.rul smake-1.2a49/RULES/i486-unixware-cc.rul --- smake-1.2a41/RULES/i486-unixware-cc.rul 2006-07-06 13:28:51.000000000 +0100 +++ smake-1.2a49/RULES/i486-unixware-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,36 +0,0 @@ -#ident "@(#)i386-unixware-cc.rul 1.6 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using cc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sco_uw.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -#LIB_KVM= -lkvm -LIB_KVM= - -ARFLAGS= cr -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i486-unixware-gcc.rul smake-1.2a49/RULES/i486-unixware-gcc.rul --- smake-1.2a41/RULES/i486-unixware-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i486-unixware-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-unixware-gcc.rul 1.5 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using gcc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -dy -G $(TARGET) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-cygwin32_nt-cc.rul smake-1.2a49/RULES/i586-cygwin32_nt-cc.rul --- smake-1.2a41/RULES/i586-cygwin32_nt-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i586-cygwin32_nt-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-cygwin32_nt-cl.rul smake-1.2a49/RULES/i586-cygwin32_nt-cl.rul --- smake-1.2a41/RULES/i586-cygwin32_nt-cl.rul 2007-01-24 14:55:20.000000000 +0000 +++ smake-1.2a49/RULES/i586-cygwin32_nt-cl.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cl.rul 1.6 07/01/24 " -########################################################################### -# Written 2006 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT using MSVC -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-msc.rul - -# -# Supress useless cl warnings like: -# warning C4996: 'strerror' wurde als veraltet deklariert -# Consider using strerror_s instead. -# -OSDEFS += -D_CRT_SECURE_NO_DEPRECATE - -KDEFINES= - -LIB_SOCKET= Ws2_32.lib -LIB_MATH= -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-cygwin32_nt-gcc.rul smake-1.2a49/RULES/i586-cygwin32_nt-gcc.rul --- smake-1.2a41/RULES/i586-cygwin32_nt-gcc.rul 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/i586-cygwin32_nt-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-gcc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-linux-cc.rul smake-1.2a49/RULES/i586-linux-cc.rul --- smake-1.2a41/RULES/i586-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i586-linux-cc.rul 2008-11-15 11:43:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " +#ident "@(#)i586-linux-cc.rul 1.13 08/11/15 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,11 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +# +# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux +# +INCDIRSX += $(LINUX_SRC_INCLUDE) +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,8 +38,12 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linux version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo TSORT= cat diff -Nru smake-1.2a41/RULES/i586-linux-gcc.rul smake-1.2a49/RULES/i586-linux-gcc.rul --- smake-1.2a41/RULES/i586-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i586-linux-gcc.rul 2008-11-15 11:43:13.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " +#ident "@(#)i586-linux-gcc.rul 1.13 08/11/15 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,11 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +# +# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux +# +INCDIRSX += $(LINUX_SRC_INCLUDE) +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,8 +38,12 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linux version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo TSORT= cat diff -Nru smake-1.2a41/RULES/i586-linux-suncc64.rul smake-1.2a49/RULES/i586-linux-suncc64.rul --- smake-1.2a41/RULES/i586-linux-suncc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i586-linux-suncc64.rul 2008-11-15 12:21:13.000000000 +0000 @@ -0,0 +1,52 @@ +#ident "@(#)i586-linux-suncc64.rul 1.4 08/11/15 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Linux using Sun Studio +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul +CC_COM= suncc + +# +# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux +# +INCDIRSX += $(LINUX_SRC_INCLUDE) +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so.1.0 + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linux version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) + +LDOPTDYN= -dy -G -Wl,-shared -Wl,-soname,$(TARGET) + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/i586-linux-suncc.rul smake-1.2a49/RULES/i586-linux-suncc.rul --- smake-1.2a41/RULES/i586-linux-suncc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i586-linux-suncc.rul 2008-11-15 12:21:13.000000000 +0000 @@ -0,0 +1,52 @@ +#ident "@(#)i586-linux-suncc.rul 1.3 08/11/15 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Linux using Sun Studio +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul +CC_COM= suncc + +# +# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux +# +INCDIRSX += $(LINUX_SRC_INCLUDE) +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so.1.0 + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linux version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) + +LDOPTDYN= -dy -G -Wl,-shared -Wl,-soname,$(TARGET) + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/i586-mingw32_nt-gcc.rul smake-1.2a49/RULES/i586-mingw32_nt-gcc.rul --- smake-1.2a41/RULES/i586-mingw32_nt-gcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/i586-mingw32_nt-gcc.rul 2007-05-08 12:07:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i586-mingw32_nt-gcc.rul 1.5 07/02/22 " +#ident "@(#)i586-mingw32_nt-gcc.rul 1.7 07/05/08 " ########################################################################### # # Platform dependent MACROS for Win32/Mingw32 @@ -20,8 +20,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +OSDEFS += +CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i586-ms-dos-gcc.rul smake-1.2a49/RULES/i586-ms-dos-gcc.rul --- smake-1.2a41/RULES/i586-ms-dos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i586-ms-dos-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -#ident "@(#)i386-ms-dos-gcc.rul 1.4 06/07/06 " -########################################################################### -# -# Platform dependent MACROS for MSDOS/DJGPP v2 -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -COPTDYN= -COPTGPROF= -pg - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= - -#LDCC= @echo " ==> LINKING \"$@\""; gcc -Wl,--strip-all -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-syllable-cc.rul smake-1.2a49/RULES/i586-syllable-cc.rul --- smake-1.2a41/RULES/i586-syllable-cc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i586-syllable-cc.rul 2009-02-01 23:02:53.000000000 +0000 @@ -0,0 +1,53 @@ +#ident "@(#)i586-syllable-cc.rul 1.3 09/02/02 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Syllable +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so.1.0 + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linker version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) + +LORDER= echo +TSORT= cat + +# +# The current developement system has these files in /bin +# +#LN= /usr/indexes/bin/ln +#SYMLINK= /usr/indexes/bin/ln -s +#RM= /usr/indexes/bin/rm +#MV= /usr/indexes/bin/mv diff -Nru smake-1.2a41/RULES/i586-syllable-gcc.rul smake-1.2a49/RULES/i586-syllable-gcc.rul --- smake-1.2a41/RULES/i586-syllable-gcc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i586-syllable-gcc.rul 2009-02-01 23:02:53.000000000 +0000 @@ -0,0 +1,53 @@ +#ident "@(#)i586-syllable-gcc.rul 1.3 09/02/02 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Syllable +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .so.1.0 + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +# +# Uncomment the next line in case you are on an old Linker version that +# does not support the -R linker flag. +# +#LDOPTS= $(LIBS_PATH) $(LDPATH) + +LORDER= echo +TSORT= cat + +# +# The current developement system has these files in /bin +# +#LN= /usr/indexes/bin/ln +#SYMLINK= /usr/indexes/bin/ln -s +#RM= /usr/indexes/bin/rm +#MV= /usr/indexes/bin/mv diff -Nru smake-1.2a41/RULES/i586-unixware-cc.rul smake-1.2a49/RULES/i586-unixware-cc.rul --- smake-1.2a41/RULES/i586-unixware-cc.rul 2006-07-06 13:28:51.000000000 +0100 +++ smake-1.2a49/RULES/i586-unixware-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,36 +0,0 @@ -#ident "@(#)i386-unixware-cc.rul 1.6 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using cc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sco_uw.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -#LIB_KVM= -lkvm -LIB_KVM= - -ARFLAGS= cr -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i586-unixware-gcc.rul smake-1.2a49/RULES/i586-unixware-gcc.rul --- smake-1.2a41/RULES/i586-unixware-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i586-unixware-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-unixware-gcc.rul 1.5 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using gcc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -dy -G $(TARGET) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-cygwin32_nt-cc.rul smake-1.2a49/RULES/i686-cygwin32_nt-cc.rul --- smake-1.2a41/RULES/i686-cygwin32_nt-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i686-cygwin32_nt-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-cygwin32_nt-cl.rul smake-1.2a49/RULES/i686-cygwin32_nt-cl.rul --- smake-1.2a41/RULES/i686-cygwin32_nt-cl.rul 2007-01-24 14:55:20.000000000 +0000 +++ smake-1.2a49/RULES/i686-cygwin32_nt-cl.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cl.rul 1.6 07/01/24 " -########################################################################### -# Written 2006 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT using MSVC -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-msc.rul - -# -# Supress useless cl warnings like: -# warning C4996: 'strerror' wurde als veraltet deklariert -# Consider using strerror_s instead. -# -OSDEFS += -D_CRT_SECURE_NO_DEPRECATE - -KDEFINES= - -LIB_SOCKET= Ws2_32.lib -LIB_MATH= -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-cygwin32_nt-gcc.rul smake-1.2a49/RULES/i686-cygwin32_nt-gcc.rul --- smake-1.2a41/RULES/i686-cygwin32_nt-gcc.rul 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/i686-cygwin32_nt-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-gcc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-cygwin32_wow64-cl64.rul smake-1.2a49/RULES/i686-cygwin32_wow64-cl64.rul --- smake-1.2a41/RULES/i686-cygwin32_wow64-cl64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/i686-cygwin32_wow64-cl64.rul 2009-05-17 16:36:54.000000000 +0100 @@ -0,0 +1,40 @@ +#ident "@(#)i686-cygwin32_wow64-cl64.rul 1.8 09/05/17 " +########################################################################### +# Written 2006 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_WOW64 using MSVC +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +_PLATFORM= cygwin +include $(SRCROOT)/$(RULESDIR)/cc-msc64.rul + +# +# Supress useless cl warnings like: +# warning C4996: 'strerror' wurde als veraltet deklariert +# Consider using strerror_s instead. +# +OSDEFS += -D_CRT_SECURE_NO_DEPRECATE + +KDEFINES= + +LIB_SOCKET= Ws2_32.lib +LIB_MATH= +LIB_KVM= + +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/i686-linux-cc.rul smake-1.2a49/RULES/i686-linux-cc.rul --- smake-1.2a41/RULES/i686-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i686-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-linux-gcc.rul smake-1.2a49/RULES/i686-linux-gcc.rul --- smake-1.2a41/RULES/i686-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i686-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i686-mingw32_nt-gcc.rul smake-1.2a49/RULES/i686-mingw32_nt-gcc.rul --- smake-1.2a41/RULES/i686-mingw32_nt-gcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/i686-mingw32_nt-gcc.rul 2007-05-08 12:07:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i686-mingw32_nt-gcc.rul 1.5 07/02/22 " +#ident "@(#)i686-mingw32_nt-gcc.rul 1.7 07/05/08 " ########################################################################### # # Platform dependent MACROS for Win32/Mingw32 @@ -20,8 +20,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +OSDEFS += +CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i686-ms-dos-gcc.rul smake-1.2a49/RULES/i686-ms-dos-gcc.rul --- smake-1.2a41/RULES/i686-ms-dos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i686-ms-dos-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -#ident "@(#)i386-ms-dos-gcc.rul 1.4 06/07/06 " -########################################################################### -# -# Platform dependent MACROS for MSDOS/DJGPP v2 -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -COPTDYN= -COPTGPROF= -pg - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= - -#LDCC= @echo " ==> LINKING \"$@\""; gcc -Wl,--strip-all -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i786-cygwin32_nt-cc.rul smake-1.2a49/RULES/i786-cygwin32_nt-cc.rul --- smake-1.2a41/RULES/i786-cygwin32_nt-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/i786-cygwin32_nt-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i786-cygwin32_nt-cl.rul smake-1.2a49/RULES/i786-cygwin32_nt-cl.rul --- smake-1.2a41/RULES/i786-cygwin32_nt-cl.rul 2007-01-24 14:55:20.000000000 +0000 +++ smake-1.2a49/RULES/i786-cygwin32_nt-cl.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-cl.rul 1.6 07/01/24 " -########################################################################### -# Written 2006 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT using MSVC -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-msc.rul - -# -# Supress useless cl warnings like: -# warning C4996: 'strerror' wurde als veraltet deklariert -# Consider using strerror_s instead. -# -OSDEFS += -D_CRT_SECURE_NO_DEPRECATE - -KDEFINES= - -LIB_SOCKET= Ws2_32.lib -LIB_MATH= -LIB_KVM= - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i786-cygwin32_nt-gcc.rul smake-1.2a49/RULES/i786-cygwin32_nt-gcc.rul --- smake-1.2a41/RULES/i786-cygwin32_nt-gcc.rul 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/i786-cygwin32_nt-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i486-cygwin32_nt-gcc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by B. Bochow -########################################################################### -# -# Platform dependent MACROS for CYGWIN32_NT -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS += -mwin32 - -KDEFINES= -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .dll - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -LDOPTDYN= -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LNDYNLIB= - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i786-mingw32_nt-gcc.rul smake-1.2a49/RULES/i786-mingw32_nt-gcc.rul --- smake-1.2a41/RULES/i786-mingw32_nt-gcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/i786-mingw32_nt-gcc.rul 2007-05-08 12:07:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i786-mingw32_nt-gcc.rul 1.5 07/02/22 " +#ident "@(#)i786-mingw32_nt-gcc.rul 1.7 07/05/08 " ########################################################################### # # Platform dependent MACROS for Win32/Mingw32 @@ -20,8 +20,8 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +OSDEFS += +CPPOPTS= -I/MinGW/Include -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i786-ms-dos-gcc.rul smake-1.2a49/RULES/i786-ms-dos-gcc.rul --- smake-1.2a41/RULES/i786-ms-dos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/i786-ms-dos-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -#ident "@(#)i386-ms-dos-gcc.rul 1.4 06/07/06 " -########################################################################### -# -# Platform dependent MACROS for MSDOS/DJGPP v2 -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -COPTDYN= -COPTGPROF= -pg - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= - -#LDCC= @echo " ==> LINKING \"$@\""; gcc -Wl,--strip-all -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/i86pc-sunos5-cc64.rul smake-1.2a49/RULES/i86pc-sunos5-cc64.rul --- smake-1.2a41/RULES/i86pc-sunos5-cc64.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/i86pc-sunos5-cc64.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i86pc-sunos5-cc64.rul 1.4 06/07/06 " +#ident "@(#)i86pc-sunos5-cc64.rul 1.5 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i86pc-sunos5-cc.rul smake-1.2a49/RULES/i86pc-sunos5-cc.rul --- smake-1.2a41/RULES/i86pc-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/i86pc-sunos5-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i86pc-sunos5-cc.rul 1.10 06/07/06 " +#ident "@(#)i86pc-sunos5-cc.rul 1.11 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/i86pc-sunos5-gcc64.rul smake-1.2a49/RULES/i86pc-sunos5-gcc64.rul --- smake-1.2a41/RULES/i86pc-sunos5-gcc64.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/i86pc-sunos5-gcc64.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i86pc-sunos5-gcc64.rul 1.6 07/01/05 " +#ident "@(#)i86pc-sunos5-gcc64.rul 1.7 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL LIB_SOCKET= -lsocket -lnsl -ldl diff -Nru smake-1.2a41/RULES/i86pc-sunos5-gcc.rul smake-1.2a49/RULES/i86pc-sunos5-gcc.rul --- smake-1.2a41/RULES/i86pc-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/i86pc-sunos5-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)i86pc-sunos5-gcc.rul 1.12 07/01/05 " +#ident "@(#)i86pc-sunos5-gcc.rul 1.13 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL LIB_SOCKET= -lsocket -lnsl -ldl diff -Nru smake-1.2a41/RULES/ia64-linux-cc.rul smake-1.2a49/RULES/ia64-linux-cc.rul --- smake-1.2a41/RULES/ia64-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ia64-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ia64-linux-gcc.rul smake-1.2a49/RULES/ia64-linux-gcc.rul --- smake-1.2a41/RULES/ia64-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ia64-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip17-irix-cc.rul smake-1.2a49/RULES/ip17-irix-cc.rul --- smake-1.2a41/RULES/ip17-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip17-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip17-irix-gcc.rul smake-1.2a49/RULES/ip17-irix-gcc.rul --- smake-1.2a41/RULES/ip17-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip17-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip20-irix-cc.rul smake-1.2a49/RULES/ip20-irix-cc.rul --- smake-1.2a41/RULES/ip20-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip20-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip20-irix-gcc.rul smake-1.2a49/RULES/ip20-irix-gcc.rul --- smake-1.2a41/RULES/ip20-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip20-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip22-irix-cc64.rul smake-1.2a49/RULES/ip22-irix-cc64.rul --- smake-1.2a41/RULES/ip22-irix-cc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/ip22-irix-cc64.rul 2009-11-29 14:56:32.000000000 +0000 @@ -0,0 +1,38 @@ +#ident "@(#)ip22-irix-cc64.rul 1.10 09/11/29 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Silicon Graphics IRIX +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-sgi64.rul + +OSDEFS += -D__SVR4 -DSVR4 $(LARGEFILE_OPT) + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +ARFLAGS= crs +# +# lorder seems not to work on some machines, disable it +# +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/ip22-irix-cc.rul smake-1.2a49/RULES/ip22-irix-cc.rul --- smake-1.2a41/RULES/ip22-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip22-irix-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " +#ident "@(#)ip22-irix-cc.rul 1.9 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) +OSDEFS += -D__SVR4 -DSVR4 $(LARGEFILE_OPT) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/ip22-irix-gcc64.rul smake-1.2a49/RULES/ip22-irix-gcc64.rul --- smake-1.2a41/RULES/ip22-irix-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/ip22-irix-gcc64.rul 2009-11-29 14:56:35.000000000 +0000 @@ -0,0 +1,46 @@ +#ident "@(#)ip22-irix-gcc64.rul 1.13 09/11/29 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Silicon Graphics IRIX +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul +GCC_OPT64= -mabi=64 + +OSDEFS += -D__SVR4 -DSVR4 + +KDEFINES= -DKERNEL -D_KERNEL + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) +LDOPTDYN= +LNDYNLIB= @ + +FLOAT_OPTIONS= + +ARFLAGS= crs +# +# lorder seems not to work on some machines, disable it +# +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/ip22-irix-gcc.rul smake-1.2a49/RULES/ip22-irix-gcc.rul --- smake-1.2a41/RULES/ip22-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip22-irix-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " +#ident "@(#)ip22-irix-gcc.rul 1.11 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL @@ -30,7 +30,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/ip27-irix-cc.rul smake-1.2a49/RULES/ip27-irix-cc.rul --- smake-1.2a41/RULES/ip27-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip27-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip27-irix-gcc.rul smake-1.2a49/RULES/ip27-irix-gcc.rul --- smake-1.2a41/RULES/ip27-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip27-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip28-irix-cc.rul smake-1.2a49/RULES/ip28-irix-cc.rul --- smake-1.2a41/RULES/ip28-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip28-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip28-irix-gcc.rul smake-1.2a49/RULES/ip28-irix-gcc.rul --- smake-1.2a41/RULES/ip28-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip28-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip30-irix-cc.rul smake-1.2a49/RULES/ip30-irix-cc.rul --- smake-1.2a41/RULES/ip30-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip30-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip30-irix-gcc.rul smake-1.2a49/RULES/ip30-irix-gcc.rul --- smake-1.2a41/RULES/ip30-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip30-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip32-irix-cc.rul smake-1.2a49/RULES/ip32-irix-cc.rul --- smake-1.2a41/RULES/ip32-irix-cc.rul 2006-07-06 12:19:45.000000000 +0100 +++ smake-1.2a49/RULES/ip32-irix-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -#ident "@(#)ip22-irix-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sgi.rul - -OSDEFS= -D__SVR4 -DSVR4 $(LARGEFILE_OPT) - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ip32-irix-gcc.rul smake-1.2a49/RULES/ip32-irix-gcc.rul --- smake-1.2a41/RULES/ip32-irix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ip32-irix-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -#ident "@(#)ip22-irix-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -FLOAT_OPTIONS= - -ARFLAGS= crs -# -# lorder seems not to work on some machines, disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/local.cnf smake-1.2a49/RULES/local.cnf --- smake-1.2a41/RULES/local.cnf 2006-07-07 13:33:48.000000000 +0100 +++ smake-1.2a49/RULES/local.cnf 2008-08-01 19:04:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)local.cnf 1.5 06/07/07 +#ident @(#)local.cnf 1.9 08/08/01 ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -19,20 +19,26 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +configure: autoconf.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 aclocal.m4 \ + local.cnf.in lconfig.h.in + @echo " ==> AUTOCONFIGURING LOCAL \"$@\""; sh ./autoconf + #config: $(ARCHDIR)/local.cnf $(ARCHDIR)/Inull: $(MKDIR) -p $(ARCHDIR) @echo > $@ -$(ARCHDIR)/local.cnf $(ARCHDIR)/lconfig.h: $(ARCHDIR)/Inull \ +$(ARCHDIR)/local.cnf $(ARCHDIR)/lconfig.h: $(LCONFIG_DEP) $(ARCHDIR)/Inull \ configure local.cnf.in lconfig.h.in $(RUL_LCONF) ########################################################################### RUL_LCONF= @echo " ==> CONFIGURING LOCAL RULES \"$@\""; $(RM_F) $@; \ cd $(ARCHDIR); \ - CONFIG_NOFAIL=TRUE CC="$(XCC_COM)" CFLAGS="$(CFLAGS)" sh ../../configure $(CONFFLAGS) + CONFIG_NOFAIL=TRUE CC="$(XCC_COM)" CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(C++FLAGS)" CPPFLAGS="$(OSDEFS)" \ + LDFLAGS="$(LDOPTS)" sh ../../configure $(CONFFLAGS) ########################################################################### include $(ARCHDIR)/Inull include $(ARCHDIR)/local.cnf diff -Nru smake-1.2a41/RULES/m68k-amigaos-gcc.rul smake-1.2a49/RULES/m68k-amigaos-gcc.rul --- smake-1.2a41/RULES/m68k-amigaos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/m68k-amigaos-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)m68k-amigaos-gcc.rul 1.5 06/07/06 " +#ident "@(#)m68k-amigaos-gcc.rul 1.7 07/05/09 " ########################################################################### # Written 1997,2001 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/m68k-linux-cc.rul smake-1.2a49/RULES/m68k-linux-cc.rul --- smake-1.2a41/RULES/m68k-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/m68k-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/m68k-linux-gcc.rul smake-1.2a49/RULES/m68k-linux-gcc.rul --- smake-1.2a41/RULES/m68k-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/m68k-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/m68k-nextstep-cc.rul smake-1.2a49/RULES/m68k-nextstep-cc.rul --- smake-1.2a41/RULES/m68k-nextstep-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/m68k-nextstep-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/m68k-nextstep-gcc.rul smake-1.2a49/RULES/m68k-nextstep-gcc.rul --- smake-1.2a41/RULES/m68k-nextstep-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/m68k-nextstep-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/mac68k-netbsd-cc.rul smake-1.2a49/RULES/mac68k-netbsd-cc.rul --- smake-1.2a41/RULES/mac68k-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mac68k-netbsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/mac68k-netbsd-gcc.rul smake-1.2a49/RULES/mac68k-netbsd-gcc.rul --- smake-1.2a41/RULES/mac68k-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mac68k-netbsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/macppc-netbsd-cc.rul smake-1.2a49/RULES/macppc-netbsd-cc.rul --- smake-1.2a41/RULES/macppc-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/macppc-netbsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/macppc-netbsd-gcc.rul smake-1.2a49/RULES/macppc-netbsd-gcc.rul --- smake-1.2a41/RULES/macppc-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/macppc-netbsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/mips64-linux-cc.rul smake-1.2a49/RULES/mips64-linux-cc.rul --- smake-1.2a41/RULES/mips64-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mips64-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mips64-linux-gcc.rul smake-1.2a49/RULES/mips64-linux-gcc.rul --- smake-1.2a41/RULES/mips64-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mips64-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mipsel-linux-cc.rul smake-1.2a49/RULES/mipsel-linux-cc.rul --- smake-1.2a41/RULES/mipsel-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mipsel-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mipsel-linux-gcc.rul smake-1.2a49/RULES/mipsel-linux-gcc.rul --- smake-1.2a41/RULES/mipsel-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mipsel-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mips-linux-cc.rul smake-1.2a49/RULES/mips-linux-cc.rul --- smake-1.2a41/RULES/mips-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mips-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mips-linux-gcc.rul smake-1.2a49/RULES/mips-linux-gcc.rul --- smake-1.2a41/RULES/mips-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/mips-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/mk-build.id smake-1.2a49/RULES/mk-build.id --- smake-1.2a41/RULES/mk-build.id 2006-05-14 12:55:26.000000000 +0100 +++ smake-1.2a49/RULES/mk-build.id 1970-01-01 01:00:00.000000000 +0100 @@ -1,55 +0,0 @@ -#ident "@(#)mk-smake.id 1.5 06/05/14 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Name of make program (make/gmake/smake) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### - -MAKEPROG= $(MAKE_NAME) - -########################################################################### -# -# standard (automatic) machine identification -# -########################################################################### -# -# XP_ARCH = MAKE_ARCH = uname -p = mach # Processor (sparc/mc68020) -# XK_ARCH = MAKE_MACH = uname -m = arch -k # Kernel (sun3/sun4c/sun4m) -# XM_ARCH = MAKE_M_ARCH = arch ~ arch -k # Machine (sun3/sun4) -# -########################################################################### - -XP_ARCH= $(MAKE_ARCH) -XK_ARCH= $(MAKE_MACH) -XM_ARCH= $(MAKE_M_ARCH) - -P_ARCH= $(XP_ARCH) -K_ARCH= $(XK_ARCH) -M_ARCH= $(XM_ARCH) - -_P_ARCH= $(_UNIQ)$(XP_ARCH) -__P_ARCH= $(_P_ARCH:$(_UNIQ)=$(MAKE_MACH)) -P_ARCH= $(__P_ARCH:$(_UNIQ)%=%) - -_M_ARCH= $(_UNIQ)$(MAKE_M_ARCH) -__M_ARCH= $(_M_ARCH:$(_UNIQ)=$(MAKE_MACH)) -M_ARCH= $(__M_ARCH:$(_UNIQ)%=%) - -HOSTNAME= $(MAKE_HOST) -OSNAME= $(MAKE_OS) -OSDEFS= $(MAKE_OSDEFS) -OSREL= $(MAKE_OSREL) diff -Nru smake-1.2a41/RULES/mk-gmake.id smake-1.2a49/RULES/mk-gmake.id --- smake-1.2a41/RULES/mk-gmake.id 2006-05-14 12:55:26.000000000 +0100 +++ smake-1.2a49/RULES/mk-gmake.id 2009-09-09 13:29:28.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)mk-gmake.id 1.15 06/05/14 " +#ident "@(#)mk-gmake.id 1.22 09/09/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -19,6 +19,13 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +_SETENV= $(_UNIQ)$(SETENV) +__SETENV= $(_SETENV:$(_UNIQ)=rules.env) +___SETENV= $(__SETENV:$(_UNIQ)none=rules.nul) +SET_ENV= $(___SETENV:$(_UNIQ)%=%) + +include $(SRCROOT)/$(RULESDIR)/$(SET_ENV) + MAKEPROG= gmake ########################################################################### @@ -32,17 +39,27 @@ # XM_ARCH = arch ~ arch -k # Machine (sun3/sun4) # ########################################################################### +# +# Due to a bug in /usr/xpg*/bin/tr on Solaris, we cannot directly translit +# many different chars to '-' using e.g. tr ', /\\()"' ',------' +# This is why we first tranliterate everything to '/ and later to '-' +# +# Due to a bug in *BSDs sed, we cannot use sed 'y%ABC\\%abc-%' +# +########################################################################### ifndef ARCH_DONE +ifndef GMAKE_NOWARN __gmake_warn:= $(shell cat $(SRCROOT)/$(RULESDIR)/gmake.wrn 1>&2; sleep 2) +endif _MACHCMD= (mach || uname -p || true) 2> /dev/null _ARCHCMD= (arch || /usr/ucb/arch || true) 2> /dev/null -XP_ARCH:= $(shell $(_MACHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-') -XK_ARCH:= $(shell uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-') -XM_ARCH:= $(shell $(_ARCHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',\-') +XP_ARCH:= $(shell $(_MACHCMD) | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') +XK_ARCH:= $(shell uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') +XM_ARCH:= $(shell $(_ARCHCMD) | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') P_ARCH= $(XP_ARCH) K_ARCH= $(XK_ARCH) @@ -58,8 +75,9 @@ __M_ARCH= $(_M_ARCH:$(_UNIQ)=$(K_ARCH)) M_ARCH= $(__M_ARCH:$(_UNIQ)%=%) -OSNAME:= $(shell uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-') -OSREL:= $(shell uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-') +OSNAME:= $(shell uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') +OSREL:= $(shell uname -r | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') +OSVERSION:= $(shell uname -v | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"' 'abcdefghijklmnopqrstuvwxyz,//////' | tr ',/' ',\-') ARCH_DONE= TRUE @@ -70,6 +88,7 @@ export M_ARCH export OSNAME export OSREL +export OSVERSION export ARCH_DONE endif diff -Nru smake-1.2a41/RULES/mk-.id smake-1.2a49/RULES/mk-.id --- smake-1.2a41/RULES/mk-.id 2006-05-14 12:55:26.000000000 +0100 +++ smake-1.2a49/RULES/mk-.id 2009-09-09 13:28:54.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)mk-.id 1.11 06/05/14 " +#ident "@(#)mk-.id 1.16 09/09/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -32,10 +32,17 @@ # XM_ARCH = arch ~ arch -k # Machine (sun3/sun4) # ########################################################################### +# +# Due to a bug in /usr/xpg*/bin/tr on Solaris, we cannot directly translit +# many different chars to '-' using e.g. tr ', /\\()"' ',------' +# +# This is why we use sed 'y%ABC\\%abc-%'. Note that this will not work on *BSD +# +########################################################################### -XP_ARCH:sh= (mach || uname -p || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -XK_ARCH:sh= uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -XM_ARCH:sh= (arch || /usr/ucb/arch || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' +XP_ARCH:sh= (mach || uname -p || true)2>/dev/null | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' +XK_ARCH:sh= uname -m | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' +XM_ARCH:sh= (arch || /usr/ucb/arch || true)2>/dev/null | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' P_ARCH= $(XP_ARCH) K_ARCH= $(XK_ARCH) @@ -51,5 +58,6 @@ __M_ARCH= $(_M_ARCH:$(_UNIQ)=$(K_ARCH)) M_ARCH= $(__M_ARCH:$(_UNIQ)%=%) -OSNAME:sh= uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -OSREL:sh= uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' +OSNAME:sh= uname -s | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' +OSREL:sh= uname -r | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' +OSVERSION:sh= uname -v | sed 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%' diff -Nru smake-1.2a41/RULES/MKLINKS smake-1.2a49/RULES/MKLINKS --- smake-1.2a41/RULES/MKLINKS 2007-01-04 15:43:19.000000000 +0000 +++ smake-1.2a49/RULES/MKLINKS 2009-11-29 12:01:12.000000000 +0000 @@ -1,10 +1,10 @@ #!/bin/sh ########################################################################### -#ident "@(#)MKLINKS 1.63 07/01/04 " +#ident "@(#)MKLINKS 1.84 09/11/29 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### -# Copyright (c) J. Schilling +# Copyright (c) 1996-2009 J. Schilling ########################################################################### # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only @@ -16,180 +16,274 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -ln -s mk-.id mk-make.id -ln -s r-make.c4x r-gmake.c4x -ln -s r-make.c4x-dep r-gmake.c4x-dep -ln -s r-make.obj r-gmake.obj -ln -s 9000-725-hp-ux-cc.rul 9000-710-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-712-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-715-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-735-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-743-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-755-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-777-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-778-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-780-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-782-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-785-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-800-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-820-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-831-hp-ux-cc.rul -ln -s 9000-725-hp-ux-cc.rul 9000-899-hp-ux-cc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-710-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-712-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-715-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-735-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-743-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-755-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-777-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-778-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-780-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-782-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-785-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-800-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-820-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-831-hp-ux-gcc.rul -ln -s 9000-725-hp-ux-gcc.rul 9000-899-hp-ux-gcc.rul -ln -s hppa-nextstep-cc.rul i386-nextstep-cc.rul -ln -s hppa-nextstep-cc.rul m68k-nextstep-cc.rul -ln -s hppa-nextstep-cc.rul sparc-nextstep-cc.rul -ln -s hppa-nextstep-cc.rul i386-nextstep-gcc.rul -ln -s hppa-nextstep-cc.rul m68k-nextstep-gcc.rul -ln -s hppa-nextstep-cc.rul sparc-nextstep-gcc.rul -ln -s os-irix.id os-irix64.id -ln -s ip22-irix-cc.rul ip17-irix-cc.rul -ln -s ip22-irix-cc.rul ip20-irix-cc.rul -ln -s ip22-irix-cc.rul ip27-irix-cc.rul -ln -s ip22-irix-cc.rul ip28-irix-cc.rul -ln -s ip22-irix-cc.rul ip30-irix-cc.rul -ln -s ip22-irix-cc.rul ip32-irix-cc.rul -ln -s ip22-irix-gcc.rul ip17-irix-gcc.rul -ln -s ip22-irix-gcc.rul ip20-irix-gcc.rul -ln -s ip22-irix-gcc.rul ip27-irix-gcc.rul -ln -s ip22-irix-gcc.rul ip28-irix-gcc.rul -ln -s ip22-irix-gcc.rul ip30-irix-gcc.rul -ln -s ip22-irix-gcc.rul ip32-irix-gcc.rul -ln -s i386-freebsd-cc.rul sparc64-freebsd-cc.rul -ln -s i386-freebsd-gcc.rul sparc64-freebsd-gcc.rul -ln -s i386-freebsd-cc.rul i386-dragonfly-cc.rul -ln -s i386-freebsd-gcc.rul i386-dragonfly-gcc.rul -ln -s i386-netbsd-cc.rul alpha-netbsd-cc.rul -ln -s i386-netbsd-gcc.rul alpha-netbsd-gcc.rul -ln -s i386-netbsd-cc.rul sparc-netbsd-cc.rul -ln -s i386-netbsd-gcc.rul sparc-netbsd-gcc.rul -ln -s i386-netbsd-cc.rul mac68k-netbsd-cc.rul -ln -s i386-netbsd-gcc.rul mac68k-netbsd-gcc.rul -ln -s i386-netbsd-cc.rul amiga-netbsd-cc.rul -ln -s i386-netbsd-gcc.rul amiga-netbsd-gcc.rul -ln -s i386-netbsd-cc.rul macppc-netbsd-cc.rul -ln -s i386-netbsd-gcc.rul macppc-netbsd-gcc.rul -ln -s i386-bsd-os-cc.rul sparc-bsd-os-cc.rul -ln -s i386-bsd-os-gcc.rul sparc-bsd-os-gcc.rul -ln -s i386-bsd-os3-cc.rul sparc-bsd-os3-cc.rul -ln -s i386-bsd-os3-gcc.rul sparc-bsd-os3-gcc.rul -ln -s i586-linux-cc.rul i386-linux-cc.rul -ln -s i586-linux-cc.rul i486-linux-cc.rul -ln -s i586-linux-cc.rul i686-linux-cc.rul -ln -s i586-linux-gcc.rul i386-linux-gcc.rul -ln -s i586-linux-gcc.rul i486-linux-gcc.rul -ln -s i586-linux-gcc.rul i686-linux-gcc.rul -ln -s i586-linux-cc.rul sparc-linux-cc.rul -ln -s i586-linux-gcc.rul sparc-linux-gcc.rul -ln -s i586-linux-cc.rul sparc64-linux-cc.rul -ln -s i586-linux-gcc.rul sparc64-linux-gcc.rul -ln -s i586-linux-cc.rul alpha-linux-cc.rul -ln -s i586-linux-gcc.rul alpha-linux-gcc.rul -ln -s i586-linux-cc.rul ppc-linux-cc.rul -ln -s i586-linux-gcc.rul ppc-linux-gcc.rul -ln -s i586-linux-cc.rul m68k-linux-cc.rul -ln -s i586-linux-gcc.rul m68k-linux-gcc.rul -ln -s i586-linux-cc.rul armv4l-linux-cc.rul -ln -s i586-linux-gcc.rul armv4l-linux-gcc.rul -ln -s i586-linux-cc.rul mips-linux-cc.rul -ln -s i586-linux-gcc.rul mips-linux-gcc.rul -ln -s i586-linux-cc.rul mipsel-linux-cc.rul -ln -s i586-linux-gcc.rul mipsel-linux-gcc.rul -ln -s i586-linux-cc.rul mips64-linux-cc.rul -ln -s i586-linux-gcc.rul mips64-linux-gcc.rul -ln -s i586-linux-cc.rul s390-linux-cc.rul -ln -s i586-linux-gcc.rul s390-linux-gcc.rul -ln -s i586-linux-cc.rul parisc-linux-cc.rul -ln -s i586-linux-gcc.rul parisc-linux-gcc.rul -ln -s i586-linux-cc.rul parisc64-linux-cc.rul -ln -s i586-linux-gcc.rul parisc64-linux-gcc.rul -ln -s i586-linux-cc.rul ia64-linux-cc.rul -ln -s i586-linux-gcc.rul ia64-linux-gcc.rul -ln -s i586-linux-cc.rul x86_64-linux-cc.rul -ln -s i586-linux-gcc.rul x86_64-linux-gcc.rul -ln -s i586-linux-cc.rul armv5teb-linux-cc.rul -ln -s i586-linux-gcc.rul armv5teb-linux-gcc.rul -#ln -s os-cygwin32_nt.id os-cygwin_95-4.0.id -#ln -s os-cygwin32_nt.id os-cygwin_98-4.0.id -#ln -s os-cygwin32_nt.id os-cygwin_98-4.10.id -#ln -s os-cygwin32_nt.id os-cygwin_me-4.90.id -#ln -s os-cygwin32_nt.id os-cygwin_nt-4.0.id -#ln -s os-cygwin32_nt.id os-cygwin_nt-5.0.id -#ln -s os-cygwin32_nt.id os-cygwin_nt-5.1.id -ln -s os-cygwin_95-4.0.id os-cygwin_98-4.0.id -ln -s os-unixware.id os-openunix.id -ln -s i486-cygwin32_nt-cc.rul i386-cygwin32_nt-cc.rul -ln -s i486-cygwin32_nt-cc.rul i586-cygwin32_nt-cc.rul -ln -s i486-cygwin32_nt-cc.rul i686-cygwin32_nt-cc.rul -ln -s i486-cygwin32_nt-cc.rul i786-cygwin32_nt-cc.rul -ln -s i486-cygwin32_nt-cl.rul i386-cygwin32_nt-cl.rul -ln -s i486-cygwin32_nt-cl.rul i586-cygwin32_nt-cl.rul -ln -s i486-cygwin32_nt-cl.rul i686-cygwin32_nt-cl.rul -ln -s i486-cygwin32_nt-cl.rul i786-cygwin32_nt-cl.rul -ln -s i486-cygwin32_nt-gcc.rul i386-cygwin32_nt-gcc.rul -ln -s i486-cygwin32_nt-gcc.rul i586-cygwin32_nt-gcc.rul -ln -s i486-cygwin32_nt-gcc.rul i686-cygwin32_nt-gcc.rul -ln -s i486-cygwin32_nt-gcc.rul i786-cygwin32_nt-gcc.rul -ln -s power-macintosh-rhapsody-cc.rul power-macintosh-mac-os10-cc.rul -ln -s power-macintosh-rhapsody-gcc.rul power-macintosh-mac-os10-gcc.rul -ln -s power-macintosh-darwin-cc.rul i386-darwin-cc.rul -ln -s power-macintosh-darwin-gcc.rul i386-darwin-gcc.rul -ln -s sun4-sunos4-cc.rul sun4c-sunos4-cc.rul -ln -s sun4-sunos4-gcc.rul sun4c-sunos4-gcc.rul -ln -s sun4-sunos5-cc.rul sun4c-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4c-sunos5-gcc.rul -ln -s sun4-sunos4-cc.rul sun4m-sunos4-cc.rul -ln -s sun4-sunos4-gcc.rul sun4m-sunos4-gcc.rul -ln -s sun4-sunos5-cc.rul sun4m-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4m-sunos5-gcc.rul -ln -s sun4-sunos5-cc.rul sun4d-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4d-sunos5-gcc.rul -ln -s sun4-sunos5-cc.rul sun4e-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4e-sunos5-gcc.rul -ln -s sun4-sunos5-cc.rul sun4L-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4L-sunos5-gcc.rul -ln -s sun4-sunos5-cc.rul sun4u-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4u-sunos5-gcc.rul -ln -s sun4-sunos5-cc64.rul sun4u-sunos5-cc64.rul -ln -s sun4-sunos5-gcc64.rul sun4u-sunos5-gcc64.rul -ln -s sun4-sunos5-cc.rul sun4us-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4us-sunos5-gcc.rul -ln -s sun4-sunos5-cc64.rul sun4us-sunos5-cc64.rul -ln -s sun4-sunos5-gcc64.rul sun4us-sunos5-gcc64.rul -ln -s sun4-sunos5-cc.rul sun4v-sunos5-cc.rul -ln -s sun4-sunos5-gcc.rul sun4v-sunos5-gcc.rul -ln -s sun4-sunos5-cc64.rul sun4v-sunos5-cc64.rul -ln -s sun4-sunos5-gcc64.rul sun4v-sunos5-gcc64.rul -ln -s i386-unixware-cc.rul i486-unixware-cc.rul -ln -s i386-unixware-gcc.rul i486-unixware-gcc.rul -ln -s i386-unixware-cc.rul i586-unixware-cc.rul -ln -s i386-unixware-gcc.rul i586-unixware-gcc.rul -ln -s i386-unixware-cc.rul pentium-iii-unixware-cc.rul -ln -s i386-unixware-gcc.rul pentium-iii-unixware-gcc.rul -ln -s i386-unixware-cc.rul pentium-pro-unixware-cc.rul -ln -s i386-unixware-gcc.rul pentium-pro-unixware-gcc.rul -ln -s i386-ms-dos-gcc.rul i486-ms-dos-gcc.rul -ln -s i386-ms-dos-gcc.rul i586-ms-dos-gcc.rul -ln -s i386-ms-dos-gcc.rul i686-ms-dos-gcc.rul -ln -s i386-ms-dos-gcc.rul i786-ms-dos-gcc.rul +if [ -r ldummy.lnk ]; then + if [ $# -le 0 ]; then + exit 0 + fi +fi +########################################################################### +symlink="ln -s" +rm -f xxzzy.123 xxzzy.345 +echo test > xxzzy.123 +$symlink xxzzy.123 xxzzy.345 +test $? = 0 || symlink=cp +test -r xxzzy.345 || symlink=cp +rm -f xxzzy.123 xxzzy.345 +########################################################################### + +$symlink ldummy.cnf ldummy.lnk +$symlink mk-.id mk-make.id +$symlink 9000-725-hp-ux-cc.rul 9000-710-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-712-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-715-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-735-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-743-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-755-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-777-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-778-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-780-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-782-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-785-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-800-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-820-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-831-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul 9000-899-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc.rul ia64-hp-ux-cc.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-710-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-712-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-715-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-735-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-743-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-755-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-777-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-778-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-780-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-782-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-785-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-800-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-820-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-831-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul 9000-899-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-cc64.rul ia64-hp-ux-cc64.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-710-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-712-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-715-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-735-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-743-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-755-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-777-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-778-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-780-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-782-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-785-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-800-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-820-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-831-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul 9000-899-hp-ux-gcc.rul +$symlink 9000-725-hp-ux-gcc.rul ia64-hp-ux-gcc.rul +$symlink hppa-nextstep-cc.rul i386-nextstep-cc.rul +$symlink hppa-nextstep-cc.rul m68k-nextstep-cc.rul +$symlink hppa-nextstep-cc.rul sparc-nextstep-cc.rul +$symlink hppa-nextstep-cc.rul i386-nextstep-gcc.rul +$symlink hppa-nextstep-cc.rul m68k-nextstep-gcc.rul +$symlink hppa-nextstep-cc.rul sparc-nextstep-gcc.rul +$symlink os-irix.id os-irix64.id +$symlink ip22-irix-cc.rul ip17-irix-cc.rul +$symlink ip22-irix-cc.rul ip20-irix-cc.rul +$symlink ip22-irix-cc.rul ip27-irix-cc.rul +$symlink ip22-irix-cc.rul ip28-irix-cc.rul +$symlink ip22-irix-cc.rul ip30-irix-cc.rul +$symlink ip22-irix-cc.rul ip32-irix-cc.rul +$symlink ip22-irix-cc.rul ip35-irix-cc.rul +$symlink ip22-irix-gcc.rul ip17-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip20-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip27-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip28-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip30-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip32-irix-gcc.rul +$symlink ip22-irix-gcc.rul ip35-irix-gcc.rul +$symlink ip22-irix-cc64.rul ip17-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip20-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip27-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip28-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip30-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip32-irix-cc64.rul +$symlink ip22-irix-cc64.rul ip35-irix-cc64.rul +$symlink ip22-irix-gcc64.rul ip17-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip20-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip27-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip28-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip30-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip32-irix-gcc64.rul +$symlink ip22-irix-gcc64.rul ip35-irix-gcc64.rul +$symlink i386-freebsd-cc.rul sparc64-freebsd-cc.rul +$symlink i386-freebsd-gcc.rul sparc64-freebsd-gcc.rul +$symlink i386-freebsd-cc.rul i386-dragonfly-cc.rul +$symlink i386-freebsd-gcc.rul i386-dragonfly-gcc.rul +$symlink i386-netbsd-cc.rul amd64-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul amd64-netbsd-gcc.rul +$symlink i386-netbsd-cc.rul alpha-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul alpha-netbsd-gcc.rul +$symlink i386-netbsd-cc.rul sparc-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul sparc-netbsd-gcc.rul +$symlink i386-netbsd-cc.rul mac68k-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul mac68k-netbsd-gcc.rul +$symlink i386-netbsd-cc.rul amiga-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul amiga-netbsd-gcc.rul +$symlink i386-netbsd-cc.rul macppc-netbsd-cc.rul +$symlink i386-netbsd-gcc.rul macppc-netbsd-gcc.rul +$symlink i386-bsd-os-cc.rul sparc-bsd-os-cc.rul +$symlink i386-bsd-os-gcc.rul sparc-bsd-os-gcc.rul +$symlink i386-bsd-os3-cc.rul sparc-bsd-os3-cc.rul +$symlink i386-bsd-os3-gcc.rul sparc-bsd-os3-gcc.rul +$symlink i586-linux-cc.rul i386-linux-cc.rul +$symlink i586-linux-cc.rul i486-linux-cc.rul +$symlink i586-linux-cc.rul i686-linux-cc.rul +$symlink i586-linux-gcc.rul i386-linux-gcc.rul +$symlink i586-linux-gcc.rul i486-linux-gcc.rul +$symlink i586-linux-gcc.rul i686-linux-gcc.rul +$symlink i586-linux-cc.rul sparc-linux-cc.rul +$symlink i586-linux-gcc.rul sparc-linux-gcc.rul +$symlink i586-linux-cc.rul sparc64-linux-cc.rul +$symlink i586-linux-gcc.rul sparc64-linux-gcc.rul +$symlink i586-linux-cc.rul alpha-linux-cc.rul +$symlink i586-linux-gcc.rul alpha-linux-gcc.rul +$symlink i586-linux-cc.rul ppc-linux-cc.rul +$symlink i586-linux-gcc.rul ppc-linux-gcc.rul +$symlink i586-linux-cc.rul m68k-linux-cc.rul +$symlink i586-linux-gcc.rul m68k-linux-gcc.rul +$symlink i586-linux-cc.rul armv4l-linux-cc.rul +$symlink i586-linux-gcc.rul armv4l-linux-gcc.rul +$symlink i586-linux-cc.rul mips-linux-cc.rul +$symlink i586-linux-gcc.rul mips-linux-gcc.rul +$symlink i586-linux-cc.rul mipsel-linux-cc.rul +$symlink i586-linux-gcc.rul mipsel-linux-gcc.rul +$symlink i586-linux-cc.rul mips64-linux-cc.rul +$symlink i586-linux-gcc.rul mips64-linux-gcc.rul +$symlink i586-linux-cc.rul s390-linux-cc.rul +$symlink i586-linux-gcc.rul s390-linux-gcc.rul +$symlink i586-linux-cc.rul parisc-linux-cc.rul +$symlink i586-linux-gcc.rul parisc-linux-gcc.rul +$symlink i586-linux-cc.rul parisc64-linux-cc.rul +$symlink i586-linux-gcc.rul parisc64-linux-gcc.rul +$symlink i586-linux-cc.rul ia64-linux-cc.rul +$symlink i586-linux-gcc.rul ia64-linux-gcc.rul +$symlink i586-linux-cc.rul x86_64-linux-cc.rul +$symlink i586-linux-gcc.rul x86_64-linux-gcc.rul +$symlink i586-linux-cc.rul armv5teb-linux-cc.rul +$symlink i586-linux-gcc.rul armv5teb-linux-gcc.rul +$symlink i586-linux-cc.rul sh3-linux-cc.rul +$symlink i586-linux-gcc.rul sh3-linux-gcc.rul +$symlink i586-linux-cc.rul sh4-linux-cc.rul +$symlink i586-linux-gcc.rul sh4-linux-gcc.rul +$symlink i586-linux-cc.rul sh4a-linux-cc.rul +$symlink i586-linux-gcc.rul sh4a-linux-gcc.rul +$symlink i586-linux-suncc.rul i686-linux-suncc.rul +$symlink i586-linux-suncc.rul i486-linux-suncc.rul +$symlink i586-linux-suncc.rul i386-linux-suncc.rul +$symlink i586-linux-suncc.rul x86_64-linux-suncc.rul +$symlink i586-linux-suncc64.rul i686-linux-suncc64.rul +$symlink i586-linux-suncc64.rul x86_64-linux-suncc64.rul +#$symlink os-cygwin32_nt.id os-cygwin_95-4.0.id +#$symlink os-cygwin32_nt.id os-cygwin_98-4.0.id +#$symlink os-cygwin32_nt.id os-cygwin_98-4.10.id +#$symlink os-cygwin32_nt.id os-cygwin_me-4.90.id +#$symlink os-cygwin32_nt.id os-cygwin_nt-4.0.id +#$symlink os-cygwin32_nt.id os-cygwin_nt-5.0.id +#$symlink os-cygwin32_nt.id os-cygwin_nt-5.1.id +$symlink os-cygwin_95-4.0.id os-cygwin_98-4.0.id +$symlink os-unixware.id os-openunix.id +$symlink i486-cygwin32_nt-cc.rul i386-cygwin32_nt-cc.rul +$symlink i486-cygwin32_nt-cc.rul i586-cygwin32_nt-cc.rul +$symlink i486-cygwin32_nt-cc.rul i686-cygwin32_nt-cc.rul +$symlink i486-cygwin32_nt-cc.rul i786-cygwin32_nt-cc.rul +$symlink i486-cygwin32_nt-cc.rul i686-cygwin32_wow64-cc.rul +$symlink i486-cygwin32_nt-cc.rul i786-cygwin32_wow64-cc.rul +$symlink i486-cygwin32_nt-cc64.rul i686-cygwin32_wow64-cc64.rul +$symlink i486-cygwin32_nt-cc64.rul i786-cygwin32_wow64-cc64.rul +$symlink i486-cygwin32_nt-cl.rul i386-cygwin32_nt-cl.rul +$symlink i486-cygwin32_nt-cl.rul i586-cygwin32_nt-cl.rul +$symlink i486-cygwin32_nt-cl.rul i686-cygwin32_nt-cl.rul +$symlink i486-cygwin32_nt-cl.rul i786-cygwin32_nt-cl.rul +$symlink i486-cygwin32_nt-cl.rul i686-cygwin32_wow64-cl.rul +$symlink i486-cygwin32_nt-cl.rul i786-cygwin32_wow64-cl.rul +$symlink i686-cygwin32_wow64-cl64.rul i686-cygwin32_nt-cl64.rul +$symlink i686-cygwin32_wow64-cl64.rul i786-cygwin32_nt-cl64.rul +$symlink i486-cygwin32_nt-gcc.rul i386-cygwin32_nt-gcc.rul +$symlink i486-cygwin32_nt-gcc.rul i586-cygwin32_nt-gcc.rul +$symlink i486-cygwin32_nt-gcc.rul i686-cygwin32_nt-gcc.rul +$symlink i486-cygwin32_nt-gcc.rul i786-cygwin32_nt-gcc.rul +$symlink i486-cygwin32_nt-gcc.rul i686-cygwin32_wow64-gcc.rul +$symlink i486-cygwin32_nt-gcc.rul i786-cygwin32_wow64-gcc.rul +$symlink i486-cygwin32_nt-gcc64.rul i686-cygwin32_wow64-gcc64.rul +$symlink i486-cygwin32_nt-gcc64.rul i786-cygwin32_wow64-gcc64.rul +$symlink power-macintosh-rhapsody-cc.rul power-macintosh-mac-os10-cc.rul +$symlink power-macintosh-rhapsody-gcc.rul power-macintosh-mac-os10-gcc.rul +$symlink power-macintosh-darwin-cc.rul i386-darwin-cc.rul +$symlink power-macintosh-darwin-gcc.rul i386-darwin-gcc.rul +$symlink power-macintosh-darwin-cc64.rul i386-darwin-cc64.rul +$symlink power-macintosh-darwin-gcc64.rul i386-darwin-gcc64.rul +$symlink sun4-sunos4-cc.rul sun4c-sunos4-cc.rul +$symlink sun4-sunos4-gcc.rul sun4c-sunos4-gcc.rul +$symlink sun4-sunos5-cc.rul sun4c-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4c-sunos5-gcc.rul +$symlink sun4-sunos4-cc.rul sun4m-sunos4-cc.rul +$symlink sun4-sunos4-gcc.rul sun4m-sunos4-gcc.rul +$symlink sun4-sunos5-cc.rul sun4m-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4m-sunos5-gcc.rul +$symlink sun4-sunos5-cc.rul sun4d-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4d-sunos5-gcc.rul +$symlink sun4-sunos5-cc.rul sun4e-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4e-sunos5-gcc.rul +$symlink sun4-sunos5-cc.rul sun4L-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4L-sunos5-gcc.rul +$symlink sun4-sunos5-cc.rul sun4u-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4u-sunos5-gcc.rul +$symlink sun4-sunos5-cc64.rul sun4u-sunos5-cc64.rul +$symlink sun4-sunos5-gcc64.rul sun4u-sunos5-gcc64.rul +$symlink sun4-sunos5-cc.rul sun4us-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4us-sunos5-gcc.rul +$symlink sun4-sunos5-cc64.rul sun4us-sunos5-cc64.rul +$symlink sun4-sunos5-gcc64.rul sun4us-sunos5-gcc64.rul +$symlink sun4-sunos5-cc.rul sun4v-sunos5-cc.rul +$symlink sun4-sunos5-gcc.rul sun4v-sunos5-gcc.rul +$symlink sun4-sunos5-cc64.rul sun4v-sunos5-cc64.rul +$symlink sun4-sunos5-gcc64.rul sun4v-sunos5-gcc64.rul +$symlink i386-unixware-cc.rul i486-unixware-cc.rul +$symlink i386-unixware-gcc.rul i486-unixware-gcc.rul +$symlink i386-unixware-cc.rul i586-unixware-cc.rul +$symlink i386-unixware-gcc.rul i586-unixware-gcc.rul +$symlink i386-unixware-cc.rul pentium-iii-unixware-cc.rul +$symlink i386-unixware-gcc.rul pentium-iii-unixware-gcc.rul +$symlink i386-unixware-cc.rul pentium-pro-unixware-cc.rul +$symlink i386-unixware-gcc.rul pentium-pro-unixware-gcc.rul +$symlink i386-unixware-cc.rul pentium-4-unixware-cc.rul +$symlink i386-unixware-gcc.rul pentium-4-unixware-gcc.rul +$symlink i386-ms-dos-gcc.rul i486-ms-dos-gcc.rul +$symlink i386-ms-dos-gcc.rul i586-ms-dos-gcc.rul +$symlink i386-ms-dos-gcc.rul i686-ms-dos-gcc.rul +$symlink i386-ms-dos-gcc.rul i786-ms-dos-gcc.rul +$symlink atarist-freemint-gcc.rul atariclone-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul atariste-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul ataritt-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul falcon-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul milan-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul hades-freemint-gcc.rul +$symlink atarist-freemint-gcc.rul aranym-freemint-gcc.rul +$symlink bepc-beos-gcc.rul bemac-beos-gcc.rul +$symlink bepc-haiku-cc.rul bemac-haiku-cc.rul +$symlink bepc-haiku-gcc.rul bemac-haiku-gcc.rul +$symlink alpha-openvms-cc.rul alphaserver_ds20_500_mhz-openvms-cc.rul # -ln -s mk-smake.id mk-build.id -ln -s r-smake.c4x r-build.c4x -ln -s r-smake.c4x-dep r-build.c4x-dep -ln -s r-smake.dep r-build.dep -ln -s r-smake.obj r-build.obj -ln -s r-smake.tag r-build.tag +$symlink mk-smake.id mk-build.id +$symlink r-smake.dep r-build.dep +$symlink r-smake.obj r-build.obj +$symlink r-smake.tag r-build.tag +$symlink r-make.obj r-gmake.obj + +if [ -r r-make.c4x ]; then + $symlink r-make.c4x r-gmake.c4x + $symlink r-make.c4x-dep r-gmake.c4x-dep + $symlink r-smake.c4x r-build.c4x + $symlink r-smake.c4x-dep r-build.c4x-dep +fi diff -Nru smake-1.2a41/RULES/mk-make.id smake-1.2a49/RULES/mk-make.id --- smake-1.2a41/RULES/mk-make.id 2006-05-14 12:55:26.000000000 +0100 +++ smake-1.2a49/RULES/mk-make.id 1970-01-01 01:00:00.000000000 +0100 @@ -1,55 +0,0 @@ -#ident "@(#)mk-.id 1.11 06/05/14 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Name of make program (make/gmake/smake) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### - -MAKEPROG= make # Sun make - -########################################################################### -# -# standard (automatic) machine identification -# -########################################################################### -# -# XP_ARCH = uname -p = mach # Processor (sparc/mc68020) -# XK_ARCH = uname -m = arch -k # Kernel (sun3/sun4c/sun4m) -# XM_ARCH = arch ~ arch -k # Machine (sun3/sun4) -# -########################################################################### - -XP_ARCH:sh= (mach || uname -p || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -XK_ARCH:sh= uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -XM_ARCH:sh= (arch || /usr/ucb/arch || true)2>/dev/null | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' - -P_ARCH= $(XP_ARCH) -K_ARCH= $(XK_ARCH) -M_ARCH= $(XM_ARCH) - -_XP_ARCH= $(XP_ARCH:unknown=$(K_ARCH)) - -_P_ARCH= $(_UNIQ)$(_XP_ARCH) -__P_ARCH= $(_P_ARCH:$(_UNIQ)=$(K_ARCH)) -P_ARCH= $(__P_ARCH:$(_UNIQ)%=%) - -_M_ARCH= $(_UNIQ)$(XM_ARCH) -__M_ARCH= $(_M_ARCH:$(_UNIQ)=$(K_ARCH)) -M_ARCH= $(__M_ARCH:$(_UNIQ)%=%) - -OSNAME:sh= uname -s | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' -OSREL:sh= uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',------' diff -Nru smake-1.2a41/RULES/mk-smake.id smake-1.2a49/RULES/mk-smake.id --- smake-1.2a41/RULES/mk-smake.id 2006-05-14 12:55:26.000000000 +0100 +++ smake-1.2a49/RULES/mk-smake.id 2009-08-12 22:15:59.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)mk-smake.id 1.5 06/05/14 " +#ident "@(#)mk-smake.id 1.7 09/08/12 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -19,6 +19,13 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +_SETENV= $(_UNIQ)$(SETENV) +__SETENV= $(_SETENV:$(_UNIQ)=rules.env) +___SETENV= $(__SETENV:$(_UNIQ)none=rules.nul) +SET_ENV= $(___SETENV:$(_UNIQ)%=%) + +include $(SRCROOT)/$(RULESDIR)/$(SET_ENV) + MAKEPROG= $(MAKE_NAME) ########################################################################### @@ -53,3 +60,4 @@ OSNAME= $(MAKE_OS) OSDEFS= $(MAKE_OSDEFS) OSREL= $(MAKE_OSREL) +OSVERSION= $(MAKE_OSVERSION) diff -Nru smake-1.2a41/RULES/news4000-newsos6-cc.rul smake-1.2a49/RULES/news4000-newsos6-cc.rul --- smake-1.2a41/RULES/news4000-newsos6-cc.rul 2006-07-06 12:27:46.000000000 +0100 +++ smake-1.2a49/RULES/news4000-newsos6-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)news4000-newsos6-cc.rul 1.5 06/07/06 +#ident @(#)news4000-newsos6-cc.rul 1.6 07/05/08 ########################################################################### # # Platform dependent MACROS for Sony NEWS-OS 6.x @@ -23,7 +23,7 @@ # # From objectx@polyphony.scei.co.jp XXX is -D__STDC__=0 correct ??? # -OSDEFS= -D__SVR4 -DSVR4 -D__STDC__=0 +OSDEFS += -D__SVR4 -DSVR4 -D__STDC__=0 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/os-cygwin32_nt.id smake-1.2a49/RULES/os-cygwin32_nt.id --- smake-1.2a41/RULES/os-cygwin32_nt.id 2006-05-14 12:55:27.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin32_nt.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin32_nt.id 1.2 06/05/14 " +#ident "@(#)os-cygwin32_nt.id 1.5 07/05/29 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -20,3 +20,5 @@ ########################################################################### O_ARCH= cygwin32_nt -O_ARCH= -$(O_ARCH) + +WINNTDEFS += -D_WIN32_WINNT=0x0400 diff -Nru smake-1.2a41/RULES/os-cygwin32_wow64.def smake-1.2a49/RULES/os-cygwin32_wow64.def --- smake-1.2a41/RULES/os-cygwin32_wow64.def 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin32_wow64.def 2009-04-11 14:57:39.000000000 +0100 @@ -0,0 +1,22 @@ +#ident "@(#)os-cygwin32_wow64.def 1.3 09/04/11 " +########################################################################### +# Written 1997 by J. Schilling +########################################################################### +# +# Global os definitions for CYGWIN32_WOW64 +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +MANSTYLE= bsd + diff -Nru smake-1.2a41/RULES/os-cygwin32_wow64.id smake-1.2a49/RULES/os-cygwin32_wow64.id --- smake-1.2a41/RULES/os-cygwin32_wow64.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin32_wow64.id 2009-04-11 15:08:11.000000000 +0100 @@ -0,0 +1,24 @@ +#ident "@(#)os-cygwin32_wow64.id 1.6 09/04/11 " +########################################################################### +# Written 1997 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +O_ARCH= cygwin32_wow64 +-O_ARCH= -$(O_ARCH) + +#WINNTDEFS += -D_WIN32_WINNT=0x0400 diff -Nru smake-1.2a41/RULES/os-cygwin_95-4.0.id smake-1.2a49/RULES/os-cygwin_95-4.0.id --- smake-1.2a41/RULES/os-cygwin_95-4.0.id 2007-01-04 15:40:38.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_95-4.0.id 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_95-4.0.id 1.1 07/01/04 " +#ident "@(#)os-cygwin_95-4.0.id 1.2 07/05/08 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINDOWS=0x0400 +OSDEFS += -D_WIN32_WINDOWS=0x0400 diff -Nru smake-1.2a41/RULES/os-cygwin_98-4.0.id smake-1.2a49/RULES/os-cygwin_98-4.0.id --- smake-1.2a41/RULES/os-cygwin_98-4.0.id 2007-01-04 15:40:38.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_98-4.0.id 1970-01-01 01:00:00.000000000 +0100 @@ -1,23 +0,0 @@ -#ident "@(#)os-cygwin_95-4.0.id 1.1 07/01/04 " -########################################################################### -# Written 2006 by J. Schilling -########################################################################### -# -# OS specific MACRO definitions for Cygnus GCC for MS Windows 4.0 (WIN-95) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id - -OSDEFS= -D_WIN32_WINDOWS=0x0400 diff -Nru smake-1.2a41/RULES/os-cygwin_98-4.10.id smake-1.2a49/RULES/os-cygwin_98-4.10.id --- smake-1.2a41/RULES/os-cygwin_98-4.10.id 2007-01-04 15:40:38.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_98-4.10.id 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_98-4.10.id 1.1 07/01/04 " +#ident "@(#)os-cygwin_98-4.10.id 1.2 07/05/08 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINDOWS=0x0410 +OSDEFS += -D_WIN32_WINDOWS=0x0410 diff -Nru smake-1.2a41/RULES/os-cygwin_me-4.90.id smake-1.2a49/RULES/os-cygwin_me-4.90.id --- smake-1.2a41/RULES/os-cygwin_me-4.90.id 2007-01-04 15:40:38.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_me-4.90.id 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_me-4.90.id 1.1 07/01/04 " +#ident "@(#)os-cygwin_me-4.90.id 1.2 07/05/08 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINDOWS=0x0490 +OSDEFS += -D_WIN32_WINDOWS=0x0490 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-4.0.id smake-1.2a49/RULES/os-cygwin_nt-4.0.id --- smake-1.2a41/RULES/os-cygwin_nt-4.0.id 2007-01-08 13:34:40.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_nt-4.0.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_nt-4.0.id 1.2 07/01/08 " +#ident "@(#)os-cygwin_nt-4.0.id 1.4 07/05/29 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINNT=0x0400 +WINNTDEFS += -D_WIN32_WINNT=0x0400 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-5.0.id smake-1.2a49/RULES/os-cygwin_nt-5.0.id --- smake-1.2a41/RULES/os-cygwin_nt-5.0.id 2007-01-08 13:34:40.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_nt-5.0.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_nt-5.0.id 1.2 07/01/08 " +#ident "@(#)os-cygwin_nt-5.0.id 1.4 07/05/29 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINNT=0x0500 +WINNTDEFS += -D_WIN32_WINNT=0x0500 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-5.1.id smake-1.2a49/RULES/os-cygwin_nt-5.1.id --- smake-1.2a41/RULES/os-cygwin_nt-5.1.id 2007-01-08 13:34:40.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_nt-5.1.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_nt-5.1.id 1.2 07/01/08 " +#ident "@(#)os-cygwin_nt-5.1.id 1.4 07/05/29 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINNT=0x0501 +WINNTDEFS += -D_WIN32_WINNT=0x0501 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-5.2.id smake-1.2a49/RULES/os-cygwin_nt-5.2.id --- smake-1.2a41/RULES/os-cygwin_nt-5.2.id 2007-01-08 13:34:40.000000000 +0000 +++ smake-1.2a49/RULES/os-cygwin_nt-5.2.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-cygwin_nt-5.2.id 1.2 07/01/08 " +#ident "@(#)os-cygwin_nt-5.2.id 1.4 07/05/29 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,4 +20,4 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id -OSDEFS= -D_WIN32_WINNT=0x0502 +WINNTDEFS += -D_WIN32_WINNT=0x0502 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-5.2-wow64.id smake-1.2a49/RULES/os-cygwin_nt-5.2-wow64.id --- smake-1.2a41/RULES/os-cygwin_nt-5.2-wow64.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin_nt-5.2-wow64.id 2009-04-11 15:08:11.000000000 +0100 @@ -0,0 +1,23 @@ +#ident "@(#)os-cygwin_nt-5.2-wow64.id 1.5 09/04/11 " +########################################################################### +# Written 2006 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT-5.2 (Server 2003) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/os-cygwin32_wow64.id + +WINNTDEFS += -D_WIN32_WINNT=0x0502 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-6.0.id smake-1.2a49/RULES/os-cygwin_nt-6.0.id --- smake-1.2a41/RULES/os-cygwin_nt-6.0.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin_nt-6.0.id 2009-04-07 23:01:06.000000000 +0100 @@ -0,0 +1,23 @@ +#ident "@(#)os-cygwin_nt-6.0.id 1.5 09/04/08 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT-6.0 (Win Vista) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id + +WINNTDEFS += -D_WIN32_WINNT=0x0600 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-6.0-wow64.id smake-1.2a49/RULES/os-cygwin_nt-6.0-wow64.id --- smake-1.2a41/RULES/os-cygwin_nt-6.0-wow64.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin_nt-6.0-wow64.id 2009-07-26 13:07:15.000000000 +0100 @@ -0,0 +1,23 @@ +#ident "@(#)os-cygwin_nt-6.0-wow64.id 1.1 09/07/26 " +########################################################################### +# Written 2006 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT-6.0 (Vista) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/os-cygwin32_wow64.id + +WINNTDEFS += -D_WIN32_WINNT=0x0600 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-6.1.id smake-1.2a49/RULES/os-cygwin_nt-6.1.id --- smake-1.2a41/RULES/os-cygwin_nt-6.1.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin_nt-6.1.id 2009-04-07 23:01:06.000000000 +0100 @@ -0,0 +1,23 @@ +#ident "@(#)os-cygwin_nt-6.1.id 1.5 09/04/08 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT-6.1 (Win 7) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/os-cygwin32_nt.id + +WINNTDEFS += -D_WIN32_WINNT=0x0601 diff -Nru smake-1.2a41/RULES/os-cygwin_nt-6.1-wow64.id smake-1.2a49/RULES/os-cygwin_nt-6.1-wow64.id --- smake-1.2a41/RULES/os-cygwin_nt-6.1-wow64.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-cygwin_nt-6.1-wow64.id 2009-07-26 13:07:15.000000000 +0100 @@ -0,0 +1,23 @@ +#ident "@(#)os-cygwin_nt-6.1-wow64.id 1.1 09/07/26 " +########################################################################### +# Written 2006 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Cygnus GCC for MS Windows NT-6.1 (Win 7) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/os-cygwin32_wow64.id + +WINNTDEFS += -D_WIN32_WINNT=0x0601 diff -Nru smake-1.2a41/RULES/os-freemint.def smake-1.2a49/RULES/os-freemint.def --- smake-1.2a41/RULES/os-freemint.def 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-freemint.def 2008-11-08 21:08:16.000000000 +0000 @@ -0,0 +1,21 @@ +#ident @(#)os-freemint.def 1.1 08/11/08 +########################################################################### +# Written 2008 by Y. Doyeux +########################################################################### +# +# Global os definitions for FreeMiNT on ATARI computers +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +MANSTYLE= bsd diff -Nru smake-1.2a41/RULES/os-freemint.id smake-1.2a49/RULES/os-freemint.id --- smake-1.2a41/RULES/os-freemint.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-freemint.id 2008-11-08 21:08:16.000000000 +0000 @@ -0,0 +1,22 @@ +#ident @(#)os-freemint.id 1.1 08/11/08 +########################################################################### +# Written 2008 by Y. Doyeux +########################################################################### +# +# OS specific MACRO definitions for FreeMiNT on ATARI computers +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +O_ARCH= freemint +-O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-haiku.def smake-1.2a49/RULES/os-haiku.def --- smake-1.2a41/RULES/os-haiku.def 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-haiku.def 2009-02-03 22:04:44.000000000 +0000 @@ -0,0 +1,21 @@ +#ident "@(#)os-haiku.def 1.1 09/02/03 " +########################################################################### +# Written 1997 by J. Schilling +########################################################################### +# +# Global os definitions for Haiku, a BeOS like OS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +MANSTYLE= bsd diff -Nru smake-1.2a41/RULES/os-haiku.id smake-1.2a49/RULES/os-haiku.id --- smake-1.2a41/RULES/os-haiku.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-haiku.id 2009-02-03 22:04:44.000000000 +0000 @@ -0,0 +1,22 @@ +#ident "@(#)os-haiku.id 1.1 09/02/03 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Haiku, a BeOS like OS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +O_ARCH= haiku +-O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-interix.id smake-1.2a49/RULES/os-interix.id --- smake-1.2a41/RULES/os-interix.id 2006-06-29 17:01:02.000000000 +0100 +++ smake-1.2a49/RULES/os-interix.id 2007-05-29 21:15:01.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-interix.id 1.1 06/06/29 " +#ident "@(#)os-interix.id 1.4 07/05/29 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -20,3 +20,21 @@ ########################################################################### O_ARCH= interix -O_ARCH= -$(O_ARCH) + +########################################################################### +# +# In case we are unable to get the MS-WIN version that +# runs under Interix, we define NT-4.0 Service Pack 3 +# and use it as a fall-back definition. +# +########################################################################### +WINNTDEFS += -D_WIN32_WINNT=0x0403 + +########################################################################### +# +# $(MAKE_HOST_OSREL) is only defined in smake. If the macro in undefined +# -include allows to fail the "include" and use the fall-back above. +# +########################################################################### +-include $(SRCROOT)/$(RULESDIR)/os-interix-nt-$(MAKE_HOST_OSREL).id + diff -Nru smake-1.2a41/RULES/os-interix-nt-4.0.id smake-1.2a49/RULES/os-interix-nt-4.0.id --- smake-1.2a41/RULES/os-interix-nt-4.0.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-interix-nt-4.0.id 2007-05-29 21:15:01.000000000 +0100 @@ -0,0 +1,21 @@ +#ident "@(#)os-interix-nt-4.0.id 1.3 07/05/29 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Global os definitions for Interix Systems (SFU) MS Windows NT-4.0 (NT-4.0) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +WINNTDEFS += -D_WIN32_WINNT=0x0400 diff -Nru smake-1.2a41/RULES/os-interix-nt-5.0.id smake-1.2a49/RULES/os-interix-nt-5.0.id --- smake-1.2a41/RULES/os-interix-nt-5.0.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-interix-nt-5.0.id 2007-05-29 21:15:01.000000000 +0100 @@ -0,0 +1,21 @@ +#ident "@(#)os-interix-nt-5.0.id 1.3 07/05/29 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Global os definitions for Interix Systems (SFU) MS Windows NT-5.0 (WIN2000) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +WINNTDEFS += -D_WIN32_WINNT=0x0500 diff -Nru smake-1.2a41/RULES/os-interix-nt-5.1.id smake-1.2a49/RULES/os-interix-nt-5.1.id --- smake-1.2a41/RULES/os-interix-nt-5.1.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-interix-nt-5.1.id 2007-05-29 21:15:01.000000000 +0100 @@ -0,0 +1,21 @@ +#ident "@(#)os-interix-nt-5.1.id 1.3 07/05/29 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Global os definitions for Interix Systems (SFU) MS Windows NT-5.1 (XP) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +WINNTDEFS += -D_WIN32_WINNT=0x0501 diff -Nru smake-1.2a41/RULES/os-interix-nt-5.2.id smake-1.2a49/RULES/os-interix-nt-5.2.id --- smake-1.2a41/RULES/os-interix-nt-5.2.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-interix-nt-5.2.id 2007-05-29 21:15:01.000000000 +0100 @@ -0,0 +1,21 @@ +#ident "@(#)os-interix-nt-5.2.id 1.3 07/05/29 " +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Global os definitions for Interix Systems (SFU) MS Windows NT-5.2 (Server 2003) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +WINNTDEFS += -D_WIN32_WINNT=0x0502 diff -Nru smake-1.2a41/RULES/os-irix64.id smake-1.2a49/RULES/os-irix64.id --- smake-1.2a41/RULES/os-irix64.id 2006-05-14 12:55:27.000000000 +0100 +++ smake-1.2a49/RULES/os-irix64.id 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -#ident "@(#)os-irix.id 1.2 06/05/14 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# OS specific MACRO definitions for Silicon Graphics IRIX -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -O_ARCH= irix --O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-openunix.id smake-1.2a49/RULES/os-openunix.id --- smake-1.2a41/RULES/os-openunix.id 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/os-openunix.id 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -#ident "@(#)os-unixware.id 1.2 06/05/14 " -########################################################################### -# Written 2000 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# OS specific MACRO definitions for UnixWare 7 -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -O_ARCH= unixware --O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-openvms.def smake-1.2a49/RULES/os-openvms.def --- smake-1.2a41/RULES/os-openvms.def 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-openvms.def 2009-10-29 22:50:38.000000000 +0000 @@ -0,0 +1,21 @@ +#ident "@(#)os-openvms.def 1.1 09/10/29 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Global definitions for OpenVMS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +MANSTYLE= bsd diff -Nru smake-1.2a41/RULES/os-openvms.id smake-1.2a49/RULES/os-openvms.id --- smake-1.2a41/RULES/os-openvms.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-openvms.id 2009-10-29 22:50:38.000000000 +0000 @@ -0,0 +1,22 @@ +#ident "@(#)os-openvms.id 1.1 09/10/29 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for OpenVMS +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +O_ARCH= openvms +-O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-sco_sv.id smake-1.2a49/RULES/os-sco_sv.id --- smake-1.2a41/RULES/os-sco_sv.id 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/os-sco_sv.id 2007-05-03 21:17:46.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)os-sco_sv.id 1.2 06/05/14 " +#ident "@(#)os-sco_sv.id 1.3 07/05/03 " ########################################################################### # Written 1999 by J. Schilling/Santa Cruz Operation ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -19,4 +19,7 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### O_ARCH= openserver + +_O_ARCH= $(OSVERSION:5.%=openserver) +O_ARCH= $(_O_ARCH:6.%=unixware) -O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/os-syllable.def smake-1.2a49/RULES/os-syllable.def --- smake-1.2a41/RULES/os-syllable.def 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-syllable.def 2009-02-01 12:10:49.000000000 +0000 @@ -0,0 +1,21 @@ +#ident "@(#)os-syllable.def 1.1 09/02/01 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Global os definitions for Syllable +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +MANSTYLE= bsd diff -Nru smake-1.2a41/RULES/os-syllable.id smake-1.2a49/RULES/os-syllable.id --- smake-1.2a41/RULES/os-syllable.id 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/os-syllable.id 2009-02-01 12:10:49.000000000 +0000 @@ -0,0 +1,22 @@ +#ident "@(#)os-syllable.id 1.1 09/02/01 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# OS specific MACRO definitions for Syllable +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +O_ARCH= syllable +-O_ARCH= -$(O_ARCH) diff -Nru smake-1.2a41/RULES/parisc64-linux-cc.rul smake-1.2a49/RULES/parisc64-linux-cc.rul --- smake-1.2a41/RULES/parisc64-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/parisc64-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/parisc64-linux-gcc.rul smake-1.2a49/RULES/parisc64-linux-gcc.rul --- smake-1.2a41/RULES/parisc64-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/parisc64-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/parisc-linux-cc.rul smake-1.2a49/RULES/parisc-linux-cc.rul --- smake-1.2a41/RULES/parisc-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/parisc-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/parisc-linux-gcc.rul smake-1.2a49/RULES/parisc-linux-gcc.rul --- smake-1.2a41/RULES/parisc-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/parisc-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/pci-qnx-cc.rul smake-1.2a49/RULES/pci-qnx-cc.rul --- smake-1.2a41/RULES/pci-qnx-cc.rul 2006-07-06 12:26:32.000000000 +0100 +++ smake-1.2a49/RULES/pci-qnx-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)pci-qnx-cc.rul 1.6 06/07/06 " +#ident "@(#)pci-qnx-cc.rul 1.7 07/05/08 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-dumb.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/pentium-iii-unixware-cc.rul smake-1.2a49/RULES/pentium-iii-unixware-cc.rul --- smake-1.2a41/RULES/pentium-iii-unixware-cc.rul 2006-07-06 13:28:51.000000000 +0100 +++ smake-1.2a49/RULES/pentium-iii-unixware-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,36 +0,0 @@ -#ident "@(#)i386-unixware-cc.rul 1.6 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using cc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sco_uw.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -#LIB_KVM= -lkvm -LIB_KVM= - -ARFLAGS= cr -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/pentium-iii-unixware-gcc.rul smake-1.2a49/RULES/pentium-iii-unixware-gcc.rul --- smake-1.2a41/RULES/pentium-iii-unixware-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/pentium-iii-unixware-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-unixware-gcc.rul 1.5 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using gcc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -dy -G $(TARGET) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/pentium-pro-unixware-cc.rul smake-1.2a49/RULES/pentium-pro-unixware-cc.rul --- smake-1.2a41/RULES/pentium-pro-unixware-cc.rul 2006-07-06 13:28:51.000000000 +0100 +++ smake-1.2a49/RULES/pentium-pro-unixware-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,36 +0,0 @@ -#ident "@(#)i386-unixware-cc.rul 1.6 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using cc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sco_uw.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -#LIB_KVM= -lkvm -LIB_KVM= - -ARFLAGS= cr -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/pentium-pro-unixware-gcc.rul smake-1.2a49/RULES/pentium-pro-unixware-gcc.rul --- smake-1.2a41/RULES/pentium-pro-unixware-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/pentium-pro-unixware-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-unixware-gcc.rul 1.5 06/07/06 " -########################################################################### -# Written 1999 by J. Schilling/Santa Cruz Operation -########################################################################### -# -# Platform dependent MACROS for SCO UnixWare 2.x / 7.x using gcc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -DUNIXWARE -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -dy -G $(TARGET) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/power-macintosh-darwin-cc64.rul smake-1.2a49/RULES/power-macintosh-darwin-cc64.rul --- smake-1.2a41/RULES/power-macintosh-darwin-cc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-darwin-cc64.rul 2009-07-28 23:14:48.000000000 +0100 @@ -0,0 +1,67 @@ +#ident "@(#)power-macintosh-darwin-cc64.rul 1.3 09/07/29 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +COPTDYN= -fPIC +C++OPTDYN= -fPIC + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .dylib + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation +LDOPTDYN= -install_name $(INSBASE)/lib/$(TARGET) +LDLIBDYN= -lgcc +LNDYNLIB= @ + +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib + +# +# lorder seems not to work on some versions because Apple installed +# a broken /bin/sh that is not POSIX cimpliant an will not +# be able to run the /usr/bin/lorder script. The error messages are: +# type: not found +# type: not found +# lorder: nm: not found +# ... disable it +# +LORDER= echo +TSORT= cat + +#### +# XXX Better use something like CC=cc +#### +CC= @echo " ==> COMPILING \"$@\""; cc -m64 +LDCC= @echo " ==> LINKING \"$@\""; cc -m64 +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -m64 -M diff -Nru smake-1.2a41/RULES/power-macintosh-darwin-cc.rul smake-1.2a49/RULES/power-macintosh-darwin-cc.rul --- smake-1.2a41/RULES/power-macintosh-darwin-cc.rul 2007-02-08 12:07:10.000000000 +0000 +++ smake-1.2a49/RULES/power-macintosh-darwin-cc.rul 2009-07-28 23:14:48.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)power-macintosh-darwin-cc.rul 1.11 07/02/08 " +#ident "@(#)power-macintosh-darwin-cc.rul 1.16 09/07/29 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,11 +22,12 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL COPTDYN= -fPIC +C++OPTDYN= -fPIC LIB_PREFIX= lib LIB_SUFFIX= .a @@ -36,13 +37,14 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation -LDOPTDYN= -install_name $(INS_BASE)/lib/$(TARGET) +LDOPTDYN= -install_name $(INSBASE)/lib/$(TARGET) LDLIBDYN= -lgcc LNDYNLIB= @ DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib # diff -Nru smake-1.2a41/RULES/power-macintosh-darwin-gcc64.rul smake-1.2a49/RULES/power-macintosh-darwin-gcc64.rul --- smake-1.2a41/RULES/power-macintosh-darwin-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-darwin-gcc64.rul 2009-07-28 23:14:48.000000000 +0100 @@ -0,0 +1,60 @@ +#ident "@(#)power-macintosh-darwin-gcc64.rul 1.3 09/07/29 " +########################################################################### +# Written 1996 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC) +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul + +OSDEFS += + +KDEFINES= -DKERNEL -D_KERNEL + +COPTDYN= -fPIC +C++OPTDYN= -fPIC + +LIB_PREFIX= lib +LIB_SUFFIX= .a +SHL_SUFFIX= .dylib + +LIB_SOCKET= +LIB_MATH= -lm +LIB_KVM= + +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) +LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation +LDOPTDYN= -install_name $(INSBASE)/lib/$(TARGET) +LDLIBDYN= -lgcc +LNDYNLIB= @ + +DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib + +# +# lorder seems not to work on some versions because Apple installed +# a broken /bin/sh that is not POSIX cimpliant an will not +# be able to run the /usr/bin/lorder script. The error messages are: +# type: not found +# type: not found +# lorder: nm: not found +# ... disable it +# +LORDER= echo +TSORT= cat diff -Nru smake-1.2a41/RULES/power-macintosh-darwin-gcc.rul smake-1.2a49/RULES/power-macintosh-darwin-gcc.rul --- smake-1.2a41/RULES/power-macintosh-darwin-gcc.rul 2007-02-08 12:07:10.000000000 +0000 +++ smake-1.2a49/RULES/power-macintosh-darwin-gcc.rul 2009-07-28 23:14:48.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)power-macintosh-darwin-gcc.rul 1.11 07/02/08 " +#ident "@(#)power-macintosh-darwin-gcc.rul 1.16 09/07/29 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,11 +22,12 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL COPTDYN= -fPIC +C++OPTDYN= -fPIC LIB_PREFIX= lib LIB_SUFFIX= .a @@ -36,13 +37,14 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation -LDOPTDYN= -install_name $(INS_BASE)/lib/$(TARGET) +LDOPTDYN= -install_name $(INSBASE)/lib/$(TARGET) LDLIBDYN= -lgcc LNDYNLIB= @ DYNLD= @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic +DYNLDC++ = @echo " ==> LINKING dynamic library \"$@\""; libtool -dynamic RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib # diff -Nru smake-1.2a41/RULES/power-macintosh-mac-os10-cc.rul smake-1.2a49/RULES/power-macintosh-mac-os10-cc.rul --- smake-1.2a41/RULES/power-macintosh-mac-os10-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-mac-os10-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,62 +0,0 @@ -#ident "@(#)power-macintosh-rhapsody-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step 4.x (Apple Rhapsody) PPC (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -# -# lorder seems not to work on some versions because Apple installed -# a broken /bin/sh that is not POSIX cimpliant an will not -# be able to run the /usr/bin/lorder script. The error messages are: -# type: not found -# type: not found -# lorder: nm: not found -# ... disable it -# -LORDER= echo -TSORT= cat - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/power-macintosh-mac-os10-gcc.rul smake-1.2a49/RULES/power-macintosh-mac-os10-gcc.rul --- smake-1.2a41/RULES/power-macintosh-mac-os10-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-mac-os10-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,55 +0,0 @@ -#ident "@(#)power-macintosh-rhapsody-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step 4.x (Apple Rhapsody) PPC (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -# -# lorder seems not to work on some versions because Apple installed -# a broken /bin/sh that is not POSIX cimpliant an will not -# be able to run the /usr/bin/lorder script. The error messages are: -# type: not found -# type: not found -# lorder: nm: not found -# ... disable it -# -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/power-macintosh-rhapsody-cc.rul smake-1.2a49/RULES/power-macintosh-rhapsody-cc.rul --- smake-1.2a41/RULES/power-macintosh-rhapsody-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-rhapsody-cc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)power-macintosh-rhapsody-cc.rul 1.9 06/07/06 " +#ident "@(#)power-macintosh-rhapsody-cc.rul 1.11 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/power-macintosh-rhapsody-gcc.rul smake-1.2a49/RULES/power-macintosh-rhapsody-gcc.rul --- smake-1.2a41/RULES/power-macintosh-rhapsody-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/power-macintosh-rhapsody-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)power-macintosh-rhapsody-gcc.rul 1.9 06/07/06 " +#ident "@(#)power-macintosh-rhapsody-gcc.rul 1.11 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/powerpc-beos-gcc.rul smake-1.2a49/RULES/powerpc-beos-gcc.rul --- smake-1.2a41/RULES/powerpc-beos-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/powerpc-beos-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)powerpc-beos-gcc.rul 1.6 06/07/06 " +#ident "@(#)powerpc-beos-gcc.rul 1.8 07/05/09 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -30,7 +30,7 @@ # XXX removed and printing floating numbers will work with old/new BeOS # #OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -44,7 +44,7 @@ LIB_MATH= LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/powerpc-beos-mwcc.rul smake-1.2a49/RULES/powerpc-beos-mwcc.rul --- smake-1.2a41/RULES/powerpc-beos-mwcc.rul 2007-02-22 13:33:17.000000000 +0000 +++ smake-1.2a49/RULES/powerpc-beos-mwcc.rul 2007-05-08 12:07:58.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)powerpc-beos-mwcc.rul 1.8 07/02/22 " +#ident "@(#)powerpc-beos-mwcc.rul 1.10 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,9 +22,9 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-bemwcc.rul -OSDEFS= +OSDEFS += -CPPOPTS= -relax_pointers -opt global -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) +CPPOPTS= -relax_pointers -opt global -sym on -g -i- -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(INCDIRSX:%=-I%) $(OSDEFS) KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/ppc-linux-cc.rul smake-1.2a49/RULES/ppc-linux-cc.rul --- smake-1.2a41/RULES/ppc-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ppc-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/ppc-linux-gcc.rul smake-1.2a49/RULES/ppc-linux-gcc.rul --- smake-1.2a41/RULES/ppc-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/ppc-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/r-build.dep smake-1.2a49/RULES/r-build.dep --- smake-1.2a41/RULES/r-build.dep 2006-07-31 13:38:02.000000000 +0100 +++ smake-1.2a49/RULES/r-build.dep 1970-01-01 01:00:00.000000000 +0100 @@ -1,89 +0,0 @@ -#ident "@(#)r-smake.dep 1.12 06/07/31 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Dependency building rules for smake -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -DEP_SUFFIX= .d -RMDEP= $(RM) $(RM_FORCE) $(ARCHDIR)/$@ -___C++DEP_FILES= $(C++FILES:%.C=%.d) -__C++DEP_FILES= $(___C++DEP_FILES:%.cc=%.d) -_C++DEP_FILES= $(__C++DEP_FILES:%.cpp=%.d) -C++DEP_FILES= $(_C++DEP_FILES:%.cxx=%.d) -C++PDEP_FILES= $(C++DEP_FILES:%=$(ARCHDIR)/%) -DEP_FILE= $(CFILES:%.c=%.d) $(C++DEP_FILES) -PDEP_FILE= $(CFILES:%.c=$(ARCHDIR)/%.d) $(C++PDEP_FILES) -PALLDEP_FILE= $(CFILES:%.c=$(ARCHDIR)/%.d) $(C++PDEP_FILES) $(ARCHDIR)/$(TARGET).dep -########################################################################### -depend: rmdep $(DEP_FILE) - -rmdep: - $(RM) $(RM_FORCE) $(PALLDEP_FILE) - -########################################################################### -# -# Make the complete path to the architecture subdirectory. -# -########################################################################### -$(ARCHDIR): - $(MKDIR) -p $@ - -########################################################################### -# -# Generate dependency file(s). -# This rules is checked when the dependency file(s) are included. -# -# Modify the the path for .o files to reflect that they are placed in -# $(ARCHDIR). Add the dependency file itself to each line so that -# the dependencies will be rebuilt if a source is newer that the -# appropriate dependency file. -# -########################################################################### -.d: .c - $(MKDEP) $(CPPFLAGS) $(MKDEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ - -%.d: %.c - $(MKDEP) $(CPPFLAGS) $(MKDEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ - -%.d: %.C - $(MKC++DEP) $(CPPFLAGS) $(MKC++DEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ -%.d: %.cc - $(MKC++DEP) $(CPPFLAGS) $(MKC++DEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ -%.d: %.cpp - $(MKC++DEP) $(CPPFLAGS) $(MKC++DEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ -%.d: %.cxx - $(MKC++DEP) $(CPPFLAGS) $(MKC++DEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ - -Dnull: $(ARCHDIR) - @echo > $O/$@ - -#$(DEP_FILE): -# $(MKDEP) $(CPPFLAGS) -f - $(CFILES) \ -# | sed -e 's;^\(.*\.$o[ ]*:\);$(ARCHDIR)/\1;' > $@ - -########################################################################### -# -# Include the dependency file(s) generated from the rules above. -# -########################################################################### --include Dnull $(DEP_FILE) diff -Nru smake-1.2a41/RULES/r-build.obj smake-1.2a49/RULES/r-build.obj --- smake-1.2a41/RULES/r-build.obj 2006-07-21 13:39:43.000000000 +0100 +++ smake-1.2a49/RULES/r-build.obj 1970-01-01 01:00:00.000000000 +0100 @@ -1,62 +0,0 @@ -#ident @(#)r-smake.obj 1.8 06/07/21 -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Object building rules for smake -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -# This defines a rule that compiles source files from current directory and -# puts the resultant objects directly into $(ARCHDIR), -# to allow concurrent compilation on different platforms. -# Object file names are constructed from $(CFILES) and $(C++FILES). -########################################################################### -ARCHDIRX= -___C++OFILES= $(C++FILES:%.C=%.$o) -__C++OFILES= $(___C++OFILES:%.cc=%.$o) -_C++OFILES= $(__C++OFILES:%.cpp=%.$o) -C++OFILES= $(_C++OFILES:%.cxx=%.$o) -C++POFILES= $(C++OFILES:%=$(ARCHDIR)/%) -OFILES= $(CFILES:%.c=%.$o) $(C++OFILES) -POFILES= $(CFILES:%.c=$(ARCHDIR)/%.$o) $(C++POFILES) -.OBJDIR: $(ARCHDIR) -########################################################################### -__COMPILE.c= $(_UNIQ)$(COMPILE.c) -___COMPILE.c= $(__COMPILE.c:$(_UNIQ)=$(CC) $(CFLAGS) $(CPPFLAGS) -c) -_COMPILE.c= $(___COMPILE.c:$(_UNIQ)%=%) - -__COMPILE.cc= $(_UNIQ)$(COMPILE.cc) -___COMPILE.cc= $(__COMPILE.cc:$(_UNIQ)=$(CC++) $(C++FLAGS) $(CPPFLAGS) -c) -_COMPILE.cc= $(___COMPILE.cc:$(_UNIQ)%=%) - -__OUTPUT_OPTION= $(_UNIQ)$(OUTPUT_OPTION) -___OUTPUT_OPTION= $(__OUTPUT_OPTION:$(_UNIQ)=-o $O/$@) -_OUTPUT_OPTION= $(___OUTPUT_OPTION:$(_UNIQ)%=%) -########################################################################### -%.$o: %.c - $(_COMPILE.c) $(_OUTPUT_OPTION) $< -%.$o: %.C - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -%.$o: %.cc - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -%.$o: %.cpp - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -%.$o: %.cxx - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< - -#$(ARCHDIR)/%.$o: %.c -# $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(*F).c - -########################################################################### diff -Nru smake-1.2a41/RULES/r-build.tag smake-1.2a49/RULES/r-build.tag --- smake-1.2a41/RULES/r-build.tag 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/r-build.tag 1970-01-01 01:00:00.000000000 +0100 @@ -1,25 +0,0 @@ -#ident "@(#)r-smake.tag 1.3 06/05/14 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Tag building rules for smake -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -TAGS: $(CFILES) $(HFILES) - $(ETAGS) $r1 - -tags: $(CFILES) $(HFILES) - $(CTAGS) -t $r1 diff -Nru smake-1.2a41/RULES/r-gmake.obj smake-1.2a49/RULES/r-gmake.obj --- smake-1.2a41/RULES/r-gmake.obj 2006-07-21 13:39:43.000000000 +0100 +++ smake-1.2a49/RULES/r-gmake.obj 1970-01-01 01:00:00.000000000 +0100 @@ -1,58 +0,0 @@ -#ident @(#)r-make.obj 1.6 06/07/21 -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Object building rules for gmake -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -# This defines a rule that compiles source files from current directory and -# puts the resultant objects directly into $(ARCHDIR), -# to allow concurrent compilation on different platforms. -# Object file names are constructed from $(CFILES) and $(C++FILES). -########################################################################### -ARCHDIRX= $(ARCHDIR)/ -___C++OFILES= $(C++FILES:%.C=$(ARCHDIR)/%.$o) -__C++OFILES= $(___C++OFILES:%.cc=$(ARCHDIR)/%.$o) -_C++OFILES= $(__C++OFILES:%.cpp=$(ARCHDIR)/%.$o) -C++OFILES= $(_C++OFILES:%.cxx=$(ARCHDIR)/%.$o) -C++POFILES= $(C++OFILES) -OFILES= $(CFILES:%.c=$(ARCHDIR)/%.$o) $(C++OFILES) -POFILES= $(CFILES:%.c=$(ARCHDIR)/%.$o) $(C++POFILES) -########################################################################### -__COMPILE.c= $(_UNIQ)$(COMPILE.c) -___COMPILE.c= $(__COMPILE.c:$(_UNIQ)=$(CC) $(CFLAGS) $(CPPFLAGS) -c) -_COMPILE.c= $(___COMPILE.c:$(_UNIQ)%=%) - -__COMPILE.cc= $(_UNIQ)$(COMPILE.cc) -___COMPILE.cc= $(__COMPILE.cc:$(_UNIQ)=$(CC++) $(C++FLAGS) $(CPPFLAGS) -c) -_COMPILE.cc= $(___COMPILE.cc:$(_UNIQ)%=%) - -__OUTPUT_OPTION= $(_UNIQ)$(OUTPUT_OPTION) -___OUTPUT_OPTION= $(__OUTPUT_OPTION:$(_UNIQ)=-o $@) -_OUTPUT_OPTION= $(___OUTPUT_OPTION:$(_UNIQ)%=%) -########################################################################### - -$(ARCHDIR)/%.$o: %.c - $(_COMPILE.c) $(_OUTPUT_OPTION) $< -$(ARCHDIR)/%.$o: %.C - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -$(ARCHDIR)/%.$o: %.cc - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -$(ARCHDIR)/%.$o: %.cpp - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -$(ARCHDIR)/%.$o: %.cxx - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< -########################################################################### diff -Nru smake-1.2a41/RULES/r-gmake.tag smake-1.2a49/RULES/r-gmake.tag --- smake-1.2a41/RULES/r-gmake.tag 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/r-gmake.tag 2007-12-01 19:11:45.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)r-gmake.tag 1.2 06/05/14 " +#ident "@(#)r-gmake.tag 1.3 07/12/01 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -18,8 +18,8 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -TAGS: $(CFILES) $(HFILES) +TAGS: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) $(ETAGS) $+ -tags: $(CFILES) $(HFILES) +tags: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) $(CTAGS) -t $+ diff -Nru smake-1.2a41/RULES/r-make.obj smake-1.2a49/RULES/r-make.obj --- smake-1.2a41/RULES/r-make.obj 2006-07-21 13:39:43.000000000 +0100 +++ smake-1.2a49/RULES/r-make.obj 2007-04-27 10:34:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)r-make.obj 1.6 06/07/21 +#ident @(#)r-make.obj 1.7 07/04/27 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -46,13 +46,13 @@ ########################################################################### $(ARCHDIR)/%.$o: %.c - $(_COMPILE.c) $(_OUTPUT_OPTION) $< + $(_COMPILE.c) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) $(ARCHDIR)/%.$o: %.C - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) $(ARCHDIR)/%.$o: %.cc - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) $(ARCHDIR)/%.$o: %.cpp - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) $(ARCHDIR)/%.$o: %.cxx - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) ########################################################################### diff -Nru smake-1.2a41/RULES/r-make.tag smake-1.2a49/RULES/r-make.tag --- smake-1.2a41/RULES/r-make.tag 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/r-make.tag 2007-12-01 19:11:45.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)r-make.tag 1.2 06/05/14 " +#ident "@(#)r-make.tag 1.3 07/12/01 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -18,10 +18,8 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -TAGS: $(CFILES) $(HFILES) - $(ETAGS) $(CFILES) $(HFILES) - - -tags: $(CFILES) $(HFILES) - $(CTAGS) -t $(CFILES) $(HFILES) +TAGS: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) + $(ETAGS) $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) +tags: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) + $(CTAGS) -t $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) diff -Nru smake-1.2a41/RULES/rs6000-aix-cc.rul smake-1.2a49/RULES/rs6000-aix-cc.rul --- smake-1.2a41/RULES/rs6000-aix-cc.rul 2006-07-06 12:21:40.000000000 +0100 +++ smake-1.2a49/RULES/rs6000-aix-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rs6000-aix-cc.rul 1.9 06/07/06 " +#ident "@(#)rs6000-aix-cc.rul 1.10 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-ibm.rul -OSDEFS= -DPROTOTYTPES +OSDEFS += -DPROTOTYTPES KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/rs6000-aix-gcc.rul smake-1.2a49/RULES/rs6000-aix-gcc.rul --- smake-1.2a41/RULES/rs6000-aix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/rs6000-aix-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rs6000-aix-gcc.rul 1.7 06/07/06 " +#ident "@(#)rs6000-aix-gcc.rul 1.9 07/05/09 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -DPROTOTYTPES +OSDEFS += -DPROTOTYTPES KDEFINES= -DKERNEL -D_KERNEL @@ -36,7 +36,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/r-smake.dep smake-1.2a49/RULES/r-smake.dep --- smake-1.2a41/RULES/r-smake.dep 2006-07-31 13:38:02.000000000 +0100 +++ smake-1.2a49/RULES/r-smake.dep 2009-11-23 21:23:07.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)r-smake.dep 1.12 06/07/31 " +#ident "@(#)r-smake.dep 1.13 09/11/23 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -53,9 +53,11 @@ # appropriate dependency file. # ########################################################################### -.d: .c - $(MKDEP) $(CPPFLAGS) $(MKDEP_OUT) $< \ - | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ + +# Do not define Simple Suffix Rules anymore +#.d: .c +# $(MKDEP) $(CPPFLAGS) $(MKDEP_OUT) $< \ +# | sed -e 's;^\(.*\)\.$o[ ]*:;\1.$o \1.d:;' > $(ARCHDIR)/$@ %.d: %.c $(MKDEP) $(CPPFLAGS) $(MKDEP_OUT) $< \ diff -Nru smake-1.2a41/RULES/r-smake.obj smake-1.2a49/RULES/r-smake.obj --- smake-1.2a41/RULES/r-smake.obj 2006-07-21 13:39:43.000000000 +0100 +++ smake-1.2a49/RULES/r-smake.obj 2007-04-27 10:34:00.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)r-smake.obj 1.8 06/07/21 +#ident @(#)r-smake.obj 1.9 07/04/27 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -46,15 +46,15 @@ _OUTPUT_OPTION= $(___OUTPUT_OPTION:$(_UNIQ)%=%) ########################################################################### %.$o: %.c - $(_COMPILE.c) $(_OUTPUT_OPTION) $< + $(_COMPILE.c) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) %.$o: %.C - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) %.$o: %.cc - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) %.$o: %.cpp - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) %.$o: %.cxx - $(_COMPILE.cc) $(_OUTPUT_OPTION) $< + $(_COMPILE.cc) $(_OUTPUT_OPTION) $< $(CC_OUTPUT_FILTER) #$(ARCHDIR)/%.$o: %.c # $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(*F).c diff -Nru smake-1.2a41/RULES/r-smake.tag smake-1.2a49/RULES/r-smake.tag --- smake-1.2a41/RULES/r-smake.tag 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/r-smake.tag 2007-12-01 19:11:45.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)r-smake.tag 1.3 06/05/14 " +#ident "@(#)r-smake.tag 1.4 07/12/01 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -18,8 +18,8 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -TAGS: $(CFILES) $(HFILES) +TAGS: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) $(ETAGS) $r1 -tags: $(CFILES) $(HFILES) +tags: $(CFILES) $(CFILES_TAG) $(HFILES) $(HFILES_TAG) $(CTAGS) -t $r1 diff -Nru smake-1.2a41/RULES/rules1.dir smake-1.2a49/RULES/rules1.dir --- smake-1.2a41/RULES/rules1.dir 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules1.dir 2009-08-14 06:25:17.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules1.dir 1.12 06/05/14 +#ident @(#)rules1.dir 1.15 09/08/14 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -11,7 +11,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -24,14 +24,15 @@ $(ALLTARGETS): @list="$(DIRS)"; \ if [ -d TARGETS -a -f TARGETS/__slot ]; then \ - list=`echo TARGETS/[0-9][0-9]* | sed -e 's;TARGETS/[0-9][0-9];;g' | sed -e 's;!@!;/;g'`;\ + list=`echo TARGETS/[0123456789][0123456789]* | \ + sed -e 's;TARGETS/[0123456789][0123456789];;g' | sed -e 's;!@!;/;g'`;\ fi; \ for DIR in $${list} ; \ do \ ( \ echo " ==> MAKING \"$@\" ON SUBDIRECTORY \"$(CURDIR)/$$DIR\"";\ if [ -d ./$$DIR -a -r ./$$DIR/Makefile ] ; then \ - cd ./$$DIR;"$(MAKE)" $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURDIR)/$$DIR $@; \ + cd ./$$DIR && "$(MAKE)" $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURDIR)/$$DIR $@; \ else \ echo "NOTICE: Partial source ($(CURDIR)/$$DIR) missing";\ fi \ @@ -39,11 +40,11 @@ done tinfo: - @[ -d TARGETS -a -f TARGETS/__slot ] && list=`echo TARGETS/[0-9][0-9]*`;\ + @[ -d TARGETS -a -f TARGETS/__slot ] && list=`echo TARGETS/[0123456789][0123456789]*`;\ for i in $${list}; \ do \ (read line < $$i; \ - name=`echo $$i | sed -e 's;TARGETS/[0-9][0-9];;' | sed -e 's;!@!;/;g'`; \ + name=`echo $$i | sed -e 's;TARGETS/[0123456789][0123456789];;' | sed -e 's;!@!;/;g'`; \ echo "$$name - $${line}"; \ ); \ done diff -Nru smake-1.2a41/RULES/rules1.top smake-1.2a49/RULES/rules1.top --- smake-1.2a41/RULES/rules1.top 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/rules1.top 2008-12-27 19:19:44.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)rules1.top 1.37 07/03/08 " +#ident "@(#)rules1.top 1.42 08/12/27 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -151,12 +151,20 @@ ########################################################################### # # Set DEST_DIR +# We use "DESTDIR" as external visible name to be compatible to other sw. # ########################################################################### DEST_DIR= $(DESTDIR:%/=%) ########################################################################### # +# Set INSBASE +# +########################################################################### +INSBASE= $(INS_BASE:%/=%) + +########################################################################### +# # Get curent directory name # ########################################################################### @@ -231,6 +239,16 @@ # See notes about $(SRCROOT)/ vs. $(SRCROOTSL) above. # ########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg + +$(SRCROOTSL)incs: + $(MKDIR_SH) -p $@ + +$(SRCROOTSL)incs/Dnull: $(SRCROOTSL)incs + @echo > $@ + +include $(SRCROOTSL)incs/Dnull + _DCC= $(SRCROOTSL)incs/Dcc.$(PARCH)$(-O_ARCH) $(_DCC): @@ -286,6 +304,7 @@ # - clean, clobber, distclean, relink, rmtarget : rules.clr # - rel : rules.rel # - install, ibins : rules.ins +# - html, htmlx : rules.htm & sub.htm # - tarpkg tarpkg1 tarpkg2 : rules.sps # - depend, rmdep : rules.dep # - config : rules.cnf @@ -305,12 +324,19 @@ ########################################################################### ALLTARGETS= all lint clean clobber distclean ibins depend rmdep \ config TAGS tags rmtarget relink rel \ - $(INSTALLTARGETS) $(PKGTARGETS) + $(INSTALLTARGETS) $(MANTARGETS) $(PKGTARGETS) INSTALLTARGETS= install +MANTARGETS= html htmlx PKGTARGETS= tarpkg tarpkg1 tarpkg2 -.PHONY: $(ALLTARGETS) .help tinfo +.PHONY: $(ALLTARGETS) .help tinfo shell + +########################################################################### +# Allow to start a shell in order to check the environment +########################################################################### +shell: + $(SHELL) ########################################################################### # Include a target definition for all official targets so calling diff -Nru smake-1.2a41/RULES/rules.aux smake-1.2a49/RULES/rules.aux --- smake-1.2a41/RULES/rules.aux 2006-05-14 12:55:28.000000000 +0100 +++ smake-1.2a49/RULES/rules.aux 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.aux 1.7 06/05/14 " +#ident "@(#)rules.aux 1.8 07/05/06 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -29,6 +29,7 @@ all: $(SRCFILE) ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.cmd smake-1.2a49/RULES/rules.cmd --- smake-1.2a41/RULES/rules.cmd 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/rules.cmd 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules.cmd 1.10 07/03/08 +#ident @(#)rules.cmd 1.12 07/05/06 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -19,6 +19,7 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### _EXEEXT= $(EXEEXT) +_XEXEEXT= $(XEXEEXT) ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.obj include $(SRCROOT)/$(RULESDIR)/rules.dyn @@ -41,6 +42,7 @@ # $(CC) -o $@ $(OFILES) $(LDPATH) $(RUNPATH) $(SRCLIBS) $(LIBS) ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.lnt include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins diff -Nru smake-1.2a41/RULES/rules.cnf smake-1.2a49/RULES/rules.cnf --- smake-1.2a41/RULES/rules.cnf 2006-07-07 13:33:48.000000000 +0100 +++ smake-1.2a49/RULES/rules.cnf 2008-08-01 19:04:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules.cnf 1.10 06/07/07 +#ident @(#)rules.cnf 1.13 08/08/01 ########################################################################### # Written 1998 by J. Schilling ########################################################################### @@ -19,6 +19,16 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +$(SRCROOT)/autoconf/configure: $(SRCROOT)/autoconf/autoconf.m4 \ + $(SRCROOT)/autoconf/acgeneral.m4 \ + $(SRCROOT)/autoconf/acspecific.m4 \ + $(SRCROOT)/autoconf/acoldnames.m4 \ + $(SRCROOT)/autoconf/aclocal.m4 \ + $(SRCROOT)/autoconf/rules.cnf.in \ + $(SRCROOT)/autoconf/xconfig.h.in + @echo " ==> AUTOCONFIGURING GLOBAL \"$@\""; \ + cd $(SRCROOT)/autoconf && sh ./autoconf + config: $(OINCSDIR)/rules.cnf $(OINCSDIR)/Inull: @@ -41,15 +51,17 @@ #CONFFLAGS += -cc=$(XCC_COM) $(OINCSDIR)/rules.cnf $(OINCSDIR)/xconfig.h: $(OINCSDIR)/Inull \ - $(SRCROOT)/conf/configure \ - $(SRCROOT)/conf/rules.cnf.in \ - $(SRCROOT)/conf/xconfig.h.in + $(SRCROOT)/autoconf/configure \ + $(SRCROOT)/autoconf/rules.cnf.in \ + $(SRCROOT)/autoconf/xconfig.h.in $(RUL_CONF) ########################################################################### RUL_CONF= @echo " ==> CONFIGURING RULES \"$@\""; $(RM_F) $@; \ cd $(OINCSDIR); \ - CONFIG_NOFAIL=TRUE CC="$(XCC_COM)" CFLAGS="$(CFLAGS)" sh ../../conf/configure $(CONFFLAGS) + CONFIG_NOFAIL=TRUE CC="$(XCC_COM)" CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(C++FLAGS)" CPPFLAGS="$(OSDEFS)" \ + LDFLAGS="$(LDOPTS)" sh ../../autoconf/configure $(CONFFLAGS) ########################################################################### include $(OINCSDIR)/Inull include $(OINCSDIR)/rules.cnf diff -Nru smake-1.2a41/RULES/rules.csw smake-1.2a49/RULES/rules.csw --- smake-1.2a41/RULES/rules.csw 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/rules.csw 2009-05-14 19:58:05.000000000 +0100 @@ -0,0 +1,46 @@ +#ident "@(#)rules.csw 1.4 09/05/14 " +########################################################################### +# Written 2005 by J. Schilling +########################################################################### +# +# Rules for creating Blastwave SVr4 packages +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +PKG :sh= sed -n 's/^PKG=//p' pkginfo +#VERSION :sh= sed -n 's/^VERSION=//p' pkginfo +VERSION :sh= sed -n 's/^VERSION=\([^,]*\).*/\1/p' pkginfo +NAME :sh= sed -n 's/^NAME=//p' pkginfo|awk '{print $1}' +OS_NAME :sh= uname -s +DATE :sh= date '+REV=%Y.%m.%d' + +VENDOR= -CSW +PROTOTYPE= prototype + +$(SRCROOT)/packages/$(OARCH): + $(MKDIR) -p $@ + +all: $(SRCROOT)/packages/$(OARCH) + if [ .$(PKG_RELOC) = .no ]; then \ + pkgmk -o -r `pwd`/$(SRCROOT)/$(PROTODIR) -d $(SRCROOT)/packages/$(OARCH) -a $(P_ARCH) \ + -v $(VERSION),$(DATE) -f $(PROTOTYPE)_r \ + $(EMAIL:%=EMAIL=%) $(HOTLINE:%=HOTLINE=%); \ + else \ + pkgmk -o -b `pwd`/$(SRCROOT)/$(PROTODIR)/$(INSBASE) -d $(SRCROOT)/packages/$(OARCH) -a $(P_ARCH) \ + -v $(VERSION),$(DATE) -f $(PROTOTYPE) BASEDIR=$(INSBASE) \ + $(EMAIL:%=EMAIL=%) $(HOTLINE:%=HOTLINE=%); \ + fi + pkgtrans -s $(SRCROOT)/packages/$(OARCH) $(NAME)-$(VERSION),$(DATE)-$(OS_NAME)$(OSREL)-$(P_ARCH)$(VENDOR).pkg $(PKG) + gzip -9f $(SRCROOT)/packages/$(OARCH)/$(NAME)-$(VERSION),$(DATE)-$(OS_NAME)$(OSREL)-$(P_ARCH)$(VENDOR).pkg diff -Nru smake-1.2a41/RULES/rules.drv smake-1.2a49/RULES/rules.drv --- smake-1.2a41/RULES/rules.drv 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.drv 2008-12-27 19:21:15.000000000 +0000 @@ -1,4 +1,4 @@ -#ident @(#)rules.drv 1.6 06/05/14 +#ident @(#)rules.drv 1.8 08/12/27 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -30,9 +30,10 @@ $(PTARGET): $(OFILES) $(SRCLIBS) $(LD) -r -o $@ $(POFILES) $(SRCLIBS) $(LIBS) -INS_BASE= $(INS_KBASE) +INSBASE= $(INS_KBASE:%/=%) CPPOPTS += $(KDEFINES) ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.env smake-1.2a49/RULES/rules.env --- smake-1.2a41/RULES/rules.env 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/rules.env 2009-08-15 20:10:26.000000000 +0100 @@ -0,0 +1,47 @@ +#ident "@(#)rules.env 1.2 09/08/15 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# Rules for setting the locale environment to the default "C" +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +# +# acgeneral.m4 claims that SCO Unix may have problems with setting LANG=C +# so we are careful not to set LANG unless it was already set by someone else +# +########################################################################### + +_LANG= $(_UNIQ)$(LANG) +__LANG= $(_LANG:$(_UNIQ)=NO_LANG) +___LANG= $(__LANG:$(_UNIQ)%=LANG) + +$(___LANG)=C +LC_ALL=C +LC_COLLATE=C +LC_CTYPE=C +LC_MESSAGES=C +LC_MONETARY=C +LC_NUMERIC=C +LC_TIME=C + +export $(___LANG) +export LC_ALL +export LC_COLLATE +export LC_CTYPE +export LC_MESSAGES +export LC_MONETARY +export LC_NUMERIC +export LC_TIME diff -Nru smake-1.2a41/RULES/rules.hlp smake-1.2a49/RULES/rules.hlp --- smake-1.2a41/RULES/rules.hlp 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.hlp 2009-07-10 20:50:37.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.hlp 1.11 06/05/14 " +#ident "@(#)rules.hlp 1.15 09/07/10 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -25,6 +25,7 @@ # - clean, clobber, distclean, relink, rmtarget : rules.clr # - rel : rules.rel # - install, ibins : rules.ins +# - html, htmlx : rules.htm & sub.htm # - tarpkg, tarpkg1 tarpkg2 : rules.sps # - depend, rmdep : rules.dep # - config : rules.cnf @@ -47,16 +48,19 @@ @echo " rmtarget remove the default target" @echo " install install the default target to final destination" @echo " ibins install the default target to local dir 'bins'" + @echo " html create html vesions from the manual pages" + @echo " htmlx create enhanced html vesions from the manual pages" @echo " tarpkg create an installable tar packet -> tarpkg1 + parpkg2" @echo " tarpkg1 helps to create an installable tar packet - install stage" @echo " tarpkg2 installable tar packet - tar -c stage" - @echo " depend remake the dependency files" + @echo " depend remove dependency file to prepare a remake" @echo " config remake the dynamic configuration files" @echo " tags make vi/ved compatible tag file" @echo " TAGS make emacs compatible tag file" @echo " .help display this help" @echo " .version display version information for the makefile system" @echo " tinfo display target info for slottable target components" + @echo " shell start $(SHELL) with the environment used for compilation" .version: @echo "Makefiles (The Schily Makefile System) Version: $(MAKEFILES_VERSION)" diff -Nru smake-1.2a41/RULES/rules.htm smake-1.2a49/RULES/rules.htm --- smake-1.2a41/RULES/rules.htm 2007-02-10 18:39:10.000000000 +0000 +++ smake-1.2a49/RULES/rules.htm 2007-05-06 14:09:42.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.htm 1.1 07/02/10 " +#ident "@(#)rules.htm 1.3 07/05/06 " ########################################################################### # Written 2007 by J. Schilling ########################################################################### @@ -19,8 +19,6 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -ALLTARGETS += html htmlx - html: $(MANFILE) soelim $(MANFILE) | tbl | nroff -u1 -Tlp -man - | col -x | \ man2html -cgiurl '$$title.$$section.html' -compress -nodepage \ diff -Nru smake-1.2a41/RULES/rules.inc smake-1.2a49/RULES/rules.inc --- smake-1.2a41/RULES/rules.inc 2007-03-08 12:08:02.000000000 +0000 +++ smake-1.2a49/RULES/rules.inc 2009-07-26 13:27:36.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules.inc 1.6 07/03/08 +#ident @(#)rules.inc 1.9 09/07/26 ########################################################################### # Written 1999 by J. Schilling ########################################################################### @@ -18,11 +18,15 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### +#_EXEEXT= $(EXEEXT) # Do not install as xxx.h.exe +_XEXEEXT= $(XEXEEXT) +########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.obj ########################################################################### PTARGET= $(OINCSDIR)/$(TARGET) PTARGETC= $(ARCHDIR)/$(TARGETC) +PTARGETCX= $(ARCHDIR)/$(TARGETC)$(_EXEEXT) _INSMODEI= $(_UNIQ)$(INSMODE) __INSMODEI= $(_INSMODEI:$(_UNIQ)=$(INSMODEF)) @@ -34,15 +38,16 @@ LIBS_PATH += $(LIBS_PATH_STATIC) -all: $(PTARGETC) $(PTARGET) +all: $(PTARGETCX) $(PTARGET) -$(PTARGETC): $(OFILES) $(SRCLIBS) +$(PTARGETCX): $(OFILES) $(SRCLIBS) $(LDCC) $(_LD_OUTPUT_OPTION) $(POFILES) $(LDFLAGS) $(LDLIBS) -$(PTARGET): $(OINCSDIR) $(PTARGETC) - @echo " ==> GENERATING include file \"$@\""; $(PTARGETC) > $@ +$(PTARGET): $(OINCSDIR) $(PTARGETCX) + @echo " ==> GENERATING include file \"$@\""; $(PTARGETC)$(_XEXEEXT) > $@ ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.ins smake-1.2a49/RULES/rules.ins --- smake-1.2a41/RULES/rules.ins 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.ins 2009-01-29 20:31:35.000000000 +0000 @@ -1,4 +1,4 @@ -#ident @(#)rules.ins 1.15 06/05/14 +#ident @(#)rules.ins 1.20 09/01/29 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -18,31 +18,31 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -$(DEST_DIR)$(INS_BASE)/$(INSDIR): +$(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS): $(MKDIR) -p $@ $(SRCROOT)/bins/$(OARCH): $(MKDIR) -p $@ -$(DEST_DIR)$(INS_BASE)/$(INSDIR)/$(TARGET)$(_EXEEXT): $(PTARGET) - $(INSTALL) $(PTARGET) $@ +$(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/$(TARGET)$(_EXEEXT): $(PTARGET) + $(INSTALL) $(INSFLAGS) $(PTARGET) $@ $(SRCROOT)/bins/$(OARCH)/$(TARGET)$(_EXEEXT): $(PTARGET) $(INSTALL) $(PTARGET) $@ -PHARDLINKS= $(HARDLINKS:%=$(DEST_DIR)$(INS_BASE)/$(INSDIR)/%$(_EXEEXT)) +PHARDLINKS= $(HARDLINKS:%=$(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/%$(_EXEEXT)) hardlinks: $(PHARDLINKS) -PSYMLINKS= $(SYMLINKS:%=$(DEST_DIR)$(INS_BASE)/$(INSDIR)/%$(_EXEEXT)) +PSYMLINKS= $(SYMLINKS:%=$(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/%$(_EXEEXT)) symlinks: $(PSYMLINKS) _INSMODEINS= $(_UNIQ)$(INSMODEI) __INSMODEINS= $(_INSMODEINS:$(_UNIQ)=$(INSMODEX)) INSMODEINS= $(__INSMODEINS:$(_UNIQ)%=%) -dummy $(PHARDLINKS): $(DEST_DIR)$(INS_BASE)/$(INSDIR)/$(TARGET)$(_EXEEXT) - @echo " ==> INSTALLING link \"$@\""; $(RM) $(RM_FORCE) $@; $(LN) $(DEST_DIR)$(INS_BASE)/$(INSDIR)/$(TARGET)$(_EXEEXT) $@ +dummy $(PHARDLINKS): $(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/$(TARGET)$(_EXEEXT) + @echo " ==> INSTALLING link \"$@\""; $(RM) $(RM_FORCE) $@; $(LN) $(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/$(TARGET)$(_EXEEXT) $@ -symdummy $(PSYMLINKS): $(DEST_DIR)$(INS_BASE)/$(INSDIR)/$(TARGET)$(_EXEEXT) +symdummy $(PSYMLINKS): $(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/$(TARGET)$(_EXEEXT) @echo " ==> INSTALLING symlink \"$@\""; $(RM) $(RM_FORCE) $@; $(SYMLINK) $(TARGET)$(_EXEEXT) $@ xinstall: @@ -61,8 +61,8 @@ done \ fi -install: all $(DEST_DIR)$(INS_BASE)/$(INSDIR) \ - $(DEST_DIR)$(INS_BASE)/$(INSDIR)/$(TARGET)$(_EXEEXT) \ +install: all $(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS) \ + $(DEST_DIR)$(INSBASE)/$(INSDIR)$(SUBINSDIR)$(SUBINS)/$(TARGET)$(_EXEEXT) \ hardlinks symlinks \ xinstall diff -Nru smake-1.2a41/RULES/rules.lib smake-1.2a49/RULES/rules.lib --- smake-1.2a41/RULES/rules.lib 2006-07-06 13:50:14.000000000 +0100 +++ smake-1.2a49/RULES/rules.lib 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.lib 1.9 06/07/06 " +#ident "@(#)rules.lib 1.10 07/05/06 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -42,6 +42,7 @@ $(RANLIB) $@ ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.lnt include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins diff -Nru smake-1.2a41/RULES/rules.loc smake-1.2a49/RULES/rules.loc --- smake-1.2a41/RULES/rules.loc 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.loc 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.loc 1.6 06/05/14 " +#ident "@(#)rules.loc 1.7 07/05/06 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -38,6 +38,7 @@ $(MKDIR) -p $@ ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.man smake-1.2a49/RULES/rules.man --- smake-1.2a41/RULES/rules.man 2007-02-10 18:38:30.000000000 +0000 +++ smake-1.2a49/RULES/rules.man 2007-05-06 13:56:12.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.man 1.3 07/02/10 " +#ident "@(#)rules.man 1.4 07/05/06 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -28,5 +28,34 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.htm -include $(SRCROOT)/$(RULESDIR)/rules.loc + + +########################################################################### +# The rest is copied from rules.loc +########################################################################### +PTARGET= $(ARCHDIR)/$(TARGET) +########################################################################### +# +# We are doing a copy to $(ARCHDIR) to be able to have platform dependent +# shell files in future. +# +########################################################################### +_INSMODEI= $(_UNIQ)$(INSMODE) +__INSMODEI= $(_INSMODEI:$(_UNIQ)=$(INSMODEF)) +INSMODEI= $(__INSMODEI:$(_UNIQ)%=%) + +all: $(ARCHDIR) $(PTARGET) + +$(PTARGET): $(SRCFILE) + $(LOCALIZE) $(SRCFILE) $@ + +$(ARCHDIR): + $(MKDIR) -p $@ + +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.clr +include $(SRCROOT)/$(RULESDIR)/rules.ins +include $(SRCROOT)/$(RULESDIR)/rules.tag +include $(SRCROOT)/$(RULESDIR)/rules.hlp +include $(SRCROOT)/$(RULESDIR)/dummy.dep ########################################################################### diff -Nru smake-1.2a41/RULES/rules.mks smake-1.2a49/RULES/rules.mks --- smake-1.2a41/RULES/rules.mks 2006-07-21 14:20:42.000000000 +0100 +++ smake-1.2a49/RULES/rules.mks 2008-04-19 17:22:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.mks 1.11 06/07/21 " +#ident "@(#)rules.mks 1.13 08/04/19 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ @ for MK in $(MK_FILES) ; \ do \ ( \ - if [ -r ./$$MK ] ; then \ + if [ -r ./$$MK ] ; then \ echo " ==> MAKING \"$@\" ON SUBCOMPONENT \"$(CURDIR)/$$MK\""; "$(MAKE)" -f $$MK $(MAKEMACS) XARCH=$(XARCH) $@;\ else \ echo "NOTICE: Partial source ($(CURDIR)/$$MK) missing";\ diff -Nru smake-1.2a41/RULES/rules.mod smake-1.2a49/RULES/rules.mod --- smake-1.2a41/RULES/rules.mod 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.mod 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules.mod 1.6 06/05/14 +#ident @(#)rules.mod 1.7 07/05/06 ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -31,6 +31,7 @@ $(LD) -r -o $@ $(OFILES) $(SRCLIBS) $(LIBS) ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.nul smake-1.2a49/RULES/rules.nul --- smake-1.2a41/RULES/rules.nul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/rules.nul 2009-08-12 22:16:07.000000000 +0100 @@ -0,0 +1,20 @@ +#ident "@(#)rules.nul 1.1 09/08/12 " +########################################################################### +# Written 2009 by J. Schilling +########################################################################### +# +# NUL dummy rule +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### diff -Nru smake-1.2a41/RULES/rules.pkg smake-1.2a49/RULES/rules.pkg --- smake-1.2a41/RULES/rules.pkg 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/rules.pkg 2008-12-27 19:21:15.000000000 +0000 @@ -0,0 +1,93 @@ +#ident "@(#)rules.pkg 1.5 08/12/27 " +########################################################################### +# Written 2005 by J. Schilling +########################################################################### +# +# Rules for creating binary tar packages +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### + +########################################################################### +# If we are included before rules.dir, this will stop to propagate +# the targets "pkg1" & "pkg" to sub makes but handle packaging at this +# directory bundling level. +########################################################################### +PKGTARGETS= + +PROTODIR= proto/$(OARCH) +$(PROTODIR): + $(MKDIR) -p $@ + +_TARGETAR= $(TARGET_AR:%=$(OTARSDIR)/%) +__TARGETAR= $(_UNIQ)$(_TARGETAR) +___TARGETAR= $(__TARGETAR:$(_UNIQ)=$(PROTODIR)) +TARGETAR= $(___TARGETAR:$(_UNIQ)%=%) + +_MCS_PROJECT= $(_UNIQ)$(PROJECTNAME) +__MCS_PROJECT= $(_MCS_PROJECT:$(_UNIQ)=SPS-Generic) +MCS_PROJECTNAME= $(__MCS_PROJECT:$(_UNIQ)%=%) + +ta: + echo "'$(TARGETAR)'" + echo "'$(TARGETAR).tar'" + +pkg: $(PROTODIR) pkg1 package + +pkg1: + rm -rf $(PROTODIR) + mkdir -p $(PROTODIR) $(PROTODIR)/$(INSBASE)/bin $(PROTODIR)/$(INSBASE)/sbin $(PROTODIR)/$(INSBASE)/etc \ + $(PROTODIR)/$(INSBASE)/lib $(PROTODIR)/$(INSBASE)/share/man + ln -s share/man $(PROTODIR)/$(INSBASE)/man + if [ ."$(PRE_INST_CMDS)" != . ]; then cd $(PROTODIR) && eval "$(PRE_INST_CMDS)" ; fi + $(MAKE) $(MAKE_FILE) DESTDIR=`pwd`/$(PROTODIR) install + if [ ."$(POST_INST_CMDS)" != . ]; then cd $(PROTODIR) && eval "$(POST_INST_CMDS)" ; fi + -if [ ."$(STRIPLIST)" != . ]; then chmod u+w $(STRIPLIST:%=$(PROTODIR)/%); strip $(STRIPLIST:%=$(PROTODIR)/%); fi + -if [ ."$(STRIPXLIST)" != . ]; then chmod u+w $(STRIPXLIST:%=$(PROTODIR)/%); strip -x $(STRIPXLIST:%=$(PROTODIR)/%); fi + -if [ ."$(MCSLIST)" != . ]; then chmod u+w $(MCSLIST:%=$(PROTODIR)/%); mcs -d -a "$(MCS_PROJECTNAME)" $(MCSLIST:%=$(PROTODIR)/%); fi + if [ ."$(POST_STRIP_CMDS)" != . ]; then cd $(PROTODIR) && eval "$(POST_STRIP_CMDS)" ; fi + ##find $(PROTODIR) -print | sort > /tmp/so.$$; diff filelist /tmp/so.$$; rm -f /tmp/so.$$ + #echo 'i pkginfo' > SV-pkglist + #echo 'i depend' >> SV-pkglist + #echo 'i copyright' >> SV-pkglist + + #cd $(PROTODIR); find . -print | sort | pkgproto | sed 's/joerg bs/root bin/' >> ../../SV-pkglist + +_PKGDEF_DIR= $(_UNIQ)$(PKGTYPE) +__PKGDEF_DIR= $(_PKGDEF_DIR:$(_UNIQ)=default) +PKGDEF_DIR= $(__PKGDEF_DIR:$(_UNIQ)%=%) + +package: + echo PKGDEF_DIR $(PKGDEF_DIR) + echo DIRNAME: $(DIRNAME) CURDIR: $(CURDIR) + #pkgmk -o -b `pwd`/$(PROTODIR)/ -d `pwd`/PKGS -f SV-pkglist + #star -C $(PROTODIR)/ pkglist=pkglist -cP > $(TARGETAR).tar + #bzip2 -9f $(TARGETAR).tar + #rm -rf $(PROTODIR) + + @list=""; \ + if [ -d $(SRCROOT)/pkgdefs/$(PKGDEF_DIR) ]; then \ + list=`echo $(SRCROOT)/pkgdefs/$(PKGDEF_DIR)/*` ; \ + fi; \ + for DIR in $${list} ; \ + do \ + ( \ + echo " ==> MAKING \"$@\" ON SUBDIRECTORY \"$(CURDIR)/$$DIR\"";\ + if [ -d ./$$DIR -a -r ./$$DIR/Makefile ] ; then \ + cd ./$$DIR && "$(MAKE)" $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURDIR)/$$DIR all; \ + else \ + echo "NOTICE: Partial source ($(CURDIR)/$$DIR) missing";\ + fi \ + ); \ + done diff -Nru smake-1.2a41/RULES/rules.prg smake-1.2a49/RULES/rules.prg --- smake-1.2a41/RULES/rules.prg 2006-07-07 10:42:38.000000000 +0100 +++ smake-1.2a49/RULES/rules.prg 2008-12-26 19:50:52.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)rules.prg 1.15 06/07/07 " +#ident "@(#)rules.prg 1.18 08/12/26 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -33,7 +33,14 @@ CLEAN_FILES= core err -SHELL= /bin/sh +# +# Setting $(SHELL) inside a makefile is a really bad idea. +# Since we allow "smake" to default SHELL to /bin/bosh in +# case that /bin/sh is broken but /bin/bosh exists, this +# must not be defined anymore. +# +#SHELL= /bin/sh + LN= /bin/ln SYMLINK= /bin/ln -s RM= /bin/rm @@ -53,7 +60,7 @@ INSMODEF_DEF= 444 INSMODEX_DEF= 755 -INSUSR_DEF= bin +INSUSR_DEF= root INSGRP_DEF= bin _DEFUMASK= $(_UNIQ)$(DEFUMASK) @@ -80,7 +87,7 @@ LD= @echo " ==> LINKING \"$@\""; ld LOCALIZE= @echo " ==> LOCALIZING \"$@\""; $(RM_F) $@; cp INSTALL= @echo " ==> INSTALLING \"$@\""; sh $(SRCROOT)/conf/install-sh -c -m $(INSMODEINS) -o $(INSUSR) -g $(INSGRP) -CHMOD= @echo " ==> SEETING PERMISSIONS ON \"$@\""; chmod +CHMOD= @echo " ==> SETTING PERMISSIONS ON \"$@\""; chmod CHOWN= @echo " ==> SETTING OWNER ON \"$@\""; chown CHGRP= @echo " ==> SETTING GROUP ON \"$@\""; chgrp AR= @echo " ==> ARCHIVING \"$@\""; ar diff -Nru smake-1.2a41/RULES/rules.rel smake-1.2a49/RULES/rules.rel --- smake-1.2a41/RULES/rules.rel 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.rel 2007-06-10 13:22:15.000000000 +0100 @@ -1,4 +1,4 @@ -#ident @(#)rules.rel 1.6 06/05/14 +#ident @(#)rules.rel 1.7 07/06/10 ########################################################################### # Written 2001 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -21,6 +21,7 @@ MAKE_LICENSE=MKGNU2 REL_SRC_MATCH=cat +REL_MAKEFILE_MATCH=cat rel: $(CFILES:%=release/%) $(HFILES:%=release/%) $(XRELFILES:%=release/%) @@ -44,7 +45,7 @@ release/Makefile%: Makefile% rm -f $@ - -sed -e '/IFDEF=/,$$d' $< >$@ + -sed -e '/IFDEF=/,$$d' $< | $(REL_MAKEFILE_MATCH) >$@ -chmod 444 $@ -cpmodes $< $@ cptime $< $@ diff -Nru smake-1.2a41/RULES/rules.shl smake-1.2a49/RULES/rules.shl --- smake-1.2a41/RULES/rules.shl 2007-03-07 16:45:04.000000000 +0000 +++ smake-1.2a49/RULES/rules.shl 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.shl 1.12 07/03/07 " +#ident "@(#)rules.shl 1.13 07/05/06 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -58,6 +58,7 @@ # @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.sps smake-1.2a49/RULES/rules.sps --- smake-1.2a41/RULES/rules.sps 2006-07-07 13:33:48.000000000 +0100 +++ smake-1.2a49/RULES/rules.sps 2007-05-06 13:50:26.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.sps 1.12 06/07/07 " +#ident "@(#)rules.sps 1.13 07/05/06 " ########################################################################### # Written 2005 by J. Schilling ########################################################################### @@ -29,6 +29,7 @@ #all: $(SRCFILE) ########################################################################### +include $(SRCROOT)/$(RULESDIR)/sub.htm include $(SRCROOT)/$(RULESDIR)/rules.clr #include $(SRCROOT)/$(RULESDIR)/rules.ins include $(SRCROOT)/$(RULESDIR)/rules.tag diff -Nru smake-1.2a41/RULES/rules.tag smake-1.2a49/RULES/rules.tag --- smake-1.2a41/RULES/rules.tag 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.tag 2007-12-01 18:50:52.000000000 +0000 @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # diff -Nru smake-1.2a41/RULES/rules.top smake-1.2a49/RULES/rules.top --- smake-1.2a41/RULES/rules.top 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.top 2009-08-29 13:13:11.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)rules.top 1.16 06/05/14 " +#ident "@(#)rules.top 1.20 09/07/26 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -10,7 +10,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -20,6 +20,30 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### # +# Make sure this becomes the default target +# +########################################################################### +all: + +########################################################################### +# +# First make sure that all symlinks in $(SRCROOT)/$(RULESDIR)/ are present +# +# $(DUMMY_LNK) is needed to work around a Sun make bug that has been +# fixed with Solaris 11 but that is present for all old Solaris versions. +# +########################################################################### +_DUMMY_LNK= $(SRCROOT)/$(RULESDIR)/ldummy.lnk +DUMMY_LNK= $(_DUMMY_LNK:./%=%) + +$(DUMMY_LNK): + @echo " ==> MAKING SYMLINKS in $(SRCROOT)/$(RULESDIR)/" && \ + cd $(SRCROOT)/$(RULESDIR) && sh ./MKLINKS + +include $(DUMMY_LNK) + +########################################################################### +# # Include global language independent macros # ########################################################################### @@ -27,6 +51,15 @@ ########################################################################### # +# Workaround for GNU make design bug (include does not trigger rule evaluation) +# A correctly working "make" did create the symlinks already while +# including "ldummy.lnk" above. +# +########################################################################### +$(SRCROOT)/$(RULESDIR)/$(XARCH).rul: $(SRCROOT)/$(RULESDIR)/ldummy.lnk + +########################################################################### +# # Include platform dependent macros for C-language here. # # If a project needs other languages too, additional rules may be defined. diff -Nru smake-1.2a41/RULES/rules.tpk smake-1.2a49/RULES/rules.tpk --- smake-1.2a41/RULES/rules.tpk 2006-05-14 12:55:29.000000000 +0100 +++ smake-1.2a49/RULES/rules.tpk 2008-12-27 19:21:15.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)rules.tpk 1.4 06/05/14 " +#ident "@(#)rules.tpk 1.7 08/12/27 " ########################################################################### # Written 2005 by J. Schilling ########################################################################### @@ -9,7 +9,7 @@ # Copyright (c) J. Schilling ########################################################################### # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only. +# Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # @@ -44,21 +44,23 @@ echo "'$(TARGETAR)'" echo "'$(TARGETAR).tar'" -tarpkg: $(OTARSDIR) tarpkg1 tarpkg2 +tarpkg: $(OTARSDIR) tarpkg0 tarpkg1 tarpkg2 -tarpkg1: +tarpkg0: rm -rf tarpkg - mkdir -p tarpkg tarpkg/$(INS_BASE)/bin tarpkg/$(INS_BASE)/sbin tarpkg/$(INS_BASE)/etc \ - tarpkg/$(INS_BASE)/lib tarpkg/$(INS_BASE)/share/man - ln -s share/man tarpkg/$(INS_BASE)/man + +tarpkg1: + mkdir -p tarpkg tarpkg/$(INSBASE)/bin tarpkg/$(INSBASE)/sbin tarpkg/$(INSBASE)/etc \ + tarpkg/$(INSBASE)/lib tarpkg/$(INSBASE)/share/man + ln -s share/man tarpkg/$(INSBASE)/man if [ ."$(PRE_INST_CMDS)" != . ]; then cd tarpkg && eval "$(PRE_INST_CMDS)" ; fi - $(MAKE) $(MAKE_FILE) DESTDIR=`pwd`/tarpkg install + $(MAKE) $(MAKE_FILE) $(MAKEMACS) DESTDIR=`pwd`/tarpkg install if [ ."$(POST_INST_CMDS)" != . ]; then cd tarpkg && eval "$(POST_INST_CMDS)" ; fi -if [ ."$(STRIPLIST)" != . ]; then chmod u+w $(STRIPLIST:%=tarpkg/%); strip $(STRIPLIST:%=tarpkg/%); fi -if [ ."$(STRIPXLIST)" != . ]; then chmod u+w $(STRIPXLIST:%=tarpkg/%); strip -x $(STRIPXLIST:%=tarpkg/%); fi -if [ ."$(MCSLIST)" != . ]; then chmod u+w $(MCSLIST:%=tarpkg/%); mcs -d -a "$(MCS_PROJECTNAME)" $(MCSLIST:%=tarpkg/%); fi if [ ."$(POST_STRIP_CMDS)" != . ]; then cd tarpkg && eval "$(POST_STRIP_CMDS)" ; fi - find tarpkg -print | sort > /tmp/so.$$; diff filelist /tmp/so.$$; rm -f /tmp/so.$$ + find tarpkg -print | sort > /tmp/so.$$$$; diff filelist /tmp/so.$$$$; rm -f /tmp/so.$$$$ tarpkg2: star -C tarpkg/ pkglist=pkglist -cP > $(TARGETAR).tar diff -Nru smake-1.2a41/RULES/s390-linux-cc.rul smake-1.2a49/RULES/s390-linux-cc.rul --- smake-1.2a41/RULES/s390-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/s390-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/s390-linux-gcc.rul smake-1.2a49/RULES/s390-linux-gcc.rul --- smake-1.2a41/RULES/s390-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/s390-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/sparc64-freebsd-cc.rul smake-1.2a49/RULES/sparc64-freebsd-cc.rul --- smake-1.2a41/RULES/sparc64-freebsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc64-freebsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i386-freebsd-cc.rul 1.7 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for FreeBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc64-freebsd-gcc.rul smake-1.2a49/RULES/sparc64-freebsd-gcc.rul --- smake-1.2a41/RULES/sparc64-freebsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc64-freebsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)i386-freebsd-gcc.rul 1.7 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for FreeBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc64-linux-cc.rul smake-1.2a49/RULES/sparc64-linux-cc.rul --- smake-1.2a41/RULES/sparc64-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc64-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/sparc64-linux-gcc.rul smake-1.2a49/RULES/sparc64-linux-gcc.rul --- smake-1.2a41/RULES/sparc64-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc64-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/sparc-bsd-os3-cc.rul smake-1.2a49/RULES/sparc-bsd-os3-cc.rul --- smake-1.2a41/RULES/sparc-bsd-os3-cc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/sparc-bsd-os3-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,54 +0,0 @@ -#ident "@(#)i386-bsd-os3-cc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for BSD/OS -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) - -KDEFINES= -DKERNEL -D_KERNEL - -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -#SHL_SUFFIX= .so.1.0 -SHL_SUFFIX= - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LDOPTDYN= -LNDYNLIB= - -# shlicc2 is not present oln older or newer systems -#LDCC= @echo " ==> LINKING \"$@\""; shlicc2 -LDCC= @echo " ==> LINKING \"$@\""; shlicc -#DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc -DYNLD= -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-bsd-os3-gcc.rul smake-1.2a49/RULES/sparc-bsd-os3-gcc.rul --- smake-1.2a41/RULES/sparc-bsd-os3-gcc.rul 2007-03-07 16:45:03.000000000 +0000 +++ smake-1.2a49/RULES/sparc-bsd-os3-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,54 +0,0 @@ -#ident "@(#)i386-bsd-os3-gcc.rul 1.9 07/03/07 " -########################################################################### -# Written 1998 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for BSD/OS -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) - -KDEFINES= -DKERNEL -D_KERNEL - -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -#SHL_SUFFIX= .so.1.0 -SHL_SUFFIX= - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LDOPTDYN= -LNDYNLIB= - -# shlicc2 is not present oln older or newer systems -#LDCC= @echo " ==> LINKING \"$@\""; shlicc2 -LDCC= @echo " ==> LINKING \"$@\""; shlicc -#DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc -DYNLD= -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-bsd-os-cc.rul smake-1.2a49/RULES/sparc-bsd-os-cc.rul --- smake-1.2a41/RULES/sparc-bsd-os-cc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/sparc-bsd-os-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i386-bsd-os-cc.rul 1.11 07/03/08 " -########################################################################### -# Written 1998 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for BSD/OS -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) - -KDEFINES= -DKERNEL -D_KERNEL - -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -#SHL_SUFFIX= .so.1.0 -SHL_SUFFIX= - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LDOPTDYN= -LNDYNLIB= - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-bsd-os-gcc.rul smake-1.2a49/RULES/sparc-bsd-os-gcc.rul --- smake-1.2a41/RULES/sparc-bsd-os-gcc.rul 2007-03-08 11:27:32.000000000 +0000 +++ smake-1.2a49/RULES/sparc-bsd-os-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#ident "@(#)i386-bsd-os-gcc.rul 1.11 07/03/08 " -########################################################################### -# Written 1998 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for BSD/OS -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -CPPOPTS= -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) - -KDEFINES= -DKERNEL -D_KERNEL - -#COPTDYN= -fpic -COPTDYN= - -LIB_PREFIX= lib -LIB_SUFFIX= .a -#SHL_SUFFIX= .so.1.0 -SHL_SUFFIX= - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -#LDOPTDYN= -shared -Wl,-soname,$(TARGET) -#LNDYNLIB= @$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so -LDOPTDYN= -LNDYNLIB= - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-linux-cc.rul smake-1.2a49/RULES/sparc-linux-cc.rul --- smake-1.2a41/RULES/sparc-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/sparc-linux-gcc.rul smake-1.2a49/RULES/sparc-linux-gcc.rul --- smake-1.2a41/RULES/sparc-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/sparc-netbsd-cc.rul smake-1.2a49/RULES/sparc-netbsd-cc.rul --- smake-1.2a41/RULES/sparc-netbsd-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-netbsd-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-cc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-netbsd-gcc.rul smake-1.2a49/RULES/sparc-netbsd-gcc.rul --- smake-1.2a41/RULES/sparc-netbsd-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-netbsd-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i386-netbsd-gcc.rul 1.9 06/07/06 " -########################################################################### -# Written 1997 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NetBSD -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -#OSDEFS= -DIS_UNIX - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sparc-nextstep-cc.rul smake-1.2a49/RULES/sparc-nextstep-cc.rul --- smake-1.2a41/RULES/sparc-nextstep-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-nextstep-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/sparc-nextstep-gcc.rul smake-1.2a49/RULES/sparc-nextstep-gcc.rul --- smake-1.2a41/RULES/sparc-nextstep-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sparc-nextstep-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -#ident "@(#)hppa-nextstep-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for NeXT Step on hppa (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - -MKDIR= $(MKDIR_SH) - -#### -# XXX Better use something like CC=cc -#### -CC= @echo " ==> COMPILING \"$@\""; cc -LDCC= @echo " ==> LINKING \"$@\""; cc -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M diff -Nru smake-1.2a41/RULES/sub.htm smake-1.2a49/RULES/sub.htm --- smake-1.2a41/RULES/sub.htm 2007-02-10 18:39:10.000000000 +0000 +++ smake-1.2a49/RULES/sub.htm 2008-04-19 17:22:23.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sub.htm 1.1 07/02/10 " +#ident "@(#)sub.htm 1.4 08/04/19 " ########################################################################### # Written 2007 by J. Schilling ########################################################################### @@ -19,8 +19,6 @@ # file and include the License file CDDL.Schily.txt from this distribution. ########################################################################### -ALLTARGETS += html htmlx - html htmlx: @if [ ".$(XMK_FILE)" != . ] ; then \ for XMK_F in $(XMK_FILE) XxZzY-- ; do \ diff -Nru smake-1.2a41/RULES/sun3-sunos4-cc.rul smake-1.2a49/RULES/sun3-sunos4-cc.rul --- smake-1.2a41/RULES/sun3-sunos4-cc.rul 2006-07-06 12:20:49.000000000 +0100 +++ smake-1.2a49/RULES/sun3-sunos4-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun3-sunos4-cc.rul 1.7 06/07/06 " +#ident "@(#)sun3-sunos4-cc.rul 1.8 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sun.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun3-sunos4-gcc.rul smake-1.2a49/RULES/sun3-sunos4-gcc.rul --- smake-1.2a41/RULES/sun3-sunos4-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sun3-sunos4-gcc.rul 2009-06-06 22:48:52.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun3-sunos4-gcc.rul 1.8 06/07/06 " +#ident "@(#)sun3-sunos4-gcc.rul 1.11 09/06/06 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -21,8 +21,9 @@ include $(SRCROOT)/$(RULESDIR)/rules.prg ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul +CWOPTS= -Wall -Wshadow -Wmissing-prototypes -Wstrict-prototypes -OSDEFS= +OSDEFS += COPTOPT= -O2 KDEFINES= -DKERNEL -D_KERNEL @@ -35,7 +36,7 @@ LIB_MATH= -lm LIB_KVM= -lkvm -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LDOPTDYN= LNDYNLIB= @ diff -Nru smake-1.2a41/RULES/sun4c-sunos4-cc.rul smake-1.2a49/RULES/sun4c-sunos4-cc.rul --- smake-1.2a41/RULES/sun4c-sunos4-cc.rul 2006-07-06 12:20:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4c-sunos4-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)sun4-sunos4-cc.rul 1.7 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 4.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sun.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= -lkvm - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - diff -Nru smake-1.2a41/RULES/sun4c-sunos4-gcc.rul smake-1.2a49/RULES/sun4c-sunos4-gcc.rul --- smake-1.2a41/RULES/sun4c-sunos4-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sun4c-sunos4-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos4-gcc.rul 1.7 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 4.x on sparc (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= -lkvm - -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sun4c-sunos5-cc.rul smake-1.2a49/RULES/sun4c-sunos5-cc.rul --- smake-1.2a41/RULES/sun4c-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4c-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4c-sunos5-gcc.rul smake-1.2a49/RULES/sun4c-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4c-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4c-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4d-sunos5-cc.rul smake-1.2a49/RULES/sun4d-sunos5-cc.rul --- smake-1.2a41/RULES/sun4d-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4d-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4d-sunos5-gcc.rul smake-1.2a49/RULES/sun4d-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4d-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4d-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4e-sunos5-cc.rul smake-1.2a49/RULES/sun4e-sunos5-cc.rul --- smake-1.2a41/RULES/sun4e-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4e-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4e-sunos5-gcc.rul smake-1.2a49/RULES/sun4e-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4e-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4e-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4L-sunos5-cc.rul smake-1.2a49/RULES/sun4L-sunos5-cc.rul --- smake-1.2a41/RULES/sun4L-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4L-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4L-sunos5-gcc.rul smake-1.2a49/RULES/sun4L-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4L-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4L-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4m-sunos4-cc.rul smake-1.2a49/RULES/sun4m-sunos4-cc.rul --- smake-1.2a41/RULES/sun4m-sunos4-cc.rul 2006-07-06 12:20:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4m-sunos4-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -#ident "@(#)sun4-sunos4-cc.rul 1.7 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 4.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sun.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= -lkvm - -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib - diff -Nru smake-1.2a41/RULES/sun4m-sunos4-gcc.rul smake-1.2a49/RULES/sun4m-sunos4-gcc.rul --- smake-1.2a41/RULES/sun4m-sunos4-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sun4m-sunos4-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos4-gcc.rul 1.7 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 4.x on sparc (GCC) -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= -lkvm - -LDOPTDYN= -LNDYNLIB= @ - -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib diff -Nru smake-1.2a41/RULES/sun4m-sunos5-cc.rul smake-1.2a49/RULES/sun4m-sunos5-cc.rul --- smake-1.2a41/RULES/sun4m-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4m-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4m-sunos5-gcc.rul smake-1.2a49/RULES/sun4m-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4m-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4m-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4-sunos4-cc.rul smake-1.2a49/RULES/sun4-sunos4-cc.rul --- smake-1.2a41/RULES/sun4-sunos4-cc.rul 2006-07-06 12:20:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4-sunos4-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos4-cc.rul 1.7 06/07/06 " +#ident "@(#)sun4-sunos4-cc.rul 1.8 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sun.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun4-sunos4-gcc.rul smake-1.2a49/RULES/sun4-sunos4-gcc.rul --- smake-1.2a41/RULES/sun4-sunos4-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/sun4-sunos4-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos4-gcc.rul 1.7 06/07/06 " +#ident "@(#)sun4-sunos4-gcc.rul 1.8 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun4-sunos5-cc64.rul smake-1.2a49/RULES/sun4-sunos5-cc64.rul --- smake-1.2a41/RULES/sun4-sunos5-cc64.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4-sunos5-cc64.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos5-cc64.rul 1.5 06/07/06 " +#ident "@(#)sun4-sunos5-cc64.rul 1.6 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun4-sunos5-cc.rul smake-1.2a49/RULES/sun4-sunos5-cc.rul --- smake-1.2a41/RULES/sun4-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4-sunos5-cc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " +#ident "@(#)sun4-sunos5-cc.rul 1.11 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun4-sunos5-gcc64.rul smake-1.2a49/RULES/sun4-sunos5-gcc64.rul --- smake-1.2a41/RULES/sun4-sunos5-gcc64.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4-sunos5-gcc64.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos5-gcc64.rul 1.6 07/01/05 " +#ident "@(#)sun4-sunos5-gcc64.rul 1.7 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL LIB_SOCKET= -lsocket -lnsl -ldl diff -Nru smake-1.2a41/RULES/sun4-sunos5-gcc.rul smake-1.2a49/RULES/sun4-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4-sunos5-gcc.rul 2007-05-08 12:03:08.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " +#ident "@(#)sun4-sunos5-gcc.rul 1.13 07/05/08 " ########################################################################### # Written 1996 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D__SVR4 -DSVR4 +OSDEFS += -D__SVR4 -DSVR4 KDEFINES= -DKERNEL -D_KERNEL diff -Nru smake-1.2a41/RULES/sun4us-sunos5-cc64.rul smake-1.2a49/RULES/sun4us-sunos5-cc64.rul --- smake-1.2a41/RULES/sun4us-sunos5-cc64.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4us-sunos5-cc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc64.rul 1.5 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4us-sunos5-cc.rul smake-1.2a49/RULES/sun4us-sunos5-cc.rul --- smake-1.2a41/RULES/sun4us-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4us-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4us-sunos5-gcc64.rul smake-1.2a49/RULES/sun4us-sunos5-gcc64.rul --- smake-1.2a41/RULES/sun4us-sunos5-gcc64.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4us-sunos5-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc64.rul 1.6 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul - -OSDEFS= -D__SVR4 -DSVR4 -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4us-sunos5-gcc.rul smake-1.2a49/RULES/sun4us-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4us-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4us-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4u-sunos5-cc64.rul smake-1.2a49/RULES/sun4u-sunos5-cc64.rul --- smake-1.2a41/RULES/sun4u-sunos5-cc64.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4u-sunos5-cc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc64.rul 1.5 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4u-sunos5-cc.rul smake-1.2a49/RULES/sun4u-sunos5-cc.rul --- smake-1.2a41/RULES/sun4u-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4u-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4u-sunos5-gcc64.rul smake-1.2a49/RULES/sun4u-sunos5-gcc64.rul --- smake-1.2a41/RULES/sun4u-sunos5-gcc64.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4u-sunos5-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc64.rul 1.6 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul - -OSDEFS= -D__SVR4 -DSVR4 -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4u-sunos5-gcc.rul smake-1.2a49/RULES/sun4u-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4u-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4u-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4v-sunos5-cc64.rul smake-1.2a49/RULES/sun4v-sunos5-cc64.rul --- smake-1.2a41/RULES/sun4v-sunos5-cc64.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4v-sunos5-cc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc64.rul 1.5 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro64.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4v-sunos5-cc.rul smake-1.2a49/RULES/sun4v-sunos5-cc.rul --- smake-1.2a41/RULES/sun4v-sunos5-cc.rul 2006-07-06 12:17:49.000000000 +0100 +++ smake-1.2a49/RULES/sun4v-sunos5-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#ident "@(#)sun4-sunos5-cc.rul 1.10 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-sunpro.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -LDOPTDYN= -dy -G -ztext -h $(TARGET) -Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4v-sunos5-gcc64.rul smake-1.2a49/RULES/sun4v-sunos5-gcc64.rul --- smake-1.2a41/RULES/sun4v-sunos5-gcc64.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4v-sunos5-gcc64.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,39 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc64.rul 1.6 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc64.rul - -OSDEFS= -D__SVR4 -DSVR4 -KDEFINES= -DKERNEL -D_KERNEL - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/sun4v-sunos5-gcc.rul smake-1.2a49/RULES/sun4v-sunos5-gcc.rul --- smake-1.2a41/RULES/sun4v-sunos5-gcc.rul 2007-01-05 13:09:09.000000000 +0000 +++ smake-1.2a49/RULES/sun4v-sunos5-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)sun4-sunos5-gcc.rul 1.12 07/01/05 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for SunOS 5.x on sparc -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= -D__SVR4 -DSVR4 - -KDEFINES= -DKERNEL -D_KERNEL - - -LIB_SOCKET= -lsocket -lnsl -ldl -LIB_MATH= -lm -LIB_KVM= -lkvm -lelf -LIB_VOLMGT= -lvolmgt - -# -# We should use -Wl,-ztext here, but gcc does not create fully compliant -# object files. -# -LDOPTDYN= -dy -G -h $(TARGET) -Wl,-Mlib$(TARGETLIB)-mapvers -ldl - -ARFLAGS= crs diff -Nru smake-1.2a41/RULES/version smake-1.2a49/RULES/version --- smake-1.2a41/RULES/version 2006-07-21 15:35:08.000000000 +0100 +++ smake-1.2a49/RULES/version 2007-11-02 19:04:12.000000000 +0000 @@ -1,4 +1,4 @@ -#ident "@(#)version 1.3 06/07/21 " +#ident "@(#)version 1.4 07/11/02 " ########################################################################### # Written 2005 by J. Schilling ########################################################################### @@ -14,4 +14,4 @@ # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file CDDL.Schily.txt from this distribution. -MAKEFILES_VERSION=1.5a04 +MAKEFILES_VERSION=1.5a05 diff -Nru smake-1.2a41/RULES/x86_64-linux-cc.rul smake-1.2a49/RULES/x86_64-linux-cc.rul --- smake-1.2a41/RULES/x86_64-linux-cc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/x86_64-linux-cc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-cc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/x86_64-linux-gcc.rul smake-1.2a49/RULES/x86_64-linux-gcc.rul --- smake-1.2a41/RULES/x86_64-linux-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/x86_64-linux-gcc.rul 1970-01-01 01:00:00.000000000 +0100 @@ -1,41 +0,0 @@ -#ident "@(#)i586-linux-gcc.rul 1.8 06/07/06 " -########################################################################### -# Written 1996 by J. Schilling -########################################################################### -# -# Platform dependent MACROS for Linux -# -########################################################################### -# Copyright (c) J. Schilling -########################################################################### -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# See the file CDDL.Schily.txt in this distribution for details. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file CDDL.Schily.txt from this distribution. -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.prg -########################################################################### -include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul - -OSDEFS= - -KDEFINES= -DKERNEL -D_KERNEL - -LIB_PREFIX= lib -LIB_SUFFIX= .a -SHL_SUFFIX= .so.1.0 - -LIB_SOCKET= -LIB_MATH= -lm -LIB_KVM= - -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) -LDOPTS= $(LIBS_PATH) $(LDPATH) - -LORDER= echo -TSORT= cat diff -Nru smake-1.2a41/RULES/x86-interix-cc.rul smake-1.2a49/RULES/x86-interix-cc.rul --- smake-1.2a41/RULES/x86-interix-cc.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/x86-interix-cc.rul 2007-05-08 11:18:59.000000000 +0100 @@ -0,0 +1,46 @@ +#ident @(#)x86-interix-cc.rul 1.1 07/05/08 +########################################################################### +# Written 2007 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_NT using MSVC +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +_PLATFORM= interix +include $(SRCROOT)/$(RULESDIR)/cc-msposix.rul + +# +# Supress useless cl warnings like: +# warning C4996: 'strerror' wurde als veraltet deklariert +# Consider using strerror_s instead. +# +#OSDEFS += -D_CRT_SECURE_NO_DEPRECATE + +KDEFINES= + +#LIB_SOCKET= Ws2_32.lib +LIB_MATH= +LIB_KVM= + +LORDER= echo +TSORT= cat + +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc-interix.sh +MKDEP_OUT= +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc-interix.sh +MKC++DEP_OUT= + diff -Nru smake-1.2a41/RULES/x86-interix-cl.rul smake-1.2a49/RULES/x86-interix-cl.rul --- smake-1.2a41/RULES/x86-interix-cl.rul 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/RULES/x86-interix-cl.rul 2009-05-21 11:46:53.000000000 +0100 @@ -0,0 +1,54 @@ +#ident "@(#)x86-interix-cl.rul 1.5 09/05/21 " +########################################################################### +# Written 2006 by J. Schilling +########################################################################### +# +# Platform dependent MACROS for CYGWIN32_NT using MSVC +# +########################################################################### +# Copyright (c) J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +include $(SRCROOT)/$(RULESDIR)/rules.prg +########################################################################### +_PLATFORM= interix +include $(SRCROOT)/$(RULESDIR)/cc-msc.rul + +# +# Supress useless cl warnings like: +# warning C4996: 'strerror' wurde als veraltet deklariert +# Consider using strerror_s instead. +# +OSDEFS += -D_CRT_SECURE_NO_DEPRECATE + +# +# Supress useless cl warnings like: +# warning C4996: 'fdopen' wurde als veraltet deklariert +# The POSIX name for this item is deprecated. Instead, use +# the ISO C++ conformant name: _fdopen. +# +OSDEFS += -D_CRT_NONSTDC_NO_DEPRECATE + +KDEFINES= + +LIB_SOCKET= Ws2_32.lib +LIB_MATH= +LIB_KVM= + +LORDER= echo +TSORT= cat + +MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc-interix.sh +MKDEP_OUT= +MKC++DEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); sh $(SRCROOT)/conf/mkdep-msc-interix.sh +MKC++DEP_OUT= + diff -Nru smake-1.2a41/RULES/x86-interix-gcc.rul smake-1.2a49/RULES/x86-interix-gcc.rul --- smake-1.2a41/RULES/x86-interix-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/x86-interix-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)x86-interix-gcc.rul 1.3 06/07/06 " +#ident "@(#)x86-interix-gcc.rul 1.5 07/05/09 " ########################################################################### # Written 2006 by J. Schilling ########################################################################### @@ -22,7 +22,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= -D_ALL_SOURCE +OSDEFS += -D_ALL_SOURCE KDEFINES= -DKERNEL -D_KERNEL @@ -34,7 +34,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/RULES/x86pc-qnx-gcc.rul smake-1.2a49/RULES/x86pc-qnx-gcc.rul --- smake-1.2a41/RULES/x86pc-qnx-gcc.rul 2006-07-06 12:08:30.000000000 +0100 +++ smake-1.2a49/RULES/x86pc-qnx-gcc.rul 2007-05-09 13:25:30.000000000 +0100 @@ -1,5 +1,5 @@ ########################################################################### -#ident "@(#)x86pc-qnx-gcc.rul 1.5 06/07/06 " +#ident "@(#)x86pc-qnx-gcc.rul 1.7 07/05/09 " ########################################################################### # Written 2001 by J. Schilling ########################################################################### @@ -23,7 +23,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul -OSDEFS= +OSDEFS += KDEFINES= -DKERNEL -D_KERNEL @@ -35,7 +35,7 @@ LIB_MATH= -lm LIB_KVM= -#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) LDOPTS= $(LIBS_PATH) $(LDPATH) LORDER= echo diff -Nru smake-1.2a41/smake/archconf.c smake-1.2a49/smake/archconf.c --- smake-1.2a41/smake/archconf.c 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/smake/archconf.c 2009-10-31 19:29:41.000000000 +0000 @@ -1,13 +1,14 @@ -/* @(#)archconf.c 1.17 07/03/07 Copyright 1996-2007 J. Schilling */ +/* @(#)archconf.c 1.27 09/10/31 Copyright 1996-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)archconf.c 1.17 07/03/07 Copyright 1996-2007 J. Schilling"; +static UConst char sccsid[] = + "@(#)archconf.c 1.27 09/10/31 Copyright 1996-2009 J. Schilling"; #endif /* * Make program * Architecture autoconfiguration support * - * Copyright (c) 1996-2007 by J. Schilling + * Copyright (c) 1996-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -21,8 +22,7 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include #include @@ -70,7 +70,7 @@ } #ifdef HAVE_UNAME /* NeXT Step has sys/utsname but not uname() */ -#include +#include /* * This is the interface to the syscall uname(2). @@ -100,11 +100,33 @@ archcvt(un.version); archcvt(un.machine); - define_var("MAKE_OS", un.sysname); - define_var("MAKE_HOST", un.nodename); - define_var("MAKE_OSREL", un.release); - define_var("MAKE_OSVERSION", un.version); - define_var("MAKE_MACH", un.machine); + define_var("MAKE_OS", un.sysname); /* uname -s */ + define_var("MAKE_HOST", un.nodename); /* uname -n */ + define_var("MAKE_OSREL", un.release); /* uname -r */ + define_var("MAKE_OSVERSION", un.version); /* uname -v */ + define_var("MAKE_MACH", un.machine); /* uname -m */ + +#ifdef HAVE_UTSNAME_PROCESSOR + archcvt(un.processor); + define_var("MAKE_ARCH", un.processor); /* uname -p */ +#else +#ifdef HAVE_UTSNAME_ARCH /* OpenVMS */ + archcvt(un.arch); + define_var("MAKE_ARCH", un.arch); /* uname -p */ +#endif +#endif +#ifdef HAVE_UTSNAME_SYSNAME_HOST + archcvt(un.sysname_host); + define_var("MAKE_HOST_OS", un.sysname_host); /* uname -Hs */ +#endif +#ifdef HAVE_UTSNAME_RELEASE_HOST + archcvt(un.release_host); + define_var("MAKE_HOST_OSREL", un.release_host); /* uname -Hr */ +#endif +#ifdef HAVE_UTSNAME_VERSION_HOST + archcvt(un.version_host); + define_var("MAKE_HOST_OSVERSION", un.version_host); /* uname -Hv */ +#endif return (TRUE); } @@ -121,7 +143,7 @@ #endif #ifdef HAVE_SYS_SYSTEMINFO_H -#include +#include /* * sysinfo(2) is the preferred way to request architecture information. @@ -138,7 +160,7 @@ ret = FALSE; } else { archcvt(nbuf); - define_var("MAKE_OS", nbuf); + define_var("MAKE_OS", nbuf); /* uname -s */ } #else ret = FALSE; @@ -148,7 +170,7 @@ if (sysinfo(SI_HOSTNAME, nbuf, sizeof (nbuf)) < 0) { ret = FALSE; } else { - define_var("MAKE_HOST", nbuf); + define_var("MAKE_HOST", nbuf); /* uname -n */ } #else ret = FALSE; @@ -159,7 +181,7 @@ ret = FALSE; } else { archcvt(nbuf); - define_var("MAKE_OSREL", nbuf); + define_var("MAKE_OSREL", nbuf); /* uname -r */ } #else ret = FALSE; @@ -170,7 +192,7 @@ ret = FALSE; } else { archcvt(nbuf); - define_var("MAKE_OSVERSION", nbuf); + define_var("MAKE_OSVERSION", nbuf); /* uname -v */ } #else ret = FALSE; @@ -181,7 +203,7 @@ ret = FALSE; } else { archcvt(nbuf); - define_var("MAKE_MACH", nbuf); + define_var("MAKE_MACH", nbuf); /* uname -m */ } #else ret = FALSE; @@ -190,14 +212,14 @@ #ifdef SI_ARCHITECTURE if (sysinfo(SI_ARCHITECTURE, nbuf, sizeof (nbuf)) >= 0) { archcvt(nbuf); - define_var("MAKE_ARCH", nbuf); + define_var("MAKE_ARCH", nbuf); /* uname -p */ } #endif #ifdef SI_PLATFORM if (sysinfo(SI_PLATFORM, nbuf, sizeof (nbuf)) >= 0) { unblank(nbuf); - define_var("MAKE_MODEL", nbuf); + define_var("MAKE_MODEL", nbuf); /* uname -i */ } #endif @@ -209,7 +231,7 @@ } #endif -#ifdef SI_HW_PROVIDER +#ifdef SI_HW_SERIAL if (sysinfo(SI_HW_SERIAL, nbuf, sizeof (nbuf)) >= 0) { /* archcvt(nbuf);*/ define_var("MAKE_HWSERIAL", nbuf); @@ -254,13 +276,18 @@ #include #endif +/* + * See #ifdef statement below in unblank() + */ LOCAL BOOL do_sysctl() { +#if defined(HW_MODEL) || defined(HW_MACHINE_ARCH) obj_t *o; char nbuf[NAMEMAX]; size_t len; int mib[2]; +#endif #if defined(HW_MODEL) o = objlook("MAKE_MODEL", FALSE); @@ -273,7 +300,7 @@ define_var("MAKE_MODEL", nbuf); } } -#endif +#endif /* defined(HW_MODEL) */ #if defined(HW_MACHINE_ARCH) o = objlook("MAKE_ARCH", FALSE); @@ -310,9 +337,9 @@ if (name != NULL) define_var("MAKE_ARCH", name); } -#endif +#endif /* IS_MACOS_X */ } -#endif +#endif /* defined(HW_MACHINE_ARCH) */ return (TRUE); } #else @@ -382,6 +409,10 @@ #define FOUND_MACH #endif #endif /* __NeXT__ */ +#ifdef __MINGW32__ + define_var("MAKE_OS", "mingw32_nt"); +#define FOUND_OS +#endif /* * We need MAKE_OS to allow compilation with the Schily Makefile System @@ -418,7 +449,7 @@ { list_t *l; char *name; - + /* * Try to define global processor architecture */ @@ -468,7 +499,7 @@ * '\\' in '-' wandeln. * ' ' in '-' wandeln. */ -#include +#include LOCAL void archcvt(p) @@ -489,7 +520,8 @@ } } -#if defined(HAVE_SYS_SYSTEMINFO_H) || defined(HAVE_SYS_SYSCTL_H) +#if defined(HAVE_SYS_SYSTEMINFO_H) || \ + (defined(HAVE_SYS_SYSCTL_H) && defined(HW_MODEL)) /* See do_sysctl() */ LOCAL void unblank(p) register char *p; diff -Nru smake-1.2a41/smake/make.c smake-1.2a49/smake/make.c --- smake-1.2a41/smake/make.c 2007-03-07 11:39:13.000000000 +0000 +++ smake-1.2a49/smake/make.c 2009-12-06 16:58:51.000000000 +0000 @@ -1,12 +1,13 @@ -/* @(#)make.c 1.136 07/03/07 Copyright 1985, 87, 88, 91, 1995-2007 J. Schilling */ +/* @(#)make.c 1.176 09/12/06 Copyright 1985, 87, 88, 91, 1995-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)make.c 1.136 07/03/07 Copyright 1985, 87, 88, 91, 1995-2007 J. Schilling"; +static UConst char sccsid[] = + "@(#)make.c 1.176 09/12/06 Copyright 1985, 87, 88, 91, 1995-2009 J. Schilling"; #endif /* * Make program * - * Copyright (c) 1985, 87, 88, 91, 1995-2007 by J. Schilling + * Copyright (c) 1985, 87, 88, 91, 1995-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -20,8 +21,7 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include #include @@ -30,20 +30,25 @@ #include #include #include -#include -#include "make.h" +#include #include #include #include #include -#if defined(__EMX__) || defined(__DJGPP__) -#include -#endif #include #include +#define VMS_VFORK_OK +#include -char make_version[] = "1.2a41"; +#include "make.h" + +char make_version[] = "1.2a49"; + +#ifdef NO_DEFAULTS_PATH +#undef DEFAULTS_PATH +#define DEFAULTS_PATH_SEARCH_FIRST +#endif #ifdef _FASCII LOCAL void setup_env __PR((void)); @@ -55,12 +60,15 @@ LOCAL void read_makefiles __PR((void)); EXPORT void setup_dotvars __PR((void)); LOCAL void setup_vars __PR((void)); +LOCAL void setup_xvars __PR((void)); +LOCAL void setup_SHELL __PR((void)); LOCAL void setup_MAKE __PR((char *name)); EXPORT char *searchtype __PR((int mode)); LOCAL void printdirs __PR((void)); LOCAL int addcommandline __PR((char * name)); LOCAL void read_cmdline __PR((void)); EXPORT void doexport __PR((char *)); +EXPORT void dounexport __PR((char *)); LOCAL void read_environ __PR((void)); EXPORT int main __PR((int ac, char ** av)); LOCAL void check_old_makefiles __PR((void)); @@ -87,12 +95,17 @@ LOCAL char *getdefaultsfile __PR((void)); LOCAL char *searchfileinpath __PR((char *name)); LOCAL char *searchonefile __PR((char *name, char *nbuf, char *np, char *ep)); +LOCAL int put_env __PR((char *new)); +LOCAL int unset_env __PR((char *name)); #ifndef HAVE_PUTENV EXPORT int putenv __PR((const char *new)); #endif #if defined(__DJGPP__) LOCAL char *strbs2s __PR((char *s)); #endif +#ifndef HAVE_UNSETENV +EXPORT int unsetenv __PR((const char *name)); +#endif BOOL posixmode = FALSE; /* We found a .POSIX target */ BOOL Eflag = FALSE; /* -e Environment overrides vars*/ @@ -109,13 +122,13 @@ int Debug = 0; /* -d Print reason for rebuild */ int XDebug = 0; /* -xd Print extended debug info*/ BOOL Prdep = FALSE; /* -xM Print include dependency */ -BOOL Probj = FALSE; /* -probj Print object tree */ +BOOL Pr_obj = FALSE; /* -probj Print object tree */ BOOL Print = FALSE; /* -p Print macro/target definitions*/ int Dmake = 0; /* -D Display makefile */ BOOL help = FALSE; /* -help Show Usage */ BOOL pversion = FALSE; /* -version Show version string */ -BOOL NoWarn = FALSE; /* -w No warnings */ -BOOL DoWarn = FALSE; /* -W Print extra warnings */ +BOOL No_Warn = FALSE; /* -w No warnings */ +BOOL Do_Warn = FALSE; /* -W Print extra warnings */ char Makeflags[] = "MAKEFLAGS"; char Make_Flags[] = "MAKE_FLAGS"; char Make_Macs[] = "MAKE_MACS"; @@ -131,7 +144,7 @@ #define MAKEFILECOUNT 32 /* Max number of Makefiles */ char SMakefile[] = "SMakefile"; /* smake's default Makefile */ char Makefile[] = "Makefile"; /* Primary default Makefile */ -char makefile[] = "makefile"; /* Secondary default Makefile */ +char _makefile[] = "makefile"; /* Secondary default Makefile */ char **MakeFileNames; /* To hold all Makefilenames */ int Mfileindex; /* Current Makefile index */ int Mfilesize; /* Size of Makefile array */ @@ -162,22 +175,29 @@ date_t newtime; /* Special time newer than all */ /* - * POSIX requieres commands to be executed via 'sh -c command' which is - * wrong as it causes make not to stop on errors if called with complex - * commands (e.g. commands that contain a ';'). + * Older POSIX versions requiere commands to be executed via 'sh -c command' + * which is wrong as it causes make not to stop on errors if called with + * complex commands (e.g. commands that contain loops or a ';'). + * Fortunately, POSIX.1-2008 changed this back to 'sh -ce command'. * * We used to call /bin/sh -ce 'cmd' in former times which was correct, * but we got (unfortunately undocumented) problems on QNX and we changed * it to sh -c 'cmd' on 00/11/19. In hope that newer versions of QNX have * no problems with sh -ce, we changed it back on May 9th 2004. * - * XXX Switching between both variants via .POSIX does not look like a good - * XXX idea. We rather try to send a bug report against the POSIX standard. + * The solution to implement old POSIX compatibility without making smake + * unusable is to also set "MAKE_SHELL_FLAG=-ce" in the makefile together + * with .POSIX: */ +#ifdef OLD_POSIX #define POSIX_SHELL_CEFLAG "-c" /* Does not work correctly */ +#else +#define POSIX_SHELL_CEFLAG "-ce" /* New correct behavior */ +#endif #define SHELL_CEFLAG "-ce" /* Needed for correct behavior */ #define SHELL_CFLAG "-c" /* Used with make -i */ +LOCAL char pceflag[] = POSIX_SHELL_CEFLAG; /* Cmds in posix mode */ LOCAL char ceflag[] = SHELL_CEFLAG; /* Used by default for cmds */ LOCAL char cflag[] = SHELL_CFLAG; /* Used with make -i */ @@ -252,6 +272,7 @@ error(" -help Print this help.\n"); error(" -version Print version number.\n"); error(" -posix Force POSIX behaviour.\n"); + error(" -C dir Change directory to 'dir' before starting work.\n"); error(" mf=makefilename | -f makefilename\n"); error("More than -f makefile option may be specified.\n"); exit(exitcode); @@ -311,7 +332,7 @@ extern char implicit_rules[]; /* Default rules compiled into make */ Dmake--; - Mfileindex = MF_IDX_IMPICIT; /* Index 0 Implicit Rules */ + Mfileindex = MF_IDX_IMPLICIT; /* Index 0 Implicit Rules */ if (gftime(Ldefaults) != 0) { MakeFileNames[0] = Ldefaults; @@ -358,6 +379,22 @@ Mfileindex = MF_IDX_MAKEFILE; /* Index 2 Default Makefile */ if (Mfilecount == MF_IDX_MAKEFILE) { + if (posixmode) { + /* + * First look for "makefile" + * then for "Makefile", then for "SMakefile". + */ + if (gftime(_makefile) != 0) { /* "makefile" */ + Mfilecount++; + MakeFileNames[2] = _makefile; + } else if (gftime(Makefile) != 0) { /* "Makefile" */ + Mfilecount++; + MakeFileNames[2] = Makefile; + } else if (gftime(SMakefile) != 0) { /* "SMakefile" */ + Mfilecount++; + MakeFileNames[2] = SMakefile; + } + } else /* * First look for "SMakefile", * then for "Makefile", then for "makefile" @@ -368,9 +405,9 @@ } else if (gftime(Makefile) != 0) { /* "Makefile" */ Mfilecount++; MakeFileNames[2] = Makefile; - } else if (gftime(makefile) != 0) { /* "makefile" */ + } else if (gftime(_makefile) != 0) { /* "makefile" */ Mfilecount++; - MakeFileNames[2] = makefile; + MakeFileNames[2] = _makefile; } } while (Mfileindex < Mfilecount) { @@ -420,8 +457,10 @@ * Do not allow moving targets to themselves. */ ObjDir = NULL; + ObjDirlen = 0; + } else { + ObjDirlen = strlen(ObjDir); } - ObjDirlen = strlen(ObjDir); } } #ifdef no_longer_needed /* Has been moved to dynmac expansion */ @@ -467,9 +506,16 @@ SearchList = cvtvpath(obj->o_list); } - if (objlook(".IGNORE", FALSE)) + obj = objlook(".IGNORE", FALSE); + if (obj != NULL && obj->o_type != ':') /* Must be a special target */ + obj = NULL; + if (obj != NULL && obj->o_list == NULL) Iflag = TRUE; - if (objlook(".SILENT", FALSE)) + + obj = objlook(".SILENT", FALSE); + if (obj != NULL && obj->o_type != ':') /* Must be a special target */ + obj = NULL; + if (obj != NULL && obj->o_list == NULL) Sflag = TRUE; Init = objlook(".INIT", FALSE); @@ -511,6 +557,7 @@ char *p; define_var("$", "$"); /* Really needed ? */ + define_var("NUMBER_SIGN", "#"); /* Allow to use '#' */ define_var("MAKE_NAME", "smake"); /* Needed to identify syntax */ define_var("MAKE_VERSION", make_version); /* Version dependant files? */ if ((p = getenv(Make_Level)) != NULL) { @@ -524,6 +571,93 @@ } /* + * Set up some nice to have extended macros. + */ +LOCAL void +setup_xvars() +{ + char *val; + + val = get_var("MAKE_SHELL_FLAG"); + if (val == NULL || *val == '\0') { + if (posixmode) + define_var("MAKE_SHELL_FLAG", pceflag); + else + define_var("MAKE_SHELL_FLAG", ceflag); /* Used for make */ + } + + val = get_var("MAKE_SHELL_IFLAG"); + if (val == NULL || *val == '\0') + define_var("MAKE_SHELL_IFLAG", cflag); /* Used for make -i */ +} + +/* + * Set up the special macro $(SHELL). + * + * On Operating Systems that use "bash" for /bin/sh, we have a real problem. + * Bash does not stop on failed commands and as bash prevents nested jobs + * from receiving signals. + * If /bin/sh is a shell that does not work correctly and if a working + * Bourne Shell is available as /bin/bosh, we prefer /bin/bosh over /bin/sh. + * + * On DJGPP, there is no /bin/sh. We need to find the path for "sh.exe". + */ +LOCAL void +setup_SHELL() +{ + char *shell = NULL; +#ifdef __DJGPP__ + char *shellname; +#endif + +#ifdef BIN_SHELL_BOSH +#define BOSH_PATH "/bin/bosh" +#else +#ifdef OPT_SCHILY_BIN_SHELL_BOSH +#define BOSH_PATH "/opt/schily/bin/bosh" +#endif +#endif +#ifdef NO_BOSH +#undef BOSH_PATH +#endif + +#if (defined(BIN_SHELL_CE_IS_BROKEN) || defined(SHELL_CE_IS_BROKEN)) && \ + defined(BOSH_PATH) + shell = BOSH_PATH; /* Broken sh but bosh present */ +#else /* !SHELL_CE_IS_BROKEN */ +#ifdef __DJGPP__ + /* + * exec '/bin/sh' does not work under DJGPP. + * Strings like 'c:\djgpp\bin\sh.exe' or '/dev/c/djgpp/bin/sh.exe' + * must be used instead. + * + * Notes: c:/djgpp/share/config.site defines 'SHELL' with the required string. + * + * Using system("sh -ce 'cmd'") and spawn("command.com /c sh -ce 'cmd'") + * cause GPF's (not enough memmory?) + * + * Temporary solution: Use DJGPP_SH envp. var. (must be set manually) + */ + shellname = get_var("SHELL"); /* On DJGPP too? */ + if (shellname != NULL && *shellname == '\0') + shellname = NULL; + if (shellname == NULL) + shellname = getenv("DJGPP_SH"); /* Backward compat */ + if (shellname == NULL) + shellname = searchfileinpath("bin/sh.exe"); /* alloc() */ + if (shellname == NULL) + shellname = searchfileinpath("sh.exe"); /* alloc() */ + if (shellname != NULL) + shell = shellname; +#endif /* !__DJGPP__ */ +#endif /* !SHELL_CE_IS_BROKEN */ + + if (shell == NULL) + shell = "/bin/sh"; /* Standard UNIX/POSIX case */ + define_var("SHELL", shell); /* Needed for POSIX */ +} + +/* * Set up the special macro $(MAKE). * If we were called with an absolute PATH or without any '/', use argv[0], * else compute the absolute PATH by prepending working dir to argv[0]. @@ -650,7 +784,7 @@ Mflags |= F_READONLY; for (i = 0; i < Cmdlinecount; i++) { readstring(CmdLDefs[i], CmdLMac); - putenv(CmdLDefs[i]); + put_env(CmdLDefs[i]); } Mflags &= ~F_READONLY; Mfileindex = MFsave; @@ -703,12 +837,24 @@ strcat(name, " "); l = l->l_next; } - putenv(name); + put_env(name); } } } /* + * Unexport a macro from the environment. + * This is mainly done by the "unexport" directive inside a makefile. + */ +EXPORT void +dounexport(oname) + char *oname; +{ + unset_env(oname); +} + + +/* * Read in and parse all environment vars to make them make macros. */ LOCAL void @@ -754,7 +900,8 @@ int i; int cac = ac; char * const *cav = av; - static char options[] = "help,version,posix,e,i,k,n,N,p,q,r,s,S,t,w,W,d+,D+,xM,xd+,probj,mf&,f&,&"; + char *newdir = NULL; + static char options[] = "help,version,posix,e,i,k,n,N,p,q,r,s,S,t,w,W,d+,D+,xM,xd+,probj,C*,mf&,f&,&"; save_args(ac, av); @@ -781,8 +928,8 @@ if (getallargs(&cac, &cav, options, &help, &pversion, &posixmode, &Eflag, &Iflag, &Kflag, &Nflag, &NSflag, &Print, &Qflag, &Rflag, &Sflag, &Stopflag, &Tflag, - &NoWarn, &DoWarn, - &Debug, &Dmake, &Prdep, &XDebug, &Probj, + &No_Warn, &Do_Warn, + &Debug, &Dmake, &Prdep, &XDebug, &Pr_obj, &newdir, addmakefile, NULL, addmakefile, NULL, addcommandline, NULL) < 0) { @@ -792,11 +939,15 @@ if (help) usage(0); if (pversion) { - printf("Smake release %s (%s-%s-%s) Copyright (C) 1985, 87, 88, 91, 1995-2007 Jörg Schilling\n", + printf("Smake release %s (%s-%s-%s) Copyright (C) 1985, 87, 88, 91, 1995-2009 Jörg Schilling\n", make_version, HOST_CPU, HOST_VENDOR, HOST_OS); exit(0); } + if (newdir) { + if (chdir(newdir) < 0) + comerr("Cannot change diretory to '%s'\n", newdir); + } /* * XXX Is this the right place to set the options and cmd line macros * XXX to the exported environment? @@ -837,6 +988,7 @@ signal(SIGTERM, handler); curtime = gcurtime(); newtime = gnewtime(); + NullObj->o_date = newtime; /* Make NullObj "up to date" */ initchars(); initgbuf(NAMEMAX); /* Now the Makefile parser becomes usable */ @@ -855,8 +1007,9 @@ if (!Rflag) read_defs(); /* read "defaults.smk" */ setup_MAKE(av[0]); /* Set up $(MAKE) */ + setup_SHELL(); /* Set up $(SHELL) */ setup_vars(); /* Set up some known special macros */ - setup_arch(); /* Set up srch specific macros */ + setup_arch(); /* Set up arch specific macros */ read_environ(); /* Sets F_READONLY if -e flag is present*/ if (Debug > 0 && Mlevel > 0) @@ -876,13 +1029,14 @@ */ Mfileindex = Mfilecount - 1; if (Mfileindex < MF_IDX_MAKEFILE) - Mfileindex = MF_IDX_IMPICIT; + Mfileindex = MF_IDX_IMPLICIT; setup_dotvars(); + setup_xvars(); /* Set up compat vars like MAKE_SHELL_FLAG */ if (!Rflag) check_old_makefiles(); - if (Probj) /* -probj Flag */ + if (Pr_obj) /* -probj Flag */ printtree(); if (Print) { /* -p Flag */ prtree(); @@ -895,20 +1049,20 @@ printdirs(); /* .OBJDIR .OBJSEARCH .SEARCHLIST */ makeincs(); /* Re-make included files */ - omake(Init, TRUE); + omake(Init, TRUE); /* Make .INIT target */ cac = ac; cav = av; cac--; cav++; for (i = 0; getfiles(&cac, &cav, options); cac--, cav++, i++) - if (!domake(cav[0])) + if (!domake(cav[0])) /* Make targets from command line */ failures++; - if (i == 0 && !domake((char *) NULL)) + if (i == 0 && !domake((char *) NULL)) /* Make default target */ failures++; if (failures && Failed) { - omake(Failed, TRUE); + omake(Failed, TRUE); /* Make .FAILED target */ } else { - omake(Done, TRUE); + omake(Done, TRUE); /* Make .DONE target */ } #ifdef DEBUG prmem(); @@ -1060,6 +1214,10 @@ Nflag = TRUE; break; + case 'P': /* POSIX mode */ + posixmode = TRUE; + break; + case 'p': /* Print macros/targets */ Print = TRUE; break; @@ -1085,11 +1243,11 @@ break; case 'W': /* Extra Warnings */ - DoWarn = TRUE; + Do_Warn = TRUE; break; case 'w': /* No Warnings */ - NoWarn = TRUE; + No_Warn = TRUE; break; case 'Z': /* Print includes */ @@ -1218,10 +1376,10 @@ /* * MAKEFLAGS=- 12 bytes incl '\0' * 3 x 8 bytes= 24 bytes - * 12 flags 12 bytes + * 15 flags 15 bytes * '-- ' 3 bytes * ===================== - * 51 bytes + * 54 bytes */ #define MAKEENV_SIZE_STATIC 64 static char makeenv[MAKEENV_SIZE_STATIC]; @@ -1261,6 +1419,8 @@ *p++ = 'N'; if (Nflag) /* Do not exec any commands */ *p++ = 'n'; + if (posixmode) /* POSIX mode */ + *p++ = 'P'; if (Print) /* Print macros/targets */ *p++ = 'p'; if (Qflag) /* Question */ @@ -1273,9 +1433,9 @@ *p++ = 'S'; if (Tflag) /* Touch */ *p++ = 't'; - if (DoWarn) /* Extra Warnings */ + if (Do_Warn) /* Extra Warnings */ *p++ = 'W'; - if (NoWarn) /* No Warnings */ + if (No_Warn) /* No Warnings */ *p++ = 'w'; if (Prdep) /* Print includes */ *p++ = 'Z'; @@ -1343,7 +1503,7 @@ * No command line macros and no inherited command line * macros from MAKEFLAGS, so just call putenv() and return. */ - putenv(envbase); + put_env(envbase); return; } @@ -1395,14 +1555,15 @@ *envp = '\0'; /* Needed for stripmacros */ } /* But overshoots by one */ *--envp = '\0'; - putenv(envbase); + put_env(envbase); define_var(Make_Macs, macbase); /* MAKE_MACS= ... */ doexport(Make_Macs); } #define iswhite(c) ((c) == ' ' || (c) == '\t') -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) +#if defined(__linux__) || defined(__linux) || \ + defined(SHELL_IS_BASH) || defined(BIN_SHELL_IS_BASH) /* * Needed to handle the Linux bash signal bug. */ @@ -1428,6 +1589,7 @@ BOOL foundplus = FALSE; obj_t *shello; char *shell = NULL; + char *shellflag; while (iswhite(*cmd)) cmd++; @@ -1456,6 +1618,10 @@ } if (foundplus) Silent = FALSE; + else if (!Silent && is_inlist(".SILENT", obj->o_name)) + Silent = TRUE; + if (!NoError && is_inlist(".IGNORE", obj->o_name)) + NoError = TRUE; if (!Silent || NoExec || Debug > 0) { /* error("...%s\n", cmd);*/ @@ -1466,58 +1632,40 @@ curtarget = obj; + shellflag = get_var(NoError ? "MAKE_SHELL_IFLAG":"MAKE_SHELL_FLAG"); + if (shellflag == NULL || *shellflag == '\0') { + if (posixmode) + shellflag = pceflag; + else + shellflag = NoError ? cflag:ceflag; + } + shello = objlook("SHELL", FALSE); - if (shello != NULL && basetype(shello->o_type) == EQUAL && - shello->o_list != NULL) - shell = shello->o_list->l_obj->o_name; + shell = get_var("SHELL"); if (shell == NULL || *shell == '\0') { shello = NULL; shell = "/bin/sh"; } #if !defined(USE_SYSTEM) && /* XXX else system() ??? */ \ - ((defined(HAVE_FORK) && defined HAVE_EXECL) || defined(JOS)) + (((defined(HAVE_FORK) || defined(HAVE_VFORK)) && \ + defined HAVE_EXECL) || defined(JOS)) #if defined(__EMX__) || defined(__DJGPP__) #ifdef __EMX__ - pid = spawnl(P_NOWAIT, shell, filename(shell), NoError ? cflag:ceflag, + pid = spawnl(P_NOWAIT, shell, filename(shell), shellflag, cmd, (char *)NULL); if (pid < 0) comerr("Can't spawn %s.\n", shell); #else - { - /* - * exec '/bin/sh' does not work under DJGPP. - * Strings like 'c:\djgpp\bin\sh.exe' or '/dev/c/djgpp/bin/sh.exe' - * must be used instead. - * - * Notes: c:/djgpp/share/config.site defines 'SHELL' with the required string. - * - * Using system("sh -ce 'cmd'") and spawn("command.com /c sh -ce 'cmd'") - * cause GPF's (not enough memmory?) - * - * Temporary solution: Use DJGPP_SH envp. var. (must be set manually) - */ - static char *shellname = NULL; - - if (shello != NULL) /* On DJGPP too? */ - shellname = shell; - if (shellname == NULL) - shellname = getenv("DJGPP_SH"); /* Backward compat */ - if (shellname == NULL) - shellname = searchfileinpath("bin/sh.exe"); /* alloc() */ - if (shellname == NULL) - shellname = searchfileinpath("sh.exe"); /* alloc() */ - if (shellname == NULL) - comerr("Can't find sh.exe.\n"); + if (shello == NULL) + comerr("Can't find sh.exe.\n"); /* DJGPP setup problem */ - Exit = spawnl(P_WAIT, shellname, filename(shellname), - NoError ? cflag:ceflag, + Exit = spawnl(P_WAIT, shell, filename(shell), shellflag, cmd, (char *)NULL); - if (Exit) { - /* TODO: DOS error code to UNIX error code */ - Exit = 0xFF<<8; - } + if (Exit) { + /* TODO: DOS error code to UNIX error code */ + Exit = 0xFF<<8; } #endif #else @@ -1525,27 +1673,36 @@ * Do several tries to fork child to allow working on loaded systems. */ for (retries = 0; retries < 10; retries++) { - pid = fork(); + pid = vfork(); if (pid >= 0) break; sleep(1L); /* Wait for resources to become free.*/ } if (pid < 0) +#ifdef vfork comerr("Can't fork.\n"); +#else + comerr("Can't vfork.\n"); +#endif if (pid == 0) { /* Child process: do the work. */ /* + * Standard UNIX/POSIX case. * We used to call /bin/sh -ce 'cmd' but we get problems on QNX * and UNIX-98 requests that the command shall be called as in - * system() which means /bin/sh -c 'cmd'. + * system() which means /bin/sh -c 'cmd'. As /bin/sh -c 'cmd' + * does not work correctly for complex commands, we now support + * MAKE_SHELL_IFLAG/MAKE_SHELL_FLAG which by default behaves + * like UNIX with /bin/sh -ce 'cmd'. */ - execl(shell, filename(shell), NoError ? cflag:ceflag, + execl(shell, filename(shell), shellflag, cmd, (char *)NULL); comerr("Can't exec %s.\n", shell); } #endif /* __EMX__ || __DJGPP__ */ -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) +#if defined(__linux__) || defined(__linux) || \ + defined(SHELL_IS_BASH) || defined(BIN_SHELL_IS_BASH) /* * Needed to handle the Linux bash signal bug. */ @@ -1577,6 +1734,26 @@ return (Exit); } +#ifdef __needed__ +/* + * Check for Shell meta characters + */ +LOCAL BOOL +has_meta(s) + register char *s; +{ + register char c; + register char *smeta = "#|=^();&<>*?[]:$`'\"\\\n"; + + while ((c = *s++) != '\0') { + if (strchr(smeta, c)) { + return (TRUE); + } + } + return (FALSE); +} +#endif + #ifdef tos # include "osbind.h" #endif @@ -1745,10 +1922,12 @@ #endif again: - if (snprintf(objname, objlen, "%s%s%s", ObjDir, + if (ObjDir == NULL) + objname = name; + else if (snprintf(objname, objlen, "%s%s%s", ObjDir, slash, filename(name)) >= objlen) { objlen = strlen(filename(name)) + ObjDirlen + slashlen + 1; - objname = np = __realloc(np, objlen, "touch path"); + objname = np = ___realloc(np, objlen, "touch path"); goto again; } #ifdef __is_this_ok__ @@ -1849,7 +2028,7 @@ */ t = stbuf.st_mtime; while (t == NOTIME || t == BADTIME || - t == RECURSETIME || t == PHONYTIME) { + t == RECURSETIME || t == MAKETIME || t == PHONYTIME) { t++; } stbuf.st_mtime = t; @@ -1947,6 +2126,8 @@ return ("File could not be made"); if (date == RECURSETIME) return ("Recursive dependencies"); + if (date == MAKETIME) + return ("File is currently being made"); if (date == PHONYTIME) return ("File is phony"); if (date == newtime) @@ -1983,6 +2164,8 @@ * Keine Bibliotheken * Kein -t, -q etc. */ + if (Tflag || Print || Qflag || Nflag) + goto out; if (isprecious(curtarget)) goto out; if (isphony(curtarget)) @@ -2005,7 +2188,10 @@ out: -#if defined(__linux__) || defined(__linux) || defined(SHELL_IS_BASH) +#if defined(__linux__) || defined(__linux) || \ + defined(SHELL_IS_BASH) || defined(BIN_SHELL_IS_BASH) +#if defined(HAVE_SIGNAL) && defined(HAVE_KILL) && \ + defined(SIG_IGN) && defined(SIGKILL) /* * Linux signal handling is broken. This is caused by a bug in 'bash'. * Bash does jobcontrol even if called as "sh -ce 'command'". @@ -2029,6 +2215,7 @@ kill(-lpid, SIGKILL); /* Kill possible bash children */ kill(-getpgrp(), SIGKILL); /* Kill our process group */ #endif +#endif comexit(signo); } @@ -2096,7 +2283,11 @@ char *nbuf = pbuf; char *np; int nlen = strlen(name); +#ifdef HAVE_GETEXECNAME + char *pn = (char *)getexecname(); +#else char *pn = get_progname(); +#endif if (strchr(pn, '/') != NULL) { strncpy(nbuf, pn, sizeof (pbuf)); @@ -2161,6 +2352,27 @@ return (NULL); } +LOCAL int +put_env(new) + char *new; +{ + if (strncmp(new, "SHELL=", 6) == 0) + return (0); /* Never export SHELL */ + + return (putenv(new)); +} + +LOCAL int +unset_env(name) + char *name; +{ + if (strcmp(name, "SHELL") == 0) + return (0); /* Never unexport SHELL */ + + unsetenv(name); /* OpenBSD deviates and returns void */ + return (0); +} + #ifdef __DJGPP__ LOCAL char * strbs2s(s) @@ -2184,7 +2396,6 @@ EXPORT int putenv __PR((const char *new)); LOCAL int ev_find __PR((const char *s)); -extern char **environ; /* The environment array */ LOCAL BOOL ealloc = FALSE; /* TRUE if environ is already allocated */ /* @@ -2257,3 +2468,38 @@ return (-(++i)); } #endif /* HAVE_PUTENV */ + +#ifndef HAVE_UNSETENV + +EXPORT int unsetenv __PR((const char *name)); + +/* + * Our local unsetenv implementation for systems that don't have it. + */ +EXPORT int +unsetenv(name) + const char *name; +{ + register int i = 0; + register const char *ep; + register const char *s2; + + if (name == NULL || name[0] == '\0') + return (0); + + for (i = 0; environ[i] != NULL; i++) { + /* + * Find string in environment entry. + */ + for (ep = environ[i], s2 = name; *ep++ == *s2++; ) + ; + if (*--ep == '=' && *--s2 == '\0') + goto found; + } + return (0); +found: + for (; environ[i] != NULL; i++) + environ[i] = environ[i+1]; + return (0); +} +#endif /* HAVE_UNSETENV */ diff -Nru smake-1.2a41/smake/make.h smake-1.2a49/smake/make.h --- smake-1.2a41/smake/make.h 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/smake/make.h 2009-11-25 20:31:19.000000000 +0000 @@ -1,7 +1,7 @@ -/* @(#)make.h 1.78 07/03/07 Copyright 1985, 87, 91, 1995-2007 J. Schilling */ +/* @(#)make.h 1.90 09/11/25 Copyright 1985, 87, 91, 1995-2009 J. Schilling */ /* * Definitions for make. - * Copyright (c) 1985, 87, 91, 1995-2007 by J. Schilling + * Copyright (c) 1985, 87, 91, 1995-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -31,11 +31,15 @@ * XXX It may be a good idea to make "newtime" > RECURSETIME as * XXX the date of unknown targets is set to RECURSETIME before * XXX it is made. + * + * If we add new entries here, we need to also add a related entry + * to the function prtime(). */ #define NOTIME ((date_t)0) /* Obj not (yet) found */ #define BADTIME ((date_t)-1) /* Obj could not be made */ #define RECURSETIME ((date_t)-2) /* Obj depends on itself */ -#define PHONYTIME ((date_t)-3) /* Obj is Phony */ +#define MAKETIME ((date_t)-3) /* Obj is currently made */ +#define PHONYTIME ((date_t)-4) /* Obj is Phony */ /* * We may need to check whether PHONYTIME is a "valid" time... @@ -78,12 +82,14 @@ short o_fileindex; /* Makefile idx for this definition */ } obj_t; -#define F_READONLY 1 -#define F_CMDLINE 2 -#define F_EXPORT 4 -#define F_MULTITARGET 8 +#define F_READONLY 1 /* Prevents overwriting the value */ +#define F_CMDLINE 2 /* From commandline */ +#define F_EXPORT 4 /* Export to environment */ +#define F_MULTITARGET 8 /* Multiple targets for one rule */ #define F_DCOLON 16 /* Intermediate :: object */ #define F_TERM 32 /* Object is source of a TERM rule */ +#define F_PERCENT 64 /* o_name has % in pattern dep list */ +#define F_PATRULE 128 /* Pattern rule pointer in o_node */ /* * list element, used to build dependency lists from unique obj elements @@ -103,15 +109,16 @@ } cmd_t; /* - * element used to describe pattern rules (rules that contain a '%' sign) + * Element used to describe pattern rules (rules that contain a '%' sign) * format is: - * target: source (a%b: c%d) + * target: source (a%b: [ c%d ...]) * cmdlist */ typedef struct patrule { struct patrule *p_next; /* Next pattern rule */ struct cmd *p_cmd; /* List of commands for this rule */ struct obj *p_name; /* Node for complete target name */ + struct list *p_list; /* List of dependencies for rule */ int p_flags; /* Flags related to this rule */ #ifdef xxx struct obj *p_tgt_prefix; /* */ @@ -153,6 +160,7 @@ extern void setup_dotvars __PR((void)); extern char *searchtype __PR((int mode)); extern void doexport __PR((char *)); +extern void dounexport __PR((char *)); extern int docmd __PR((char * cmd, obj_t * obj)); extern BOOL move_tgt __PR((obj_t * from)); extern BOOL touch_file __PR((char * name)); @@ -185,8 +193,10 @@ * parse.c */ extern void parsefile __PR((void)); +extern char *get_var __PR((char *name)); extern void define_var __PR((char *name, char *val)); extern list_t *cvtvpath __PR((list_t *l)); +extern BOOL is_inlist __PR((char *objname, char *name)); extern BOOL nowarn __PR((char *name)); extern obj_t *objlook __PR((char * name, BOOL create)); extern list_t *objlist __PR((char * name)); @@ -194,7 +204,7 @@ extern BOOL check_ssufftab __PR((void)); extern void printtree __PR((void)); #ifdef EOF -extern void probj __PR((FILE *f, obj_t * o, int type)); +extern void probj __PR((FILE *f, obj_t * o, int type, int dosuff)); #endif extern void prtree __PR((void)); @@ -218,7 +228,8 @@ /* * memory.c */ -extern void *__realloc __PR((void *ptr, size_t size, char *msg)); +#undef ___realloc +extern void *___realloc __PR((void *ptr, size_t size, char *msg)); #ifdef DEBUG extern void prmem __PR((void)); #endif @@ -242,8 +253,8 @@ extern int XDebug; /* Print extended debug info */ extern int Dmake; /* Display makefile */ extern BOOL Prdep; /* Print include dependendy */ -extern BOOL NoWarn; /* Don't print warning Messages. */ -extern BOOL DoWarn; /* Print extra warnings */ +extern BOOL No_Warn; /* Don't print warning Messages. */ +extern BOOL Do_Warn; /* Print extra warnings */ extern char **MakeFileNames; /* List of pathnames of the Makefiles. */ extern int Mfileindex; /* Current index in MakeFileNames. */ @@ -261,7 +272,7 @@ extern obj_t *Init; /* .INIT: command to execute at startup */ extern obj_t *Done; /* .DONE: command do execute on success */ extern obj_t *Failed; /* .FAILED: command to execute on failure */ -extern obj_t *IncludeFailed; /* .INCLUDEFAILED: cmd to execute if missing */ +extern obj_t *IncludeFailed; /* .INCLUDE_FAILED: cmd to execute if missing */ extern obj_t *Deflt; /* .DEFAULT: command to execute if no rule */ extern obj_t *Precious; /* .PRECIOUS: list of targets not to remove */ extern obj_t *Phony; /* .PHONY: list of false targets, no check */ @@ -300,7 +311,7 @@ * Definitions for Makefile Index values * The values need to be kept in sync with initmakefiles() in make.c */ -#define MF_IDX_IMPICIT 0 /* Implicit rules */ +#define MF_IDX_IMPLICIT 0 /* Implicit rules */ #define MF_IDX_ENVIRON 1 /* Environment strings */ #define MF_IDX_MAKEFILE 2 /* Default make file */ -#define MF_IDX_BASE MF_IDX_DEFAULT +#define MF_IDX_BASE MF_IDX_MAKEFILE /* The base for -f makefiles */ diff -Nru smake-1.2a41/smake/memory.c smake-1.2a49/smake/memory.c --- smake-1.2a41/smake/memory.c 2006-10-12 15:17:37.000000000 +0100 +++ smake-1.2a49/smake/memory.c 2009-10-15 23:43:38.000000000 +0100 @@ -1,13 +1,14 @@ -/* @(#)memory.c 1.13 06/10/12 Copyright 1985-2006 J. Schilling */ +/* @(#)memory.c 1.21 09/10/16 Copyright 1985-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)memory.c 1.13 06/10/12 Copyright 1985-2006 J. Schilling"; +static UConst char sccsid[] = + "@(#)memory.c 1.21 09/10/16 Copyright 1985-2009 J. Schilling"; #endif /* * Make program * Memory allocation routines * - * Copyright (c) 1985-2006 by J. Schilling + * Copyright (c) 1985-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -23,6 +24,7 @@ #include #include +#include #include #include #include @@ -32,7 +34,7 @@ EXPORT char *gbufend; EXPORT int gbufsize; -EXPORT void *__realloc __PR((void *ptr, size_t size, char *msg)); +EXPORT void *___realloc __PR((void *ptr, size_t size, char *msg)); LOCAL char *checkalloc __PR((unsigned int size)); #ifdef DEBUG EXPORT void prmem __PR((void)); @@ -51,7 +53,7 @@ #endif EXPORT void * -__realloc(ptr, size, msg) +___realloc(ptr, size, msg) void *ptr; size_t size; char *msg; @@ -66,6 +68,12 @@ comerr("Cannot realloc memory for %s.\n", msg); /* NOTREACHED */ } +#ifdef DEBUG + if (heapanfang == 0) + heapanfang = ret; + if (heapende < (ret + size)) + heapende = ret + size; +#endif return (ret); } @@ -240,6 +248,18 @@ } /* + * INCR_GSIZE must be a multiple of INIT_GSIZE and INCR_GSIZE/INIT_GSIZE + * must be a value that is a power of two. + */ +#define INIT_GSIZE 512 /* Initial size of the gbuf */ +#define INCR_GSIZE 8192 /* Size to grow gbuf in incrementals */ + +#ifdef GROWTEST +#define INIT_GSIZE 4 /* Initial size of the gbuf */ +#define INCR_GSIZE 4 /* Size to grow gbuf in incrementals */ +#endif + +/* * Grow growable general purpose buffer. */ EXPORT char * @@ -250,11 +270,12 @@ register int newsize = gbufsize; if (gbufsize == 0) - return (initgbuf(512)); - if (newsize < 8192) + return (initgbuf(INIT_GSIZE)); + if (newsize < INCR_GSIZE) newsize *= 2; else - newsize += 8192; + newsize += INCR_GSIZE; + new = checkalloc((unsigned)newsize); movebytes(gbuf, new, gbufsize); free(gbuf); diff -Nru smake-1.2a41/smake/parse.c smake-1.2a49/smake/parse.c --- smake-1.2a41/smake/parse.c 2007-03-07 13:46:04.000000000 +0000 +++ smake-1.2a49/smake/parse.c 2009-11-25 20:37:44.000000000 +0000 @@ -1,13 +1,14 @@ -/* @(#)parse.c 1.87 07/03/07 Copyright 1985 J. Schilling */ +/* @(#)parse.c 1.103 09/11/25 Copyright 1985-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)parse.c 1.87 07/03/07 Copyright 1985 J. Schilling"; +static UConst char sccsid[] = + "@(#)parse.c 1.103 09/11/25 Copyright 1985-2009 J. Schilling"; #endif /* * Make program * Parsing routines * - * Copyright (c) 1985 by J. Schilling + * Copyright (c) 1985-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -21,8 +22,7 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include #include @@ -46,6 +46,7 @@ LOCAL void define_patrule __PR((obj_t * obj, list_t * dep, cmd_t * cmd, int type)); LOCAL void print_patrules __PR((FILE *f)); LOCAL obj_t *check_ssuffrule __PR((obj_t *obj, list_t *dep)); +EXPORT char *get_var __PR((char *name)); EXPORT void define_var __PR((char *name, char *val)); LOCAL int getobjname __PR((void)); LOCAL obj_t *getobj __PR((void)); @@ -63,6 +64,7 @@ LOCAL int exp_ovec __PR((obj_t ** ovec, int objcnt)); LOCAL int read_ovec __PR((obj_t ** ovec, int *typep)); EXPORT list_t *cvtvpath __PR((list_t *l)); +EXPORT BOOL is_inlist __PR((char *objname, char *name)); EXPORT BOOL nowarn __PR((char *name)); LOCAL void warn __PR((char *, ...)) __printflike__(1, 2); LOCAL void exerror __PR((char *, ...)) __printflike__(1, 2); @@ -71,10 +73,12 @@ EXPORT list_t *objlist __PR((char *name)); EXPORT obj_t *ssufflook __PR((char *name, BOOL create)); EXPORT BOOL check_ssufftab __PR((void)); +LOCAL void clear_ssufftab __PR((void)); +LOCAL BOOL is_suffix_rule __PR((obj_t *obj)); LOCAL void prvar __PR((obj_t * p)); LOCAL void ptree __PR((obj_t * p, int n)); EXPORT void printtree __PR((void)); -EXPORT void probj __PR((FILE *f, obj_t * o, int type)); +EXPORT void probj __PR((FILE *f, obj_t * o, int type, int dosuff)); EXPORT void prtree __PR((void)); LOCAL char *typestr __PR((int type)); LOCAL void printobj __PR((FILE *f, obj_t ** ovec, int objcnt, int type, list_t * deplist, cmd_t * cmdlist)); @@ -95,12 +99,12 @@ parsefile() { int i, objcnt; - int type; + int type = 0; /* init to make GCC quiet */ obj_t *ovec[MAXOBJS]; list_t *deplist; cmd_t *cmdlist; - if (DoWarn) + if (Do_Warn) error("Parsing file '%s'\n", mfname); if (Dmake > 0) @@ -163,6 +167,13 @@ /* XXX freeobj ??? */ continue; } + if (streql(ovec[0]->o_name, "unexport")) { + for (i = 1; i < objcnt; i++) { + dounexport(ovec[i]->o_name); + } + /* XXX freeobj ??? */ + continue; + } if (streql(ovec[0]->o_name, "readonly")) { for (i = 1; i < objcnt; i++) { ovec[i]->o_flags |= F_READONLY; @@ -272,7 +283,8 @@ * to make. */ if (n == 0 && !default_tgt && basetype(type) == COLON && - (obj->o_name[0] != '.' || obj->o_name[1] == SLASH)) + (obj->o_name[0] != '.' || obj->o_name[1] == SLASH || + (obj->o_name[1] == '.' && obj->o_name[2] == SLASH))) default_tgt = obj; if (type == DCOLON) @@ -297,7 +309,7 @@ (type != ADDMAC) && !streql(obj->o_name, ".SUFFIXES")) { - if (DoWarn) + if (Do_Warn) warn("'%s' RE-defined", obj->o_name); if (obj->o_fileindex == MF_IDX_ENVIRON) { obj->o_fileindex = Mfileindex; @@ -326,6 +338,19 @@ /* * Define an intermediate target for Double Colon :: Rules + * + * a:: b + * cmd_b + * a:: c + * cmd_c + * + * results in: + * a:: ::1@a ::2@a + * and + * ::1@a: b + * cmd_b + * ::2@a: c + * cmd_c */ LOCAL obj_t * define_dcolon(obj) @@ -342,23 +367,23 @@ if (obj->o_namelen + 16 >= namelen) { namelen = obj->o_namelen + 16; - name = np = __realloc(np, namelen, "dcolon target"); + name = np = ___realloc(np, namelen, "dcolon target"); } snprintf(name, namelen, "::%d@%s", ++serial, obj->o_name); o = objlook(name, TRUE); if (np) free(np); o->o_type = ':'; - o->o_flags |= F_DCOLON; + o->o_flags |= F_DCOLON; /* Mark as intermediate :: object */ l = obj->o_list; lo = (list_t *) fastalloc(sizeof (list_t)); lo->l_next = NULL; lo->l_obj = o; - listappend(obj, lo); + listappend(obj, lo); /* Append this intermediate to list */ - o->o_node = obj; - return (o); + o->o_node = obj; /* Make this inter. obj aux to orig */ + return (o); /* Return intermediate object */ } /* @@ -370,6 +395,8 @@ register obj_t *obj; register list_t *dep; { + if (streql(obj->o_name, ".SSUFFIX_RULES") && dep == NULL) + clear_ssufftab(); if (obj->o_list != (list_t *) NULL) { register list_t *l = obj->o_list; @@ -378,6 +405,7 @@ * Allow to clear special targets. */ if (streql(obj->o_name, ".SUFFIXES") || + streql(obj->o_name, ".SSUFFIX_RULES") || streql(obj->o_name, ".DEFAULT") || streql(obj->o_name, ".NO_WARN") || streql(obj->o_name, ".SCCS_GET") || @@ -386,7 +414,7 @@ return; } - if (DoWarn) + if (Do_Warn) warn("'%s' ADD-defined", obj->o_name); /* * if not already head of list, try to append ... @@ -417,10 +445,12 @@ { patr_t *p; char *s; + register list_t *l; p = (patr_t *) fastalloc(sizeof (*p)); p->p_name = obj; + p->p_list = dep; p->p_cmd = cmd; s = strchr(obj->o_name, '%'); if (s != NULL) { @@ -428,24 +458,36 @@ p->p_tgt_prefix = strsave(obj->o_name); p->p_tgt_suffix = strsave(&s[1]); *s = '%'; - } else { + } else { /* This can never happen! */ p->p_tgt_prefix = strsave(Nullstr); p->p_tgt_suffix = strsave(obj->o_name); } - s = strchr(dep->l_obj->o_name, '%'); - if (s != NULL) { - *s = '\0'; - p->p_src_prefix = strsave(dep->l_obj->o_name); - p->p_src_suffix = strsave(&s[1]); - *s = '%'; - } else { - p->p_src_prefix = strsave(Nullstr); - p->p_src_suffix = strsave(dep->l_obj->o_name); - } p->p_tgt_pfxlen = strlen(p->p_tgt_prefix); p->p_tgt_suflen = strlen(p->p_tgt_suffix); - p->p_src_pfxlen = strlen(p->p_src_prefix); - p->p_src_suflen = strlen(p->p_src_suffix); + + for (l = dep; l; l = l->l_next) { + if (strchr(l->l_obj->o_name, '%')) + l->l_obj->o_flags |= F_PERCENT; + } + if (dep == NULL) { + p->p_src_prefix = 0; + p->p_src_suffix = 0; + p->p_src_pfxlen = 0; + p->p_src_suflen = 0; + } else { + s = strchr(dep->l_obj->o_name, '%'); + if (s != NULL) { + *s = '\0'; + p->p_src_prefix = strsave(dep->l_obj->o_name); + p->p_src_suffix = strsave(&s[1]); + *s = '%'; + } else { + p->p_src_prefix = strsave(Nullstr); + p->p_src_suffix = strsave(dep->l_obj->o_name); + } + p->p_src_pfxlen = strlen(p->p_src_prefix); + p->p_src_suflen = strlen(p->p_src_suffix); + } p->p_flags = 0; if (type == DCOLON) p->p_flags |= PF_TERM; /* Make it a termiator rule */ @@ -465,10 +507,16 @@ cmd_t *c; while (p) { - fprintf(f, "%s%%%s:%s %s%%%s\n", + register list_t *l; + + fprintf(f, "%s%%%s:%s", p->p_tgt_prefix, p->p_tgt_suffix, - (p->p_flags & PF_TERM) ? ":":"", - p->p_src_prefix, p->p_src_suffix); + (p->p_flags & PF_TERM) ? ":":""); + + for (l = p->p_list; l; l = l->l_next) { + fprintf(f, " %s", l->l_obj->o_name); + } + printf("\n"); for (c = p->p_cmd; c; c = c->c_next) fprintf(f, "\t%s\n", c->c_line); @@ -514,6 +562,23 @@ } /* + * Get the macro value as in the form macro=value. + */ +EXPORT char * +get_var(name) + char *name; +{ + obj_t *o = objlook(name, FALSE); + + if (o == (obj_t *)NULL) + return ((char *)NULL); + + if (basetype(o->o_type) == EQUAL && o->o_list != NULL) + return (o->o_list->l_obj->o_name); + return ((char *)NULL); +} + +/* * Define a macro as in the form macro=value. * Value may only be one word. */ @@ -1013,7 +1078,7 @@ getch(); /* Skip white space. */ for (p = gbuf; lastc != EOF; getch()) { - if (lastc == '\n' && p[-1] != '\\') + if (lastc == '\n' && p > gbuf && p[-1] != '\\') break; if (p >= gbufend) p = growgbuf(p); @@ -1179,25 +1244,33 @@ *tail = (list_t *) NULL; freelist(lsave); } - if (DoWarn) + if (Do_Warn) error("VPATH but no .SEARCHLIST\n"); return (list); } EXPORT BOOL -nowarn(name) +is_inlist(objname, name) + char *objname; char *name; { list_t *l; - for (l = objlist(".NO_WARN"); l != NULL; l = l->l_next) { + for (l = objlist(objname); l != NULL; l = l->l_next) { if (streql(l->l_obj->o_name, name)) return (TRUE); } return (FALSE); } +EXPORT BOOL +nowarn(name) + char *name; +{ + return (is_inlist(".NO_WARN", name)); +} + /* * NOTE: as long as warn() and exerror() use the global vars * lineno, col and Mfileindex, @@ -1226,7 +1299,7 @@ #else va_start(args); #endif - if (!NoWarn) + if (!No_Warn) errmsgno(EX_BAD, "WARNING: %r in line %d col %d of '%s'\n", msg, args, lineno, col, mfname); @@ -1371,6 +1444,55 @@ } /* + * Clear all entries in SuffTab. + */ +LOCAL void +clear_ssufftab() +{ + int i; + + for (i = 0; i < MyObjTabSize; i++) + SuffTab[i] = NULL; + SSuffrules = FALSE; +} + +/* + * Check whether obj->o_name is a Suffix Rule. + * Name must either be identical to one of the .SUFFIXES (Single Suffix Rule) + * or a concatenation of two .SUFFIXES. + */ +LOCAL BOOL +is_suffix_rule(obj) + register obj_t *obj; +{ + list_t *l; + list_t *l2; + char *suffix; + char *rp; + int rlen; + + if (Suffixes == NULL) + return (FALSE); + + for (l = Suffixes; l; l = l->l_next) { + suffix = l->l_obj->o_name; + rlen = strlen(suffix); + if (strncmp(obj->o_name, suffix, rlen) == 0) { + rp = &obj->o_name[rlen]; + + if (*rp == '\0') /* Single Suffix Rule */ + return (TRUE); + + for (l2 = Suffixes; l2; l2 = l2->l_next) { + if (streql(rp, l2->l_obj->o_name)) + return (TRUE); + } + } + } + return (FALSE); +} + +/* * Used by ptree() to print one single object. */ LOCAL void @@ -1425,14 +1547,19 @@ /* * Currently only used by prtree() to implement the -p option. */ +#define SUFF_ONLY 1 /* Print only Suffix Rules */ +#define SUFF_SPECIAL 2 /* Print only special targets */ +#define SUFF_NONE 0 /* Print only plain target rules */ +#define SUFF_ANY -1 /* Print without filtering */ EXPORT void -probj(f, o, type) +probj(f, o, type, dosuff) FILE *f; obj_t *o; int type; + int dosuff; { for (; o; o = o->o_right) { - probj(f, o->o_left, type); + probj(f, o->o_left, type, dosuff); if (type >= 0 && type != o->o_type) continue; if (type < 0 && (o->o_type == ':' || o->o_type == '=')) @@ -1440,6 +1567,20 @@ if (Debug <= 0 && o->o_type == 0) continue; /* Ommit target only strings */ + if (dosuff >= 0) { + if (dosuff == SUFF_ONLY && !is_suffix_rule(o)) + continue; + else if (dosuff == SUFF_NONE && (is_suffix_rule(o) || + !(o->o_name[0] != '.' || o->o_name[1] == SLASH || + (o->o_name[1] == '.' && o->o_name[2] == SLASH)))) + continue; + else if (dosuff == SUFF_SPECIAL && (is_suffix_rule(o) || + (o->o_name[0] != '.' || o->o_name[1] == SLASH || + (o->o_name[1] == '.' && o->o_name[2] == SLASH)))) + continue; + + } + printobj(f, &o, 1, o->o_type, o->o_list, o->o_cmd); } } @@ -1456,19 +1597,27 @@ print_patrules(stdout); printf("# Implicit Suffix Rules:\n"); for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], ':'); + probj(stdout, ObjTab[i], ':', SUFF_ONLY); } printf("# Simple Suffix Rules:\n"); for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, SuffTab[i], ':'); + probj(stdout, SuffTab[i], ':', SUFF_ANY); + } + printf("# Special Targets:\n"); + for (i = 0; i < MyObjTabSize; i++) { + probj(stdout, ObjTab[i], ':', SUFF_SPECIAL); + } + printf("# Target Rules:\n"); + for (i = 0; i < MyObjTabSize; i++) { + probj(stdout, ObjTab[i], ':', SUFF_NONE); } printf("# Macro definitions:\n"); for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], '='); + probj(stdout, ObjTab[i], '=', SUFF_ANY); } printf("# Various other definitions:\n"); for (i = 0; i < MyObjTabSize; i++) { - probj(stdout, ObjTab[i], -1); + probj(stdout, ObjTab[i], -1, SUFF_ANY); } } diff -Nru smake-1.2a41/smake/readfile.c smake-1.2a49/smake/readfile.c --- smake-1.2a41/smake/readfile.c 2006-10-14 15:22:38.000000000 +0100 +++ smake-1.2a49/smake/readfile.c 2009-10-22 22:18:11.000000000 +0100 @@ -1,7 +1,8 @@ -/* @(#)readfile.c 1.54 06/10/14 Copyright 1985 J. Schilling */ +/* @(#)readfile.c 1.59 09/10/22 Copyright 1985-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)readfile.c 1.54 06/10/14 Copyright 1985 J. Schilling"; +static UConst char sccsid[] = + "@(#)readfile.c 1.59 09/10/22 Copyright 1985-2009 J. Schilling"; #endif /* * Make program @@ -21,8 +22,8 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include +#include #include #include #include @@ -224,7 +225,7 @@ /* * Diese Meldung ist noch falsch (Rekursion/Makefiles) */ - if (DoWarn) + if (Do_Warn) error("Reading file '%s' in line %d of '%s'\n", name, olineno, mfname); @@ -296,6 +297,21 @@ o = objlook(name, TRUE); + /* + * In order to work around a gmake bug, we need to write Makefiles that + * make an included file to depend on a previously included file in + * order to make gmake believe that a rule exists to make the included + * file. This is otherwise nonsense but it is in conflict with our + * strategy to reset o->o_date after the file has been included in + * order to force to re-evaluate the complete set of rules after + * everything has been read. In this special case, it looks as if the + * file could not be made as it depends on a "nonexistent" target. + * A solution is to fetch the time again before we decide how to go on. + */ + if (o->o_date == 0) { + o->o_date = gftime(name); /* Check if file is present */ + } + if (Debug > 1) error("doinclude(%s, %d)= date: %s level: %d\n", name, must_exist, prtime(o->o_date), o->o_level); diff -Nru smake-1.2a41/smake/rules.c smake-1.2a49/smake/rules.c --- smake-1.2a41/smake/rules.c 2006-09-13 20:00:56.000000000 +0100 +++ smake-1.2a49/smake/rules.c 2009-08-28 14:21:15.000000000 +0100 @@ -1,10 +1,11 @@ -/* @(#)rules.c 1.14 06/09/13 Copyright 1987 J. Schilling */ +/* @(#)rules.c 1.19 09/08/28 Copyright 1987-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)rules.c 1.14 06/09/13 Copyright 1987 J. Schilling"; +static UConst char sccsid[] = + "@(#)rules.c 1.19 09/08/28 Copyright 1987-2009 J. Schilling"; #endif /* - * Copyright (c) 1987 J. Schilling + * Copyright (c) 1987-2009 J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -18,8 +19,7 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include "make.h" @@ -32,7 +32,8 @@ #if defined(unix) || defined(IS_UNIX) || defined(IS_GCC_WIN32) || \ - defined(__EMX__) || defined(__BEOS__) || defined(__DJGPP__) + defined(__EMX__) || defined(__BEOS__) || defined(__HAIKU__) || \ + defined(__DJGPP__) # define _OS_ "\ @@ -97,4 +98,3 @@ #ifndef _OS_ ""; #endif - diff -Nru smake-1.2a41/smake/smake.1 smake-1.2a49/smake/smake.1 --- smake-1.2a41/smake/smake.1 2007-03-07 11:43:20.000000000 +0000 +++ smake-1.2a49/smake/smake.1 2009-12-06 16:38:45.000000000 +0000 @@ -1,4 +1,4 @@ -. \" @(#)smake.1 1.15 07/03/07 Copyright 1985-2007 J. Schilling +. \" @(#)smake.1 1.36 09/12/06 Copyright 1985-2009 J. Schilling . \" Manual page for smake . \" .if t .ds a \v'-0.55m'\h'0.00n'\z.\h'0.40n'\z.\v'0.55m'\h'-0.40n'a @@ -13,7 +13,7 @@ .if n .ds o oe .if n .ds u ue .if n .ds s sz -.TH SMAKE 1 "07/03/07" "J\*org Schilling" "Schily\'s USER COMMANDS" +.TH SMAKE 1 "09/12/06" "J\*org Schilling" "Schily\'s USER COMMANDS" .SH NAME smake \- maintain, update, and regenerate programs .SH SYNOPSIS @@ -30,31 +30,37 @@ .B Smake executes command sequences based on relations of modification dates of files. The command sequences are taken from a set of rules found in a -.I makefile +.B makefile or in the set of implicit rules. The argument .I target is typically a program that is to be built from the known rules. .PP If no -.I \-f +.B \-f option is present, .B smake looks for -.I SMakefile +.B SMakefile then for -.I Makefile +.B Makefile and then for -.I makefile +.B makefile in the named order. +If in POSIX mode, +.B smake +looks for +.BR makefile , " Makefile +and then for +.BR SMakefile . .PP If no .I target is specified on the command line, .B smake -uses the first target that could be found in +uses the first regular target that could be found in .I makefilename -and that does not start with a dot ('.'). +and that does not start with a dot ('.') letter combination. .PP If a .I target @@ -78,12 +84,17 @@ Unlike other make programs, .B smake includes a set of -.I automake +.B automake features that allow to implement portable, layered, object oriented makefiles. .PP .SH OPTIONS .TP +.BI \-C " dir +Change the working directory to +.I dir +before starting work. +.TP .B \-e Environment variables override macro definition in Makefile(s). .TP @@ -91,7 +102,7 @@ Ignore error codes returned by commands that are called from rules. This is equivalent to having the special target .B \&.IGNORE -inside a makefile. +without dependencies inside a makefile. .TP .B \-k Ignore errors by aborting work on the current target and continuing the @@ -105,10 +116,15 @@ make programs ignore this condition for unknown reason. .TP .B \-n -Don't make - only say what to do. +Don't make \- only say what to do. This prints the commands that would be executed on standard output. Lines with a plus sign ('+') will be executed in any case. Even those lines that have an at sign ('@') will be printed to standard output. +If a command line contains the macro +.B "$(MAKE)" +or +.B "${MAKE}" +this command line is executed even if there is no plus sign ('+'). This is the opposite to the .B \-s option. @@ -137,8 +153,8 @@ Be silent. (Do not print command lines or touch messages on standard output before they are executed.) This is equivalent to having the special target -.B \&.IGNORE -inside a makefile. +.B \&.SILENT +without dependencies inside a makefile. .TP .B \-t Touch objects instead of executing the defined commands. @@ -188,7 +204,7 @@ This includes the messages from the \-d flag and additional messages that allow to trace the execution of the various rules. If more 'd' characters are added (e.g. -.BR \-dddd ) the verbose level for tracing is enhanced. +.BR \-dddd ") the verbose level for tracing is enhanced." .TP .B \-xM Print the make file include dependency list. @@ -228,8 +244,6 @@ This is equivalent to having the special target .B \&.POSIX inside a makefile. -The \-posix option is not automatically propagated via -.BR MAKEFLAGS . .RS .PP See the description of the special target @@ -240,7 +254,7 @@ .BI \-f " makefilename, " mf= "makefilename, " mf= " makefilename Specifies the Makefile. .TP -.BI macro=value +.I macro=value Set a macro. A macro definition on command line overrides any other macro definition. .PP @@ -253,7 +267,19 @@ it is not possible to first make one target, then set a command line macro and then make the next target with different macro values, .B POSIX -does not specify the behaviour in this case anyway. +does not specify the behavior in this case anyway. + +.SH OPERANDS +The following operands are supported: +.TP +.I target +any number of target names. The targets are build in the order of occurence. +.TP +.I macro=value +A macro definition. Macro definitions from the command line overwrite regular macro +definitions in makefiles or taken from the environment. +.PP +All macro definitions are evaluated before any target it build. .\".SH "Arbeitsweise .SH BASICS \" Grundlagen @@ -328,7 +354,9 @@ .BR "explicit rule" . If the target and its prerequisites are named in an abstract way, the rule is called an -.BR "implicit rule" . +.B "implicit rule" +or an +.BR "inference rule" . .PP If .B smake @@ -339,7 +367,8 @@ specifying an implicit rule until a suitable rule is found. Each method is described in section .B "Makefile Format -below XXX Implicit Rules ???. +below or in the section +.BR "Implicit Rules" . . .TP \(bu @@ -374,7 +403,7 @@ .B \&.DEFAULT target entry, if such an entry exists in a makefile. .PP -A limited set of builtin rules is compiled into +A limited set of built in rules is compiled into .BR smake . A more complete set is read from the file .B \&./defaults.smk @@ -389,7 +418,13 @@ .BR SMakefile , " Makefile or .B makefile -in the current directory. +in the current directory and checks for the files in the named order. +If in POSIX mode, +.B smake +looks for +.BR makefile , " Makefile +and then for +.BR SMakefile . If a different makefile is specified with the .B \-f option, @@ -412,7 +447,7 @@ contains rules, macro definitions, special make directives and comments. A rule may either be a target rule (explicit rule) or an implicit rule. .B Smake -itself contains a number of built in implicit rules which are not used +itself contains or loads a number of built in implicit rules which are not used if the .B \-r option is used. The user specified @@ -424,12 +459,59 @@ set of commands from the last specification. A back slash ('\e') at the end of a line indicates that this line is to be continued on the next line. -XXX An escaped newline is replaced by a single space character -XXX and the white space at the beginning of the next line is removed. XXX +An escaped newline is replaced by a single space character +and the white space at the beginning of the next line is removed. A comment starts with a hash mark ('#') and ends if an un-escaped new line is found. .SS "Command Execution +.PP +Command lines associated with rules are sequentially executed line by line. +All commands are executed by the standard shell +.RB ( /bin/sh ), +they may use all constructs that +are permitted for a POSIX shell as long as the local shell supports them. +Command lines may have prefixes that are interpreted by +.B smake +before the rest of the command line is passed to the shell. +All characters from the list below that immediately follow the TAB character +are interpreted by +.BR smake . +The first character that is not from the list below is the first character +passed to the shell. +The following +prefixes are implemented: +.TP +.B \- +If the character '-' is amongst the prefix characters or of the +.B \-i +option has been specified or the special target +.B \&.IGNORE +has been specified with no dependencies or with the current +target in the list of dependencies, the exit code +from the command line is ignored. +.TP +.B + +If the character '+' is amongst the prefix characters, the command line +is executed even if one of the options +.BR \-n ", " \-q " or " \-t +was specified. +.TP +.B @ +If the character '@' is amongst the prefix characters or of the +.B \-s +option has been specified or the special target +.B \&.SILENT +has been specified with no dependencies or with the current +target in the list of dependencies, the command line +is not printed before it is executed. +.TP +.B ? +Reserved for future use (currently ignored). +.TP +.B ! +Reserved for future use (currently ignored). + .SS "Target rules .PP @@ -439,14 +521,13 @@ .RS .HP .IR target " .\|.\|." -.\".RB [ : \||\| :: ] -.B : +.RB [ : \||\| :: ] .RI [ dependency "] .\|.\|." .RB [ ; .IR command "] .\|.\|." .nf .RI "[ " command ] -\|.\|.\|. +\&\|.\|.\|. .fi .RE .PP @@ -455,13 +536,15 @@ .I target name or a white space separated list of .IR "target names" , -in both cases followed by a target separator -(':'). +in both cases followed by colon as a target separator +(':') or by a double colon ('::'). The colon may be followed by a .I dependency name or a white space separated list of .IR "dependency names" . +The double colon allows to specify alternate dependency lists and +commands for the same target. The dependency list may be followed by a semicolon (';') and a Bourne shell .IR command . @@ -476,20 +559,116 @@ .SS "Make directives .PP .TP +.BI export " macro .\|.\|. +The list of macros that follows the .B export -XXX lkfglsdfg +directive is exported in the list of environment variables. +If an environment variable with the same name already exists, +it's value is replaced by the current value of the related make macro. +An empty list of macro names is not considered an error. +If the +.B PATH +macro is in the list of parameters, the path search of the current +.B smake +process is also affected. +If the +.B SHELL +macro is in the list of parameters, it is ignored and the +previous +.B SHELL +environment is kept. .TP +.BI include " filename .\|.\|. +Reading and parsing makefiles is temporarily continued with the list of +the file name parameters to the .B include -XXX lkfglsdfg +directive. +If one or more file names from the parameter list contains make macro expressions, +the macro expressions are evaluated before the file names are used. +A single make macro may contain a list of include file names. +If +.B smake +knows rules to +.B make +the files to include, +.B smake +will evaluate the related rules before doing the include. +Include directives may be nested as long as there are unsued file descriptors. +An empty list of filenames is not considered an error. +If one or more files from the parameter list do not exist, +.B smake +aborts. .TP +.BI \-include " filename .\|.\|. +The .B \-include -XXX lkfglsdfg +directive is implemented similar to the +.B include +directive, except that a nonexistent file is not considered to be an error. .TP -.B readonly -XXX sdfsdfsda +.BI readonly " macro .\|.\|. +Mark the list of macros in the parameter list as +.BR readonly . +This prevents further modification of the content of the related macros. +An empty list of macro names is not considered an error. +.TP +.BI unexport " macro .\|.\|. +The list of macros that follows the +.B unexport +directive is removed from the list of environment variables. +An empty list of macro names is not considered an error. +If the +.B PATH +macro is in the list of parameters, the path search of the current +.B smake +process is also affected. +If the +.B SHELL +macro is in the list of parameters, it is ignored and the +previous +.B SHELL +environment is kept. +.SH "Automake Features +.PP +.B Smake +implements +.B automake +features that help to write highly portable makefile systems. The +.B automake +features are implemented with a set of special purpose macros and by special +rules that help to extend the functionality and automated adaptivity of +.BR smake . +.SS "Automake special purpose macros +.PP +The special purpose macros that have names that match +.B "MAKE_* +(see section +.BR "Special Macros" ) +are part of the +.B automake +features of smake. +The related special macros are set up by +.B smake +to contain values that have been retrieved from the results of the +.BR uname (2), +.BR sysinfo (2) +or +.BR sysctl (2) +system calls. +The values for these macros may however be overwritten from a makefile +or from a command line macro definition. +.SS "Automake special targets +.PP +The special target +.B \&.INCLUDE_FAILED +allows to define a rule that is evaluated in case that an include +files does not exist and could not be made from other rules. +As the asociated command for this target is typically a shell script, +the shell script can be written to create fall back rules in a platform +independent way. -.SH "SEARCHING RULES FOR FILES" +.SH "Search Rules For Files" .PP In many cases, it is desirable to hold object files in a special directory which is different from the directory where the source @@ -591,15 +770,146 @@ .BR \&.SEARCHLIST: . Please report problems with this solution. -.SH "VARIABLE SUBSTITUTION" -Any variable defined by a line in the form: +.br +.ne 10 +.SH Macros +.SS "Macro Definitions" +Macros are defined by a line in the form: +.PP +.BI macroname= " value" +.PP +The value assigned to the macro contains all characters after the equal sign +up to a comment character ('#') or an unescaped newline. Any blank characters that +directly follow the equal sign are ignored. +.PP +An alternate macro definitions use the form: +.PP +.BI "macroname +=" " value" +.PP +to append +.B value +to the current definition for +.BR macroname . +Note that there needs to be white space before the '+=' as +.B smake +allows macro names like +.BR C++ . +.PP +A macro definition that uses the form: +.PP +.BI macroname:= " value" +.PP +will evaluate the right side of the assignment when the line is read by the parser. +Note that SunPro make uses +.B := +for a different incompatible purpose. A makefile that uses +.B := +is non-portable. +.PP +A macro definition that uses the form: .PP -.BI varname= " val" +.BI macroname:sh= " command" .PP -may referenced by either: -.BI $( varname ) +will call +.I command +and define the macro value to be the output of +.I command +when the line is read by the parser. +.SS "Macro References" +.PP +Macros may be referenced by either: +.BI $( macroname ) or -.BI ${ varname }. +.BI ${ macroname }. +The parentheses or braces are optional for a macro with a single character name. +.PP +Macro definitions and macro references can appear anywhere in the makefile. Macro +references are expanded under the following circumstances: +.TP +\(bu +Macros in target lines are evaluated when the target line is read by the parser. +.TP +\(bu +Macros in command lines for rules are evaluated when the command is executed. +.TP +\(bu +Macros in the string before ':', '::', '=' or '+=' (names for target or macro +definitions) +are evaluated when the target line is read by the parser. +.TP +\(bu +Macro references after the equal sign in a macro definition are not evaluated +until the defined macro itself is used in a rule or a command or to the left of +the equal sign from a macro definition. +.SS "Macro Substitution" +.PP +Macro references may be used to substitute macro values. +There are different methods for macro substitution. +.SS "Suffix Replacement Macro References" +.PP +A macro reference in the following form: +.PP +.B + $(\fIname\fP:\fIsubst1\fP=\fIsubst2\fP) +.PP +is used to replace the suffix or word +.B subst1 +in the value of the macro +.B name +by +.BR subst2 . +Words are separated by space or tab characters. + +.SS "Pattern Replacement Macro References" +.PP +A macro reference in the following form: +.PP +.B + $(\fIname\fP:\fIop\fP%\fIos\fP=\fInp\fP%\fIns\fP) +.PP +is used to replace prefixes and suffixes in words. In this case, +.I op +is the old prefix, +.I os +is the old suffix, +.I np +is the new prefix +and +.I ns +is the new suffix. +The strings +.IR op , +.IR os , +.I np +and +.I ns +may all be empty strings. +The pattern % matches a string of zero or more characters. +The matched pattern is carried forward to the replacement target. +For example: +.PP +.B OBJECT=foo.o +.br +.B SCCS_HISTFILE=$(OBJECT:%.o=SCCS/s.%.c) +.PP +replaces +.B foo.o +by +.B SCCS/s.foo.c +when the macro +.B $(SCCS_HISTFILE) +is referenced. +.SS "Shell Replacement Macro References" +.PP +A macro reference in the following form: +.PP +.B + $(\fIname\fP:sh) +.PP +will interpret the content of the macro +.I name +as a shell command line, call the shell with the content of the macro +and return the output of the called command. .SH "Special Targets" .\".TP @@ -654,34 +964,52 @@ .\"mode. .TP .B \&.IGNORE: -Ignore errors. If this special target is present, -.B smake -behaves as if it was called with the \-i flag. -.sp -.SM POSIX -requires that +Ignore errors. +When this special target is present and has no dependencies, +.B smake +will ignore errors from commands. +Specifying .B \&.IGNORE: -only applies to some targets if they are in the list of dependencies -of the -.B \&.IGNORE -target. -.B Smake -currently does not implement this -.SM POSIX -behaviour. +without dependencies is equivalent to using the +.B \-i +option. +If +.B \&.IGNORE: +has dependencies and the current target is in the list of dependencies +of +.B \&.IGNORE: +the exit code for the related commands is ignored. .TP -.B \&.INCLUDEFAILED: +.B \&.INCLUDE_FAILED: This special target implements .B automake features for object oriented layered makefiles. If this target is present, .B smake executes the commands for this target -if a make file could not be included and there -was no rule that could create the the missing make include file. +in case that a make file could not be included and there +was no other explicit or implicit rule that did create the the missing +make include file. The -.B \&.INCLUDEFAILED +.B \&.INCLUDE_FAILED target may not have a dependency list. +When the commands for the target +.B \&.INCLUDE_FAILED +are called, the dependency list of the special target is set up to +the include file name. +The commands for the target +.B \&.INCLUDE_FAILED +are called for both, the +.B include +and the +.B \-include +directive. If the commands for the +.B \&.INCLUDE_FAILED +target cannot create a file that is going to be included, +.B smake +will fail in case that the +.B include +directive was used. .TP .B \&.INIT: If this target is present, the target and its dependencies are built before @@ -783,13 +1111,27 @@ With this option the verbose command lines written to the .I stdout stream are prefixed by a TAB character instead of three dots (...). +I POSIX mode, +.B smake +also calls commands via +.B "/bin/sh \-c 'cmd' +instead of +.BR "/bin/sh \-ce 'cmd'" . +This causes +.B smake +not to stop at failing sub commands in complex commands. If the +.B \&.POSIX: +special target is used, it is highly recommended to also specify +.B "MAKE_SHELL_FLAG=\-ce +to make sure that the make process still stops at failed commands. .RE .TP .B \&.PRECIOUS: This macro holds a list of targets that should not be removed while they are built if -.B sake +.B smake receives a signal. +If the list is empty, this applies to all targets. .TP .B \&.PHONY: This macro holds a list of targets that should not be checked against existing @@ -839,7 +1181,21 @@ .BR \&.SEARCHLIST . .TP .B \&.SILENT: -Reserved for future use. +Run silently. +When this special target is present and has no dependencies, +.B smake +will not echo commands before executing them. +Specifying +.B \&.SILENT: +without dependencies is equivalent to using the +.B \-s +option. +If +.B \&.SILENT: +has dependencies and the current target is in the list of dependencies +of +.B \&.SILENT: +the related commands are not echoed before they are executed. .TP .B \&.SPACE_IN_NAMES: If this target is present and has a dependency list, escaped @@ -852,6 +1208,7 @@ The following code fragment allows to use non standard space handling for one target only: .sp +.ne 7 .RS .BR \&.SPACE_IN_NAMES: " true .sp @@ -863,6 +1220,11 @@ .br .RE .TP +.B \&.SSUFFIX_RULES: +If this special macro is present with no dependencies, all current +.B Simple Suffix Rules +are cleared. +.TP .B \&.SUFFIXES: Dependencies of .B \&.SUFFIXES @@ -872,6 +1234,9 @@ If .B \&.SUFFIXES does not have any dependencies, the list of known suffixes is cleared. +If the list of +.B \&.SUFFIXES +was cleared, no implicit suffix rule search is done. .TP .B \&.SYM_LINK_TO: Reserved for future use. @@ -899,6 +1264,8 @@ program. Use .B $(MAKE_NAME) instead. +If a command line contains this macro, +this command line is executed even if there is no plus sign ('+'). . .TP .B MAKEFLAGS @@ -938,7 +1305,7 @@ A typical content may look this way: .br -.BR "CC=gcc COPTX=-DTEST\e -DDEBUG" . +.BR "CC=gcc COPTX=\-DTEST\e \-DDEBUG" . .sp If both command line flags and command line macros are used, the flag part is made as if there were only flags and the macro part @@ -948,7 +1315,7 @@ A typical content may look this way: .br -.BR "\-id -\|- CC=gcc COPTX=-DTEST\e -DDEBUG" . +.BR "\-id -\|- CC=gcc COPTX=\-DTEST\e \-DDEBUG" . .sp As the .B MAKEFLAGS @@ -1016,6 +1383,44 @@ .BR smake . It contains the host name of the current machine (e.g. duffy, sherwood, ghost). +.TP +.B MAKE_HOST_OS +This macro is set up by +.B smake +as part of the +.B automake +features of +.BR smake . +It contains the host OS name from +.B uname \-Hs +of the current machine in case that there +is a layered OS like Cygwin (e.g. windows). +. +.TP +.B MAKE_HOST_OSREL +This macro is set up by +.B smake +as part of the +.B automake +features of +.BR smake . +It contains the host OS release from +.B uname \-Hr +of the current machine in case that there +is a layered OS like Cygwin (e.g. 5.1). +. +.TP +.B MAKE_HOST_OSVERSION +This macro is set up by +.B smake +as part of the +.B automake +features of +.BR smake . +It contains the host OS version from +.B uname \-Hv +of the current machine in case that there +is a layered OS like Cygwin (e.g. sp2). . .TP .B MAKE_MACH @@ -1082,7 +1487,7 @@ features of .BR smake . It contains operating system specific defines for the compiler -(e.g. -D__SVR4). +(e.g. \-D__SVR4). . .TP .B MAKE_OSREL @@ -1118,12 +1523,43 @@ (e.g. 1920098175). . .TP +.B MAKE_SHELL_FLAG +This macro contains the shell flags used when calling commands from +.BR smake . +The default value is +.BR \-ce , +When +.B smake +in in POSIX mode, +the default value is +.BR \-c. +The +.B MAKE_SHELL_FLAG +macro allows to overwrite the default behavior. +. +.TP +.B MAKE_SHELL_IFLAG +This macro contains the shell flags used when calling commands from +.BR "smake \-i" . +The default value is +.BR \-c . +The +.B MAKE_SHELL_IFLAG +macro allows to overwrite the default behavior. +. +.TP .B MAKE_VERSION This macro contains the .B smake version number string. . .TP +.B NUMBER_SIGN +This macro is predefined to contain the number sign ('#') that is used as +the make comment start character and for this reason cannot be appear +in non comment parts of regular makefiles. +. +.TP .B SHELL . The @@ -1142,7 +1578,7 @@ this functionality is implemented using the .B \&.SEARCHLIST: special target, see chapter -.B "SEARCHING RULES FOR FILES" +.B "Search Rules For Files" for more information. .SH "Dynamic Macros" @@ -1202,7 +1638,7 @@ It is expanded for implicit rules only. This macro is available with .B smake -only. It is made available to make the behaviour more orthogonal. +only. It is made available to make the behavior more orthogonal. .TP .B $1 $2 $3 ... expands to the path name of the nth file in the dependency list. @@ -1245,35 +1681,108 @@ .PP cc \-o foo OBJ/main.o parser/OBJ/lex.o parser/OBJ/parse.o -.SH "IMPLICIT RULES" +.SH "Implicit Rules" +.PP +If there is no explicit target rule for a specific target, +.B smake +tries to find a matching implicit rule. +There are three different types of implicit rules. +.B "Pattern Matching Rules" +are searched first. If no matching pattern matching rule could be found, the +.B "Suffix Rules" +are checked and if there was no matching +suffix rule, the +.B "Simple Suffix Rules" +are checked. +.PP +Commands defined for implicit rules of any type typically make use of the +dynamic macros +.BR $@ , +.BR $* " and +.B $< +as placeholders for target and dependency file names. + .SS "Pattern Matching Rules" .PP -Pattern matching rules have first been found in Sun's SunPRO make. -They are now also inplemented in GNU make and +Pattern matching rules have been introduced by SunPRO make on SunOS-3.x +in 1986. +They are now also implemented in .BR smake . +Pattern matching rules are searched in the same order as they appear in the +makefile. .PP A pattern matching rule looks this way: .PP .ne 3 .RS -\f3tp%\f2ts\f1\|: \f2dp\f3%\f2ds\f1 .HP -.I target_suffix -.B : -.IR dependency_1_suffix " .\|.\|." +\f2tp\f3%\f2ts\f1\|: \f2dp\f3%\f2ds\f1 .nf - dependency_command +.RI " " command +\&\|.\|.\|. +.fi +.RE +.sp +In this rule, +.I tp +is the target prefix, +.I ts +is the target suffix, +.I dp +is the dependency prefix +and +.I ds +is the dependency suffix. +Any of the parts may be a null string. +The +.B % +part of the strings is the base name that matches zero or more characters +in the target name. +Whenever +.B smake +encounters a match with a target pattern of a pattern matching rule, it +uses the matching base name to construct dependency names. If the target +is out of date relative to the dependency, +.B smake +uses the commands from the pattern matching rule to build or rebuild the +target. +.sp +A rule in the form: +.PP +.ne 3 +.RS +.HP +\f2tp\f3%\f2ts\f1\|: +.nf +.RI " " command \&\|.\|.\|. .fi .RE -XXXXX -XXXXX falsch !!! +.sp +is permitted. .SS "Suffix Rules" .PP Suffix rules are the POSIX way of spefifying implicit dependencies. +Suffix rules are searched when no pattern matching rule applies. +If the special target +.B .SUFFIXES: +was cleared or is empty, +.B smake +does not check suffix rules. +If +.B .SUFFIXES: +defines a list of suffixes, the current target file name is checked against +this list. If there is a match, the list of suffix rules is checked against +the target suffix and a dependency suffix that is also in the +.B .SUFFIXES: +list. The search order is derived from the order of suffixes in the suffix +list while matching dependency suffixes. +A suffix does not need to begin with a +.B '\&.' +to be recognized. .PP -A Suffix rule looks this way: +A Double Suffix rule looks this way: .PP .ne 3 .RS @@ -1284,9 +1793,34 @@ \&\|.\|.\|. .fi .RE -XXXXX falsch !!! +.PP +.B Ds +is the dependency suffix and +.B Ts +is the target suffix. +They are used when both target file name and dependency file name have a suffix. +Double Suffix rules are searched before Single Suffix rules are checked. +.PP +A Single Suffix rule looks this way: +.PP +.ne 3 +.RS +.HP +.IB Ds : +.nf + dependency_command +\&\|.\|.\|. +.fi +.RE +.PP +.B Ds +is the dependency suffix. +Single Suffix rules are used when the target file name does not have a suffix. + .SS "Simple Suffix Rules" .PP +Simple suffix rules have the lowest preference when looking for +implicit rules. Simple suffix rules are specific to .BR smake. .PP @@ -1311,7 +1845,7 @@ no dependency suffix exists. The first line is followed by exactly the same number of Bourne shell command lines (each starting with a TAB) as there were dependency -suffix specification in the first line. +suffix specifications in the right side of the first line. Each of the Bourne shell command lines correspond to one of the .I dependency suffixes in the same order. @@ -1368,14 +1902,16 @@ is executed. Which command is executed depends on which source file exists. -.SH "DEFAULT RULES" +.SH "DEFAULT IMPLICIT RULES" .PP -Changing the implicit rules allows to change the default behaviour +Changing the implicit rules allows to change the default behavior of .BR smake . +.SS "Default Simple Suffix Rules" .PP The current default implicit rules are using the simple suffix rule -notation: +notation are compiled into +.BR smake : .PP .nf .BI FC= f77 @@ -1405,15 +1941,156 @@ .B $(ROFF) $(RFLAGS) $0 > $@ .fi +.PP +If +.B smake +reads a file +.B defaults.smk +with default implicit rules, the compiled in rules are disabled. -.SH "COMMAND EXECUTION" +.SH "ENVIRONMENT VARIABLES +On startup, +.B smake +reads all environment variables (except the +.B SHELL +environment) into make macros. +The following environment variables affect the behavior of +.BR smake . +.TP 12 +.B LANG +Sets up a default value for internationalization variables that are unset or NULL: +.TP +.B LC_ALL +If set, this overrides any other internationalization variables. +.TP +.B LC_CTYPE +Determine the the interpretation of byte sequences. +.TP +.B LC_MESSAGES +Determine the diagnostic messages. +.TP +.B MAKE_LEVEL +This variable is managed by +.B smake +to track nested +.B smake +calls. +It is initialized with 1 and exported. Nested calls to +.B smake +increment the level. +.TP +.B MAKEFLAGS +This variable is set up by +.B smake +in order to forward command line options to nested calls to +.BR smake . +In order to do this, +.B smake +sets the content of the +.B MAKEFLAGS +variable to contain a list of single character option letters. +The option +.B \-f +is not forwarded via the +.B MAKEFLAGS +environment. +If command line macro definitions in the form +.IR name=value +have been specified, the list of option letters is followed +by the string "\ --\ " and by a list of macro definitions. +.sp +If any of the +.IR name=value +command line macro definitions contains a space ('\ ') or a +backslash ('\e'), these characters are escaped by a single +backslash. +.sp +As required by POSIX, +.B smake +accepts all possible variants of formatting the content of the +.B MAKEFLAGS +environment. +.sp +See section +.B "Special Macros +for more information on the +.B MAKEFLAGS +environment. +.TP +.B PATH +The +.B PATH +environment variable is used by +.B smake +when calling commands. When +.B PATH +is modified, this may cause that specific commands cannot be found +or that a different implementation with different behavior is found +instead. +.TP +.B PROJECTDIR +This enviroment variable controls the way SCCS history files are searched for. +See +.BR sccs (1) +for more information. + +.SH "ASYNCHRONOUS EVENTS .PP -All commands are executed by the standard shell -.RB ( /bin/sh ). -They may use all constructs that -are permitted for a POSIX shell as long as the local shell supports them. +If not already ignored by the shell, +.B smake +catches +.BR SIGHUP , +.BR SIGINT , +.B SIGQUIT +and +.B SIGTERM +and removes the current target unless the current target is a directory, +the current target is a prerequisite of the special target +.B .PRECIOUS +or the special target +.B .PHONY +or one of the options: +.BR \-t , +.BR \-q , +.B \-p +or +.BR \-n +have been specified. -.SH ENVIRONMENT +.SH "EXIT STATUS +.PP +When the +.B \-q +option is specified, +.B smake +exits with one of the following values: +.TP +.B 0 +Successful completion. +.TP +.B 1 +The target was not up-to-date. +.TP +.B -1 (255) +A command line usage error or makefile parsing error occurred. +.TP +.B >0 +An error occurred. +.PP +When the +.B \-q +option is not specified, +.B smake +exits with one of the following values: +.TP +.B 0 +Successful completion. +.TP +.B -1 (255) +A command line usage error or makefile parsing error occurred. +.TP +.B >0 +An error occurred. .SH FILES .PP @@ -1451,6 +2128,10 @@ .SH "SEE ALSO .BR sh (1), +.BR sccs (1), +.BR sysctl (2), +.BR sysinfo (2), +.BR uname (2), .BR makefiles (4), .BR makerules (4) @@ -1482,7 +2163,7 @@ with a backslash to keep all commands on one virtual shell command line. .PP .B Smake -will in the near future be as +tries to be as .B POSIX compliant as possible. .PP @@ -1496,7 +2177,7 @@ Note that adding something to a macro definition is supported by all known .I make -implementation since ~ 1980. +implementations since ~ 1980. In addition, it is most unlikely that different @@ -1511,20 +2192,25 @@ .SH BUGS .PP -Pattern matching rules, POSIX suffix rules and the .DEFAULT target -have recently been implemented. There may be bugs in the code. .B SCCS retrieval is not yet implemented. .PP -Built in library handling is not implemented. +A '+' character does not cancel the +.B \-t +option, the commands are not executed. .PP -There are currently no other known bugs, but as -.B smake -since 1994 has mainly been used with the -the SCHILY (Sing) makefile system, there may be bugs with -other makefiles. +A command line that contains the macro +.B "$(MAKE)" +is always executed, even when in POSIX mode. +This is conflict with the POSIX standard since POSIX.1-2008. .PP -In any case, +Built in library handling is not yet implemented. +.PP +There are currently no other known bugs. +As +.B smake +since spring 1993 is used as the reference make program for +the SCHILY (Sing) makefile system, .B smake is the best choice when compiling projects that are using the SCHILY (Sing) makefile system. @@ -1540,10 +2226,4 @@ Mail bugs and suggestions to: .PP .B -joerg@schily.isdn.cs.tu-berlin.de -or -.B -js@cs.tu-berlin.de -or -.B -schilling@fokus.gmd.de +joerg.schilling@fokus.fraunhofer.de diff -Nru smake-1.2a41/smake/update.c smake-1.2a49/smake/update.c --- smake-1.2a41/smake/update.c 2007-03-08 10:29:16.000000000 +0000 +++ smake-1.2a49/smake/update.c 2009-12-03 22:31:15.000000000 +0000 @@ -1,13 +1,14 @@ -/* @(#)update.c 1.102 07/03/08 Copyright 1985, 88, 91, 1995-2007 J. Schilling */ +/* @(#)update.c 1.119 09/12/03 Copyright 1985, 88, 91, 1995-2009 J. Schilling */ +#include #ifndef lint -static char sccsid[] = - "@(#)update.c 1.102 07/03/08 Copyright 1985, 88, 91, 1995-2007 J. Schilling"; +static UConst char sccsid[] = + "@(#)update.c 1.119 09/12/03 Copyright 1985, 88, 91, 1995-2009 J. Schilling"; #endif /* * Make program * Macro handling / Dependency Update * - * Copyright (c) 1985, 88, 91, 1995-2007 by J. Schilling + * Copyright (c) 1985, 88, 91, 1995-2009 by J. Schilling */ /* * The contents of this file are subject to the terms of the @@ -21,12 +22,12 @@ * file and include the License file CDDL.Schily.txt from this distribution. */ -#include -#include +#include #include #include #include /* for free() */ #include +#include #include #include #include "make.h" @@ -89,7 +90,7 @@ LOCAL obj_t *ssuff_src __PR((char *name, obj_t * rule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); LOCAL obj_t *findsrc __PR((obj_t *obj, obj_t * rule, int *rtypep, char ** suffixp, cmd_t ** pcmd, int dlev)); LOCAL date_t default_cmd __PR((obj_t * obj, char *depname, date_t deptime, int deplevel, BOOL must_exist, int dlev)); -LOCAL date_t make __PR((obj_t * obj, BOOL lust_exist, int dlev)); +LOCAL date_t make __PR((obj_t * obj, BOOL must_exist, int dlev)); EXPORT BOOL domake __PR((char *name)); EXPORT BOOL omake __PR((obj_t * obj, BOOL must_exist)); EXPORT BOOL xmake __PR((char *name, BOOL must_exist)); @@ -146,7 +147,7 @@ char *ns = name; if (XDebug > 0) - error("copy_dir(name:'%s', dir:'%s', dsize: %d) fn: '%s' \n", + error("copy_dir(name:'%s', dir:'%s', dsize: %zd) fn: '%s' \n", name, dir, dsize, p); *dir = '\0'; if (p == name) { @@ -230,7 +231,8 @@ } /* - * Return TRUE if 'obj' is in the list of targets that should not be removed. + * Return TRUE if 'obj' is in the list of targets that should not be removed + * or of the list of dependencies for .PRECIOUS is empty. */ EXPORT BOOL isprecious(obj) @@ -241,6 +243,9 @@ if (Precious == (obj_t *)NULL) return (FALSE); + if (Precious->o_list == NULL) + return (TRUE); + for (l = Precious->o_list; l; l = l->l_next) if (obj == l->l_obj) return (TRUE); @@ -302,10 +307,15 @@ #ifdef DEBUG if (Debug > 1) { register cmd_t *cmd; + register list_t *l; - printf("name: %s (%s %% %s): (%s %% %s)\n", name, + printf("name: %s (%s %% %s):%s ", name, prule->p_tgt_prefix, prule->p_tgt_suffix, - prule->p_src_prefix, prule->p_src_suffix); + (prule->p_flags & PF_TERM) ? ":":""); + + for (l = prule->p_list; l; l = l->l_next) + printf(" %s", l->l_obj->o_name); + printf("\n"); for (cmd = prule->p_cmd; cmd; cmd = cmd->c_next) { printf("\t%s\n", cmd->c_line); @@ -373,7 +383,7 @@ */ rlen = strlen(suffix) + l2->l_obj->o_namelen + 16; - rule = rp = __realloc(rp, rlen, + rule = rp = ___realloc(rp, rlen, "suffix rule name"); goto again; } @@ -563,7 +573,7 @@ if (namelen >= psize) { psize = namelen + 1; - path = __realloc(NULL, psize, "build path name"); + path = ___realloc(NULL, psize, "build path name"); } n = snprintf(path, psize, "%s%s%s", dirname, slash, name); if (n >= psize) @@ -593,10 +603,25 @@ */ static char *sub_ptr = (char *)NULL; +/* + * Check whether a pointer is inside the growable buffer (gbuf) + * + * ison_gbuf(p) depends on the global variables "gbuf" and "gbufend" + * wason_gbuf(p) depens on local copies in "sb" and "sbe" that hold + * old values. + */ +#define ison_gbuf(p) ((p) >= gbuf && (p) < gbufend) +#define wason_gbuf(p) ((p) >= sb && (p) < sbe) + LOCAL void grant_gbuf(size) int size; { + /* + * In order to simplify code we add the space needed for the null byte. + */ + size++; + while (sub_ptr + size >= gbufend) sub_ptr = growgbuf(sub_ptr); } @@ -609,9 +634,16 @@ char *chunk; int size; { + char *sb = gbuf; + char *sbe = gbufend; + grant_gbuf(size); + if (sb != gbuf && wason_gbuf(chunk)) { + chunk = gbuf + (chunk - sb); + } movebytes(chunk, sub_ptr, size); sub_ptr += size; + *sub_ptr = '\0'; /* Null terminate the gbuf string */ } /* @@ -623,6 +655,7 @@ { grant_gbuf(1); *sub_ptr++ = c & 0xFF; + *sub_ptr = '\0'; /* Null terminate the gbuf string */ } /* @@ -809,12 +842,7 @@ case '*': if (obj->o_namelen >= blen) { blen = obj->o_namelen + 1; - base = bp = __realloc(bp, blen, "base name"); - } - if (suffix == NULL) { - copy_base(obj->o_name, base, blen, suffix); - if (!nowarn("$*")) - warn_implicit(obj, "$*", base); + base = bp = ___realloc(bp, blen, "base name"); } #ifdef used_to_be_in_former_versions copy_base(filename(obj->o_name), base, blen, suffix); @@ -827,7 +855,16 @@ "WARNING: Old: convert $* from '%s' -> '%s'\n", obj->o_name, filename(obj->o_name)); } - copy_base(obj->o_name, base, blen, suffix); + if (obj->o_flags & F_PATRULE) { + patr_t *pr = (patr_t *)obj->o_node; + + copy_base(obj->o_name+pr->p_tgt_pfxlen, base, blen, + pr->p_tgt_suffix); + } else { + copy_base(obj->o_name, base, blen, suffix); + if (suffix == NULL && !nowarn("$*")) + warn_implicit(obj, "$*", base); + } sub_s_put(base); /* $* -> target name base */ break; case '<': @@ -1022,7 +1059,7 @@ } if (len > blen) { blen = len + 32; /* Add some reserve */ - base = bp = __realloc(bp, blen, "dir base"); + base = bp = ___realloc(bp, blen, "dir base"); } copy_dir(p, base, blen); p = base; @@ -1100,7 +1137,7 @@ } if (rname >= nep) { nlen += TYPICAL_NAMEMAX*2; - name = __realloc(np, nlen, "macro name"); + name = ___realloc(np, nlen, "macro name"); if (np == NULL) { /* * Copy old content @@ -1145,7 +1182,7 @@ } if (rname >= pep) { plen += TYPICAL_NAMEMAX*2; - pat = __realloc(pp, plen, "macro pattern"); + pat = ___realloc(pp, plen, "macro pattern"); if (pp == NULL) { /* * Copy old content @@ -1192,7 +1229,7 @@ if (*s2) { if (strlcpy(name, s2, nlen) >= nlen) { nlen = strlen(s2) +1; - name = np = __realloc(np, nlen, "macro name"); + name = np = ___realloc(np, nlen, "macro name"); if (strlcpy(name, s2, nlen) >= nlen) etoolong("copy macro content", s2); } @@ -1259,6 +1296,7 @@ int l; char *p; char *sb = gbuf; + char *sbe = gbufend; /* printf("name: '%s' f1: '%s' f2: '%s' t1: '%s' t2: '%s'\n", name, f1, f2, t1, t2);*/ @@ -1281,27 +1319,34 @@ l = p - name; if (t1 != NULL) { /* This is a suffix rule */ - grant_gbuf(l); /* Grow gbuf before sub_put() */ + sub_put(name, l); /* 'name' maybe on gbuf... */ if (sb != gbuf) { - name = gbuf + (name - sb); + if (wason_gbuf(name)) + name = gbuf + (name - sb); sb = gbuf; + sbe = gbufend; } - sub_put(name, l); /* 'name' is on gbuf... */ p = t1; } else { /* This is a pattern rule */ p = t2; } while (*p) { - if (*p == '%') { + /* + * Expand '%' only in case of a patten macro expansion. + */ + if (*p == '%' && t2 != NULL) { p++; - grant_gbuf(l); /* Grow gbuf before sub_put() */ - if (sb != gbuf) { - name = gbuf + (name - sb); - sb = gbuf; - } sub_put(name, l); /* 'name' is on gbuf... */ } else { - sub_c_put(*p++); + sub_put(p++, 1); + } + if (sb != gbuf) { + if (wason_gbuf(name)) + name = gbuf + (name - sb); + if (wason_gbuf(p)) + p = gbuf + (p - sb); + sb = gbuf; + sbe = gbufend; } } return (TRUE); @@ -1364,6 +1409,7 @@ char *osp = name; char *sp = sub_ptr; char *sb = gbuf; + char *sbe = gbufend; char *b; char c; @@ -1380,12 +1426,7 @@ /*error("name '%s'\n", name);*/ if (!patsub(name, f1, f2, t1, t2)) { - char *n = name; - - grant_gbuf(strlen(name)); /* Grow gbuf before */ - if (sb != gbuf) - n = gbuf + (n - sb); - sub_s_put(n); /* 'n' is on gbuf... */ + sub_s_put(name); /* 'name' maybe on gbuf... */ } if (sb != gbuf) { sp = gbuf + (sp - sb); @@ -1394,12 +1435,22 @@ if (b != NULL) b = gbuf + (b - sb); sb = gbuf; + sbe = gbufend; } if (b) { sub_c_put(c); - while (*b != '\0' && white(*b)) - sub_c_put(*b++); + while (*b != '\0' && white(*b)) { + sub_put(b++, 1); + if (sb != gbuf) { + sp = gbuf + (sp - sb); + osp = gbuf + (osp - sb); + if (wason_gbuf(b)) + b = gbuf + (b - sb); + sb = gbuf; + sbe = gbufend; + } + } } name = b; } while (b); @@ -1415,10 +1466,10 @@ /* * Parse a pattern and divide pattern into parts. * - * Check if this is a suffix rule or a pattern rule. + * Check if this is a suffix replacement macro or a pattern repacement macro. * - * If this is a suffix rule (suf1=suf2), tp2 will point to a NULL pointer, - * if this is a pattern rule (pref1%suf1=pref1%suf2) tp1 will point to NULL. + * If this is a suffix macro (suf1=suf2), tp2 will point to a NULL pointer, + * if this is a pattern macro (pref1%suf1=pref1%suf2) tp1 will point to NULL. */ LOCAL void parsepat(pat, fp1, fp2, tp1, tp2) @@ -1446,10 +1497,10 @@ f2 = pat; f1 = Nullstr; } - if (f1 == pat) { /* This is a pattern rule */ + if (f1 == pat) { /* This is a pattern macro */ t2 = t1; t1 = NULL; - } else { /* This is a suffix rule */ + } else { /* This is a suffix macro */ t2 = NULL; } *fp1 = f1; @@ -1574,14 +1625,14 @@ sp = sub_ptr; sb = gbuf; sub_c_put('.'); - sub_ptr = '\0'; + *sub_ptr = '\0'; if (pat[0] != '\0') { char *p; p = subst(pat, obj, source, suffix, depends); if ((sub_ptr - p) >= sizeof (epat)) { - epa = ep = __realloc(ep, + epa = ep = ___realloc(ep, sub_ptr - p + 1, "pattern content"); } @@ -1636,7 +1687,7 @@ char *p = subst(pat, obj, source, suffix, depends); if ((sub_ptr - p) >= sizeof (epat)) { - epa = ep = __realloc(ep, sub_ptr - p + 1, + epa = ep = ___realloc(ep, sub_ptr - p + 1, "pattern content"); } strcpy(epa, p); @@ -1689,6 +1740,10 @@ free(ep); } +/* + * Copy over the time and level from the intermediate :: object + * to the main base object. + */ LOCAL void dcolon_time(obj) register obj_t *obj; @@ -1787,7 +1842,7 @@ obj->o_date = filedate; obj->o_level = level; if (obj->o_flags & F_DCOLON) - dcolon_time(obj); + dcolon_time(obj); /* Copy from intermediate to main obj */ if (Debug > 2) { error("search(%s, %d, %s) = %s %s %d\n", @@ -1828,6 +1883,18 @@ size_t plen = sizeof (_pat); char *p; size_t len; + obj_t *obj; + + if (prule->p_list == NULL) { + source = NullObj; + goto found; + } + if ((prule->p_list->l_obj->o_flags & F_PERCENT) == 0) + errmsgno(EX_BAD, + "WARNING: Non-percent pattern dependencies not yet supported.\n"); + if (prule->p_list->l_next) + errmsgno(EX_BAD, + "WARNING: More than one pattern dependency not yet supported.\n"); again: *suffixp = (char *)prule->p_tgt_suffix; @@ -1840,7 +1907,7 @@ len = p - xname + 1; if (len > plen) { plen = len; - pat = pp = __realloc(pp, plen, "pattern content"); + pat = pp = ___realloc(pp, plen, "pattern content"); } strlcpy(pat, xname, len); /*error("pat: '%s' len %d strlen %d\n", pat, len, strlen(pat));*/ @@ -1849,7 +1916,7 @@ */ if ((len = prule->p_src_pfxlen + len + prule->p_src_suflen) > slen) { slen = len; - sourcename = sp = __realloc(sp, slen, "pattern source name"); + sourcename = sp = ___realloc(sp, slen, "pattern source name"); } if ((len = snprintf(sourcename, slen, "%s%s%s", prule->p_src_prefix, pat, @@ -1899,6 +1966,16 @@ goto out; } +found: + /* + * If we do not create missing nodes here, Pattern Matching Rules like: + * %.1: + * command + * will cause smake to dump core. + */ + obj = objlook(name, TRUE); + obj->o_node = (obj_t *)prule; + obj->o_flags |= F_PATRULE; *pcmd = prule->p_cmd; out: if (sp) @@ -1970,14 +2047,14 @@ char _rulename[TYPICAL_NAMEMAX]; char *rulename = _rulename; char *rp = NULL; - size_t rlen = sizeof(_rulename); + size_t rlen = sizeof (_rulename); size_t endlen; size_t sourcelen; size_t len; if ((len = strlen(name)) >= slen) { slen = len + 16; /* Add space for '\0' and suf */ - sourcename = sp = __realloc(sp, slen, + sourcename = sp = ___realloc(sp, slen, "suffix source name"); } copy_base(name, sourcename, slen, suffix); @@ -2005,7 +2082,7 @@ * Expand rule name space. */ rlen = strlen(suffix) + suf->l_obj->o_namelen + 16; - rulename = rp = __realloc(rp, rlen, "suffix rule name"); + rulename = rp = ___realloc(rp, rlen, "suffix rule name"); goto again; } @@ -2022,7 +2099,7 @@ if (suf->l_obj->o_namelen >= endlen) { slen = sourcelen + suf->l_obj->o_namelen + 1; - sourcename = __realloc(sp, slen, + sourcename = ___realloc(sp, slen, "suffix source name"); if (sp == NULL) { /* @@ -2102,7 +2179,7 @@ if ((len = strlen(name)) >= slen) { slen = len + 16; /* Add space for '\0' and suf */ - sourcename = sp = __realloc(sp, slen, + sourcename = sp = ___realloc(sp, slen, "simple suffix source name"); } copy_base(name, sourcename, slen, (char *)NULL); @@ -2123,7 +2200,7 @@ do { if (suf->l_obj->o_namelen >= endlen) { slen = sourcelen + suf->l_obj->o_namelen + 1; - sourcename = __realloc(sp, slen, + sourcename = ___realloc(sp, slen, "simple suffix source name"); if (sp == NULL) { /* @@ -2302,6 +2379,10 @@ errmsgno(EX_BAD, "'%s' does not exist.\n", obj->o_name); return (BADTIME); } + /* + * findsrc() returns NULL if (obj->o_flags & F_TERM) != 0. + * This prevents problems with rule == NULL from default_rule(). + */ if ((source = findsrc(obj, rule, &rtype, &suffix, &cmd, dlev)) == (obj_t *)NULL) { @@ -2321,7 +2402,7 @@ */ if (basetype(obj->o_type) == COLON) return (NOTIME); - if (!NoWarn) + if (!No_Warn) errmsgno(EX_BAD, "Can't find any source for '%s'.\n", obj->o_name); @@ -2485,7 +2566,7 @@ /* * Fake sucsess for targets listed in the makefile that have * no exlicit commands no explicit dependencies (prerequisites) - * and where we * could not find implicit dependencies. + * and where we could not find implicit dependencies. * These intermediate placeholde targets look similar to FORCE: */ if (obj->o_list == NULL && obj->o_date == NOTIME && must_exist) diff -Nru smake-1.2a41/TEMPLATES/cmd.mk smake-1.2a49/TEMPLATES/cmd.mk --- smake-1.2a41/TEMPLATES/cmd.mk 1997-03-04 15:29:29.000000000 +0000 +++ smake-1.2a49/TEMPLATES/cmd.mk 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#ident %W% %E% %Q% -########################################################################### -# Sample makefile for general application programs -########################################################################### -SRCROOT= ../.. -RULESDIR= RULES -include $(SRCROOT)/$(RULESDIR)/rules.top -########################################################################### - -INSDIR= bin -TARGET= cfform -#CPPOPTS += -Ispecincl -CFILES= cfform.c -LIBS= -lat -XMK_FILE= Makefile.man - -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.cmd -########################################################################### diff -Nru smake-1.2a41/TEMPLATES/inc.mk smake-1.2a49/TEMPLATES/inc.mk --- smake-1.2a41/TEMPLATES/inc.mk 1999-08-28 18:22:11.000000000 +0100 +++ smake-1.2a49/TEMPLATES/inc.mk 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -#ident %W% %E% %Q% -########################################################################### -SRCROOT= .. -RULESDIR= RULES -include $(SRCROOT)/$(RULESDIR)/rules.top -########################################################################### - -INSDIR= include -TARGET= align.h -TARGETC= align_test -CFILES= align_test.c - -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.inc -########################################################################### diff -Nru smake-1.2a41/TEMPLATES/lib.mk smake-1.2a49/TEMPLATES/lib.mk --- smake-1.2a41/TEMPLATES/lib.mk 1997-03-04 15:29:30.000000000 +0000 +++ smake-1.2a49/TEMPLATES/lib.mk 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#ident %W% %E% %Q% -########################################################################### -# Sample makefile for non-shared libraries -########################################################################### -SRCROOT= ../.. -RULESDIR= RULES -include $(SRCROOT)/$(RULESDIR)/rules.top -########################################################################### - -INSDIR= lib -TARGETLIB= aal -CPPOPTS += -DFOKUS -CFILES= aallib.c -LIBS= -XMK_FILE= Makefile.man - -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.lib -########################################################################### diff -Nru smake-1.2a41/TEMPLATES/MKLINKS smake-1.2a49/TEMPLATES/MKLINKS --- smake-1.2a41/TEMPLATES/MKLINKS 1970-01-01 01:00:00.000000000 +0100 +++ smake-1.2a49/TEMPLATES/MKLINKS 2009-08-16 13:16:08.000000000 +0100 @@ -0,0 +1,31 @@ +#!/bin/sh +########################################################################### +#ident "@(#)MKLINKS 1.1 09/08/16 " +########################################################################### +# Written 2008 by J. Schilling +########################################################################### +# Copyright (c) 2008 J. Schilling +########################################################################### +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# See the file CDDL.Schily.txt in this distribution for details. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file CDDL.Schily.txt from this distribution. +########################################################################### +symlink="ln -s" +rm -f xxzzy.123 xxzzy.345 +echo test > xxzzy.123 +$symlink xxzzy.123 xxzzy.345 +test $? = 0 || symlink=cp +test -r xxzzy.345 || symlink=cp +rm -f xxzzy.123 xxzzy.345 +########################################################################### + +$symlink Makefile.cmd cmd.mk +$symlink Makefile.inc inc.mk +$symlink Makefile.lib lib.mk +$symlink Makefile.shl shl.mk diff -Nru smake-1.2a41/TEMPLATES/shl.mk smake-1.2a49/TEMPLATES/shl.mk --- smake-1.2a41/TEMPLATES/shl.mk 1997-03-04 15:29:30.000000000 +0000 +++ smake-1.2a49/TEMPLATES/shl.mk 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#ident %W% %E% %Q% -########################################################################### -# Sample makefile for shared libraries -########################################################################### -SRCROOT= ../.. -RULESDIR= RULES -include $(SRCROOT)/$(RULESDIR)/rules.top -########################################################################### - -INSDIR= lib -TARGETLIB= aal -CPPOPTS += -DFOKUS -CFILES= aallib.c -LIBS= -XMK_FILE= Makefile.man - -########################################################################### -include $(SRCROOT)/$(RULESDIR)/rules.shl -########################################################################### diff -Nru smake-1.2a41/TEMPLATES/temp-gcc.rul smake-1.2a49/TEMPLATES/temp-gcc.rul --- smake-1.2a41/TEMPLATES/temp-gcc.rul 2006-07-03 15:48:46.000000000 +0100 +++ smake-1.2a49/TEMPLATES/temp-gcc.rul 2009-07-26 00:29:35.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)temp-gcc.rul 1.2 06/07/03 " +#ident "@(#)temp-gcc.rul 1.3 09/07/26 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -20,7 +20,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.prg ########################################################################### -include $(SRCROOT)/$(RULESDIR)/gcc.rul +include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul OSDEFS= diff -Nru smake-1.2a41/TEMPLATES/temp-xcc.rul smake-1.2a49/TEMPLATES/temp-xcc.rul --- smake-1.2a41/TEMPLATES/temp-xcc.rul 2006-07-03 15:46:33.000000000 +0100 +++ smake-1.2a49/TEMPLATES/temp-xcc.rul 2009-07-26 00:29:35.000000000 +0100 @@ -1,4 +1,4 @@ -#ident "@(#)temp-xcc.rul 1.2 06/07/03 " +#ident "@(#)temp-xcc.rul 1.3 09/07/26 " ########################################################################### # Written 1997 by J. Schilling ########################################################################### @@ -20,7 +20,7 @@ ########################################################################### include $(SRCROOT)/$(RULESDIR)/rules.prg ########################################################################### -include $(SRCROOT)/$(RULESDIR)/dumbcc.rul +include $(SRCROOT)/$(RULESDIR)/cc-dumb.rul OSDEFS=