mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
0e3f591aee
svn+ssh://pythondev@svn.python.org/python/trunk ........ r46755 | brett.cannon | 2006-06-08 18:23:04 +0200 (Thu, 08 Jun 2006) | 4 lines Make binascii.hexlify() use s# for its arguments instead of t# to actually match its documentation stating it accepts any read-only buffer. ........ r46757 | brett.cannon | 2006-06-08 19:00:45 +0200 (Thu, 08 Jun 2006) | 8 lines Buffer objects would return the read or write buffer for a wrapped object when the char buffer was requested. Now it actually returns the char buffer if available or raises a TypeError if it isn't (as is raised for the other buffer types if they are not present but requested). Not a backport candidate since it does change semantics of the buffer object (although it could be argued this is enough of a bug to bother backporting). ........ r46760 | andrew.kuchling | 2006-06-09 03:10:17 +0200 (Fri, 09 Jun 2006) | 1 line Update functools section ........ r46762 | tim.peters | 2006-06-09 04:11:02 +0200 (Fri, 09 Jun 2006) | 6 lines Whitespace normalization. Since test_file is implicated in mysterious test failures when followed by test_optparse, if I had any brains I'd look at the checkin that last changed test_file ;-) ........ r46763 | tim.peters | 2006-06-09 05:09:42 +0200 (Fri, 09 Jun 2006) | 5 lines To boost morale :-), force test_optparse to run immediately after test_file until we can figure out how to fix it. (See python-dev; at the moment we don't even know which checkin caused the problem.) ........ r46764 | tim.peters | 2006-06-09 05:51:41 +0200 (Fri, 09 Jun 2006) | 6 lines AutoFileTests.tearDown(): Removed mysterious undocumented try/except. Remove TESTFN. Throughout: used open() instead of file(), and wrapped long lines. ........ r46765 | tim.peters | 2006-06-09 06:02:06 +0200 (Fri, 09 Jun 2006) | 8 lines testUnicodeOpen(): I have no idea why, but making this test clean up after itself appears to fix the test failures when test_optparse follows test_file. test_main(): Get rid of TESTFN no matter what. That's also enough to fix the mystery failures. Doesn't hurt to fix them twice :-) ........ r46766 | tim.peters | 2006-06-09 07:12:40 +0200 (Fri, 09 Jun 2006) | 6 lines Remove the temporary hack to force test_optparse to run immediately after test_file. At least 8 buildbot boxes passed since the underlying problem got fixed, and they all failed before the fix, so there's no point to this anymore. ........ r46767 | neal.norwitz | 2006-06-09 07:54:18 +0200 (Fri, 09 Jun 2006) | 1 line Fix grammar and reflow ........ r46769 | andrew.kuchling | 2006-06-09 12:22:35 +0200 (Fri, 09 Jun 2006) | 1 line Markup fix ........ r46773 | andrew.kuchling | 2006-06-09 15:15:57 +0200 (Fri, 09 Jun 2006) | 1 line [Bug #1472827] Make saxutils.XMLGenerator handle \r\n\t in attribute values by escaping them properly. 2.4 bugfix candidate. ........ r46778 | kristjan.jonsson | 2006-06-09 18:28:01 +0200 (Fri, 09 Jun 2006) | 2 lines Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005. Make the definition #ARRAYSIZE conditional. VisualStudio .NET 2005 already has it defined using a better gimmick. ........ r46779 | phillip.eby | 2006-06-09 18:40:18 +0200 (Fri, 09 Jun 2006) | 2 lines Import wsgiref into the stdlib, as of the external version 0.1-r2181. ........ r46783 | andrew.kuchling | 2006-06-09 18:44:40 +0200 (Fri, 09 Jun 2006) | 1 line Add note about XMLGenerator bugfix ........ r46784 | andrew.kuchling | 2006-06-09 18:46:51 +0200 (Fri, 09 Jun 2006) | 1 line Add note about wsgiref ........ r46785 | brett.cannon | 2006-06-09 19:05:48 +0200 (Fri, 09 Jun 2006) | 2 lines Fix inconsistency in naming within an enum. ........ r46787 | tim.peters | 2006-06-09 19:47:00 +0200 (Fri, 09 Jun 2006) | 2 lines Whitespace normalization. ........ r46792 | georg.brandl | 2006-06-09 20:29:52 +0200 (Fri, 09 Jun 2006) | 3 lines Test file.__exit__. ........ r46794 | brett.cannon | 2006-06-09 20:40:46 +0200 (Fri, 09 Jun 2006) | 2 lines svn:ignore .pyc and .pyo files. ........ r46795 | georg.brandl | 2006-06-09 20:45:48 +0200 (Fri, 09 Jun 2006) | 3 lines RFE #1491485: str/unicode.endswith()/startswith() now accept a tuple as first argument. ........ r46798 | andrew.kuchling | 2006-06-09 21:03:16 +0200 (Fri, 09 Jun 2006) | 1 line Describe startswith()/endswiith() change; add reminder about wsgiref ........ r46799 | tim.peters | 2006-06-09 21:24:44 +0200 (Fri, 09 Jun 2006) | 11 lines Implementing a happy idea from Georg Brandl: make runtest() try to clean up files and directories the tests often leave behind by mistake. This is the first time in history I don't have a bogus "db_home" directory after running the tests ;-) Also worked on runtest's docstring, to say something about all the arguments, and to document the non-obvious return values. New functions runtest_inner() and cleanup_test_droppings() in support of the above. ........ r46800 | andrew.kuchling | 2006-06-09 21:43:25 +0200 (Fri, 09 Jun 2006) | 1 line Remove unused variable ........ r46801 | andrew.kuchling | 2006-06-09 21:56:05 +0200 (Fri, 09 Jun 2006) | 1 line Add some wsgiref text ........ r46803 | thomas.heller | 2006-06-09 21:59:11 +0200 (Fri, 09 Jun 2006) | 1 line set eol-style svn property ........ r46804 | thomas.heller | 2006-06-09 22:01:01 +0200 (Fri, 09 Jun 2006) | 1 line set eol-style svn property ........ r46805 | georg.brandl | 2006-06-09 22:43:48 +0200 (Fri, 09 Jun 2006) | 3 lines Make use of new str.startswith/endswith semantics. Occurences in email and compiler were ignored due to backwards compat requirements. ........ r46806 | brett.cannon | 2006-06-10 00:31:23 +0200 (Sat, 10 Jun 2006) | 4 lines An object with __call__ as an attribute, when called, will have that attribute checked for __call__ itself, and will continue to look until it finds an object without the attribute. This can lead to an infinite recursion. Closes bug #532646, again. Will be backported. ........ r46808 | brett.cannon | 2006-06-10 00:45:54 +0200 (Sat, 10 Jun 2006) | 2 lines Fix bug introduced in rev. 46806 by not having variable declaration at the top of a block. ........ r46812 | georg.brandl | 2006-06-10 08:40:50 +0200 (Sat, 10 Jun 2006) | 4 lines Apply perky's fix for #1503157: "/".join([u"", u""]) raising OverflowError. Also improve error message on overflow. ........ r46817 | martin.v.loewis | 2006-06-10 10:14:03 +0200 (Sat, 10 Jun 2006) | 2 lines Port cygwin kill_python changes from 2.4 branch. ........ r46818 | armin.rigo | 2006-06-10 12:57:40 +0200 (Sat, 10 Jun 2006) | 4 lines SF bug #1503294. PyThreadState_GET() complains if the tstate is NULL, but only in debug mode. ........ r46819 | martin.v.loewis | 2006-06-10 14:23:46 +0200 (Sat, 10 Jun 2006) | 4 lines Patch #1495999: Part two of Windows CE changes. - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c ........ r46820 | skip.montanaro | 2006-06-10 16:09:11 +0200 (Sat, 10 Jun 2006) | 1 line document the class, not its initializer ........ r46821 | greg.ward | 2006-06-10 18:40:01 +0200 (Sat, 10 Jun 2006) | 4 lines Sync with Optik docs (rev 518): * restore "Extending optparse" section * document ALWAYS_TYPED_ACTIONS (SF #1449311) ........ r46824 | thomas.heller | 2006-06-10 21:51:46 +0200 (Sat, 10 Jun 2006) | 8 lines Upgrade to ctypes version 0.9.9.7. Summary of changes: - support for 'variable sized' data - support for anonymous structure/union fields - fix severe bug with certain arrays or structures containing more than 256 fields ........ r46825 | thomas.heller | 2006-06-10 21:55:36 +0200 (Sat, 10 Jun 2006) | 8 lines Upgrade to ctypes version 0.9.9.7. Summary of changes: - support for 'variable sized' data - support for anonymous structure/union fields - fix severe bug with certain arrays or structures containing more than 256 fields ........ r46826 | fred.drake | 2006-06-10 22:01:34 +0200 (Sat, 10 Jun 2006) | 4 lines SF patch #1303595: improve description of __builtins__, explaining how it varies between __main__ and other modules, and strongly suggest not touching it but using __builtin__ if absolutely necessary ........ r46827 | fred.drake | 2006-06-10 22:02:58 +0200 (Sat, 10 Jun 2006) | 1 line credit for SF patch #1303595 ........ r46831 | thomas.heller | 2006-06-10 22:29:34 +0200 (Sat, 10 Jun 2006) | 2 lines New docs for ctypes. ........ r46834 | thomas.heller | 2006-06-10 23:07:19 +0200 (Sat, 10 Jun 2006) | 1 line Fix a wrong printf format. ........ r46835 | thomas.heller | 2006-06-10 23:17:58 +0200 (Sat, 10 Jun 2006) | 1 line Fix the second occurrence of the problematic printf format. ........ r46837 | thomas.heller | 2006-06-10 23:56:03 +0200 (Sat, 10 Jun 2006) | 1 line Don't use C++ comment. ........ r46838 | thomas.heller | 2006-06-11 00:01:50 +0200 (Sun, 11 Jun 2006) | 1 line Handle failure of PyMem_Realloc. ........ r46839 | skip.montanaro | 2006-06-11 00:38:13 +0200 (Sun, 11 Jun 2006) | 2 lines Suppress warning on MacOSX about possible use before set of proc. ........ r46840 | tim.peters | 2006-06-11 00:51:45 +0200 (Sun, 11 Jun 2006) | 8 lines shuffle() doscstring: Removed warning about sequence length versus generator period. While this was a real weakness of the older WH generator for lists with just a few dozen elements, and so could potentially bite the naive ;-), the Twister should show excellent behavior up to at least 600 elements. Module docstring: reflowed some jarringly short lines. ........ r46844 | greg.ward | 2006-06-11 02:40:49 +0200 (Sun, 11 Jun 2006) | 4 lines Bug #1361643: fix textwrap.dedent() so it handles tabs appropriately, i.e. do *not* expand tabs, but treat them as whitespace that is not equivalent to spaces. Add a couple of test cases. Clarify docs. ........ r46850 | neal.norwitz | 2006-06-11 07:44:18 +0200 (Sun, 11 Jun 2006) | 5 lines Fix Coverity # 146. newDBSequenceObject would deref dbobj, so it can't be NULL. We know it's not NULL from the ParseTuple and DbObject_Check will verify it's not NULL. ........ r46851 | neal.norwitz | 2006-06-11 07:45:25 +0200 (Sun, 11 Jun 2006) | 4 lines Wrap some long lines Top/Bottom factor out some common expressions Add a XXX comment about widing offset. ........ r46852 | neal.norwitz | 2006-06-11 07:45:47 +0200 (Sun, 11 Jun 2006) | 1 line Add versionadded to doc ........ r46853 | neal.norwitz | 2006-06-11 07:47:14 +0200 (Sun, 11 Jun 2006) | 3 lines Update doc to make it agree with code. Bottom factor out some common code. ........ r46854 | neal.norwitz | 2006-06-11 07:48:14 +0200 (Sun, 11 Jun 2006) | 3 lines f_code can't be NULL based on Frame_New and other code that derefs it. So there doesn't seem to be much point to checking here. ........ r46855 | neal.norwitz | 2006-06-11 09:26:27 +0200 (Sun, 11 Jun 2006) | 1 line Fix errors found by pychecker ........ r46856 | neal.norwitz | 2006-06-11 09:26:50 +0200 (Sun, 11 Jun 2006) | 1 line warnings was imported at module scope, no need to import again ........ r46857 | neal.norwitz | 2006-06-11 09:27:56 +0200 (Sun, 11 Jun 2006) | 5 lines Fix errors found by pychecker. I think these changes are correct, but I'm not sure. Could someone who knows how this module works test it? It can at least start on the cmd line. ........ r46858 | neal.norwitz | 2006-06-11 10:35:14 +0200 (Sun, 11 Jun 2006) | 1 line Fix errors found by pychecker ........ r46859 | ronald.oussoren | 2006-06-11 16:33:36 +0200 (Sun, 11 Jun 2006) | 4 lines This patch improves the L&F of IDLE on OSX. The changes are conditionalized on being in an IDLE.app bundle on darwin. This does a slight reorganisation of the menus and adds support for file-open events. ........ r46860 | greg.ward | 2006-06-11 16:42:41 +0200 (Sun, 11 Jun 2006) | 1 line SF #1366250: optparse docs: fix inconsistency in variable name; minor tweaks. ........ r46861 | greg.ward | 2006-06-11 18:24:11 +0200 (Sun, 11 Jun 2006) | 3 lines Bug #1498146: fix optparse to handle Unicode strings in option help, description, and epilog. ........ r46862 | thomas.heller | 2006-06-11 19:04:22 +0200 (Sun, 11 Jun 2006) | 2 lines Release the GIL during COM method calls, to avoid deadlocks in Python coded COM objects. ........ r46863 | tim.peters | 2006-06-11 21:42:51 +0200 (Sun, 11 Jun 2006) | 2 lines Whitespace normalization. ........ r46864 | tim.peters | 2006-06-11 21:43:49 +0200 (Sun, 11 Jun 2006) | 2 lines Add missing svn:eol-style property to text files. ........ r46865 | ronald.oussoren | 2006-06-11 21:45:57 +0200 (Sun, 11 Jun 2006) | 2 lines Remove message about using make frameworkinstall, that's no longer necesssary ........ r46866 | ronald.oussoren | 2006-06-11 22:23:29 +0200 (Sun, 11 Jun 2006) | 2 lines Use configure to substitute the correct prefix instead of hardcoding ........ r46867 | ronald.oussoren | 2006-06-11 22:24:45 +0200 (Sun, 11 Jun 2006) | 4 lines - Change fixapplepython23.py to ensure that it will run with /usr/bin/python on intel macs. - Fix some minor problems in the installer for OSX ........ r46868 | neal.norwitz | 2006-06-11 22:25:56 +0200 (Sun, 11 Jun 2006) | 5 lines Try to fix several networking tests. The problem is that if hosts have a search path setup, some of these hosts resolve to the wrong address. By appending a period to the hostname, the hostname should only resolve to what we want it to resolve to. Hopefully this doesn't break different bots. ........ r46869 | neal.norwitz | 2006-06-11 22:42:02 +0200 (Sun, 11 Jun 2006) | 7 lines Try to fix another networking test. The problem is that if hosts have a search path setup, some of these hosts resolve to the wrong address. By appending a period to the hostname, the hostname should only resolve to what we want it to resolve to. Hopefully this doesn't break different bots. Also add more info to failure message to aid debugging test failure. ........ r46870 | neal.norwitz | 2006-06-11 22:46:46 +0200 (Sun, 11 Jun 2006) | 4 lines Fix test on PPC64 buildbot. It raised an IOError (really an URLError which derives from an IOError). That seems valid. Env Error includes both OSError and IOError, so this seems like a reasonable fix. ........ r46871 | tim.peters | 2006-06-11 22:52:59 +0200 (Sun, 11 Jun 2006) | 10 lines compare_generic_iter(): Fixed the failure of test_wsgiref's testFileWrapper when running with -O. test_simple_validation_error still fails under -O. That appears to be because wsgiref's validate.py uses `assert` statements all over the place to check arguments for sanity. That should all be changed (it's not a logical error in the software if a user passes bogus arguments, so this isn't a reasonable use for `assert` -- checking external preconditions should generally raise ValueError or TypeError instead, as appropriate). ........ r46872 | neal.norwitz | 2006-06-11 23:38:38 +0200 (Sun, 11 Jun 2006) | 1 line Get test to pass on S/390. Shout if you think this change is incorrect. ........ r46873 | neal.norwitz | 2006-06-12 04:05:55 +0200 (Mon, 12 Jun 2006) | 1 line Cleanup Py_ssize_t a little (get rid of second #ifdef) ........ r46874 | neal.norwitz | 2006-06-12 04:06:17 +0200 (Mon, 12 Jun 2006) | 1 line Fix some Py_ssize_t issues ........ r46875 | neal.norwitz | 2006-06-12 04:06:42 +0200 (Mon, 12 Jun 2006) | 1 line Fix some Py_ssize_t issues ........ r46876 | neal.norwitz | 2006-06-12 04:07:24 +0200 (Mon, 12 Jun 2006) | 2 lines Cleanup: Remove import of types to get StringTypes, we can just use basestring. ........ r46877 | neal.norwitz | 2006-06-12 04:07:57 +0200 (Mon, 12 Jun 2006) | 1 line Don't truncate if size_t is bigger than uint ........ r46878 | neal.norwitz | 2006-06-12 04:08:41 +0200 (Mon, 12 Jun 2006) | 1 line Don't leak the list object if there's an error allocating the item storage. Backport candidate ........ r46879 | neal.norwitz | 2006-06-12 04:09:03 +0200 (Mon, 12 Jun 2006) | 1 line Fix typo. Backport if anyone cares. :-) ........ r46880 | neal.norwitz | 2006-06-12 04:09:34 +0200 (Mon, 12 Jun 2006) | 1 line Fix indentation of case and a Py_ssize_t issue. ........ r46881 | neal.norwitz | 2006-06-12 04:11:18 +0200 (Mon, 12 Jun 2006) | 3 lines Get rid of f_restricted too. Doc the other 4 ints that were already removed at the NeedForSpeed sprint. ........ r46882 | neal.norwitz | 2006-06-12 04:13:21 +0200 (Mon, 12 Jun 2006) | 1 line Fix the socket tests so they can be run concurrently. Backport candidate ........ r46883 | neal.norwitz | 2006-06-12 04:16:10 +0200 (Mon, 12 Jun 2006) | 1 line i and j are initialized below when used. No need to do it twice ........ r46884 | neal.norwitz | 2006-06-12 05:05:03 +0200 (Mon, 12 Jun 2006) | 1 line Remove unused import ........ r46885 | neal.norwitz | 2006-06-12 05:05:40 +0200 (Mon, 12 Jun 2006) | 1 line Impl ssize_t ........ r46886 | neal.norwitz | 2006-06-12 05:33:09 +0200 (Mon, 12 Jun 2006) | 6 lines Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy copy is only in newer versions of zlib. This should allow zlibmodule to work with older versions like the Tru64 buildbot. ........ r46887 | phillip.eby | 2006-06-12 06:04:32 +0200 (Mon, 12 Jun 2006) | 2 lines Sync w/external release 0.1.2. Please see PEP 360 before making changes to external packages. ........ r46888 | martin.v.loewis | 2006-06-12 06:26:31 +0200 (Mon, 12 Jun 2006) | 2 lines Get rid of function pointer cast. ........ r46889 | thomas.heller | 2006-06-12 08:05:57 +0200 (Mon, 12 Jun 2006) | 3 lines I don't know how that happend, but the entire file contents was duplicated. Thanks to Simon Percivall for the heads up. ........ r46890 | nick.coghlan | 2006-06-12 10:19:37 +0200 (Mon, 12 Jun 2006) | 1 line Fix site module docstring to match the code ........ r46891 | nick.coghlan | 2006-06-12 10:23:02 +0200 (Mon, 12 Jun 2006) | 1 line Fix site module docstring to match the code for Mac OSX, too ........ r46892 | nick.coghlan | 2006-06-12 10:27:13 +0200 (Mon, 12 Jun 2006) | 1 line The site module documentation also described the Windows behaviour incorrectly. ........ r46893 | nick.coghlan | 2006-06-12 12:17:11 +0200 (Mon, 12 Jun 2006) | 1 line Make the -m switch conform to the documentation of sys.path by behaving like the -c switch ........ r46894 | kristjan.jonsson | 2006-06-12 17:45:12 +0200 (Mon, 12 Jun 2006) | 2 lines Fix the CRT argument error handling for VisualStudio .NET 2005. Install a CRT error handler and disable the assertion for debug builds. This causes CRT to set errno to EINVAL. This update fixes crash cases in the test suite where the default CRT error handler would cause process exit. ........ r46899 | thomas.heller | 2006-06-12 22:56:48 +0200 (Mon, 12 Jun 2006) | 1 line Add pep-291 compatibility markers. ........ r46901 | ka-ping.yee | 2006-06-13 01:47:52 +0200 (Tue, 13 Jun 2006) | 5 lines Add the uuid module. This module has been tested so far on Windows XP (Python 2.4 and 2.5a2), Mac OS X (Python 2.3, 2.4, and 2.5a2), and Linux (Python 2.4 and 2.5a2). ........ r46902 | tim.peters | 2006-06-13 02:30:01 +0200 (Tue, 13 Jun 2006) | 2 lines Whitespace normalization. ........ r46903 | tim.peters | 2006-06-13 02:30:50 +0200 (Tue, 13 Jun 2006) | 2 lines Added missing svn:eol-style property to text files. ........ r46905 | tim.peters | 2006-06-13 05:30:07 +0200 (Tue, 13 Jun 2006) | 5 lines get_matching_blocks(): rewrote code & comments so they match; added more comments about why it's this way at all; and removed what looked like needless expense (sorting (i, j, k) triples directly should give exactly the same order as sorting (i, (i, j, k)) pairs). ........ r46906 | neal.norwitz | 2006-06-13 06:08:53 +0200 (Tue, 13 Jun 2006) | 1 line Don't fail if another process is listening on our port. ........ r46908 | neal.norwitz | 2006-06-13 10:28:19 +0200 (Tue, 13 Jun 2006) | 2 lines Initialize the type object so pychecker can't crash the interpreter. ........ r46909 | neal.norwitz | 2006-06-13 10:41:06 +0200 (Tue, 13 Jun 2006) | 1 line Verify the crash due to EncodingMap not initialized does not return ........ r46910 | thomas.heller | 2006-06-13 10:56:14 +0200 (Tue, 13 Jun 2006) | 3 lines Add some windows datatypes that were missing from this file, and add the aliases defined in windows header files for the structures. ........ r46911 | thomas.heller | 2006-06-13 11:40:14 +0200 (Tue, 13 Jun 2006) | 3 lines Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER. VARIANT_BOOL is a special _ctypes data type, not c_short. ........ r46912 | ronald.oussoren | 2006-06-13 13:19:56 +0200 (Tue, 13 Jun 2006) | 4 lines Linecache contains support for PEP302 loaders, but fails to deal with loaders that return None to indicate that the module is valid but no source is available. This patch fixes that. ........ r46913 | andrew.kuchling | 2006-06-13 13:57:04 +0200 (Tue, 13 Jun 2006) | 1 line Mention uuid module ........ r46915 | walter.doerwald | 2006-06-13 14:02:12 +0200 (Tue, 13 Jun 2006) | 2 lines Fix passing errors to the encoder and decoder functions. ........ r46917 | walter.doerwald | 2006-06-13 14:04:43 +0200 (Tue, 13 Jun 2006) | 3 lines errors is an attribute in the incremental decoder not an argument. ........ r46919 | andrew.macintyre | 2006-06-13 17:04:24 +0200 (Tue, 13 Jun 2006) | 11 lines Patch #1454481: Make thread stack size runtime tunable. Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes). ........ r46920 | brett.cannon | 2006-06-13 18:06:55 +0200 (Tue, 13 Jun 2006) | 2 lines Remove unused variable. ........ r46921 | andrew.kuchling | 2006-06-13 18:41:41 +0200 (Tue, 13 Jun 2006) | 1 line Add ability to set stack size ........ r46923 | marc-andre.lemburg | 2006-06-13 19:04:26 +0200 (Tue, 13 Jun 2006) | 2 lines Update pybench to version 2.0. ........ r46924 | marc-andre.lemburg | 2006-06-13 19:07:14 +0200 (Tue, 13 Jun 2006) | 2 lines Revert wrong svn copy. ........ r46925 | andrew.macintyre | 2006-06-13 19:14:36 +0200 (Tue, 13 Jun 2006) | 2 lines fix exception usage ........ r46927 | tim.peters | 2006-06-13 20:37:07 +0200 (Tue, 13 Jun 2006) | 2 lines Whitespace normalization. ........ r46928 | marc-andre.lemburg | 2006-06-13 20:56:56 +0200 (Tue, 13 Jun 2006) | 9 lines Updated to pybench 2.0. See svn.python.org/external/pybench-2.0 for the original import of that version. Note that platform.py was not copied over from pybench-2.0 since it is already part of Python 2.5. ........ r46929 | andrew.macintyre | 2006-06-13 21:02:35 +0200 (Tue, 13 Jun 2006) | 5 lines Increase the small thread stack size to get the test to pass reliably on the one buildbot that insists on more than 32kB of thread stack. ........ r46930 | marc-andre.lemburg | 2006-06-13 21:20:07 +0200 (Tue, 13 Jun 2006) | 2 lines Whitespace normalization. ........ r46931 | thomas.heller | 2006-06-13 22:18:43 +0200 (Tue, 13 Jun 2006) | 2 lines More docs for ctypes. ........ r46932 | brett.cannon | 2006-06-13 23:34:24 +0200 (Tue, 13 Jun 2006) | 2 lines Ignore .pyc and .pyo files in Pybench. ........ r46933 | brett.cannon | 2006-06-13 23:46:41 +0200 (Tue, 13 Jun 2006) | 7 lines If a classic class defined a __coerce__() method that just returned its two arguments in reverse, the interpreter would infinitely recourse trying to get a coercion that worked. So put in a recursion check after a coercion is made and the next call to attempt to use the coerced values. Fixes bug #992017 and closes crashers/coerce.py . ........ r46936 | gerhard.haering | 2006-06-14 00:24:47 +0200 (Wed, 14 Jun 2006) | 3 lines Merged changes from external pysqlite 2.3.0 release. Documentation updates will follow in a few hours at the latest. Then we should be ready for beta1. ........ r46937 | brett.cannon | 2006-06-14 00:26:13 +0200 (Wed, 14 Jun 2006) | 2 lines Missed test for rev. 46933; infinite recursion from __coerce__() returning its arguments reversed. ........ r46938 | gerhard.haering | 2006-06-14 00:53:48 +0200 (Wed, 14 Jun 2006) | 2 lines Updated documentation for pysqlite 2.3.0 API. ........ r46939 | tim.peters | 2006-06-14 06:09:25 +0200 (Wed, 14 Jun 2006) | 10 lines SequenceMatcher.get_matching_blocks(): This now guarantees that adjacent triples in the result list describe non-adjacent matching blocks. That's _nice_ to have, and Guido said he wanted it. Not a bugfix candidate: Guido or not ;-), this changes visible endcase semantics (note that some tests had to change), and nothing about this was documented before. Since it was working as designed, and behavior was consistent with the docs, it wasn't "a bug". ........ r46940 | tim.peters | 2006-06-14 06:13:00 +0200 (Wed, 14 Jun 2006) | 2 lines Repaired typo in new comment. ........ r46941 | tim.peters | 2006-06-14 06:15:27 +0200 (Wed, 14 Jun 2006) | 2 lines Whitespace normalization. ........ r46942 | fred.drake | 2006-06-14 06:25:02 +0200 (Wed, 14 Jun 2006) | 3 lines - make some disabled tests run what they intend when enabled - remove some over-zealous triple-quoting ........ r46943 | fred.drake | 2006-06-14 07:04:47 +0200 (Wed, 14 Jun 2006) | 3 lines add tests for two cases that are handled correctly in the current code, but that SF patch 1504676 as written mis-handles ........ r46944 | fred.drake | 2006-06-14 07:15:51 +0200 (Wed, 14 Jun 2006) | 1 line explain an XXX in more detail ........ r46945 | martin.v.loewis | 2006-06-14 07:21:04 +0200 (Wed, 14 Jun 2006) | 1 line Patch #1455898: Incremental mode for "mbcs" codec. ........ r46946 | georg.brandl | 2006-06-14 08:08:31 +0200 (Wed, 14 Jun 2006) | 3 lines Bug #1339007: Shelf objects now don't raise an exception in their __del__ method when initialization failed. ........ r46948 | thomas.heller | 2006-06-14 08:18:15 +0200 (Wed, 14 Jun 2006) | 1 line Fix docstring. ........ r46949 | georg.brandl | 2006-06-14 08:29:07 +0200 (Wed, 14 Jun 2006) | 2 lines Bug #1501122: mention __gt__ &co in description of comparison order. ........ r46951 | thomas.heller | 2006-06-14 09:08:38 +0200 (Wed, 14 Jun 2006) | 1 line Write more docs. ........ r46952 | georg.brandl | 2006-06-14 10:31:39 +0200 (Wed, 14 Jun 2006) | 3 lines Bug #1153163: describe __add__ vs __radd__ behavior when adding objects of same type/of subclasses of the other. ........ r46954 | georg.brandl | 2006-06-14 10:42:11 +0200 (Wed, 14 Jun 2006) | 3 lines Bug #1202018: add some common mime.types locations. ........ r46955 | georg.brandl | 2006-06-14 10:50:03 +0200 (Wed, 14 Jun 2006) | 3 lines Bug #1117556: SimpleHTTPServer now tries to find and use the system's mime.types file for determining MIME types. ........ r46957 | thomas.heller | 2006-06-14 11:09:08 +0200 (Wed, 14 Jun 2006) | 1 line Document paramflags. ........ r46958 | thomas.heller | 2006-06-14 11:20:11 +0200 (Wed, 14 Jun 2006) | 1 line Add an __all__ list, since this module does 'from ctypes import *'. ........ r46959 | andrew.kuchling | 2006-06-14 15:59:15 +0200 (Wed, 14 Jun 2006) | 1 line Add item ........ r46961 | georg.brandl | 2006-06-14 18:46:43 +0200 (Wed, 14 Jun 2006) | 3 lines Bug #805015: doc error in PyUnicode_FromEncodedObject. ........ r46962 | gerhard.haering | 2006-06-15 00:28:37 +0200 (Thu, 15 Jun 2006) | 10 lines - Added version checks in C code to make sure we don't trigger bugs in older SQLite versions. - Added version checks in test suite so that we don't execute tests that we know will fail with older (buggy) SQLite versions. Now, all tests should run against all SQLite versions from 3.0.8 until 3.3.6 (latest one now). The sqlite3 module can be built against all these SQLite versions and the sqlite3 module does its best to not trigger bugs in SQLite, but using SQLite 3.3.3 or later is recommended. ........ r46963 | tim.peters | 2006-06-15 00:38:13 +0200 (Thu, 15 Jun 2006) | 2 lines Whitespace normalization. ........ r46964 | neal.norwitz | 2006-06-15 06:54:29 +0200 (Thu, 15 Jun 2006) | 9 lines Speculative checkin (requires approval of Gerhard Haering) This backs out the test changes in 46962 which prevented crashes by not running the tests via a version check. All the version checks added in that rev were removed from the tests. Code was added to the error handler in connection.c that seems to work with older versions of sqlite including 3.1.3. ........ r46965 | neal.norwitz | 2006-06-15 07:55:49 +0200 (Thu, 15 Jun 2006) | 1 line Try to narrow window of failure on slow/busy boxes (ppc64 buildbot) ........ r46966 | martin.v.loewis | 2006-06-15 08:45:05 +0200 (Thu, 15 Jun 2006) | 2 lines Make import/lookup of mbcs fail on non-Windows systems. ........ r46967 | ronald.oussoren | 2006-06-15 10:14:18 +0200 (Thu, 15 Jun 2006) | 2 lines Patch #1446489 (zipfile: support for ZIP64) ........ r46968 | neal.norwitz | 2006-06-15 10:16:44 +0200 (Thu, 15 Jun 2006) | 6 lines Re-revert this change. Install the version check and don't run the test until Gerhard has time to fully debug the issue. This affects versions before 3.2.1 (possibly only versions earlier than 3.1.3). Based on discussion on python-checkins. ........ r46969 | gregory.p.smith | 2006-06-15 10:52:32 +0200 (Thu, 15 Jun 2006) | 6 lines - bsddb: multithreaded DB access using the simple bsddb module interface now works reliably. It has been updated to use automatic BerkeleyDB deadlock detection and the bsddb.dbutils.DeadlockWrap wrapper to retry database calls that would previously deadlock. [SF python bug #775414] ........ r46970 | gregory.p.smith | 2006-06-15 11:23:52 +0200 (Thu, 15 Jun 2006) | 2 lines minor documentation cleanup. mention the bsddb.db interface explicitly by name. ........ r46971 | neal.norwitz | 2006-06-15 11:57:03 +0200 (Thu, 15 Jun 2006) | 5 lines Steal the trick from test_compiler to print out a slow msg. This will hopefully get the buildbots to pass. Not sure this test will be feasible or even work. But everything is red now, so it can't get much worse. ........ r46972 | neal.norwitz | 2006-06-15 12:24:49 +0200 (Thu, 15 Jun 2006) | 1 line Print some more info to get an idea of how much longer the test will last ........ r46981 | tim.peters | 2006-06-15 20:04:40 +0200 (Thu, 15 Jun 2006) | 6 lines Try to reduce the extreme peak memory and disk-space use of this test. It probably still requires more disk space than most buildbots have, and in any case is still so intrusive that if we don't find another way to test this I'm taking my buildbot offline permanently ;-) ........ r46982 | tim.peters | 2006-06-15 20:06:29 +0200 (Thu, 15 Jun 2006) | 2 lines Whitespace normalization. ........ r46983 | tim.peters | 2006-06-15 20:07:28 +0200 (Thu, 15 Jun 2006) | 2 lines Add missing svn:eol-style property to text files. ........ r46984 | tim.peters | 2006-06-15 20:38:19 +0200 (Thu, 15 Jun 2006) | 2 lines Oops -- I introduced an off-by-6436159488 error. ........ r46990 | neal.norwitz | 2006-06-16 06:30:34 +0200 (Fri, 16 Jun 2006) | 1 line Disable this test until we can determine what to do about it ........ r46991 | neal.norwitz | 2006-06-16 06:31:06 +0200 (Fri, 16 Jun 2006) | 1 line Param name is dir, not directory. Update docstring. Backport candidate ........ r46992 | neal.norwitz | 2006-06-16 06:31:28 +0200 (Fri, 16 Jun 2006) | 1 line Add missing period in comment. ........ r46993 | neal.norwitz | 2006-06-16 06:32:43 +0200 (Fri, 16 Jun 2006) | 1 line Fix whitespace, there are memory leaks in this module. ........ r46995 | fred.drake | 2006-06-17 01:45:06 +0200 (Sat, 17 Jun 2006) | 3 lines SF patch 1504676: Make sgmllib char and entity references pluggable (implementation/tests contributed by Sam Ruby) ........ r46996 | fred.drake | 2006-06-17 03:07:54 +0200 (Sat, 17 Jun 2006) | 1 line fix change that broke the htmllib tests ........ r46998 | martin.v.loewis | 2006-06-17 11:15:14 +0200 (Sat, 17 Jun 2006) | 3 lines Patch #763580: Add name and value arguments to Tkinter variable classes. ........ r46999 | martin.v.loewis | 2006-06-17 11:20:41 +0200 (Sat, 17 Jun 2006) | 2 lines Patch #1096231: Add default argument to wm_iconbitmap. ........ r47000 | martin.v.loewis | 2006-06-17 11:25:15 +0200 (Sat, 17 Jun 2006) | 2 lines Patch #1494750: Destroy master after deleting children. ........ r47003 | george.yoshida | 2006-06-17 18:31:52 +0200 (Sat, 17 Jun 2006) | 2 lines markup fix ........ r47005 | george.yoshida | 2006-06-17 18:39:13 +0200 (Sat, 17 Jun 2006) | 4 lines Update url. Old url returned status code:301 Moved permanently. ........ r47007 | martin.v.loewis | 2006-06-17 20:44:27 +0200 (Sat, 17 Jun 2006) | 2 lines Patch #812986: Update the canvas even if not tracing. ........ r47008 | martin.v.loewis | 2006-06-17 21:03:26 +0200 (Sat, 17 Jun 2006) | 2 lines Patch #815924: Restore ability to pass type= and icon= ........ r47009 | neal.norwitz | 2006-06-18 00:37:45 +0200 (Sun, 18 Jun 2006) | 1 line Fix typo in docstring ........ r47010 | neal.norwitz | 2006-06-18 00:38:15 +0200 (Sun, 18 Jun 2006) | 1 line Fix memory leak reported by valgrind while running test_subprocess ........ r47011 | fred.drake | 2006-06-18 04:57:35 +0200 (Sun, 18 Jun 2006) | 1 line remove unnecessary markup ........ r47013 | neal.norwitz | 2006-06-18 21:35:01 +0200 (Sun, 18 Jun 2006) | 7 lines Prevent spurious leaks when running regrtest.py -R. There may be more issues that crop up from time to time, but this change seems to have been pretty stable (no spurious warnings) for about a week. Other modules which use threads may require similar use of threading_setup/threading_cleanup from test_support. ........ r47014 | neal.norwitz | 2006-06-18 21:37:40 +0200 (Sun, 18 Jun 2006) | 9 lines The hppa ubuntu box sometimes hangs forever in these tests. My guess is that the wait is failing for some reason. Use WNOHANG, so we won't wait until the buildbot kills the test suite. I haven't been able to reproduce the failure, so I'm not sure if this will help or not. Hopefully, this change will cause the test to fail, rather than hang. That will be better since we will get the rest of the test results. It may also help us debug the real problem. ........ r47015 | neal.norwitz | 2006-06-18 22:10:24 +0200 (Sun, 18 Jun 2006) | 1 line Revert 47014 until it is more robust ........ r47016 | thomas.heller | 2006-06-18 23:27:04 +0200 (Sun, 18 Jun 2006) | 6 lines Fix typos. Fix doctest example. Mention in the tutorial that 'errcheck' is explained in the ref manual. Use better wording in some places. Remoce code examples that shouldn't be in the tutorial. Remove some XXX notices. ........ r47017 | georg.brandl | 2006-06-19 00:17:29 +0200 (Mon, 19 Jun 2006) | 3 lines Patch #1507676: improve exception messages in abstract.c, object.c and typeobject.c. ........ r47018 | neal.norwitz | 2006-06-19 07:40:44 +0200 (Mon, 19 Jun 2006) | 1 line Use Py_ssize_t ........ r47019 | georg.brandl | 2006-06-19 08:35:54 +0200 (Mon, 19 Jun 2006) | 3 lines Add news entry about error msg improvement. ........ r47020 | thomas.heller | 2006-06-19 09:07:49 +0200 (Mon, 19 Jun 2006) | 2 lines Try to repair the failing test on the OpenBSD buildbot. Trial and error... ........ r47021 | tim.peters | 2006-06-19 09:45:16 +0200 (Mon, 19 Jun 2006) | 2 lines Whitespace normalization. ........ r47022 | walter.doerwald | 2006-06-19 10:07:50 +0200 (Mon, 19 Jun 2006) | 4 lines Patch #1506645: add Python wrappers for the curses functions is_term_resized, resize_term and resizeterm. This uses three separate configure checks (one for each function). ........ r47023 | walter.doerwald | 2006-06-19 10:14:09 +0200 (Mon, 19 Jun 2006) | 2 lines Make check order match in configure and configure.in. ........ r47024 | tim.peters | 2006-06-19 10:14:28 +0200 (Mon, 19 Jun 2006) | 3 lines Repair KeyError when running test_threaded_import under -R, as reported by Neal on python-dev. ........ r47025 | thomas.heller | 2006-06-19 10:32:46 +0200 (Mon, 19 Jun 2006) | 3 lines Next try to fix the OpenBSD buildbot tests: Use ctypes.util.find_library to locate the C runtime library on platforms where is returns useful results. ........ r47026 | tim.peters | 2006-06-19 11:09:44 +0200 (Mon, 19 Jun 2006) | 13 lines TestHelp.make_parser(): This was making a permanent change to os.environ (setting envar COLUMNS), which at least caused test_float_default() to fail if the tests were run more than once. This repairs the test_optparse -R failures Neal reported on python-dev. It also explains some seemingly bizarre test_optparse failures we saw a couple weeks ago on the buildbots, when test_optparse failed due to test_file failing to clean up after itself, and then test_optparse failed in an entirely different way when regrtest's -w option ran test_optparse a second time. It's now obvious that make_parser() permanently changing os.environ was responsible for the second half of that. ........ r47027 | anthony.baxter | 2006-06-19 14:04:15 +0200 (Mon, 19 Jun 2006) | 2 lines Preparing for 2.5b1. ........ r47029 | fred.drake | 2006-06-19 19:31:16 +0200 (Mon, 19 Jun 2006) | 1 line remove non-working document formats from edist ........ r47030 | gerhard.haering | 2006-06-19 23:17:35 +0200 (Mon, 19 Jun 2006) | 5 lines Fixed a memory leak that was introduced with incorrect usage of the Python weak reference API in pysqlite 2.2.1. Bumbed pysqlite version number to upcoming pysqlite 2.3.1 release. ........ r47032 | ka-ping.yee | 2006-06-20 00:49:36 +0200 (Tue, 20 Jun 2006) | 2 lines Remove Python 2.3 compatibility comment. ........ r47033 | trent.mick | 2006-06-20 01:21:25 +0200 (Tue, 20 Jun 2006) | 2 lines Upgrade pyexpat to expat 2.0.0 (http://python.org/sf/1462338). ........ r47034 | trent.mick | 2006-06-20 01:57:41 +0200 (Tue, 20 Jun 2006) | 3 lines [ 1295808 ] expat symbols should be namespaced in pyexpat (http://python.org/sf/1295808) ........ r47039 | andrew.kuchling | 2006-06-20 13:52:16 +0200 (Tue, 20 Jun 2006) | 1 line Uncomment wsgiref section ........ r47040 | andrew.kuchling | 2006-06-20 14:15:09 +0200 (Tue, 20 Jun 2006) | 1 line Add four library items ........ r47041 | andrew.kuchling | 2006-06-20 14:19:54 +0200 (Tue, 20 Jun 2006) | 1 line Terminology and typography fixes ........ r47042 | andrew.kuchling | 2006-06-20 15:05:12 +0200 (Tue, 20 Jun 2006) | 1 line Add introductory paragraphs summarizing the release; minor edits ........ r47043 | andrew.kuchling | 2006-06-20 15:11:29 +0200 (Tue, 20 Jun 2006) | 1 line Minor edits and rearrangements; markup fix ........ r47044 | andrew.kuchling | 2006-06-20 15:20:30 +0200 (Tue, 20 Jun 2006) | 1 line [Bug #1504456] Mention xml -> xmlcore change ........ r47047 | brett.cannon | 2006-06-20 19:30:26 +0200 (Tue, 20 Jun 2006) | 2 lines Raise TestSkipped when the test socket connection is refused. ........ r47049 | brett.cannon | 2006-06-20 21:20:17 +0200 (Tue, 20 Jun 2006) | 2 lines Fix typo of exception name. ........ r47053 | brett.cannon | 2006-06-21 18:57:57 +0200 (Wed, 21 Jun 2006) | 5 lines At the C level, tuple arguments are passed in directly to the exception constructor, meaning it is treated as *args, not as a single argument. This means using the 'message' attribute won't work (until Py3K comes around), and so one must grab from 'arg' to get the error number. ........ r47054 | andrew.kuchling | 2006-06-21 19:10:18 +0200 (Wed, 21 Jun 2006) | 1 line Link to LibRef module documentation ........ r47055 | andrew.kuchling | 2006-06-21 19:17:10 +0200 (Wed, 21 Jun 2006) | 1 line Note some of Barry's work ........ r47056 | andrew.kuchling | 2006-06-21 19:17:28 +0200 (Wed, 21 Jun 2006) | 1 line Bump version ........ r47057 | georg.brandl | 2006-06-21 19:45:17 +0200 (Wed, 21 Jun 2006) | 3 lines fix [ 1509132 ] compiler module builds incorrect AST for TryExceptFinally ........ r47058 | georg.brandl | 2006-06-21 19:52:36 +0200 (Wed, 21 Jun 2006) | 3 lines Make test_fcntl aware of netbsd3. ........ r47059 | georg.brandl | 2006-06-21 19:53:17 +0200 (Wed, 21 Jun 2006) | 3 lines Patch #1509001: expected skips for netbsd3. ........ r47060 | gerhard.haering | 2006-06-21 22:55:04 +0200 (Wed, 21 Jun 2006) | 2 lines Removed call to enable_callback_tracebacks that slipped in by accident. ........ r47061 | armin.rigo | 2006-06-21 23:58:50 +0200 (Wed, 21 Jun 2006) | 13 lines Fix for an obscure bug introduced by revs 46806 and 46808, with a test. The problem of checking too eagerly for recursive calls is the following: if a RuntimeError is caused by recursion, and if code needs to normalize it immediately (as in the 2nd test), then PyErr_NormalizeException() needs a call to the RuntimeError class to instantiate it, and this hits the recursion limit again... causing PyErr_NormalizeException() to never finish. Moved this particular recursion check to slot_tp_call(), which is not involved in instantiating built-in exceptions. Backport candidate. ........ r47064 | neal.norwitz | 2006-06-22 08:30:50 +0200 (Thu, 22 Jun 2006) | 3 lines Copy the wsgiref package during make install. ........ r47065 | neal.norwitz | 2006-06-22 08:35:30 +0200 (Thu, 22 Jun 2006) | 1 line Reset the doc date to today for the automatic doc builds ........ r47067 | andrew.kuchling | 2006-06-22 15:10:23 +0200 (Thu, 22 Jun 2006) | 1 line Mention how to suppress warnings ........ r47069 | georg.brandl | 2006-06-22 16:46:17 +0200 (Thu, 22 Jun 2006) | 3 lines Set lineno correctly on list, tuple and dict literals. ........ r47070 | georg.brandl | 2006-06-22 16:46:46 +0200 (Thu, 22 Jun 2006) | 4 lines Test for correct compilation of try-except-finally stmt. Test for correct lineno on list, tuple, dict literals. ........ r47071 | fred.drake | 2006-06-22 17:50:08 +0200 (Thu, 22 Jun 2006) | 1 line fix markup nit ........ r47072 | brett.cannon | 2006-06-22 18:49:14 +0200 (Thu, 22 Jun 2006) | 6 lines 'warning's was improperly requiring that a command-line Warning category be both a subclass of Warning and a subclass of types.ClassType. The latter is no longer true thanks to new-style exceptions. Closes bug #1510580. Thanks to AMK for the test. ........ r47073 | ronald.oussoren | 2006-06-22 20:33:54 +0200 (Thu, 22 Jun 2006) | 3 lines MacOSX: Add a message to the first screen of the installer that tells users how to avoid updates to their shell profile. ........ r47074 | georg.brandl | 2006-06-22 21:02:18 +0200 (Thu, 22 Jun 2006) | 3 lines Fix my name ;) ........ r47075 | thomas.heller | 2006-06-22 21:07:36 +0200 (Thu, 22 Jun 2006) | 2 lines Small fixes, mostly in the markup. ........ r47076 | peter.astrand | 2006-06-22 22:06:46 +0200 (Thu, 22 Jun 2006) | 1 line Make it possible to run test_subprocess.py on Python 2.2, which lacks test_support.is_resource_enabled. ........ r47077 | peter.astrand | 2006-06-22 22:21:26 +0200 (Thu, 22 Jun 2006) | 1 line Applied patch #1506758: Prevent MemoryErrors with large MAXFD. ........ r47079 | neal.norwitz | 2006-06-23 05:32:44 +0200 (Fri, 23 Jun 2006) | 1 line Fix refleak ........ r47080 | fred.drake | 2006-06-23 08:03:45 +0200 (Fri, 23 Jun 2006) | 9 lines - SF bug #853506: IP6 address parsing in sgmllib ('[' and ']' were not accepted in unquoted attribute values) - cleaned up tests of character and entity reference decoding so the tests cover the documented relationships among handle_charref, handle_entityref, convert_charref, convert_codepoint, and convert_entityref, without bringing up Unicode issues that sgmllib cannot be involved in ........ r47085 | andrew.kuchling | 2006-06-23 21:23:40 +0200 (Fri, 23 Jun 2006) | 11 lines Fit Makefile for the Python doc environment better; this is a step toward including the howtos in the build process. * Put LaTeX output in ../paper-<whatever>/. * Put HTML output in ../html/ * Explain some of the Makefile variables * Remove some cruft dating to my environment (e.g. the 'web' target) This makefile isn't currently invoked by the documentation build process, so these changes won't destabilize anything. ........ r47086 | hyeshik.chang | 2006-06-23 23:16:18 +0200 (Fri, 23 Jun 2006) | 5 lines Bug #1511381: codec_getstreamcodec() in codec.c is corrected to omit a default "error" argument for NULL pointer. This allows the parser to take a codec from cjkcodecs again. (Reported by Taewook Kang and reviewed by Walter Doerwald) ........ r47091 | ronald.oussoren | 2006-06-25 22:44:16 +0200 (Sun, 25 Jun 2006) | 6 lines Workaround for bug #1512124 Without this patch IDLE will get unresponsive when you open the debugger window on OSX. This is both using the system Tcl/Tk on Tiger as the latest universal download from tk-components.sf.net. ........ r47092 | ronald.oussoren | 2006-06-25 23:14:19 +0200 (Sun, 25 Jun 2006) | 3 lines Drop the calldll demo's for macos, calldll isn't present anymore, no need to keep the demo's around. ........ r47093 | ronald.oussoren | 2006-06-25 23:15:58 +0200 (Sun, 25 Jun 2006) | 3 lines Use a path without a double slash to compile the .py files after installation (macosx, binary installer). This fixes bug #1508369 for python 2.5. ........ r47094 | ronald.oussoren | 2006-06-25 23:19:06 +0200 (Sun, 25 Jun 2006) | 3 lines Also install the .egg-info files in Lib. This will cause wsgiref.egg-info to be installed. ........ r47097 | andrew.kuchling | 2006-06-26 14:40:02 +0200 (Mon, 26 Jun 2006) | 1 line [Bug #1511998] Various comments from Nick Coghlan; thanks! ........ r47098 | andrew.kuchling | 2006-06-26 14:43:43 +0200 (Mon, 26 Jun 2006) | 1 line Describe workaround for PyRange_New()'s removal ........ r47099 | andrew.kuchling | 2006-06-26 15:08:24 +0200 (Mon, 26 Jun 2006) | 5 lines [Bug #1512163] Fix typo. This change will probably break tests on FreeBSD buildbots, but I'll check in a fix for that next. ........ r47100 | andrew.kuchling | 2006-06-26 15:12:16 +0200 (Mon, 26 Jun 2006) | 9 lines [Bug #1512163] Use one set of locking methods, lockf(); remove the flock() calls. On FreeBSD, the two methods lockf() and flock() end up using the same mechanism and the second one fails. A Linux man page claims that the two methods are orthogonal (so locks acquired one way don't interact with locks acquired the other way) but that clearly must be false. ........ r47101 | andrew.kuchling | 2006-06-26 15:23:10 +0200 (Mon, 26 Jun 2006) | 5 lines Add a test for a conflicting lock. On slow machines, maybe the time intervals (2 sec, 0.5 sec) will be too tight. I'll see how the buildbots like it. ........ r47103 | andrew.kuchling | 2006-06-26 16:33:24 +0200 (Mon, 26 Jun 2006) | 1 line Windows doesn't have os.fork(). I'll just disable this test for now ........ r47106 | andrew.kuchling | 2006-06-26 19:00:35 +0200 (Mon, 26 Jun 2006) | 9 lines Attempt to fix build failure on OS X and Debian alpha; the symptom is consistent with os.wait() returning immediately because some other subprocess had previously exited; the test suite then immediately tries to lock the mailbox and gets an error saying it's already locked. To fix this, do a waitpid() so the test suite only continues once the intended child process has exited. ........ r47113 | neal.norwitz | 2006-06-27 06:06:46 +0200 (Tue, 27 Jun 2006) | 1 line Ignore some more warnings in the dynamic linker on an older gentoo ........ r47114 | neal.norwitz | 2006-06-27 06:09:13 +0200 (Tue, 27 Jun 2006) | 6 lines Instead of doing a make test, run the regression tests out of the installed copy. This will hopefully catch problems where directories are added under Lib/ but not to Makefile.pre.in. This breaks out the 2 runs of the test suite with and without -O which is also nicer. ........ r47115 | neal.norwitz | 2006-06-27 06:12:58 +0200 (Tue, 27 Jun 2006) | 5 lines Fix SF bug #1513032, 'make install' failure on FreeBSD 5.3. No need to install lib-old, it's empty in 2.5. ........ r47116 | neal.norwitz | 2006-06-27 06:23:06 +0200 (Tue, 27 Jun 2006) | 1 line Test unimportant change to verify buildbot does not try to build ........ r47117 | neal.norwitz | 2006-06-27 06:26:30 +0200 (Tue, 27 Jun 2006) | 1 line Try again: test unimportant change to verify buildbot does not try to build ........ r47118 | neal.norwitz | 2006-06-27 06:28:56 +0200 (Tue, 27 Jun 2006) | 1 line Verify buildbot picks up these changes (really needs testing after last change to Makefile.pre.in) ........ r47121 | vinay.sajip | 2006-06-27 09:34:37 +0200 (Tue, 27 Jun 2006) | 1 line Removed buggy exception handling in doRollover of rotating file handlers. Exceptions now propagate to caller. ........ r47123 | ronald.oussoren | 2006-06-27 12:08:25 +0200 (Tue, 27 Jun 2006) | 3 lines MacOSX: fix rather dumb buglet that made it impossible to create extensions on OSX 10.3 when using a binary distribution build on 10.4. ........ r47125 | tim.peters | 2006-06-27 13:52:49 +0200 (Tue, 27 Jun 2006) | 2 lines Whitespace normalization. ........ r47128 | ronald.oussoren | 2006-06-27 14:53:52 +0200 (Tue, 27 Jun 2006) | 8 lines Use staticly build copies of zlib and bzip2 to build the OSX installer, that way the resulting binaries have a better change of running on 10.3. This patch also updates the search logic for sleepycat db3/4, without this patch you cannot use a sleepycat build with a non-standard prefix; with this you can (at least on OSX) if you add the prefix to CPPFLAGS/LDFLAGS at configure-time. This change is needed to build the binary installer for OSX. ........ r47131 | ronald.oussoren | 2006-06-27 17:45:32 +0200 (Tue, 27 Jun 2006) | 5 lines macosx: Install a libpython2.5.a inside the framework as a symlink to the actual dylib at the root of the framework, that way tools that expect a unix-like install (python-config, but more importantly external products like mod_python) work correctly. ........ r47137 | neal.norwitz | 2006-06-28 07:03:22 +0200 (Wed, 28 Jun 2006) | 4 lines According to the man pages on Gentoo Linux and Tru64, EACCES or EAGAIN can be returned if fcntl (lockf) fails. This fixes the test failure on Tru64 by checking for either error rather than just EAGAIN. ........ r47139 | neal.norwitz | 2006-06-28 08:28:31 +0200 (Wed, 28 Jun 2006) | 5 lines Fix bug #1512695: cPickle.loads could crash if it was interrupted with a KeyboardInterrupt since PyTuple_Pack was passed a NULL. Will backport. ........ r47142 | nick.coghlan | 2006-06-28 12:41:47 +0200 (Wed, 28 Jun 2006) | 1 line Make full module name available as __module_name__ even when __name__ is set to something else (like '__main__') ........ r47143 | armin.rigo | 2006-06-28 12:49:51 +0200 (Wed, 28 Jun 2006) | 2 lines A couple of crashers of the "won't fix" kind. ........ r47147 | andrew.kuchling | 2006-06-28 16:25:20 +0200 (Wed, 28 Jun 2006) | 1 line [Bug #1508766] Add docs for uuid module; docs written by George Yoshida, with minor rearrangements by me. ........ r47148 | andrew.kuchling | 2006-06-28 16:27:21 +0200 (Wed, 28 Jun 2006) | 1 line [Bug #1508766] Add docs for uuid module; this puts the module in the 'Internet Protocols' section. Arguably this module could also have gone in the chapters on strings or encodings, maybe even the crypto chapter. Fred, please move if you see fit. ........ r47151 | georg.brandl | 2006-06-28 22:23:25 +0200 (Wed, 28 Jun 2006) | 3 lines Fix end_fill(). ........ r47153 | trent.mick | 2006-06-28 22:30:41 +0200 (Wed, 28 Jun 2006) | 2 lines Mention the expat upgrade and pyexpat fix I put in 2.5b1. ........ r47154 | fred.drake | 2006-06-29 02:51:53 +0200 (Thu, 29 Jun 2006) | 6 lines SF bug #1504333: sgmlib should allow angle brackets in quoted values (modified patch by Sam Ruby; changed to use separate REs for start and end tags to reduce matching cost for end tags; extended tests; updated to avoid breaking previous changes to support IPv6 addresses in unquoted attribute values) ........ r47156 | fred.drake | 2006-06-29 04:57:48 +0200 (Thu, 29 Jun 2006) | 1 line document recent bugfixes in sgmllib ........ r47158 | neal.norwitz | 2006-06-29 06:10:08 +0200 (Thu, 29 Jun 2006) | 10 lines Add new utility function, reap_children(), to test_support. This should be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell. ........ r47159 | neal.norwitz | 2006-06-29 07:48:14 +0200 (Thu, 29 Jun 2006) | 5 lines This should fix the buildbot failure on s/390 which can't connect to gmail.org. It makes the error message consistent and always sends to stderr. It would be much better for all the networking tests to hit only python.org. ........ r47161 | thomas.heller | 2006-06-29 20:34:15 +0200 (Thu, 29 Jun 2006) | 3 lines Protect the thread api calls in the _ctypes extension module within #ifdef WITH_THREADS/#endif blocks. Found by Sam Rushing. ........ r47162 | martin.v.loewis | 2006-06-29 20:58:44 +0200 (Thu, 29 Jun 2006) | 2 lines Patch #1509163: MS Toolkit Compiler no longer available ........ r47163 | skip.montanaro | 2006-06-29 21:20:09 +0200 (Thu, 29 Jun 2006) | 1 line add string methods to index ........ r47164 | vinay.sajip | 2006-06-30 02:13:08 +0200 (Fri, 30 Jun 2006) | 1 line Fixed bug in fileConfig() which failed to clear logging._handlerList ........ r47166 | tim.peters | 2006-06-30 08:18:39 +0200 (Fri, 30 Jun 2006) | 2 lines Whitespace normalization. ........ r47170 | neal.norwitz | 2006-06-30 09:32:16 +0200 (Fri, 30 Jun 2006) | 1 line Silence compiler warning ........ r47171 | neal.norwitz | 2006-06-30 09:32:46 +0200 (Fri, 30 Jun 2006) | 1 line Another problem reported by Coverity. Backport candidate. ........ r47175 | thomas.heller | 2006-06-30 19:44:54 +0200 (Fri, 30 Jun 2006) | 2 lines Revert the use of PY_FORMAT_SIZE_T in PyErr_Format. ........ r47176 | tim.peters | 2006-06-30 20:34:51 +0200 (Fri, 30 Jun 2006) | 2 lines Remove now-unused fidding with PY_FORMAT_SIZE_T. ........ r47177 | georg.brandl | 2006-06-30 20:47:56 +0200 (Fri, 30 Jun 2006) | 3 lines Document decorator usage of property. ........ r47181 | fred.drake | 2006-06-30 21:29:25 +0200 (Fri, 30 Jun 2006) | 4 lines - consistency nit: always include "()" in \function and \method (*should* be done by the presentation, but that requires changes all over) - avoid spreading the __name meme ........ r47188 | vinay.sajip | 2006-07-01 12:45:20 +0200 (Sat, 01 Jul 2006) | 1 line Added entry for fileConfig() bugfix. ........ r47189 | vinay.sajip | 2006-07-01 12:47:20 +0200 (Sat, 01 Jul 2006) | 1 line Added duplicate call to fileConfig() to ensure that it cleans up after itself correctly. ........ r47190 | martin.v.loewis | 2006-07-01 17:33:37 +0200 (Sat, 01 Jul 2006) | 2 lines Release all forwarded functions in .close. Fixes #1513223. ........ r47191 | fred.drake | 2006-07-01 18:28:20 +0200 (Sat, 01 Jul 2006) | 7 lines SF bug #1296433 (Expat bug #1515266): Unchecked calls to character data handler would cause a segfault. This merges in Expat's lib/xmlparse.c revisions 1.154 and 1.155, which fix this and a closely related problem (the later does not affect Python). Moved the crasher test to the tests for xml.parsers.expat. ........ r47197 | gerhard.haering | 2006-07-02 19:48:30 +0200 (Sun, 02 Jul 2006) | 4 lines The sqlite3 module did cut off data from the SQLite database at the first null character before sending it to a custom converter. This has been fixed now. ........ r47198 | martin.v.loewis | 2006-07-02 20:44:00 +0200 (Sun, 02 Jul 2006) | 1 line Correct arithmetic in access on Win32. Fixes #1513646. ........ r47203 | thomas.heller | 2006-07-03 09:58:09 +0200 (Mon, 03 Jul 2006) | 1 line Cleanup: Remove commented out code. ........ r47204 | thomas.heller | 2006-07-03 09:59:50 +0200 (Mon, 03 Jul 2006) | 1 line Don't run the doctests with Python 2.3 because it doesn't have the ELLIPSIS flag. ........ r47205 | thomas.heller | 2006-07-03 10:04:05 +0200 (Mon, 03 Jul 2006) | 7 lines Fixes so that _ctypes can be compiled with the MingW compiler. It seems that the definition of '__attribute__(x)' was responsible for the compiler ignoring the '__fastcall' attribute on the ffi_closure_SYSV function in libffi_msvc/ffi.c, took me quite some time to figure this out. ........ r47206 | thomas.heller | 2006-07-03 10:08:14 +0200 (Mon, 03 Jul 2006) | 11 lines Add a new function uses_seh() to the _ctypes extension module. This will return True if Windows Structured Exception handling (SEH) is used when calling functions, False otherwise. Currently, only MSVC supports SEH. Fix the test so that it doesn't crash when run with MingW compiled _ctypes. Note that two tests are still failing when mingw is used, I suspect structure layout differences and function calling conventions between MSVC and MingW. ........ r47207 | tim.peters | 2006-07-03 10:23:19 +0200 (Mon, 03 Jul 2006) | 2 lines Whitespace normalization. ........ r47208 | martin.v.loewis | 2006-07-03 11:44:00 +0200 (Mon, 03 Jul 2006) | 3 lines Only setup canvas when it is first created. Fixes #1514703 ........ r47209 | martin.v.loewis | 2006-07-03 12:05:30 +0200 (Mon, 03 Jul 2006) | 3 lines Reimplement turtle.circle using a polyline, to allow correct filling of arcs. Also fixes #1514693. ........ r47210 | martin.v.loewis | 2006-07-03 12:19:49 +0200 (Mon, 03 Jul 2006) | 3 lines Bug #1514693: Update turtle's heading when switching between degrees and radians. ........ r47211 | martin.v.loewis | 2006-07-03 13:12:06 +0200 (Mon, 03 Jul 2006) | 2 lines Document functions added in 2.3 and 2.5. ........ r47212 | martin.v.loewis | 2006-07-03 14:19:50 +0200 (Mon, 03 Jul 2006) | 3 lines Bug #1417699: Reject locale-specific decimal point in float() and atof(). ........ r47213 | martin.v.loewis | 2006-07-03 14:28:58 +0200 (Mon, 03 Jul 2006) | 3 lines Bug #1267547: Put proper recursive setup.py call into the spec file generated by bdist_rpm. ........ r47215 | martin.v.loewis | 2006-07-03 15:01:35 +0200 (Mon, 03 Jul 2006) | 3 lines Patch #825417: Fix timeout processing in expect, read_until. Will backport to 2.4. ........ r47218 | martin.v.loewis | 2006-07-03 15:47:40 +0200 (Mon, 03 Jul 2006) | 2 lines Put method-wrappers into trashcan. Fixes #927248. ........ r47219 | andrew.kuchling | 2006-07-03 16:07:30 +0200 (Mon, 03 Jul 2006) | 1 line [Bug #1515932] Clarify description of slice assignment ........ r47220 | andrew.kuchling | 2006-07-03 16:16:09 +0200 (Mon, 03 Jul 2006) | 4 lines [Bug #1511911] Clarify description of optional arguments to sorted() by improving the xref to the section on lists, and by copying the explanations of the arguments (with a slight modification). ........ r47223 | kristjan.jonsson | 2006-07-03 16:59:05 +0200 (Mon, 03 Jul 2006) | 1 line Fix build problems with the platform SDK on windows. It is not sufficient to test for the C compiler version when determining if we have the secure CRT from microsoft. Must test with an undocumented macro, __STDC_SECURE_LIB__ too. ........ r47224 | ronald.oussoren | 2006-07-04 14:30:22 +0200 (Tue, 04 Jul 2006) | 7 lines Sync the darwin/x86 port libffi with the copy in PyObjC. This fixes a number of bugs in that port. The most annoying ones were due to some subtle differences between the document ABI and the actual implementation :-( (there are no python unittests that fail without this patch, but without it some of libffi's unittests fail). ........ r47234 | georg.brandl | 2006-07-05 10:21:00 +0200 (Wed, 05 Jul 2006) | 3 lines Remove remaining references to OverflowWarning. ........ r47236 | thomas.heller | 2006-07-05 11:13:56 +0200 (Wed, 05 Jul 2006) | 3 lines Fix the bitfield test when _ctypes is compiled with MingW. Structures containing bitfields may have different layout on MSVC and MingW . ........ r47237 | thomas.wouters | 2006-07-05 13:03:49 +0200 (Wed, 05 Jul 2006) | 15 lines Fix bug in passing tuples to string.Template. All other values (with working str() or repr()) would work, just not multi-value tuples. Probably not a backport candidate, since it changes the behaviour of passing a single-element tuple: >>> string.Template("$foo").substitute(dict(foo=(1,))) '(1,)' versus '1' ........ r47241 | georg.brandl | 2006-07-05 16:18:45 +0200 (Wed, 05 Jul 2006) | 2 lines Patch #1517490: fix glitches in filter() docs. ........ r47244 | georg.brandl | 2006-07-05 17:50:05 +0200 (Wed, 05 Jul 2006) | 2 lines no need to elaborate "string". ........ r47251 | neal.norwitz | 2006-07-06 06:28:59 +0200 (Thu, 06 Jul 2006) | 3 lines Fix refleaks reported by Shane Hathaway in SF patch #1515361. This change contains only the changes related to leaking the copy variable. ........ r47253 | fred.drake | 2006-07-06 07:13:22 +0200 (Thu, 06 Jul 2006) | 4 lines - back out Expat change; the final fix to Expat will be different - change the pyexpat wrapper to not be so sensitive to this detail of the Expat implementation (the ex-crasher test still passes) ........ r47257 | neal.norwitz | 2006-07-06 08:45:08 +0200 (Thu, 06 Jul 2006) | 1 line Add a NEWS entry for a recent pyexpat fix ........ r47258 | martin.v.loewis | 2006-07-06 08:55:58 +0200 (Thu, 06 Jul 2006) | 2 lines Add sqlite3.dll to the DLLs component, not to the TkDLLs component. Fixes #1517388. ........ r47259 | martin.v.loewis | 2006-07-06 09:05:21 +0200 (Thu, 06 Jul 2006) | 1 line Properly quote compileall and Lib paths in case TARGETDIR has a space. ........ r47260 | thomas.heller | 2006-07-06 09:50:18 +0200 (Thu, 06 Jul 2006) | 5 lines Revert the change done in svn revision 47206: Add a new function uses_seh() to the _ctypes extension module. This will return True if Windows Structured Exception handling (SEH) is used when calling functions, False otherwise. ........ r47261 | armin.rigo | 2006-07-06 09:58:18 +0200 (Thu, 06 Jul 2006) | 3 lines A couple of examples about how to attack the fact that _PyType_Lookup() returns a borrowed ref. Many of the calls are open to attack. ........ r47262 | thomas.heller | 2006-07-06 10:28:14 +0200 (Thu, 06 Jul 2006) | 2 lines The test that calls a function with invalid arguments and catches the resulting Windows access violation will not be run by default. ........ r47263 | thomas.heller | 2006-07-06 10:48:35 +0200 (Thu, 06 Jul 2006) | 5 lines Patch #1517790: It is now possible to use custom objects in the ctypes foreign function argtypes sequence as long as they provide a from_param method, no longer is it required that the object is a ctypes type. ........ r47264 | thomas.heller | 2006-07-06 10:58:40 +0200 (Thu, 06 Jul 2006) | 2 lines Document the Struture and Union constructors. ........ r47265 | thomas.heller | 2006-07-06 11:11:22 +0200 (Thu, 06 Jul 2006) | 2 lines Document the changes in svn revision 47263, from patch #1517790. ........ r47267 | ronald.oussoren | 2006-07-06 12:13:35 +0200 (Thu, 06 Jul 2006) | 7 lines This patch solves the problem Skip was seeing with zlib, this patch ensures that configure uses similar compiler flags as setup.py when doing the zlib test. Without this patch configure would use the first shared library on the linker path, with this patch it uses the first shared or static library on that path just like setup.py. ........ r47268 | thomas.wouters | 2006-07-06 12:48:28 +0200 (Thu, 06 Jul 2006) | 4 lines NEWS entry for r47267: fixing configure's zlib probing. ........ r47269 | fredrik.lundh | 2006-07-06 14:29:24 +0200 (Thu, 06 Jul 2006) | 3 lines added XMLParser alias for cElementTree compatibility ........ r47271 | nick.coghlan | 2006-07-06 14:53:04 +0200 (Thu, 06 Jul 2006) | 1 line Revert the __module_name__ changes made in rev 47142. We'll revisit this in Python 2.6 ........ r47272 | nick.coghlan | 2006-07-06 15:04:56 +0200 (Thu, 06 Jul 2006) | 1 line Update the tutorial section on relative imports ........ r47273 | nick.coghlan | 2006-07-06 15:35:27 +0200 (Thu, 06 Jul 2006) | 1 line Ignore ImportWarning by default ........ r47274 | nick.coghlan | 2006-07-06 15:41:34 +0200 (Thu, 06 Jul 2006) | 1 line Cover ImportWarning, PendingDeprecationWarning and simplefilter() in the warnings module docs ........ r47275 | nick.coghlan | 2006-07-06 15:47:18 +0200 (Thu, 06 Jul 2006) | 1 line Add NEWS entries for the ImportWarning change and documentation update ........ r47276 | andrew.kuchling | 2006-07-06 15:57:28 +0200 (Thu, 06 Jul 2006) | 1 line ImportWarning is now silent by default ........ r47277 | thomas.heller | 2006-07-06 17:06:05 +0200 (Thu, 06 Jul 2006) | 2 lines Document the correct return type of PyLong_AsUnsignedLongLongMask. ........ r47278 | hyeshik.chang | 2006-07-06 17:21:52 +0200 (Thu, 06 Jul 2006) | 2 lines Add a testcase for r47086 which fixed a bug in codec_getstreamcodec(). ........ r47279 | hyeshik.chang | 2006-07-06 17:39:24 +0200 (Thu, 06 Jul 2006) | 3 lines Test using all CJK encodings for the testcases which don't require specific encodings. ........ r47280 | martin.v.loewis | 2006-07-06 21:28:03 +0200 (Thu, 06 Jul 2006) | 2 lines Properly generate logical file ids. Fixes #1515998. Also correct typo in Control.mapping. ........ r47287 | neal.norwitz | 2006-07-07 08:03:15 +0200 (Fri, 07 Jul 2006) | 17 lines Restore rev 47014: The hppa ubuntu box sometimes hangs forever in these tests. My guess is that the wait is failing for some reason. Use WNOHANG, so we won't wait until the buildbot kills the test suite. I haven't been able to reproduce the failure, so I'm not sure if this will help or not. Hopefully, this change will cause the test to fail, rather than hang. That will be better since we will get the rest of the test results. It may also help us debug the real problem. *** The reason this originally failed was because there were many zombie children outstanding before rev 47158 cleaned them up. There are still hangs in test_subprocess that need to be addressed, but that will take more work. This should close some holes. ........ r47289 | georg.brandl | 2006-07-07 10:15:12 +0200 (Fri, 07 Jul 2006) | 3 lines Fix RFC number. ........ r50489 | neal.norwitz | 2006-07-08 07:31:37 +0200 (Sat, 08 Jul 2006) | 1 line Fix SF bug #1519018: 'as' is now validated properly in import statements ........ r50490 | georg.brandl | 2006-07-08 14:15:27 +0200 (Sat, 08 Jul 2006) | 3 lines Add an additional test for bug #1519018. ........ r50491 | tim.peters | 2006-07-08 21:55:05 +0200 (Sat, 08 Jul 2006) | 2 lines Whitespace normalization. ........ r50493 | neil.schemenauer | 2006-07-09 18:16:34 +0200 (Sun, 09 Jul 2006) | 2 lines Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation. ........ r50495 | neil.schemenauer | 2006-07-09 23:19:29 +0200 (Sun, 09 Jul 2006) | 2 lines Fix SF bug 1441486: bad unary minus folding in compiler. ........ r50497 | neal.norwitz | 2006-07-10 00:14:42 +0200 (Mon, 10 Jul 2006) | 4 lines On 64 bit systems, int literals that use less than 64 bits are now ints rather than longs. This also fixes the test for eval(-sys.maxint - 1). ........ r50500 | neal.norwitz | 2006-07-10 02:04:44 +0200 (Mon, 10 Jul 2006) | 4 lines Bug #1512814, Fix incorrect lineno's when code at module scope started after line 256. ........ r50501 | neal.norwitz | 2006-07-10 02:05:34 +0200 (Mon, 10 Jul 2006) | 1 line Fix doco. Backport candidate. ........ r50503 | neal.norwitz | 2006-07-10 02:23:17 +0200 (Mon, 10 Jul 2006) | 5 lines Part of SF patch #1484695. This removes dead code. The chksum was already verified in .frombuf() on the lines above. If there was a problem an exception is raised, so there was no way this condition could have been true. ........ r50504 | neal.norwitz | 2006-07-10 03:18:57 +0200 (Mon, 10 Jul 2006) | 3 lines Patch #1516912: improve Modules support for OpenVMS. ........ r50506 | neal.norwitz | 2006-07-10 04:36:41 +0200 (Mon, 10 Jul 2006) | 7 lines Patch #1504046: Add documentation for xml.etree. /F wrote the text docs, Englebert Gruber massaged it to latex and I did some more massaging to try and improve the consistency and fix some name mismatches between the declaration and text. ........ r50509 | martin.v.loewis | 2006-07-10 09:23:48 +0200 (Mon, 10 Jul 2006) | 2 lines Introduce DISTUTILS_USE_SDK as a flag to determine whether the SDK environment should be used. Fixes #1508010. ........ r50510 | martin.v.loewis | 2006-07-10 09:26:41 +0200 (Mon, 10 Jul 2006) | 1 line Change error message to indicate that VS2003 is necessary to build extension modules, not the .NET SDK. ........ r50511 | martin.v.loewis | 2006-07-10 09:29:41 +0200 (Mon, 10 Jul 2006) | 1 line Add svn:ignore. ........ r50512 | anthony.baxter | 2006-07-10 09:41:04 +0200 (Mon, 10 Jul 2006) | 1 line preparing for 2.5b2 ........ r50513 | thomas.heller | 2006-07-10 11:10:28 +0200 (Mon, 10 Jul 2006) | 2 lines Fix bug #1518190: accept any integer or long value in the ctypes.c_void_p constructor. ........ r50514 | thomas.heller | 2006-07-10 11:31:06 +0200 (Mon, 10 Jul 2006) | 3 lines Fixed a segfault when ctypes.wintypes were imported on non-Windows machines. ........ r50516 | thomas.heller | 2006-07-10 13:11:10 +0200 (Mon, 10 Jul 2006) | 3 lines Assigning None to pointer type structure fields possible overwrote wrong fields. ........ r50517 | thomas.heller | 2006-07-10 13:17:37 +0200 (Mon, 10 Jul 2006) | 5 lines Moved the ctypes news entries from the 'Library' section into the 'Extension Modules' section where they belong, probably. This destroyes the original order of the news entries, don't know if that is important or not. ........ r50526 | phillip.eby | 2006-07-10 21:03:29 +0200 (Mon, 10 Jul 2006) | 2 lines Fix SF#1516184 and add a test to prevent regression. ........ r50528 | phillip.eby | 2006-07-10 21:18:35 +0200 (Mon, 10 Jul 2006) | 2 lines Fix SF#1457312: bad socket error handling in distutils "upload" command. ........ r50537 | peter.astrand | 2006-07-10 22:39:49 +0200 (Mon, 10 Jul 2006) | 1 line Make it possible to run test_subprocess.py with Python 2.2, which lacks test_support.reap_children(). ........ r50541 | tim.peters | 2006-07-10 23:08:24 +0200 (Mon, 10 Jul 2006) | 5 lines After approval from Anthony, merge the tim-current_frames branch into the trunk. This adds a new sys._current_frames() function, which returns a dict mapping thread id to topmost thread stack frame. ........ r50542 | tim.peters | 2006-07-10 23:11:49 +0200 (Mon, 10 Jul 2006) | 2 lines Whitespace normalization. ........ r50553 | martin.v.loewis | 2006-07-11 00:11:28 +0200 (Tue, 11 Jul 2006) | 4 lines Patch #1519566: Remove unused _tofill member. Make begin_fill idempotent. Update demo2 to demonstrate filling of concave shapes. ........ r50567 | anthony.baxter | 2006-07-11 04:04:09 +0200 (Tue, 11 Jul 2006) | 4 lines #1494314: Fix a regression with high-numbered sockets in 2.4.3. This means that select() on sockets > FD_SETSIZE (typically 1024) work again. The patch makes sockets use poll() internally where available. ........ r50568 | tim.peters | 2006-07-11 04:17:48 +0200 (Tue, 11 Jul 2006) | 2 lines Whitespace normalization. ........ r50575 | thomas.heller | 2006-07-11 18:42:05 +0200 (Tue, 11 Jul 2006) | 1 line Add missing Py_DECREF. ........ r50576 | thomas.heller | 2006-07-11 18:44:25 +0200 (Tue, 11 Jul 2006) | 1 line Add missing Py_DECREFs. ........ r50579 | andrew.kuchling | 2006-07-11 19:20:16 +0200 (Tue, 11 Jul 2006) | 1 line Bump version number; add sys._current_frames ........ r50582 | thomas.heller | 2006-07-11 20:28:35 +0200 (Tue, 11 Jul 2006) | 3 lines When a foreign function is retrived by calling __getitem__ on a ctypes library instance, do not set it as attribute. ........ r50583 | thomas.heller | 2006-07-11 20:40:50 +0200 (Tue, 11 Jul 2006) | 2 lines Change the ctypes version number to 1.0.0. ........ r50597 | neal.norwitz | 2006-07-12 07:26:17 +0200 (Wed, 12 Jul 2006) | 3 lines Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again. ........ r50598 | neal.norwitz | 2006-07-12 07:26:35 +0200 (Wed, 12 Jul 2006) | 1 line Fix function name in error msg ........ r50599 | neal.norwitz | 2006-07-12 07:27:46 +0200 (Wed, 12 Jul 2006) | 4 lines Fix uninitialized memory read reported by Valgrind when running doctest. This could happen if size == 0. ........ r50600 | neal.norwitz | 2006-07-12 09:28:29 +0200 (Wed, 12 Jul 2006) | 1 line Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #. ........ r50601 | thomas.heller | 2006-07-12 10:43:47 +0200 (Wed, 12 Jul 2006) | 3 lines Fix #1467450: ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to load shared libraries. ........ r50604 | thomas.heller | 2006-07-12 16:25:18 +0200 (Wed, 12 Jul 2006) | 3 lines Fix the wrong description of LibraryLoader.LoadLibrary, and document the DEFAULT_MODE constant. ........ r50607 | georg.brandl | 2006-07-12 17:31:17 +0200 (Wed, 12 Jul 2006) | 3 lines Accept long options "--help" and "--version". ........ r50617 | thomas.heller | 2006-07-13 11:53:47 +0200 (Thu, 13 Jul 2006) | 3 lines A misspelled preprocessor symbol caused ctypes to be always compiled without thread support. Replaced WITH_THREADS with WITH_THREAD. ........ r50619 | thomas.heller | 2006-07-13 19:01:14 +0200 (Thu, 13 Jul 2006) | 3 lines Fix #1521375. When running with root priviledges, 'gcc -o /dev/null' did overwrite /dev/null. Use a temporary file instead of /dev/null. ........ r50620 | thomas.heller | 2006-07-13 19:05:13 +0200 (Thu, 13 Jul 2006) | 2 lines Fix misleading words. ........ r50622 | andrew.kuchling | 2006-07-13 19:37:26 +0200 (Thu, 13 Jul 2006) | 1 line Typo fix ........ r50629 | georg.brandl | 2006-07-14 09:12:54 +0200 (Fri, 14 Jul 2006) | 3 lines Patch #1521874: grammar errors in doanddont.tex. ........ r50630 | neal.norwitz | 2006-07-14 09:20:04 +0200 (Fri, 14 Jul 2006) | 1 line Try to improve grammar further. ........ r50631 | martin.v.loewis | 2006-07-14 11:58:55 +0200 (Fri, 14 Jul 2006) | 1 line Extend build_ssl to Win64, using VSExtComp. ........ r50632 | martin.v.loewis | 2006-07-14 14:10:09 +0200 (Fri, 14 Jul 2006) | 1 line Add debug output to analyse buildbot failure. ........ r50633 | martin.v.loewis | 2006-07-14 14:31:05 +0200 (Fri, 14 Jul 2006) | 1 line Fix Debug build of _ssl. ........ r50636 | andrew.kuchling | 2006-07-14 15:32:38 +0200 (Fri, 14 Jul 2006) | 1 line Mention new options ........ r50638 | peter.astrand | 2006-07-14 16:04:45 +0200 (Fri, 14 Jul 2006) | 1 line Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode. ........ r50640 | thomas.heller | 2006-07-14 17:01:05 +0200 (Fri, 14 Jul 2006) | 4 lines Make the prototypes of our private PyUnicode_FromWideChar and PyUnicode_AsWideChar replacement functions compatible to the official functions by using Py_ssize_t instead of int. ........ r50643 | thomas.heller | 2006-07-14 19:51:14 +0200 (Fri, 14 Jul 2006) | 3 lines Patch #1521817: The index range checking on ctypes arrays containing exactly one element is enabled again. ........ r50647 | thomas.heller | 2006-07-14 20:22:50 +0200 (Fri, 14 Jul 2006) | 2 lines Updates for the ctypes documentation. ........ r50655 | fredrik.lundh | 2006-07-14 23:45:48 +0200 (Fri, 14 Jul 2006) | 3 lines typo ........ r50664 | george.yoshida | 2006-07-15 18:03:49 +0200 (Sat, 15 Jul 2006) | 2 lines Bug #15187702 : ext/win-cookbook.html has a broken link to distutils ........ r50667 | bob.ippolito | 2006-07-15 18:53:15 +0200 (Sat, 15 Jul 2006) | 1 line Patch #1220874: Update the binhex module for Mach-O. ........ r50671 | fred.drake | 2006-07-16 03:21:20 +0200 (Sun, 16 Jul 2006) | 1 line clean up some link markup ........ r50673 | neal.norwitz | 2006-07-16 03:50:38 +0200 (Sun, 16 Jul 2006) | 4 lines Bug #1512814, Fix incorrect lineno's when code within a function had more than 255 blank lines. Byte codes need to go first, line #s second. ........ r50674 | neal.norwitz | 2006-07-16 04:00:32 +0200 (Sun, 16 Jul 2006) | 5 lines a & b were dereffed above, so they are known to be valid pointers. z is known to be NULL, nothing to DECREF. Reported by Klockwork, #107. ........ r50675 | neal.norwitz | 2006-07-16 04:02:57 +0200 (Sun, 16 Jul 2006) | 5 lines self is dereffed (and passed as first arg), so it's known to be good. func is returned from PyArg_ParseTuple and also dereffed. Reported by Klocwork, #30 (self one at least). ........ r50676 | neal.norwitz | 2006-07-16 04:05:35 +0200 (Sun, 16 Jul 2006) | 4 lines proto was dereffed above and is known to be good. No need for X. Reported by Klocwork, #39. ........ r50677 | neal.norwitz | 2006-07-16 04:15:27 +0200 (Sun, 16 Jul 2006) | 5 lines Fix memory leaks in some conditions. Reported by Klocwork #152. ........ r50678 | neal.norwitz | 2006-07-16 04:17:36 +0200 (Sun, 16 Jul 2006) | 4 lines Fix memory leak under some conditions. Reported by Klocwork, #98. ........ r50679 | neal.norwitz | 2006-07-16 04:22:30 +0200 (Sun, 16 Jul 2006) | 8 lines Use sizeof(buffer) instead of duplicating the constants to ensure they won't be wrong. The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1 to strncat. strncat copies n+1 bytes from src (not dest). Reported by Klocwork #58. ........ r50680 | neal.norwitz | 2006-07-16 04:32:03 +0200 (Sun, 16 Jul 2006) | 5 lines Handle a NULL name properly. Reported by Klocwork #67 ........ r50681 | neal.norwitz | 2006-07-16 04:35:47 +0200 (Sun, 16 Jul 2006) | 6 lines PyFunction_SetDefaults() is documented as taking None or a tuple. A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError. Reported by Klocwork #73. ........ r50683 | neal.norwitz | 2006-07-17 02:55:45 +0200 (Mon, 17 Jul 2006) | 5 lines Stop INCREFing name, then checking if it's NULL. name (f_name) should never be NULL so assert it. Fix one place where we could have passed NULL. Reported by Klocwork #66. ........ r50684 | neal.norwitz | 2006-07-17 02:57:15 +0200 (Mon, 17 Jul 2006) | 5 lines otherset is known to be non-NULL based on checks before and DECREF after. DECREF otherset rather than XDECREF in error conditions too. Reported by Klockwork #154. ........ r50685 | neal.norwitz | 2006-07-17 02:59:04 +0200 (Mon, 17 Jul 2006) | 7 lines Reported by Klocwork #151. v2 can be NULL if exception2 is NULL. I don't think that condition can happen, but I'm not sure it can't either. Now the code will protect against either being NULL. ........ r50686 | neal.norwitz | 2006-07-17 03:00:16 +0200 (Mon, 17 Jul 2006) | 1 line Add NEWS entry for a bunch of fixes due to warnings produced by Klocworks static analysis tool. ........ r50687 | fred.drake | 2006-07-17 07:47:52 +0200 (Mon, 17 Jul 2006) | 3 lines document xmlcore (still minimal; needs mention in each of the xml.* modules) SF bug #1504456 (partial) ........ r50688 | georg.brandl | 2006-07-17 15:23:46 +0200 (Mon, 17 Jul 2006) | 3 lines Remove usage of sets module (patch #1500609). ........ r50689 | georg.brandl | 2006-07-17 15:26:33 +0200 (Mon, 17 Jul 2006) | 3 lines Add missing NEWS item (#1522771) ........ r50690 | andrew.kuchling | 2006-07-17 18:47:54 +0200 (Mon, 17 Jul 2006) | 1 line Attribute more features ........ r50692 | kurt.kaiser | 2006-07-17 23:59:27 +0200 (Mon, 17 Jul 2006) | 8 lines Patch 1479219 - Tal Einat 1. 'as' highlighted as builtin in comment string on import line 2. Comments such as "#False identity" which start with a keyword immediately after the '#' character aren't colored as comments. 3. u or U beginning unicode string not correctly highlighted Closes bug 1325071 ........ r50693 | barry.warsaw | 2006-07-18 01:07:51 +0200 (Tue, 18 Jul 2006) | 16 lines decode_rfc2231(): Be more robust against buggy RFC 2231 encodings. Specifically, instead of raising a ValueError when there is a single tick in the parameter, simply return that the entire string unquoted, with None for both the charset and the language. Also, if there are more than 2 ticks in the parameter, interpret the first three parts as the standard RFC 2231 parts, then the rest of the parts as the encoded string. Test cases added. Original fewer-than-3-parts fix by Tokio Kikuchi. Resolves SF bug # 1218081. I will back port the fix and tests to Python 2.4 (email 3.0) and Python 2.3 (email 2.5). Also, bump the version number to email 4.0.1, removing the 'alpha' moniker. ........ r50695 | kurt.kaiser | 2006-07-18 06:03:16 +0200 (Tue, 18 Jul 2006) | 2 lines Rebinding Tab key was inserting 'tab' instead of 'Tab'. Bug 1179168. ........ r50696 | brett.cannon | 2006-07-18 06:41:36 +0200 (Tue, 18 Jul 2006) | 6 lines Fix bug #1520914. Starting in 2.4, time.strftime() began to check the bounds of values in the time tuple passed in. Unfortunately people came to rely on undocumented behaviour of setting unneeded values to 0, regardless of if it was within the valid range. Now those values force the value internally to the minimum value when 0 is passed in. ........ r50697 | facundo.batista | 2006-07-18 14:16:13 +0200 (Tue, 18 Jul 2006) | 1 line Comments and docs cleanups, and some little fixes, provided by Santiágo Peresón ........ r50704 | martin.v.loewis | 2006-07-18 19:46:31 +0200 (Tue, 18 Jul 2006) | 2 lines Patch #1524429: Use repr instead of backticks again. ........ r50706 | tim.peters | 2006-07-18 23:55:15 +0200 (Tue, 18 Jul 2006) | 2 lines Whitespace normalization. ........ r50708 | tim.peters | 2006-07-19 02:03:19 +0200 (Wed, 19 Jul 2006) | 18 lines SF bug 1524317: configure --without-threads fails to build Moved the code for _PyThread_CurrentFrames() up, so it's no longer in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in one). Changed test_sys's test_current_frames() so it passes with or without thread supported compiled in. Note that test_sys fails when Python is compiled without threads, but for an unrelated reason (the old test_exit() fails with an indirect ImportError on the `thread` module). There are also other unrelated compilation failures without threads, in extension modules (like ctypes); at least the core compiles again. Do we really support --without-threads? If so, there are several problems remaining. ........ r50713 | thomas.heller | 2006-07-19 11:09:32 +0200 (Wed, 19 Jul 2006) | 4 lines Make sure the _ctypes extension can be compiled when WITH_THREAD is not defined on Windows, even if that configuration is probably not supported at all. ........ r50715 | martin.v.loewis | 2006-07-19 19:18:32 +0200 (Wed, 19 Jul 2006) | 4 lines Revert r50706 (Whitespace normalization) and r50697: Comments and docs cleanups, and some little fixes per recommendation from Raymond Hettinger. ........ r50719 | phillip.eby | 2006-07-20 17:54:16 +0200 (Thu, 20 Jul 2006) | 4 lines Fix SF#1516184 (again) and add a test to prevent regression. (There was a problem with empty filenames still causing recursion) ........ r50720 | georg.brandl | 2006-07-20 18:28:39 +0200 (Thu, 20 Jul 2006) | 3 lines Guard for _active being None in __del__ method. ........ r50721 | vinay.sajip | 2006-07-20 18:28:39 +0200 (Thu, 20 Jul 2006) | 1 line Updated documentation for TimedRotatingFileHandler relating to how rollover files are named. The previous documentation was wrongly the same as for RotatingFileHandler. ........ r50731 | fred.drake | 2006-07-20 22:11:57 +0200 (Thu, 20 Jul 2006) | 1 line markup fix ........ r50739 | kurt.kaiser | 2006-07-21 00:22:52 +0200 (Fri, 21 Jul 2006) | 7 lines Avoid occasional failure to detect closing paren properly. Patch 1407280 Tal Einat M ParenMatch.py M NEWS.txt M CREDITS.txt ........ r50740 | vinay.sajip | 2006-07-21 01:20:12 +0200 (Fri, 21 Jul 2006) | 1 line Addressed SF#1524081 by using a dictionary to map level names to syslog priority names, rather than a string.lower(). ........ r50741 | neal.norwitz | 2006-07-21 07:29:58 +0200 (Fri, 21 Jul 2006) | 1 line Add some asserts that we got good params passed ........ r50742 | neal.norwitz | 2006-07-21 07:31:02 +0200 (Fri, 21 Jul 2006) | 5 lines Move the initialization of some pointers earlier. The problem is that if we call Py_DECREF(frame) like we do if allocating locals fails, frame_dealloc() will try to use these bogus values and crash. ........ r50743 | neal.norwitz | 2006-07-21 07:32:28 +0200 (Fri, 21 Jul 2006) | 4 lines Handle allocation failures gracefully. Found with failmalloc. Many (all?) of these could be backported. ........ r50745 | neal.norwitz | 2006-07-21 09:59:02 +0200 (Fri, 21 Jul 2006) | 1 line Speel initialise write. Tanks Anthony. ........ r50746 | neal.norwitz | 2006-07-21 09:59:47 +0200 (Fri, 21 Jul 2006) | 2 lines Handle more memory allocation failures without crashing. ........ r50754 | barry.warsaw | 2006-07-21 16:51:07 +0200 (Fri, 21 Jul 2006) | 23 lines More RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightly points out there are really two types of continued headers defined in this RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded parameters with the form "name*0="), but we were were handling them both the same way and that isn't correct. This patch should be much more RFC compliant in that only encoded params are %-decoded and the charset/language information is only extract if there are any encoded params in the segments. If there are no encoded params then the RFC says that there will be no charset/language parts. Note however that this will change the return value for Message.get_param() in some cases. For example, whereas before if you had all unencoded param continuations you would have still gotten a 3-tuple back from this method (with charset and language == None), you will now get just a string. I don't believe this is a backward incompatible change though because the documentation for this method already indicates that either return value is possible and that you must do an isinstance(val, tuple) check to discriminate between the two. (Yeah that API kind of sucks but we can't change /that/ without breaking code.) Test cases, some documentation updates, and a NEWS item accompany this patch. ........ r50759 | georg.brandl | 2006-07-21 19:36:31 +0200 (Fri, 21 Jul 2006) | 3 lines Fix check for empty list (vs. None). ........ r50771 | brett.cannon | 2006-07-22 00:44:07 +0200 (Sat, 22 Jul 2006) | 2 lines Remove an XXX marker in a comment. ........ r50773 | neal.norwitz | 2006-07-22 18:20:49 +0200 (Sat, 22 Jul 2006) | 1 line Fix more memory allocation issues found with failmalloc. ........ r50774 | neal.norwitz | 2006-07-22 19:00:57 +0200 (Sat, 22 Jul 2006) | 1 line Don't fail if the directory already exists ........ r50775 | greg.ward | 2006-07-23 04:25:53 +0200 (Sun, 23 Jul 2006) | 6 lines Be a lot smarter about whether this test passes: instead of assuming that a 2.93 sec audio file will always take 3.1 sec (as it did on the hardware I had when I first wrote the test), expect that it will take 2.93 sec +/- 10%, and only fail if it's outside of that range. Compute the expected ........ r50776 | kurt.kaiser | 2006-07-23 06:19:49 +0200 (Sun, 23 Jul 2006) | 2 lines Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie ........ r50777 | neal.norwitz | 2006-07-23 09:50:36 +0200 (Sun, 23 Jul 2006) | 1 line Handle more mem alloc issues found with failmalloc ........ r50778 | neal.norwitz | 2006-07-23 09:51:58 +0200 (Sun, 23 Jul 2006) | 5 lines If the for loop isn't entered, entryblock will be NULL. If passed to stackdepth_walk it will be dereffed. Not sure if I found with failmalloc or Klockwork #55. ........ r50779 | neal.norwitz | 2006-07-23 09:53:14 +0200 (Sun, 23 Jul 2006) | 4 lines Move the initialization of size_a down below the check for a being NULL. Reported by Klocwork #106 ........ r50780 | neal.norwitz | 2006-07-23 09:55:55 +0200 (Sun, 23 Jul 2006) | 9 lines Check the allocation of b_objects and return if there was a failure. Also fix a few memory leaks in other failure scenarios. It seems that if b_objects == Py_None, we will have an extra ref to b_objects. Add XXX comment so hopefully someone documents why the else isn't necessary or adds it in. Reported by Klocwork #20 ........ r50781 | neal.norwitz | 2006-07-23 09:57:11 +0200 (Sun, 23 Jul 2006) | 2 lines Fix memory leaks spotted by Klocwork #37. ........ r50782 | neal.norwitz | 2006-07-23 09:59:00 +0200 (Sun, 23 Jul 2006) | 5 lines nextlink can be NULL if teedataobject_new fails, so use XINCREF. Ensure that dataobj is never NULL. Reported by Klocwork #102 ........ r50783 | neal.norwitz | 2006-07-23 10:01:43 +0200 (Sun, 23 Jul 2006) | 8 lines Ensure we don't write beyond errText. I think I got this right, but it definitely could use some review to ensure I'm not off by one and there's no possible overflow/wrap-around of bytes_left. Reported by Klocwork #1. Fix a problem if there is a failure allocating self->db. Found with failmalloc. ........ r50784 | ronald.oussoren | 2006-07-23 11:41:09 +0200 (Sun, 23 Jul 2006) | 3 lines Without this patch CMD-W won't close EditorWindows on MacOS X. This solves part of bug #1517990. ........ r50785 | ronald.oussoren | 2006-07-23 11:46:11 +0200 (Sun, 23 Jul 2006) | 5 lines Fix for bug #1517996: Class and Path browsers show Tk menu This patch replaces the menubar that is used by AquaTk for windows without a menubar of their own by one that is more appropriate for IDLE. ........ r50786 | andrew.macintyre | 2006-07-23 14:57:02 +0200 (Sun, 23 Jul 2006) | 2 lines Build updates for OS/2 EMX port ........ r50787 | andrew.macintyre | 2006-07-23 15:00:04 +0200 (Sun, 23 Jul 2006) | 3 lines bugfix: PyThread_start_new_thread() returns the thread ID, not a flag; will backport. ........ r50789 | andrew.macintyre | 2006-07-23 15:04:00 +0200 (Sun, 23 Jul 2006) | 2 lines Get mailbox module working on OS/2 EMX port. ........ r50791 | greg.ward | 2006-07-23 18:05:51 +0200 (Sun, 23 Jul 2006) | 1 line Resync optparse with Optik 1.5.3: minor tweaks for/to tests. ........ r50794 | martin.v.loewis | 2006-07-24 07:05:22 +0200 (Mon, 24 Jul 2006) | 2 lines Update list of unsupported systems. Fixes #1510853. ........ r50795 | martin.v.loewis | 2006-07-24 12:26:33 +0200 (Mon, 24 Jul 2006) | 1 line Patch #1448199: Release GIL around ConnectRegistry. ........ r50796 | martin.v.loewis | 2006-07-24 13:54:53 +0200 (Mon, 24 Jul 2006) | 3 lines Patch #1232023: Don't include empty path component from registry, so that the current directory does not get added to sys.path. Also fixes #1526785. ........ r50797 | martin.v.loewis | 2006-07-24 14:54:17 +0200 (Mon, 24 Jul 2006) | 3 lines Bug #1524310: Properly report errors from FindNextFile in os.listdir. Will backport to 2.4. ........ r50800 | georg.brandl | 2006-07-24 15:28:57 +0200 (Mon, 24 Jul 2006) | 7 lines Patch #1523356: fix determining include dirs in python-config. Also don't install "python-config" when doing altinstall, but always install "python-config2.x" and make a link to it like with the main executable. ........ r50802 | georg.brandl | 2006-07-24 15:46:47 +0200 (Mon, 24 Jul 2006) | 3 lines Patch #1527744: right order of includes in order to have HAVE_CONIO_H defined properly. ........ r50803 | georg.brandl | 2006-07-24 16:09:56 +0200 (Mon, 24 Jul 2006) | 3 lines Patch #1515343: Fix printing of deprecated string exceptions with a value in the traceback module. ........ r50804 | kurt.kaiser | 2006-07-24 19:13:23 +0200 (Mon, 24 Jul 2006) | 7 lines EditorWindow failed when used stand-alone if sys.ps1 not set. Bug 1010370 Dave Florek M EditorWindow.py M PyShell.py M NEWS.txt ........ r50805 | kurt.kaiser | 2006-07-24 20:05:51 +0200 (Mon, 24 Jul 2006) | 6 lines - EditorWindow.test() was failing. Bug 1417598 M EditorWindow.py M ScriptBinding.py M NEWS.txt ........ r50808 | georg.brandl | 2006-07-24 22:11:35 +0200 (Mon, 24 Jul 2006) | 3 lines Repair accidental NameError. ........ r50809 | tim.peters | 2006-07-24 23:02:15 +0200 (Mon, 24 Jul 2006) | 2 lines Whitespace normalization. ........ r50810 | greg.ward | 2006-07-25 04:11:12 +0200 (Tue, 25 Jul 2006) | 3 lines Don't use standard assert: want tests to fail even when run with -O. Delete cruft. ........ r50811 | tim.peters | 2006-07-25 06:07:22 +0200 (Tue, 25 Jul 2006) | 10 lines current_frames_with_threads(): There's actually no way to guess /which/ line the spawned thread is in at the time sys._current_frames() is called: we know it finished enter_g.set(), but can't know whether the instruction counter has advanced to the following leave_g.wait(). The latter is overwhelming most likely, but not guaranteed, and I see that the "x86 Ubuntu dapper (icc) trunk" buildbot found it on the other line once. Changed the test so it passes in either case. ........ r50815 | martin.v.loewis | 2006-07-25 11:53:12 +0200 (Tue, 25 Jul 2006) | 2 lines Bug #1525817: Don't truncate short lines in IDLE's tool tips. ........ r50816 | martin.v.loewis | 2006-07-25 12:05:47 +0200 (Tue, 25 Jul 2006) | 3 lines Bug #978833: Really close underlying socket in _socketobject.close. Will backport to 2.4. ........ r50817 | martin.v.loewis | 2006-07-25 12:11:14 +0200 (Tue, 25 Jul 2006) | 1 line Revert incomplete checkin. ........ r50819 | georg.brandl | 2006-07-25 12:22:34 +0200 (Tue, 25 Jul 2006) | 4 lines Patch #1525766: correctly pass onerror arg to recursive calls of pkg.walk_packages. Also improve the docstrings. ........ r50825 | brett.cannon | 2006-07-25 19:32:20 +0200 (Tue, 25 Jul 2006) | 2 lines Add comment for changes to test_ossaudiodev. ........ r50826 | brett.cannon | 2006-07-25 19:34:36 +0200 (Tue, 25 Jul 2006) | 3 lines Fix a bug in the messages for an assert failure where not enough arguments to a string were being converted in the format. ........ r50828 | armin.rigo | 2006-07-25 20:09:57 +0200 (Tue, 25 Jul 2006) | 2 lines Document why is and is not a good way to fix the gc_inspection crasher. ........ r50829 | armin.rigo | 2006-07-25 20:11:07 +0200 (Tue, 25 Jul 2006) | 5 lines Added another crasher, which hit me today (I was not intentionally writing such code, of course, but it took some gdb time to figure out what my bug was). ........ r50830 | armin.rigo | 2006-07-25 20:38:39 +0200 (Tue, 25 Jul 2006) | 3 lines Document the crashers that will not go away soon as "won't fix", and explain why. ........ r50831 | ronald.oussoren | 2006-07-25 21:13:35 +0200 (Tue, 25 Jul 2006) | 3 lines Install the compatibility symlink to libpython.a on OSX using 'ln -sf' instead of 'ln -s', this avoid problems when reinstalling python. ........ r50832 | ronald.oussoren | 2006-07-25 21:20:54 +0200 (Tue, 25 Jul 2006) | 7 lines Fix for bug #1525447 (renaming to MacOSmodule.c would also work, but not without causing problems for anyone that is on a case-insensitive filesystem). Setup.py tries to compile the MacOS extension from MacOSmodule.c, while the actual file is named macosmodule.c. This is no problem on the (default) case-insensitive filesystem, but doesn't work on case-sensitive filesystems. ........ r50833 | ronald.oussoren | 2006-07-25 22:28:55 +0200 (Tue, 25 Jul 2006) | 7 lines Fix bug #1517990: IDLE keybindings on OSX This adds a new key definition for OSX, which is slightly different from the classic mac definition. Also add NEWS item for a couple of bugfixes I added recently. ........ r50834 | tim.peters | 2006-07-26 00:30:24 +0200 (Wed, 26 Jul 2006) | 2 lines Whitespace normalization. ........ r50839 | neal.norwitz | 2006-07-26 06:00:18 +0200 (Wed, 26 Jul 2006) | 1 line Hmm, only python2.x is installed, not plain python. Did that change recently? ........ r50840 | barry.warsaw | 2006-07-26 07:54:46 +0200 (Wed, 26 Jul 2006) | 6 lines Forward port some fixes that were in email 2.5 but for some reason didn't make it into email 4.0. Specifically, in Message.get_content_charset(), handle RFC 2231 headers that contain an encoding not known to Python, or a character in the data that isn't in the charset encoding. Also forward port the appropriate unit tests. ........ r50841 | georg.brandl | 2006-07-26 09:23:32 +0200 (Wed, 26 Jul 2006) | 3 lines NEWS entry for #1525766. ........ r50842 | georg.brandl | 2006-07-26 09:40:17 +0200 (Wed, 26 Jul 2006) | 3 lines Bug #1459963: properly capitalize HTTP header names. ........ r50843 | georg.brandl | 2006-07-26 10:03:10 +0200 (Wed, 26 Jul 2006) | 6 lines Part of bug #1523610: fix miscalculation of buffer length. Also add a guard against NULL in converttuple and add a test case (that previously would have crashed). ........ r50844 | martin.v.loewis | 2006-07-26 14:12:56 +0200 (Wed, 26 Jul 2006) | 3 lines Bug #978833: Really close underlying socket in _socketobject.close. Fix httplib.HTTPConnection.getresponse to not close the socket if it is still needed for the response. ........ r50845 | andrew.kuchling | 2006-07-26 19:16:52 +0200 (Wed, 26 Jul 2006) | 1 line [Bug #1471938] Fix build problem on Solaris 8 by conditionalizing the use of mvwgetnstr(); it was conditionalized a few lines below. Fix from Paul Eggert. I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment. ........ r50846 | andrew.kuchling | 2006-07-26 19:18:01 +0200 (Wed, 26 Jul 2006) | 1 line Correct error message ........ r50847 | andrew.kuchling | 2006-07-26 19:19:39 +0200 (Wed, 26 Jul 2006) | 1 line Minor grammar fix ........ r50848 | andrew.kuchling | 2006-07-26 19:22:21 +0200 (Wed, 26 Jul 2006) | 1 line Put news item in right section ........ r50850 | andrew.kuchling | 2006-07-26 20:03:12 +0200 (Wed, 26 Jul 2006) | 1 line Use sys.exc_info() ........ r50851 | andrew.kuchling | 2006-07-26 20:15:45 +0200 (Wed, 26 Jul 2006) | 1 line Use sys.exc_info() ........ r50852 | phillip.eby | 2006-07-26 21:48:27 +0200 (Wed, 26 Jul 2006) | 4 lines Allow the 'onerror' argument to walk_packages() to catch any Exception, not just ImportError. This allows documentation tools to better skip unimportable packages. ........ r50854 | tim.peters | 2006-07-27 01:23:15 +0200 (Thu, 27 Jul 2006) | 2 lines Whitespace normalization. ........ r50855 | tim.peters | 2006-07-27 03:14:53 +0200 (Thu, 27 Jul 2006) | 21 lines Bug #1521947: possible bug in mystrtol.c with recent gcc. In general, C doesn't define anything about what happens when an operation on a signed integral type overflows, and PyOS_strtol() did several formally undefined things of that nature on signed longs. Some version of gcc apparently tries to exploit that now, and PyOS_strtol() could fail to detect overflow then. Tried to repair all that, although it seems at least as likely to me that we'll get screwed by bad platform definitions for LONG_MIN and/or LONG_MAX now. For that reason, I don't recommend backporting this. Note that I have no box on which this makes a lick of difference -- can't really test it, except to note that it didn't break anything on my boxes. Silent change: PyOS_strtol() used to return the hard-coded 0x7fffffff in case of overflow. Now it returns LONG_MAX. They're the same only on 32-bit boxes (although C doesn't guarantee that either ...). ........ r50856 | neal.norwitz | 2006-07-27 05:51:58 +0200 (Thu, 27 Jul 2006) | 6 lines Don't kill a normal instance of python running on windows when checking to kill a cygwin instance. build\\python.exe was matching a normal windows instance. Prefix that with a \\ to ensure build is a directory and not PCbuild. As discussed on python-dev. ........ r50857 | neal.norwitz | 2006-07-27 05:55:39 +0200 (Thu, 27 Jul 2006) | 5 lines Closure can't be NULL at this point since we know it's a tuple. Reported by Klocwork # 74. ........ r50858 | neal.norwitz | 2006-07-27 06:04:50 +0200 (Thu, 27 Jul 2006) | 1 line No functional change. Add comment and assert to describe why there cannot be overflow which was reported by Klocwork. Discussed on python-dev ........ r50859 | martin.v.loewis | 2006-07-27 08:38:16 +0200 (Thu, 27 Jul 2006) | 3 lines Bump distutils version to 2.5, as several new features have been introduced since 2.4. ........ r50860 | andrew.kuchling | 2006-07-27 14:18:20 +0200 (Thu, 27 Jul 2006) | 1 line Reformat docstring; fix typo ........ r50861 | georg.brandl | 2006-07-27 17:05:36 +0200 (Thu, 27 Jul 2006) | 6 lines Add test_main() methods. These three tests were never run by regrtest.py. We really need a simpler testing framework. ........ r50862 | tim.peters | 2006-07-27 17:09:20 +0200 (Thu, 27 Jul 2006) | 2 lines News for patch #1529686. ........ r50863 | tim.peters | 2006-07-27 17:11:00 +0200 (Thu, 27 Jul 2006) | 2 lines Whitespace normalization. ........ r50864 | georg.brandl | 2006-07-27 17:38:33 +0200 (Thu, 27 Jul 2006) | 3 lines Amend news entry. ........ r50865 | georg.brandl | 2006-07-27 18:08:15 +0200 (Thu, 27 Jul 2006) | 3 lines Make uuid test suite pass on this box by requesting output with LC_ALL=C. ........ r50866 | andrew.kuchling | 2006-07-27 20:37:33 +0200 (Thu, 27 Jul 2006) | 1 line Add example ........ r50867 | thomas.heller | 2006-07-27 20:39:55 +0200 (Thu, 27 Jul 2006) | 9 lines Remove code that is no longer used (ctypes.com). Fix the DllGetClassObject and DllCanUnloadNow so that they forward the call to the comtypes.server.inprocserver module. The latter was never documented, never used by published code, and didn't work anyway, so I think it does not deserve a NEWS entry (but I might be wrong). ........ r50868 | andrew.kuchling | 2006-07-27 20:41:21 +0200 (Thu, 27 Jul 2006) | 1 line Typo fix ('publically' is rare, poss. non-standard) ........ r50869 | andrew.kuchling | 2006-07-27 20:42:41 +0200 (Thu, 27 Jul 2006) | 1 line Add missing word ........ r50870 | andrew.kuchling | 2006-07-27 20:44:10 +0200 (Thu, 27 Jul 2006) | 1 line Repair typos ........ r50872 | andrew.kuchling | 2006-07-27 20:53:33 +0200 (Thu, 27 Jul 2006) | 1 line Update URL; add example ........ r50873 | andrew.kuchling | 2006-07-27 21:07:29 +0200 (Thu, 27 Jul 2006) | 1 line Add punctuation mark; add some examples ........ r50874 | andrew.kuchling | 2006-07-27 21:11:07 +0200 (Thu, 27 Jul 2006) | 1 line Mention base64 module; rewrite last sentence to be more positive ........ r50875 | andrew.kuchling | 2006-07-27 21:12:49 +0200 (Thu, 27 Jul 2006) | 1 line If binhex is higher-level than binascii, it should come first in the chapter ........ r50876 | tim.peters | 2006-07-27 22:47:24 +0200 (Thu, 27 Jul 2006) | 28 lines check_node(): stop spraying mystery output to stderr. When a node number disagrees, keep track of all sources & the node numbers they reported, and stick all that in the error message. Changed all callers to supply a non-empty "source" argument; made the "source" argument non-optional. On my box, test_uuid still fails, but with the less confusing output: AssertionError: different sources disagree on node: from source 'getnode1', node was 00038a000015 from source 'getnode2', node was 00038a000015 from source 'ipconfig', node was 001111b2b7bf Only the last one appears to be correct; e.g., C:\Code\python\PCbuild>getmac Physical Address Transport Name =================== ========================================================== 00-11-11-B2-B7-BF \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1} 62-A1-AC-6C-FD-BE \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A} E2-1F-01-C6-5D-88 \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4} I can't find anything on my box with MAC 00-03-8a-00-00-15, and am not clear on where that comes from. ........ r50878 | andrew.kuchling | 2006-07-28 00:40:05 +0200 (Fri, 28 Jul 2006) | 1 line Reword paragraph ........ r50879 | andrew.kuchling | 2006-07-28 00:49:38 +0200 (Fri, 28 Jul 2006) | 1 line Add example ........ r50880 | andrew.kuchling | 2006-07-28 00:49:54 +0200 (Fri, 28 Jul 2006) | 1 line Add example ........ r50881 | barry.warsaw | 2006-07-28 01:43:15 +0200 (Fri, 28 Jul 2006) | 27 lines Patch #1520294: Support for getset and member descriptors in types.py, inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow. ........ r50882 | tim.peters | 2006-07-28 01:44:37 +0200 (Fri, 28 Jul 2006) | 4 lines Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns. ........ r50883 | tim.peters | 2006-07-28 01:45:48 +0200 (Fri, 28 Jul 2006) | 2 lines Whitespace normalization. ........ r50884 | tim.peters | 2006-07-28 01:46:36 +0200 (Fri, 28 Jul 2006) | 2 lines Add missing svn:eol-style property to text files. ........ r50885 | barry.warsaw | 2006-07-28 01:50:40 +0200 (Fri, 28 Jul 2006) | 4 lines Enable the building of the _types module on Windows. Note that this has only been tested for VS 2003 since that's all I have. ........ r50887 | tim.peters | 2006-07-28 02:23:15 +0200 (Fri, 28 Jul 2006) | 7 lines defdict_reduce(): Plug leaks. We didn't notice these before because test_defaultdict didn't actually do anything before Georg fixed that earlier today. Neal's next refleak run then showed test_defaultdict leaking 9 references on each run. That's repaired by this checkin. ........ r50888 | tim.peters | 2006-07-28 02:30:00 +0200 (Fri, 28 Jul 2006) | 2 lines News about the repaired memory leak in defaultdict. ........ r50889 | gregory.p.smith | 2006-07-28 03:35:25 +0200 (Fri, 28 Jul 2006) | 7 lines - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename methods now allow their database parameter to be None as the sleepycat API allows. Also adds an appropriate test case for DBEnv.dbrename and dbremove. ........ r50895 | neal.norwitz | 2006-07-28 06:22:34 +0200 (Fri, 28 Jul 2006) | 1 line Ensure the actual number matches the expected count ........ r50896 | tim.peters | 2006-07-28 06:51:59 +0200 (Fri, 28 Jul 2006) | 6 lines Live with that "the hardware address" is an ill-defined concept, and that different ways of trying to find "the hardware address" may return different results. Certainly true on both of my Windows boxes, and in different ways (see whining on python-dev). ........ r50897 | neal.norwitz | 2006-07-28 09:21:27 +0200 (Fri, 28 Jul 2006) | 3 lines Try to find the MAC addr on various flavours of Unix. This seems hopeless. The reduces the test_uuid failures, but there's still another method failing. ........ r50898 | martin.v.loewis | 2006-07-28 09:45:49 +0200 (Fri, 28 Jul 2006) | 2 lines Add UUID for upcoming 2.5b3. ........ r50899 | matt.fleming | 2006-07-28 13:27:27 +0200 (Fri, 28 Jul 2006) | 3 lines Allow socketmodule to compile on NetBSD -current, whose bluetooth API differs from both Linux and FreeBSD. Accepted by Neal Norwitz. ........ r50900 | andrew.kuchling | 2006-07-28 14:07:12 +0200 (Fri, 28 Jul 2006) | 1 line [Patch #1529811] Correction to description of r|* mode ........ r50901 | andrew.kuchling | 2006-07-28 14:18:22 +0200 (Fri, 28 Jul 2006) | 1 line Typo fix ........ r50902 | andrew.kuchling | 2006-07-28 14:32:43 +0200 (Fri, 28 Jul 2006) | 1 line Add example ........ r50903 | andrew.kuchling | 2006-07-28 14:33:19 +0200 (Fri, 28 Jul 2006) | 1 line Add example ........ r50904 | andrew.kuchling | 2006-07-28 14:45:55 +0200 (Fri, 28 Jul 2006) | 1 line Don't overwrite built-in name; add some blank lines for readability ........ r50905 | andrew.kuchling | 2006-07-28 14:48:07 +0200 (Fri, 28 Jul 2006) | 1 line Add example. Should I propagate this example to all the other DBM-ish modules, too? ........ r50912 | georg.brandl | 2006-07-28 20:31:39 +0200 (Fri, 28 Jul 2006) | 3 lines Patch #1529686: also run test_email_codecs with regrtest.py. ........ r50913 | georg.brandl | 2006-07-28 20:36:01 +0200 (Fri, 28 Jul 2006) | 3 lines Fix spelling. ........ r50915 | thomas.heller | 2006-07-28 21:42:40 +0200 (Fri, 28 Jul 2006) | 3 lines Remove a useless XXX comment. Cosmetic changes to the code so that the #ifdef _UNICODE block doesn't mess emacs code formatting. ........ r50916 | phillip.eby | 2006-07-28 23:12:07 +0200 (Fri, 28 Jul 2006) | 5 lines Bug #1529871: The speed enhancement patch #921466 broke Python's compliance with PEP 302. This was fixed by adding an ``imp.NullImporter`` type that is used in ``sys.path_importer_cache`` to cache non-directory paths and avoid excessive filesystem operations during imports. ........ r50917 | phillip.eby | 2006-07-28 23:31:54 +0200 (Fri, 28 Jul 2006) | 2 lines Fix svn merge spew. ........ r50918 | thomas.heller | 2006-07-28 23:43:20 +0200 (Fri, 28 Jul 2006) | 4 lines Patch #1529514: More openbsd platforms for ctypes. Regenerated Modules/_ctypes/libffi/configure with autoconf 2.59. Approved by Neal. ........ r50922 | georg.brandl | 2006-07-29 10:51:21 +0200 (Sat, 29 Jul 2006) | 2 lines Bug #835255: The "closure" argument to new.function() is now documented. ........ r50924 | georg.brandl | 2006-07-29 11:33:26 +0200 (Sat, 29 Jul 2006) | 3 lines Bug #1441397: The compiler module now recognizes module and function docstrings correctly as it did in Python 2.4. ........ r50925 | georg.brandl | 2006-07-29 12:25:46 +0200 (Sat, 29 Jul 2006) | 4 lines Revert rev 42617, it was introduced to work around bug #1441397. test_compiler now passes again. ........ r50926 | fred.drake | 2006-07-29 15:22:49 +0200 (Sat, 29 Jul 2006) | 1 line update target version number ........ r50927 | andrew.kuchling | 2006-07-29 15:56:48 +0200 (Sat, 29 Jul 2006) | 1 line Add example ........ r50928 | andrew.kuchling | 2006-07-29 16:04:47 +0200 (Sat, 29 Jul 2006) | 1 line Update URL ........ r50930 | andrew.kuchling | 2006-07-29 16:08:15 +0200 (Sat, 29 Jul 2006) | 1 line Reword paragraph to match the order of the subsequent sections ........ r50931 | andrew.kuchling | 2006-07-29 16:21:15 +0200 (Sat, 29 Jul 2006) | 1 line [Bug #1529157] Mention raw_input() and input(); while I'm at it, reword the description a bit ........ r50932 | andrew.kuchling | 2006-07-29 16:42:48 +0200 (Sat, 29 Jul 2006) | 1 line [Bug #1519571] Document some missing functions: setup(), title(), done() ........ r50933 | andrew.kuchling | 2006-07-29 16:43:55 +0200 (Sat, 29 Jul 2006) | 1 line Fix docstring punctuation ........ r50934 | andrew.kuchling | 2006-07-29 17:10:32 +0200 (Sat, 29 Jul 2006) | 1 line [Bug #1414697] Change docstring of set/frozenset types to specify that the contents are unique. Raymond, please feel free to edit or revert. ........ r50935 | andrew.kuchling | 2006-07-29 17:35:21 +0200 (Sat, 29 Jul 2006) | 1 line [Bug #1530382] Document SSL.server(), .issuer() methods ........ r50936 | andrew.kuchling | 2006-07-29 17:42:46 +0200 (Sat, 29 Jul 2006) | 1 line Typo fix ........ r50937 | andrew.kuchling | 2006-07-29 17:43:13 +0200 (Sat, 29 Jul 2006) | 1 line Tweak wording ........ r50938 | matt.fleming | 2006-07-29 17:55:30 +0200 (Sat, 29 Jul 2006) | 2 lines Fix typo ........ r50939 | andrew.kuchling | 2006-07-29 17:57:08 +0200 (Sat, 29 Jul 2006) | 6 lines [Bug #1528258] Mention that the 'data' argument can be None. The constructor docs referred the reader to the add_data() method's docs, but they weren't very helpful. I've simply copied an earlier explanation of 'data' that's more useful. ........ r50940 | andrew.kuchling | 2006-07-29 18:08:40 +0200 (Sat, 29 Jul 2006) | 1 line Set bug/patch count. Take a bow, everyone! ........ r50941 | fred.drake | 2006-07-29 18:56:15 +0200 (Sat, 29 Jul 2006) | 18 lines expunge the xmlcore changes: 41667, 41668 - initial switch to xmlcore 47044 - mention of xmlcore in What's New 50687 - mention of xmlcore in the library reference re-apply xmlcore changes to xml: 41674 - line ending changes (re-applied manually), directory props 41677 - add cElementTree wrapper 41678 - PSF licensing for etree 41812 - whitespace normalization 42724 - fix svn:eol-style settings 43681, 43682 - remove Python version-compatibility cruft from minidom 46773 - fix encoding of \r\n\t in attr values in saxutils 47269 - added XMLParser alias for cElementTree compatibility additional tests were added in Lib/test/test_sax.py that failed with the xmlcore changes; these relate to SF bugs #1511497, #1513611 ........ r50942 | andrew.kuchling | 2006-07-29 20:14:07 +0200 (Sat, 29 Jul 2006) | 17 lines Reorganize the docs for 'file' and 'open()' after some discussion with Fred. We want to encourage users to write open() when opening a file, but open() was described with a single paragraph and 'file' had lots of explanation of the mode and bufsize arguments. I've shrunk the description of 'file' to cross-reference to the 'File objects' section, and to open() for an explanation of the arguments. open() now has all the paragraphs about the mode string. The bufsize argument was moved up so that it isn't buried at the end; now there's 1 paragraph on mode, 1 on bufsize, and then 3 more on mode. Various other edits and rearrangements were made in the process. It's probably best to read the final text and not to try to make sense of the diffs. ........ r50943 | fred.drake | 2006-07-29 20:19:19 +0200 (Sat, 29 Jul 2006) | 1 line restore test un-intentionally removed in the xmlcore purge (revision 50941) ........ r50944 | fred.drake | 2006-07-29 20:33:29 +0200 (Sat, 29 Jul 2006) | 3 lines make the reference to older versions of the documentation a link to the right page on python.org ........ r50945 | fred.drake | 2006-07-29 21:09:01 +0200 (Sat, 29 Jul 2006) | 1 line document the footnote usage pattern ........ r50947 | fred.drake | 2006-07-29 21:14:10 +0200 (Sat, 29 Jul 2006) | 1 line emphasize and oddball nuance of LaTeX comment syntax ........ r50948 | andrew.kuchling | 2006-07-29 21:24:04 +0200 (Sat, 29 Jul 2006) | 1 line [Patch #1490989 from Skip Montanaro] Mention debugging builds in the API documentation. I've changed Skip's patch to point to Misc/SpecialBuilds and fiddled with the markup a bit. ........ r50949 | neal.norwitz | 2006-07-29 21:29:35 +0200 (Sat, 29 Jul 2006) | 6 lines Disable these tests until they are reliable across platforms. These problems may mask more important, real problems. One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu. They pass on Windows and some Linux boxes. ........ r50950 | andrew.kuchling | 2006-07-29 21:50:37 +0200 (Sat, 29 Jul 2006) | 1 line [Patch #1068277] Clarify that os.path.exists() can return False depending on permissions. Fred approved committing this patch in December 2004! ........ r50952 | fred.drake | 2006-07-29 22:04:42 +0200 (Sat, 29 Jul 2006) | 6 lines SF bug #1193966: Weakref types documentation misplaced The information about supporting weakrefs with types defined in C extensions is moved to the Extending & Embedding manual. Py_TPFLAGS_HAVE_WEAKREFS is no longer mentioned since it is part of Py_TPFLAGS_DEFAULT. ........ r50953 | skip.montanaro | 2006-07-29 22:06:05 +0200 (Sat, 29 Jul 2006) | 4 lines Add a comment to the csv reader documentation that explains why the treatment of newlines changed in 2.5. Pulled almost verbatim from a comment by Andrew McNamara in <http://python.org/sf/1465014>. ........ r50954 | neal.norwitz | 2006-07-29 22:20:52 +0200 (Sat, 29 Jul 2006) | 3 lines If the executable doesn't exist, there's no reason to try to start it. This prevents garbage about command not found being printed on Solaris. ........ r50955 | fred.drake | 2006-07-29 22:21:25 +0200 (Sat, 29 Jul 2006) | 1 line fix minor markup error that introduced extra punctuation ........ r50957 | neal.norwitz | 2006-07-29 22:37:08 +0200 (Sat, 29 Jul 2006) | 3 lines Disable test_getnode too, since this is also unreliable. ........ r50958 | andrew.kuchling | 2006-07-29 23:27:12 +0200 (Sat, 29 Jul 2006) | 1 line Follow TeX's conventions for hyphens ........ r50959 | andrew.kuchling | 2006-07-29 23:30:21 +0200 (Sat, 29 Jul 2006) | 1 line Fix case for 'Unix' ........ r50960 | fred.drake | 2006-07-30 01:34:57 +0200 (Sun, 30 Jul 2006) | 1 line markup cleanups ........ r50961 | andrew.kuchling | 2006-07-30 02:27:34 +0200 (Sun, 30 Jul 2006) | 1 line Minor typo fixes ........ r50962 | andrew.kuchling | 2006-07-30 02:37:56 +0200 (Sun, 30 Jul 2006) | 1 line [Bug #793553] Correct description of keyword arguments for SSL authentication ........ r50963 | tim.peters | 2006-07-30 02:58:15 +0200 (Sun, 30 Jul 2006) | 2 lines Whitespace normalization. ........ r50964 | fred.drake | 2006-07-30 05:03:43 +0200 (Sun, 30 Jul 2006) | 1 line lots of markup nits, most commonly Unix/unix --> \UNIX ........ r50965 | fred.drake | 2006-07-30 07:41:28 +0200 (Sun, 30 Jul 2006) | 1 line update information on wxPython, from Robin Dunn ........ r50966 | fred.drake | 2006-07-30 07:49:49 +0200 (Sun, 30 Jul 2006) | 4 lines remove possibly-outdated comment on what GUI toolkit is most commonly used; it is hard to know whether this is right, and it does not add valuable reference information at any rate ........ r50967 | fred.drake | 2006-07-30 07:55:39 +0200 (Sun, 30 Jul 2006) | 3 lines - remove yet another reference to how commonly Tkinter is (thought to be) used - fix an internal section reference ........ r50968 | neal.norwitz | 2006-07-30 08:53:31 +0200 (Sun, 30 Jul 2006) | 4 lines Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions. ........ r50969 | neal.norwitz | 2006-07-30 08:55:48 +0200 (Sun, 30 Jul 2006) | 5 lines Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn(). This provides the proper warning for struct.pack(). PyErr_Warn() is now deprecated in favor of PyErr_WarnEx(). As mentioned by Tim Peters on python-dev. ........ r50970 | neal.norwitz | 2006-07-30 08:57:04 +0200 (Sun, 30 Jul 2006) | 3 lines Bug #1515471: string.replace() accepts character buffers again. Pass the char* and size around rather than PyObject's. ........ r50971 | neal.norwitz | 2006-07-30 08:59:13 +0200 (Sun, 30 Jul 2006) | 1 line Whitespace normalization ........ r50973 | georg.brandl | 2006-07-30 12:53:32 +0200 (Sun, 30 Jul 2006) | 3 lines Clarify that __op__ methods must return NotImplemented if they don't support the operation. ........ r50974 | georg.brandl | 2006-07-30 13:07:23 +0200 (Sun, 30 Jul 2006) | 3 lines Bug #1002398: The documentation for os.path.sameopenfile now correctly refers to file descriptors, not file objects. ........ r50977 | martin.v.loewis | 2006-07-30 15:00:31 +0200 (Sun, 30 Jul 2006) | 3 lines Don't copy directory stat times in shutil.copytree on Windows Fixes #1525866. ........ r50978 | martin.v.loewis | 2006-07-30 15:14:05 +0200 (Sun, 30 Jul 2006) | 3 lines Base __version__ on sys.version_info, as distutils is no longer maintained separatedly. ........ r50979 | martin.v.loewis | 2006-07-30 15:27:31 +0200 (Sun, 30 Jul 2006) | 3 lines Mention Cygwin in distutils error message about a missing VS 2003. Fixes #1257728. ........ r50982 | martin.v.loewis | 2006-07-30 16:09:47 +0200 (Sun, 30 Jul 2006) | 5 lines Drop usage of test -e in configure as it is not portable. Fixes #1439538 Will backport to 2.4 Also regenerate pyconfig.h.in. ........ r50984 | georg.brandl | 2006-07-30 18:20:10 +0200 (Sun, 30 Jul 2006) | 3 lines Fix makefile changes for python-config. ........ r50985 | george.yoshida | 2006-07-30 18:37:37 +0200 (Sun, 30 Jul 2006) | 2 lines Rename struct.pack_to to struct.pack_into as changed in revision 46642. ........ r50986 | george.yoshida | 2006-07-30 18:41:30 +0200 (Sun, 30 Jul 2006) | 2 lines Typo fix ........ r50987 | neal.norwitz | 2006-07-30 21:18:13 +0200 (Sun, 30 Jul 2006) | 1 line Add some asserts and update comments ........ r50988 | neal.norwitz | 2006-07-30 21:18:38 +0200 (Sun, 30 Jul 2006) | 1 line Verify that the signal handlers were really called ........ r50989 | neal.norwitz | 2006-07-30 21:20:42 +0200 (Sun, 30 Jul 2006) | 3 lines Try to prevent hangs on Tru64/Alpha buildbot. I'm not certain this will help and may need to be reverted if it causes problems. ........ r50990 | georg.brandl | 2006-07-30 22:18:51 +0200 (Sun, 30 Jul 2006) | 2 lines Bug #1531349: right <-> left glitch in __rop__ description. ........ r50992 | tim.peters | 2006-07-31 03:46:03 +0200 (Mon, 31 Jul 2006) | 2 lines Whitespace normalization. ........ r50993 | andrew.mcnamara | 2006-07-31 04:27:48 +0200 (Mon, 31 Jul 2006) | 2 lines Redo the comment about the 2.5 change in quoted-newline handling. ........ r50994 | tim.peters | 2006-07-31 04:40:23 +0200 (Mon, 31 Jul 2006) | 10 lines ZipFile.close(): Killed one of the struct.pack deprecation warnings on Win32. Also added an XXX about the line: pos3 = self.fp.tell() `pos3` is never referenced, and I have no idea what the code intended to do instead. ........ r50996 | tim.peters | 2006-07-31 04:53:03 +0200 (Mon, 31 Jul 2006) | 8 lines ZipFile.close(): Kill the other struct.pack deprecation warning on Windows. Afraid I can't detect a pattern to when the pack formats decide to use a signed or unsigned format code -- appears nearly arbitrary to my eyes. So I left all the pack formats alone and changed the special-case data values instead. ........ r50997 | skip.montanaro | 2006-07-31 05:09:45 +0200 (Mon, 31 Jul 2006) | 1 line minor tweaks ........ r50998 | skip.montanaro | 2006-07-31 05:11:11 +0200 (Mon, 31 Jul 2006) | 1 line minor tweaks ........ r50999 | andrew.kuchling | 2006-07-31 14:20:24 +0200 (Mon, 31 Jul 2006) | 1 line Add refcounts for PyErr_WarnEx ........ r51000 | andrew.kuchling | 2006-07-31 14:39:05 +0200 (Mon, 31 Jul 2006) | 9 lines Document PyErr_WarnEx. (Bad Neal! No biscuit!) Is the explanation of the 'stacklevel' parameter clear? Please feel free to edit it. I don't have LaTeX installed on this machine, so haven't verified that the markup is correct. Will check tonight, or maybe the automatic doc build will tell me. ........ r51001 | andrew.kuchling | 2006-07-31 14:52:26 +0200 (Mon, 31 Jul 2006) | 1 line Add PyErr_WarnEx() ........ r51002 | andrew.kuchling | 2006-07-31 15:18:27 +0200 (Mon, 31 Jul 2006) | 1 line Mention csv newline changes ........ r51003 | andrew.kuchling | 2006-07-31 17:22:58 +0200 (Mon, 31 Jul 2006) | 1 line Typo fix ........ r51004 | andrew.kuchling | 2006-07-31 17:23:43 +0200 (Mon, 31 Jul 2006) | 1 line Remove reference to notation ........ r51005 | georg.brandl | 2006-07-31 18:00:34 +0200 (Mon, 31 Jul 2006) | 3 lines Fix function name. ........ r51006 | andrew.kuchling | 2006-07-31 18:10:24 +0200 (Mon, 31 Jul 2006) | 1 line [Bug #1514540] Instead of putting the standard types in a section, put them in a chapter of their own. This means string methods will now show up in the ToC. (Should the types come before or after the functions+exceptions+constants chapter? I've put them after, for now.) ........ r51007 | andrew.kuchling | 2006-07-31 18:22:05 +0200 (Mon, 31 Jul 2006) | 1 line [Bug #848556] Remove \d* from second alternative to avoid exponential case when repeating match ........ r51008 | andrew.kuchling | 2006-07-31 18:27:57 +0200 (Mon, 31 Jul 2006) | 1 line Update list of files; fix a typo ........ r51013 | andrew.kuchling | 2006-08-01 18:24:30 +0200 (Tue, 01 Aug 2006) | 1 line typo fix ........ r51018 | thomas.heller | 2006-08-01 18:54:43 +0200 (Tue, 01 Aug 2006) | 2 lines Fix a potential segfault and various potentail refcount leaks in the cast() function. ........ r51020 | thomas.heller | 2006-08-01 19:46:10 +0200 (Tue, 01 Aug 2006) | 1 line Minimal useful docstring for CopyComPointer. ........ r51021 | andrew.kuchling | 2006-08-01 20:16:15 +0200 (Tue, 01 Aug 2006) | 8 lines [Patch #1520905] Attempt to suppress core file created by test_subprocess.py. Patch by Douglas Greiman. The test_run_abort() testcase produces a core file on Unix systems, even though the test is successful. This can be confusing or alarming to someone who runs 'make test' and then finds that the Python interpreter apparently crashed. ........ r51023 | georg.brandl | 2006-08-01 20:49:24 +0200 (Tue, 01 Aug 2006) | 3 lines os.urandom no longer masks unrelated exceptions like SystemExit or KeyboardInterrupt. ........ r51025 | thomas.heller | 2006-08-01 21:14:15 +0200 (Tue, 01 Aug 2006) | 2 lines Speed up PyType_stgdict and PyObject_stgdict. ........ r51027 | ronald.oussoren | 2006-08-01 22:30:31 +0200 (Tue, 01 Aug 2006) | 3 lines Make sure the postinstall action that optionally updates the user's profile on MacOS X actually works correctly in all cases. ........ r51028 | ronald.oussoren | 2006-08-01 23:00:57 +0200 (Tue, 01 Aug 2006) | 4 lines This fixes bug #1527397: PythonLauncher runs scripts with the wrong working directory. It also fixes a bug where PythonLauncher failed to launch scripts when the scriptname (or the path to the script) contains quotes. ........ r51031 | tim.peters | 2006-08-02 05:27:46 +0200 (Wed, 02 Aug 2006) | 2 lines Whitespace normalization. ........ r51032 | tim.peters | 2006-08-02 06:12:36 +0200 (Wed, 02 Aug 2006) | 19 lines Try to squash struct.pack warnings on the "amd64 gentoo trunk" buildbot (& possibly other 64-bit boxes) during test_gzip. The native zlib crc32 function returns an unsigned 32-bit integer, which the Python wrapper implicitly casts to C long. Therefore the same crc can "look negative" on a 32-bit box but "look positive" on a 64-bit box. This patch papers over that platform difference when writing the crc to file. It may be better to change the Python wrapper, either to make the result "look positive" on all platforms (which means it may have to return a Python long at times on a 32-bit box), or to keep the sign the same across boxes. But that would be a visible change in what users see, while the current hack changes no visible behavior (well, apart from stopping the struct deprecation warning). Note that the module-level write32() function is no longer used. ........ r51033 | neal.norwitz | 2006-08-02 06:27:11 +0200 (Wed, 02 Aug 2006) | 4 lines Prevent memory leak on error. Reported by Klocwork #36 ........ r51034 | tim.peters | 2006-08-02 07:20:08 +0200 (Wed, 02 Aug 2006) | 9 lines _Stream.close(): Try to kill struct.pack() warnings when writing the crc to file on the "PPC64 Debian trunk" buildbot when running test_tarfile. This is again a case where the native zlib crc is an unsigned 32-bit int, but the Python wrapper implicitly casts it to signed C long, so that "the sign bit looks different" on different platforms. ........ r51035 | ronald.oussoren | 2006-08-02 08:10:10 +0200 (Wed, 02 Aug 2006) | 2 lines Updated documentation for the script that builds the OSX installer. ........ r51036 | neal.norwitz | 2006-08-02 08:14:22 +0200 (Wed, 02 Aug 2006) | 2 lines _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. ........ r51037 | neal.norwitz | 2006-08-02 08:15:10 +0200 (Wed, 02 Aug 2006) | 1 line v is already checked for NULL, so just DECREF it ........ r51038 | neal.norwitz | 2006-08-02 08:19:19 +0200 (Wed, 02 Aug 2006) | 1 line Let us know when there was a problem and the child had to kill the parent ........ r51039 | neal.norwitz | 2006-08-02 08:46:21 +0200 (Wed, 02 Aug 2006) | 5 lines Patch #1519025 and bug #926423: If a KeyboardInterrupt occurs during a socket operation on a socket with a timeout, the exception will be caught correctly. Previously, the exception was not caught. ........ r51040 | neal.norwitz | 2006-08-02 09:09:32 +0200 (Wed, 02 Aug 2006) | 1 line Add some explanation about Klocwork and Coverity static analysis ........ r51041 | anthony.baxter | 2006-08-02 09:43:09 +0200 (Wed, 02 Aug 2006) | 1 line pre-release machinations ........ r51043 | thomas.heller | 2006-08-02 13:35:31 +0200 (Wed, 02 Aug 2006) | 4 lines A few nore words about what ctypes does. Document that using the wrong calling convention can also raise 'ValueError: Procedure called with the wrong number of arguments'. ........ r51045 | thomas.heller | 2006-08-02 14:00:13 +0200 (Wed, 02 Aug 2006) | 1 line Fix a mistake. ........ r51046 | martin.v.loewis | 2006-08-02 15:53:55 +0200 (Wed, 02 Aug 2006) | 3 lines Correction of patch #1455898: In the mbcs decoder, set final=False for stream decoder, but final=True for the decode function. ........ r51049 | tim.peters | 2006-08-02 20:19:35 +0200 (Wed, 02 Aug 2006) | 2 lines Add missing svn:eol-style property to text files. ........ r51079 | neal.norwitz | 2006-08-04 06:50:21 +0200 (Fri, 04 Aug 2006) | 3 lines Bug #1531405, format_exception no longer raises an exception if str(exception) raised an exception. ........ r51080 | neal.norwitz | 2006-08-04 06:58:47 +0200 (Fri, 04 Aug 2006) | 11 lines Bug #1191458: tracing over for loops now produces a line event on each iteration. I'm not positive this is the best way to handle this. I'm also not sure that there aren't other cases where the lnotab is generated incorrectly. It would be great if people that use pdb or tracing could test heavily. Also: * Remove dead/duplicated code that wasn't used/necessary because we already handled the docstring prior to entering the loop. * add some debugging code into the compiler (#if 0'd out). ........ r51081 | neal.norwitz | 2006-08-04 07:09:28 +0200 (Fri, 04 Aug 2006) | 4 lines Bug #1333982: string/number constants were inappropriately stored in the byte code and co_consts even if they were not used, ie immediately popped off the stack. ........ r51082 | neal.norwitz | 2006-08-04 07:12:19 +0200 (Fri, 04 Aug 2006) | 1 line There were really two issues ........ r51084 | fred.drake | 2006-08-04 07:17:21 +0200 (Fri, 04 Aug 2006) | 1 line SF patch #1534048 (bug #1531003): fix typo in error message ........ r51085 | gregory.p.smith | 2006-08-04 07:17:47 +0200 (Fri, 04 Aug 2006) | 3 lines fix typos ........ r51087 | georg.brandl | 2006-08-04 08:03:53 +0200 (Fri, 04 Aug 2006) | 3 lines Fix bug caused by first decrefing, then increfing. ........ r51109 | neil.schemenauer | 2006-08-04 18:20:30 +0200 (Fri, 04 Aug 2006) | 5 lines Fix the 'compiler' package to generate correct code for MAKE_CLOSURE. In the 2.5 development cycle, MAKE_CLOSURE as changed to take free variables as a tuple rather than as individual items on the stack. Closes patch #1534084. ........ r51110 | georg.brandl | 2006-08-04 20:03:37 +0200 (Fri, 04 Aug 2006) | 3 lines Change fix for segfaulting property(), add a NEWS entry and a test. ........ r51111 | georg.brandl | 2006-08-04 20:07:34 +0200 (Fri, 04 Aug 2006) | 3 lines Better fix for bug #1531405, not executing str(value) twice. ........ r51112 | thomas.heller | 2006-08-04 20:17:40 +0200 (Fri, 04 Aug 2006) | 1 line On Windows, make PyErr_Warn an exported function again. ........ r51113 | thomas.heller | 2006-08-04 20:57:34 +0200 (Fri, 04 Aug 2006) | 4 lines Fix #1530448 - fix ctypes build failure on solaris 10. The '-mimpure-text' linker flag is required when linking _ctypes.so. ........ r51114 | thomas.heller | 2006-08-04 21:49:31 +0200 (Fri, 04 Aug 2006) | 3 lines Fix #1534738: win32 debug version of _msi must be _msi_d.pyd, not _msi.pyd. Fix the name of the pdb file as well. ........ r51115 | andrew.kuchling | 2006-08-04 22:37:43 +0200 (Fri, 04 Aug 2006) | 1 line Typo fixes ........ r51116 | andrew.kuchling | 2006-08-04 23:10:03 +0200 (Fri, 04 Aug 2006) | 1 line Fix mangled sentence ........ r51118 | tim.peters | 2006-08-05 00:00:35 +0200 (Sat, 05 Aug 2006) | 2 lines Whitespace normalization. ........ r51119 | bob.ippolito | 2006-08-05 01:59:21 +0200 (Sat, 05 Aug 2006) | 5 lines Fix #1530559, struct.pack raises TypeError where it used to convert. Passing float arguments to struct.pack when integers are expected now triggers a DeprecationWarning. ........ r51123 | georg.brandl | 2006-08-05 08:10:54 +0200 (Sat, 05 Aug 2006) | 3 lines Patch #1534922: correct and enhance unittest docs. ........ r51126 | georg.brandl | 2006-08-06 09:06:33 +0200 (Sun, 06 Aug 2006) | 2 lines Bug #1535182: really test the xreadlines() method of bz2 objects. ........ r51128 | georg.brandl | 2006-08-06 09:26:21 +0200 (Sun, 06 Aug 2006) | 4 lines Bug #1535081: A leading underscore has been added to the names of the md5 and sha modules, so add it in Modules/Setup.dist too. ........ r51129 | georg.brandl | 2006-08-06 10:23:54 +0200 (Sun, 06 Aug 2006) | 3 lines Bug #1535165: fixed a segfault in input() and raw_input() when sys.stdin is closed. ........ r51131 | georg.brandl | 2006-08-06 11:17:16 +0200 (Sun, 06 Aug 2006) | 2 lines Don't produce output in test_builtin. ........ r51133 | andrew.macintyre | 2006-08-06 14:37:03 +0200 (Sun, 06 Aug 2006) | 4 lines test_threading now skips testing alternate thread stack sizes on platforms that don't support changing thread stack size. ........ r51134 | andrew.kuchling | 2006-08-07 00:07:04 +0200 (Mon, 07 Aug 2006) | 2 lines [Patch #1464056] Ensure that we use the panelw library when linking with ncursesw. Once I see how the buildbots react, I'll backport this to 2.4. ........ r51137 | georg.brandl | 2006-08-08 13:52:34 +0200 (Tue, 08 Aug 2006) | 3 lines webbrowser: Silence stderr output if no gconftool or gnome browser found ........ r51138 | georg.brandl | 2006-08-08 13:56:21 +0200 (Tue, 08 Aug 2006) | 7 lines Remove "non-mapping" and "non-sequence" from TypeErrors raised by PyMapping_Size and PySequence_Size. Because len() tries first sequence, then mapping size, it will always raise a "non-mapping object has no len" error which is confusing. ........ r51139 | thomas.heller | 2006-08-08 19:37:00 +0200 (Tue, 08 Aug 2006) | 3 lines memcmp() can return values other than -1, 0, and +1 but tp_compare must not. ........ r51140 | thomas.heller | 2006-08-08 19:39:20 +0200 (Tue, 08 Aug 2006) | 1 line Remove accidently committed, duplicated test. ........ r51147 | andrew.kuchling | 2006-08-08 20:50:14 +0200 (Tue, 08 Aug 2006) | 1 line Reword paragraph to clarify ........ r51148 | andrew.kuchling | 2006-08-08 20:56:08 +0200 (Tue, 08 Aug 2006) | 1 line Move obmalloc item into C API section ........ r51149 | andrew.kuchling | 2006-08-08 21:00:14 +0200 (Tue, 08 Aug 2006) | 1 line 'Other changes' section now has only one item; move the item elsewhere and remove the section ........ r51150 | andrew.kuchling | 2006-08-08 21:00:34 +0200 (Tue, 08 Aug 2006) | 1 line Bump version number ........ r51151 | georg.brandl | 2006-08-08 22:11:22 +0200 (Tue, 08 Aug 2006) | 2 lines Bug #1536828: typo: TypeType should have been StringType. ........ r51153 | georg.brandl | 2006-08-08 22:13:13 +0200 (Tue, 08 Aug 2006) | 2 lines Bug #1536660: separate two words. ........ r51155 | georg.brandl | 2006-08-08 22:48:10 +0200 (Tue, 08 Aug 2006) | 3 lines ``str`` is now the same object as ``types.StringType``. ........ r51156 | tim.peters | 2006-08-09 02:52:26 +0200 (Wed, 09 Aug 2006) | 2 lines Whitespace normalization. ........ r51158 | georg.brandl | 2006-08-09 09:03:22 +0200 (Wed, 09 Aug 2006) | 4 lines Introduce an upper bound on tuple nesting depth in C argument format strings; fixes rest of #1523610. ........ r51160 | martin.v.loewis | 2006-08-09 09:57:39 +0200 (Wed, 09 Aug 2006) | 4 lines __hash__ may now return long int; the final hash value is obtained by invoking hash on the long int. Fixes #1536021. ........ r51168 | andrew.kuchling | 2006-08-09 15:03:41 +0200 (Wed, 09 Aug 2006) | 1 line [Bug #1536021] Mention __hash__ change ........ r51169 | andrew.kuchling | 2006-08-09 15:57:05 +0200 (Wed, 09 Aug 2006) | 1 line [Patch #1534027] Add notes on locale module changes ........ r51170 | andrew.kuchling | 2006-08-09 16:05:35 +0200 (Wed, 09 Aug 2006) | 1 line Add missing 'self' parameters ........ r51171 | andrew.kuchling | 2006-08-09 16:06:19 +0200 (Wed, 09 Aug 2006) | 1 line Reindent code ........ r51172 | armin.rigo | 2006-08-09 16:55:26 +0200 (Wed, 09 Aug 2006) | 2 lines Fix and test for an infinite C recursion. ........ r51173 | ronald.oussoren | 2006-08-09 16:56:33 +0200 (Wed, 09 Aug 2006) | 2 lines It's unlikely that future versions will require _POSIX_C_SOURCE ........ r51178 | armin.rigo | 2006-08-09 17:37:26 +0200 (Wed, 09 Aug 2006) | 2 lines Concatenation on a long string breaks (SF #1526585). ........ r51180 | kurt.kaiser | 2006-08-09 18:46:15 +0200 (Wed, 09 Aug 2006) | 8 lines 1. When used w/o subprocess, all exceptions were preceeded by an error message claiming they were IDLE internal errors (since 1.2a1). 2. Add Ronald Oussoren to CREDITS M NEWS.txt M PyShell.py M CREDITS.txt ........ r51181 | kurt.kaiser | 2006-08-09 19:47:15 +0200 (Wed, 09 Aug 2006) | 4 lines As a slight enhancement to the previous checkin, improve the internal error reporting by moving message to IDLE console. ........ r51182 | andrew.kuchling | 2006-08-09 20:23:14 +0200 (Wed, 09 Aug 2006) | 1 line Typo fix ........ r51183 | kurt.kaiser | 2006-08-09 22:34:46 +0200 (Wed, 09 Aug 2006) | 2 lines ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1). ........ r51184 | martin.v.loewis | 2006-08-10 01:42:18 +0200 (Thu, 10 Aug 2006) | 2 lines Add some commentary on -mimpure-text. ........ r51185 | tim.peters | 2006-08-10 02:58:49 +0200 (Thu, 10 Aug 2006) | 2 lines Add missing svn:eol-style property to text files. ........ r51186 | kurt.kaiser | 2006-08-10 03:41:17 +0200 (Thu, 10 Aug 2006) | 2 lines Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1) ........ r51187 | tim.peters | 2006-08-10 05:01:26 +0200 (Thu, 10 Aug 2006) | 13 lines test_copytree_simple(): This was leaving behind two new temp directories each time it ran, at least on Windows. Several changes: explicitly closed all files; wrapped long lines; stopped suppressing errors when removing a file or directory fails (removing /shouldn't/ fail!); and changed what appeared to be incorrect usage of os.removedirs() (that doesn't remove empty directories at and /under/ the given path, instead it must be given an empty leaf directory and then deletes empty directories moving /up/ the path -- could be that the conceptually simpler shutil.rmtree() was really actually intended here). ........
27211 lines
714 KiB
Bash
Executable File
27211 lines
714 KiB
Bash
Executable File
#! /bin/sh
|
|
# From configure.in Revision: 46754 .
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
# Generated by GNU Autoconf 2.60 for python 3.0.
|
|
#
|
|
# Report bugs to <http://www.python.org/python-bugs>.
|
|
#
|
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
# This configure script is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
## --------------------- ##
|
|
## M4sh Initialization. ##
|
|
## --------------------- ##
|
|
|
|
# Be Bourne compatible
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
|
fi
|
|
BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
|
|
|
# PATH needs CR
|
|
# Avoid depending upon Character Ranges.
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
as_cr_digits='0123456789'
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
|
# The user is always right.
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
|
echo "#! /bin/sh" >conf$$.sh
|
|
echo "exit 0" >>conf$$.sh
|
|
chmod +x conf$$.sh
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
PATH_SEPARATOR=';'
|
|
else
|
|
PATH_SEPARATOR=:
|
|
fi
|
|
rm -f conf$$.sh
|
|
fi
|
|
|
|
# Support unset when possible.
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
as_unset=unset
|
|
else
|
|
as_unset=false
|
|
fi
|
|
|
|
|
|
# IFS
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
|
# there to prevent editors from complaining about space-tab.
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
# splitting by setting IFS to empty value.)
|
|
as_nl='
|
|
'
|
|
IFS=" "" $as_nl"
|
|
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
|
case $0 in
|
|
*[\\/]* ) as_myself=$0 ;;
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
# in which case we are not to be found in the path.
|
|
if test "x$as_myself" = x; then
|
|
as_myself=$0
|
|
fi
|
|
if test ! -f "$as_myself"; then
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
{ (exit 1); exit 1; }
|
|
fi
|
|
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
|
for as_var in ENV MAIL MAILPATH
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
done
|
|
PS1='$ '
|
|
PS2='> '
|
|
PS4='+ '
|
|
|
|
# NLS nuisances.
|
|
for as_var in \
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
LC_TELEPHONE LC_TIME
|
|
do
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
eval $as_var=C; export $as_var
|
|
else
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
fi
|
|
done
|
|
|
|
# Required to use basename.
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
as_basename=basename
|
|
else
|
|
as_basename=false
|
|
fi
|
|
|
|
|
|
# Name of the executable.
|
|
as_me=`$as_basename -- "$0" ||
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
X"$0" : 'X\(//\)$' \| \
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
echo X/"$0" |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
|
|
# CDPATH.
|
|
$as_unset CDPATH
|
|
|
|
|
|
if test "x$CONFIG_SHELL" = x; then
|
|
if (eval ":") 2>/dev/null; then
|
|
as_have_required=yes
|
|
else
|
|
as_have_required=no
|
|
fi
|
|
|
|
if test $as_have_required = yes && (eval ":
|
|
(as_func_return () {
|
|
(exit \$1)
|
|
}
|
|
as_func_success () {
|
|
as_func_return 0
|
|
}
|
|
as_func_failure () {
|
|
as_func_return 1
|
|
}
|
|
as_func_ret_success () {
|
|
return 0
|
|
}
|
|
as_func_ret_failure () {
|
|
return 1
|
|
}
|
|
|
|
exitcode=0
|
|
if as_func_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_success failed.
|
|
fi
|
|
|
|
if as_func_failure; then
|
|
exitcode=1
|
|
echo as_func_failure succeeded.
|
|
fi
|
|
|
|
if as_func_ret_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_ret_success failed.
|
|
fi
|
|
|
|
if as_func_ret_failure; then
|
|
exitcode=1
|
|
echo as_func_ret_failure succeeded.
|
|
fi
|
|
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo positional parameters were not saved.
|
|
fi
|
|
|
|
test \$exitcode = 0) || { (exit 1); exit 1; }
|
|
|
|
(
|
|
as_lineno_1=\$LINENO
|
|
as_lineno_2=\$LINENO
|
|
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
|
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
|
") 2> /dev/null; then
|
|
:
|
|
else
|
|
as_candidate_shells=
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
case $as_dir in
|
|
/*)
|
|
for as_base in sh bash ksh sh5; do
|
|
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
|
done;;
|
|
esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
for as_shell in $as_candidate_shells $SHELL; do
|
|
# Try only shells that exist, to save several forks.
|
|
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
{ ("$as_shell") 2> /dev/null <<\_ASEOF
|
|
# Be Bourne compatible
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
|
fi
|
|
BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
|
:
|
|
_ASEOF
|
|
}; then
|
|
CONFIG_SHELL=$as_shell
|
|
as_have_required=yes
|
|
if { "$as_shell" 2> /dev/null <<\_ASEOF
|
|
# Be Bourne compatible
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
|
fi
|
|
BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
|
:
|
|
(as_func_return () {
|
|
(exit $1)
|
|
}
|
|
as_func_success () {
|
|
as_func_return 0
|
|
}
|
|
as_func_failure () {
|
|
as_func_return 1
|
|
}
|
|
as_func_ret_success () {
|
|
return 0
|
|
}
|
|
as_func_ret_failure () {
|
|
return 1
|
|
}
|
|
|
|
exitcode=0
|
|
if as_func_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_success failed.
|
|
fi
|
|
|
|
if as_func_failure; then
|
|
exitcode=1
|
|
echo as_func_failure succeeded.
|
|
fi
|
|
|
|
if as_func_ret_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_ret_success failed.
|
|
fi
|
|
|
|
if as_func_ret_failure; then
|
|
exitcode=1
|
|
echo as_func_ret_failure succeeded.
|
|
fi
|
|
|
|
if ( set x; as_func_ret_success y && test x = "$1" ); then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo positional parameters were not saved.
|
|
fi
|
|
|
|
test $exitcode = 0) || { (exit 1); exit 1; }
|
|
|
|
(
|
|
as_lineno_1=$LINENO
|
|
as_lineno_2=$LINENO
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
|
|
|
_ASEOF
|
|
}; then
|
|
break
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test "x$CONFIG_SHELL" != x; then
|
|
for as_var in BASH_ENV ENV
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
done
|
|
export CONFIG_SHELL
|
|
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
|
fi
|
|
|
|
|
|
if test $as_have_required = no; then
|
|
echo This script requires a shell more modern than all the
|
|
echo shells that I found on your system. Please install a
|
|
echo modern shell, or manually run the script under such a
|
|
echo shell if you do have one.
|
|
{ (exit 1); exit 1; }
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
(eval "as_func_return () {
|
|
(exit \$1)
|
|
}
|
|
as_func_success () {
|
|
as_func_return 0
|
|
}
|
|
as_func_failure () {
|
|
as_func_return 1
|
|
}
|
|
as_func_ret_success () {
|
|
return 0
|
|
}
|
|
as_func_ret_failure () {
|
|
return 1
|
|
}
|
|
|
|
exitcode=0
|
|
if as_func_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_success failed.
|
|
fi
|
|
|
|
if as_func_failure; then
|
|
exitcode=1
|
|
echo as_func_failure succeeded.
|
|
fi
|
|
|
|
if as_func_ret_success; then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo as_func_ret_success failed.
|
|
fi
|
|
|
|
if as_func_ret_failure; then
|
|
exitcode=1
|
|
echo as_func_ret_failure succeeded.
|
|
fi
|
|
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
:
|
|
else
|
|
exitcode=1
|
|
echo positional parameters were not saved.
|
|
fi
|
|
|
|
test \$exitcode = 0") || {
|
|
echo No shell found that supports shell functions.
|
|
echo Please tell autoconf@gnu.org about your system,
|
|
echo including any error possibly output before this
|
|
echo message
|
|
}
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO
|
|
as_lineno_2=$LINENO
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
|
# does the real work. The second script uses 'N' to pair each
|
|
# line-number line with the line containing $LINENO, and appends
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
|
# case at line end.
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
sed -n '
|
|
p
|
|
/[$]LINENO/=
|
|
' <$as_myself |
|
|
sed '
|
|
s/[$]LINENO.*/&-/
|
|
t lineno
|
|
b
|
|
:lineno
|
|
N
|
|
:loop
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
t loop
|
|
s/-\n.*//
|
|
' >$as_me.lineno &&
|
|
chmod +x "$as_me.lineno" ||
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
# (the dirname of $[0] is not the place where we might find the
|
|
# original and so on. Autoconf is especially sensitive to this).
|
|
. "./$as_me.lineno"
|
|
# Exit status is that of the last command.
|
|
exit
|
|
}
|
|
|
|
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
as_dirname=dirname
|
|
else
|
|
as_dirname=false
|
|
fi
|
|
|
|
ECHO_C= ECHO_N= ECHO_T=
|
|
case `echo -n x` in
|
|
-n*)
|
|
case `echo 'x\c'` in
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
*) ECHO_C='\c';;
|
|
esac;;
|
|
*)
|
|
ECHO_N='-n';;
|
|
esac
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
|
if test -d conf$$.dir; then
|
|
rm -f conf$$.dir/conf$$.file
|
|
else
|
|
rm -f conf$$.dir
|
|
mkdir conf$$.dir
|
|
fi
|
|
echo >conf$$.file
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s='ln -s'
|
|
# ... but there are two gotchas:
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
# In both cases, we have to default to `cp -p'.
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
as_ln_s='cp -p'
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s=ln
|
|
else
|
|
as_ln_s='cp -p'
|
|
fi
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
rmdir conf$$.dir 2>/dev/null
|
|
|
|
if mkdir -p . 2>/dev/null; then
|
|
as_mkdir_p=:
|
|
else
|
|
test -d ./-p && rmdir ./-p
|
|
as_mkdir_p=false
|
|
fi
|
|
|
|
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
|
|
# systems may use methods other than mode bits to determine executability.
|
|
cat >conf$$.file <<_ASEOF
|
|
#! /bin/sh
|
|
exit 0
|
|
_ASEOF
|
|
chmod +x conf$$.file
|
|
if test -x conf$$.file >/dev/null 2>&1; then
|
|
as_executable_p="test -x"
|
|
else
|
|
as_executable_p=:
|
|
fi
|
|
rm -f conf$$.file
|
|
|
|
# Sed expression to map a string onto a valid CPP name.
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
# Sed expression to map a string onto a valid variable name.
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
|
|
|
|
exec 7<&0 </dev/null 6>&1
|
|
|
|
# Name of the host.
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
|
# so uname gets run too.
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
|
#
|
|
# Initializations.
|
|
#
|
|
ac_default_prefix=/usr/local
|
|
ac_clean_files=
|
|
ac_config_libobj_dir=.
|
|
LIBOBJS=
|
|
cross_compiling=no
|
|
subdirs=
|
|
MFLAGS=
|
|
MAKEFLAGS=
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
# Identity of this package.
|
|
PACKAGE_NAME='python'
|
|
PACKAGE_TARNAME='python'
|
|
PACKAGE_VERSION='3.0'
|
|
PACKAGE_STRING='python 3.0'
|
|
PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
|
|
|
|
ac_unique_file="Include/object.h"
|
|
# Factoring default headers for most tests.
|
|
ac_includes_default="\
|
|
#include <stdio.h>
|
|
#if HAVE_SYS_TYPES_H
|
|
# include <sys/types.h>
|
|
#endif
|
|
#if HAVE_SYS_STAT_H
|
|
# include <sys/stat.h>
|
|
#endif
|
|
#if STDC_HEADERS
|
|
# include <stdlib.h>
|
|
# include <stddef.h>
|
|
#else
|
|
# if HAVE_STDLIB_H
|
|
# include <stdlib.h>
|
|
# endif
|
|
#endif
|
|
#if HAVE_STRING_H
|
|
# if !STDC_HEADERS && HAVE_MEMORY_H
|
|
# include <memory.h>
|
|
# endif
|
|
# include <string.h>
|
|
#endif
|
|
#if HAVE_STRINGS_H
|
|
# include <strings.h>
|
|
#endif
|
|
#if HAVE_INTTYPES_H
|
|
# include <inttypes.h>
|
|
#endif
|
|
#if HAVE_STDINT_H
|
|
# include <stdint.h>
|
|
#endif
|
|
#if HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
#endif"
|
|
|
|
ac_subst_vars='SHELL
|
|
PATH_SEPARATOR
|
|
PACKAGE_NAME
|
|
PACKAGE_TARNAME
|
|
PACKAGE_VERSION
|
|
PACKAGE_STRING
|
|
PACKAGE_BUGREPORT
|
|
exec_prefix
|
|
prefix
|
|
program_transform_name
|
|
bindir
|
|
sbindir
|
|
libexecdir
|
|
datarootdir
|
|
datadir
|
|
sysconfdir
|
|
sharedstatedir
|
|
localstatedir
|
|
includedir
|
|
oldincludedir
|
|
docdir
|
|
infodir
|
|
htmldir
|
|
dvidir
|
|
pdfdir
|
|
psdir
|
|
libdir
|
|
localedir
|
|
mandir
|
|
DEFS
|
|
ECHO_C
|
|
ECHO_N
|
|
ECHO_T
|
|
LIBS
|
|
build_alias
|
|
host_alias
|
|
target_alias
|
|
VERSION
|
|
SOVERSION
|
|
CONFIG_ARGS
|
|
UNIVERSALSDK
|
|
PYTHONFRAMEWORK
|
|
PYTHONFRAMEWORKDIR
|
|
PYTHONFRAMEWORKPREFIX
|
|
PYTHONFRAMEWORKINSTALLDIR
|
|
FRAMEWORKINSTALLFIRST
|
|
FRAMEWORKINSTALLLAST
|
|
FRAMEWORKALTINSTALLFIRST
|
|
FRAMEWORKALTINSTALLLAST
|
|
FRAMEWORKUNIXTOOLSPREFIX
|
|
MACHDEP
|
|
SGI_ABI
|
|
EXTRAPLATDIR
|
|
EXTRAMACHDEPPATH
|
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
|
|
EXPORT_MACOSX_DEPLOYMENT_TARGET
|
|
CC
|
|
CFLAGS
|
|
LDFLAGS
|
|
CPPFLAGS
|
|
ac_ct_CC
|
|
EXEEXT
|
|
OBJEXT
|
|
CXX
|
|
MAINCC
|
|
CPP
|
|
GREP
|
|
EGREP
|
|
BUILDEXEEXT
|
|
LIBRARY
|
|
LDLIBRARY
|
|
DLLLIBRARY
|
|
BLDLIBRARY
|
|
LDLIBRARYDIR
|
|
INSTSONAME
|
|
RUNSHARED
|
|
LINKCC
|
|
RANLIB
|
|
AR
|
|
SVNVERSION
|
|
INSTALL_PROGRAM
|
|
INSTALL_SCRIPT
|
|
INSTALL_DATA
|
|
LN
|
|
OPT
|
|
BASECFLAGS
|
|
OTHER_LIBTOOL_OPT
|
|
LIBTOOL_CRUFT
|
|
SO
|
|
LDSHARED
|
|
BLDSHARED
|
|
CCSHARED
|
|
LINKFORSHARED
|
|
CFLAGSFORSHARED
|
|
SHLIBS
|
|
USE_SIGNAL_MODULE
|
|
SIGNAL_OBJS
|
|
USE_THREAD_MODULE
|
|
LDLAST
|
|
THREADOBJ
|
|
DLINCLDIR
|
|
DYNLOADFILE
|
|
MACHDEP_OBJS
|
|
TRUE
|
|
LIBOBJS
|
|
HAVE_GETHOSTBYNAME_R_6_ARG
|
|
HAVE_GETHOSTBYNAME_R_5_ARG
|
|
HAVE_GETHOSTBYNAME_R_3_ARG
|
|
HAVE_GETHOSTBYNAME_R
|
|
HAVE_GETHOSTBYNAME
|
|
LIBM
|
|
LIBC
|
|
UNICODE_OBJS
|
|
THREADHEADERS
|
|
SRCDIRS
|
|
LTLIBOBJS'
|
|
ac_subst_files=''
|
|
ac_precious_vars='build_alias
|
|
host_alias
|
|
target_alias
|
|
CC
|
|
CFLAGS
|
|
LDFLAGS
|
|
CPPFLAGS
|
|
CPP'
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
ac_init_help=
|
|
ac_init_version=false
|
|
# The variables have the same names as the options, with
|
|
# dashes changed to underlines.
|
|
cache_file=/dev/null
|
|
exec_prefix=NONE
|
|
no_create=
|
|
no_recursion=
|
|
prefix=NONE
|
|
program_prefix=NONE
|
|
program_suffix=NONE
|
|
program_transform_name=s,x,x,
|
|
silent=
|
|
site=
|
|
srcdir=
|
|
verbose=
|
|
x_includes=NONE
|
|
x_libraries=NONE
|
|
|
|
# Installation directory options.
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
# and all the variables that are supposed to be based on exec_prefix
|
|
# by default will actually change.
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
|
# (The list follows the same order as the GNU Coding Standards.)
|
|
bindir='${exec_prefix}/bin'
|
|
sbindir='${exec_prefix}/sbin'
|
|
libexecdir='${exec_prefix}/libexec'
|
|
datarootdir='${prefix}/share'
|
|
datadir='${datarootdir}'
|
|
sysconfdir='${prefix}/etc'
|
|
sharedstatedir='${prefix}/com'
|
|
localstatedir='${prefix}/var'
|
|
includedir='${prefix}/include'
|
|
oldincludedir='/usr/include'
|
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
|
infodir='${datarootdir}/info'
|
|
htmldir='${docdir}'
|
|
dvidir='${docdir}'
|
|
pdfdir='${docdir}'
|
|
psdir='${docdir}'
|
|
libdir='${exec_prefix}/lib'
|
|
localedir='${datarootdir}/locale'
|
|
mandir='${datarootdir}/man'
|
|
|
|
ac_prev=
|
|
ac_dashdash=
|
|
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=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
case $ac_dashdash$ac_option in
|
|
--)
|
|
ac_dashdash=yes ;;
|
|
|
|
-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_alias ;;
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
build_alias=$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 ;;
|
|
|
|
--config-cache | -C)
|
|
cache_file=config.cache ;;
|
|
|
|
-datadir | --datadir | --datadi | --datad)
|
|
ac_prev=datadir ;;
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
datadir=$ac_optarg ;;
|
|
|
|
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
| --dataroo | --dataro | --datar)
|
|
ac_prev=datarootdir ;;
|
|
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
datarootdir=$ac_optarg ;;
|
|
|
|
-disable-* | --disable-*)
|
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
|
eval enable_$ac_feature=no ;;
|
|
|
|
-docdir | --docdir | --docdi | --doc | --do)
|
|
ac_prev=docdir ;;
|
|
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
docdir=$ac_optarg ;;
|
|
|
|
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
ac_prev=dvidir ;;
|
|
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
dvidir=$ac_optarg ;;
|
|
|
|
-enable-* | --enable-*)
|
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
|
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 | -h)
|
|
ac_init_help=long ;;
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
ac_init_help=recursive ;;
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
ac_init_help=short ;;
|
|
|
|
-host | --host | --hos | --ho)
|
|
ac_prev=host_alias ;;
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
host_alias=$ac_optarg ;;
|
|
|
|
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
ac_prev=htmldir ;;
|
|
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
| --ht=*)
|
|
htmldir=$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 ;;
|
|
|
|
-localedir | --localedir | --localedi | --localed | --locale)
|
|
ac_prev=localedir ;;
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
localedir=$ac_optarg ;;
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
| --localstate | --localstat | --localsta | --localst | --locals)
|
|
ac_prev=localstatedir ;;
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
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 | -n)
|
|
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 ;;
|
|
|
|
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
ac_prev=pdfdir ;;
|
|
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
pdfdir=$ac_optarg ;;
|
|
|
|
-psdir | --psdir | --psdi | --psd | --ps)
|
|
ac_prev=psdir ;;
|
|
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
psdir=$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_alias ;;
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
target_alias=$ac_optarg ;;
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
verbose=yes ;;
|
|
|
|
-version | --version | --versio | --versi | --vers | -V)
|
|
ac_init_version=: ;;
|
|
|
|
-with-* | --with-*)
|
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
eval with_$ac_package=\$ac_optarg ;;
|
|
|
|
-without-* | --without-*)
|
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
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 "$as_me: error: unrecognized option: $ac_option
|
|
Try \`$0 --help' for more information." >&2
|
|
{ (exit 1); exit 1; }; }
|
|
;;
|
|
|
|
*=*)
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
eval $ac_envvar=\$ac_optarg
|
|
export $ac_envvar ;;
|
|
|
|
*)
|
|
# FIXME: should be removed in autoconf 3.0.
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
|
;;
|
|
|
|
esac
|
|
done
|
|
|
|
if test -n "$ac_prev"; then
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
# Be sure to have absolute directory names.
|
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
libdir localedir mandir
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in
|
|
[\\/$]* | ?:[\\/]* ) continue;;
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
esac
|
|
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
done
|
|
|
|
# There might be people who depend on the old broken behavior: `$host'
|
|
# used to hold the argument of --host etc.
|
|
# FIXME: To remove some day.
|
|
build=$build_alias
|
|
host=$host_alias
|
|
target=$target_alias
|
|
|
|
# FIXME: To remove some day.
|
|
if test "x$host_alias" != x; then
|
|
if test "x$build_alias" = x; then
|
|
cross_compiling=maybe
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
|
If a cross compiler is detected then cross compile mode will be used." >&2
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
|
cross_compiling=yes
|
|
fi
|
|
fi
|
|
|
|
ac_tool_prefix=
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
|
|
test "$silent" = yes && exec 6>/dev/null
|
|
|
|
|
|
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
ac_ls_di=`ls -di .` &&
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
{ echo "$as_me: error: Working directory cannot be determined" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
{ echo "$as_me: error: pwd does not report name of working directory" >&2
|
|
{ (exit 1); exit 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 the parent directory.
|
|
ac_confdir=`$as_dirname -- "$0" ||
|
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
|
X"$0" : 'X\(//\)$' \| \
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
echo X"$0" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
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
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
ac_abs_confdir=`(
|
|
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
pwd)`
|
|
# When building in place, set srcdir=.
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
srcdir=.
|
|
fi
|
|
# Remove unnecessary trailing slashes from srcdir.
|
|
# Double slashes in file names in object file debugging info
|
|
# mess up M-x gdb in Emacs.
|
|
case $srcdir in
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
esac
|
|
for ac_var in $ac_precious_vars; do
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
eval ac_env_${ac_var}_value=\$${ac_var}
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
done
|
|
|
|
#
|
|
# Report the --help message.
|
|
#
|
|
if test "$ac_init_help" = "long"; then
|
|
# 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 <<_ACEOF
|
|
\`configure' configures python 3.0 to adapt to many kinds of systems.
|
|
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
|
|
Defaults for the options are specified in brackets.
|
|
|
|
Configuration:
|
|
-h, --help display this help and exit
|
|
--help=short display options specific to this package
|
|
--help=recursive display the short help of all the included packages
|
|
-V, --version display version information and exit
|
|
-q, --quiet, --silent do not print \`checking...' messages
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
-n, --no-create do not create output files
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
|
|
Installation directories:
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
[$ac_default_prefix]
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
[PREFIX]
|
|
|
|
By default, \`make install' will install all the files in
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
for instance \`--prefix=\$HOME'.
|
|
|
|
For better control, use the options below.
|
|
|
|
Fine tuning of the installation directories:
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
|
--includedir=DIR C header files [PREFIX/include]
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
--infodir=DIR info documentation [DATAROOTDIR/info]
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
--mandir=DIR man documentation [DATAROOTDIR/man]
|
|
--docdir=DIR documentation root [DATAROOTDIR/doc/python]
|
|
--htmldir=DIR html documentation [DOCDIR]
|
|
--dvidir=DIR dvi documentation [DOCDIR]
|
|
--pdfdir=DIR pdf documentation [DOCDIR]
|
|
--psdir=DIR ps documentation [DOCDIR]
|
|
_ACEOF
|
|
|
|
cat <<\_ACEOF
|
|
_ACEOF
|
|
fi
|
|
|
|
if test -n "$ac_init_help"; then
|
|
case $ac_init_help in
|
|
short | recursive ) echo "Configuration of python 3.0:";;
|
|
esac
|
|
cat <<\_ACEOF
|
|
|
|
Optional Features:
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
--enable-universalsdk[SDKDIR]
|
|
Build agains Mac OS X 10.4u SDK (ppc/i386)
|
|
--enable-framework[=INSTALLDIR]
|
|
Build (MacOSX|Darwin) framework
|
|
--enable-shared disable/enable building shared python library
|
|
--enable-profiling enable C-level code profiling
|
|
--enable-toolbox-glue disable/enable MacOSX glue code for extensions
|
|
--enable-ipv6 Enable ipv6 (with ipv4) support
|
|
--disable-ipv6 Disable ipv6 support
|
|
--enable-unicode[=ucs[24]]
|
|
Enable Unicode strings (default is yes)
|
|
|
|
Optional Packages:
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
--without-gcc never use gcc
|
|
--with-cxx-main=<compiler>
|
|
compile main() and link python executable with C++
|
|
compiler
|
|
--with-suffix=.exe set executable suffix
|
|
--with-pydebug build with Py_DEBUG defined
|
|
--with-libs='lib1 ...' link against additional libs
|
|
--with-system-ffi build _ctypes module using an installed ffi library
|
|
--with-signal-module disable/enable signal module
|
|
--with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
|
|
--with(out)-threads[=DIRECTORY]
|
|
disable/enable thread support
|
|
--with(out)-thread[=DIRECTORY]
|
|
deprecated; use --with(out)-threads
|
|
--with-pth use GNU pth threading libraries
|
|
--with(out)-doc-strings disable/enable documentation strings
|
|
--with(out)-tsc enable/disable timestamp counter profile
|
|
--with(out)-pymalloc disable/enable specialized mallocs
|
|
--with-wctype-functions use wctype.h functions
|
|
--with-fpectl enable SIGFPE catching
|
|
--with-libm=STRING math library
|
|
--with-libc=STRING C library
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
CFLAGS C compiler flags
|
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
nonstandard directory <lib dir>
|
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
|
you have headers in a nonstandard directory <include dir>
|
|
CPP C preprocessor
|
|
|
|
Use these variables to override the choices made by `configure' or to help
|
|
it to find libraries and programs with nonstandard names/locations.
|
|
|
|
Report bugs to <http://www.python.org/python-bugs>.
|
|
_ACEOF
|
|
ac_status=$?
|
|
fi
|
|
|
|
if test "$ac_init_help" = "recursive"; then
|
|
# If there are subdirs, report their specific --help.
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
test -d "$ac_dir" || continue
|
|
ac_builddir=.
|
|
|
|
case "$ac_dir" in
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*)
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
# A ".." for each directory in $ac_dir_suffix.
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
case $ac_top_builddir_sub in
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
esac ;;
|
|
esac
|
|
ac_abs_top_builddir=$ac_pwd
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
# for backward compatibility:
|
|
ac_top_builddir=$ac_top_build_prefix
|
|
|
|
case $srcdir in
|
|
.) # We are building in place.
|
|
ac_srcdir=.
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
ac_top_srcdir=$srcdir
|
|
ac_abs_top_srcdir=$srcdir ;;
|
|
*) # Relative name.
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
esac
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
|
cd "$ac_dir" || { ac_status=$?; continue; }
|
|
# Check for guested configure.
|
|
if test -f "$ac_srcdir/configure.gnu"; then
|
|
echo &&
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
elif test -f "$ac_srcdir/configure"; then
|
|
echo &&
|
|
$SHELL "$ac_srcdir/configure" --help=recursive
|
|
else
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
fi || ac_status=$?
|
|
cd "$ac_pwd" || { ac_status=$?; break; }
|
|
done
|
|
fi
|
|
|
|
test -n "$ac_init_help" && exit $ac_status
|
|
if $ac_init_version; then
|
|
cat <<\_ACEOF
|
|
python configure 3.0
|
|
generated by GNU Autoconf 2.60
|
|
|
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
This configure script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it.
|
|
_ACEOF
|
|
exit
|
|
fi
|
|
cat >config.log <<_ACEOF
|
|
This file contains any messages produced by compilers while
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
|
|
It was created by python $as_me 3.0, which was
|
|
generated by GNU Autoconf 2.60. Invocation command line was
|
|
|
|
$ $0 $@
|
|
|
|
_ACEOF
|
|
exec 5>>config.log
|
|
{
|
|
cat <<_ASUNAME
|
|
## --------- ##
|
|
## Platform. ##
|
|
## --------- ##
|
|
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
|
|
_ASUNAME
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
echo "PATH: $as_dir"
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
} >&5
|
|
|
|
cat >&5 <<_ACEOF
|
|
|
|
|
|
## ----------- ##
|
|
## Core tests. ##
|
|
## ----------- ##
|
|
|
|
_ACEOF
|
|
|
|
|
|
# Keep a trace of the command line.
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
# Strip out --silent because we don't want to record it for future runs.
|
|
# Also quote any args containing shell meta-characters.
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
|
ac_configure_args=
|
|
ac_configure_args0=
|
|
ac_configure_args1=
|
|
ac_must_keep_next=false
|
|
for ac_pass in 1 2
|
|
do
|
|
for ac_arg
|
|
do
|
|
case $ac_arg in
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
continue ;;
|
|
*\'*)
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
esac
|
|
case $ac_pass in
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
|
2)
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
|
if test $ac_must_keep_next = true; then
|
|
ac_must_keep_next=false # Got value, back to normal.
|
|
else
|
|
case $ac_arg in
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
|
case "$ac_configure_args0 " in
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
esac
|
|
;;
|
|
-* ) ac_must_keep_next=true ;;
|
|
esac
|
|
fi
|
|
ac_configure_args="$ac_configure_args '$ac_arg'"
|
|
;;
|
|
esac
|
|
done
|
|
done
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
|
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
|
# config.log. We remove comments because anyway the quotes in there
|
|
# would cause problems or look ugly.
|
|
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
trap 'exit_status=$?
|
|
# Save into config.log some information that might help in debugging.
|
|
{
|
|
echo
|
|
|
|
cat <<\_ASBOX
|
|
## ---------------- ##
|
|
## Cache variables. ##
|
|
## ---------------- ##
|
|
_ASBOX
|
|
echo
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
(
|
|
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in #(
|
|
*${as_nl}*)
|
|
case $ac_var in #(
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
esac
|
|
case $ac_var in #(
|
|
_ | IFS | as_nl) ;; #(
|
|
*) $as_unset $ac_var ;;
|
|
esac ;;
|
|
esac
|
|
done
|
|
(set) 2>&1 |
|
|
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
*${as_nl}ac_space=\ *)
|
|
sed -n \
|
|
"s/'\''/'\''\\\\'\'''\''/g;
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
;; #(
|
|
*)
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
;;
|
|
esac |
|
|
sort
|
|
)
|
|
echo
|
|
|
|
cat <<\_ASBOX
|
|
## ----------------- ##
|
|
## Output variables. ##
|
|
## ----------------- ##
|
|
_ASBOX
|
|
echo
|
|
for ac_var in $ac_subst_vars
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
esac
|
|
echo "$ac_var='\''$ac_val'\''"
|
|
done | sort
|
|
echo
|
|
|
|
if test -n "$ac_subst_files"; then
|
|
cat <<\_ASBOX
|
|
## ------------------- ##
|
|
## File substitutions. ##
|
|
## ------------------- ##
|
|
_ASBOX
|
|
echo
|
|
for ac_var in $ac_subst_files
|
|
do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
esac
|
|
echo "$ac_var='\''$ac_val'\''"
|
|
done | sort
|
|
echo
|
|
fi
|
|
|
|
if test -s confdefs.h; then
|
|
cat <<\_ASBOX
|
|
## ----------- ##
|
|
## confdefs.h. ##
|
|
## ----------- ##
|
|
_ASBOX
|
|
echo
|
|
cat confdefs.h
|
|
echo
|
|
fi
|
|
test "$ac_signal" != 0 &&
|
|
echo "$as_me: caught signal $ac_signal"
|
|
echo "$as_me: exit $exit_status"
|
|
} >&5
|
|
rm -f core *.core core.conftest.* &&
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
exit $exit_status
|
|
' 0
|
|
for ac_signal in 1 2 13 15; do
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
|
done
|
|
ac_signal=0
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
rm -f -r conftest* confdefs.h
|
|
|
|
# Predefined preprocessor variables.
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_NAME "$PACKAGE_NAME"
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_STRING "$PACKAGE_STRING"
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
_ACEOF
|
|
|
|
|
|
# Let the site file select an alternate cache file if it wants to.
|
|
# Prefer explicitly selected file to automatically selected ones.
|
|
if test -n "$CONFIG_SITE"; then
|
|
set x "$CONFIG_SITE"
|
|
elif test "x$prefix" != xNONE; then
|
|
set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
|
else
|
|
set x "$ac_default_prefix/share/config.site" \
|
|
"$ac_default_prefix/etc/config.site"
|
|
fi
|
|
shift
|
|
for ac_site_file
|
|
do
|
|
if test -r "$ac_site_file"; then
|
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
|
echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
|
. "$ac_site_file"
|
|
fi
|
|
done
|
|
|
|
if test -r "$cache_file"; then
|
|
# Some versions of bash will fail to source /dev/null (special
|
|
# files actually), so we avoid doing that.
|
|
if test -f "$cache_file"; then
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
|
echo "$as_me: loading cache $cache_file" >&6;}
|
|
case $cache_file in
|
|
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
*) . "./$cache_file";;
|
|
esac
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
|
echo "$as_me: creating cache $cache_file" >&6;}
|
|
>$cache_file
|
|
fi
|
|
|
|
# Check that the precious variables saved in the cache have kept the same
|
|
# value.
|
|
ac_cache_corrupted=false
|
|
for ac_var in $ac_precious_vars; do
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
|
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
eval ac_new_val=\$ac_env_${ac_var}_value
|
|
case $ac_old_set,$ac_new_set in
|
|
set,)
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
ac_cache_corrupted=: ;;
|
|
,set)
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
ac_cache_corrupted=: ;;
|
|
,);;
|
|
*)
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
|
echo "$as_me: former value: $ac_old_val" >&2;}
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
|
echo "$as_me: current value: $ac_new_val" >&2;}
|
|
ac_cache_corrupted=:
|
|
fi;;
|
|
esac
|
|
# Pass precious variables to config.status.
|
|
if test "$ac_new_set" = set; then
|
|
case $ac_new_val in
|
|
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
|
esac
|
|
case " $ac_configure_args " in
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
esac
|
|
fi
|
|
done
|
|
if $ac_cache_corrupted; then
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
ac_config_headers="$ac_config_headers pyconfig.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We don't use PACKAGE_ variables, and they cause conflicts
|
|
# with other autoconf-based packages that include Python.h
|
|
grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
|
|
rm confdefs.h
|
|
mv confdefs.h.new confdefs.h
|
|
|
|
|
|
VERSION=3.0
|
|
|
|
|
|
SOVERSION=1.0
|
|
|
|
# The later defininition of _XOPEN_SOURCE disables certain features
|
|
# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _GNU_SOURCE 1
|
|
_ACEOF
|
|
|
|
|
|
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
|
|
# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
|
|
# them.
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _NETBSD_SOURCE 1
|
|
_ACEOF
|
|
|
|
|
|
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
|
|
# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
|
|
# them.
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define __BSD_VISIBLE 1
|
|
_ACEOF
|
|
|
|
|
|
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
|
|
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _BSD_TYPES 1
|
|
_ACEOF
|
|
|
|
|
|
define_xopen_source=yes
|
|
|
|
# Arguments passed to configure.
|
|
|
|
CONFIG_ARGS="$ac_configure_args"
|
|
|
|
# Check whether --enable-universalsdk was given.
|
|
if test "${enable_universalsdk+set}" = set; then
|
|
enableval=$enable_universalsdk;
|
|
case $enableval in
|
|
yes)
|
|
enableval=/Developer/SDKs/MacOSX10.4u.sdk
|
|
;;
|
|
esac
|
|
case $enableval in
|
|
no)
|
|
UNIVERSALSDK=
|
|
enable_universalsdk=
|
|
;;
|
|
*)
|
|
UNIVERSALSDK=$enableval
|
|
;;
|
|
esac
|
|
|
|
else
|
|
|
|
UNIVERSALSDK=
|
|
enable_universalsdk=
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check whether --enable-framework was given.
|
|
if test "${enable_framework+set}" = set; then
|
|
enableval=$enable_framework;
|
|
case $enableval in
|
|
yes)
|
|
enableval=/Library/Frameworks
|
|
esac
|
|
case $enableval in
|
|
no)
|
|
PYTHONFRAMEWORK=
|
|
PYTHONFRAMEWORKDIR=no-framework
|
|
PYTHONFRAMEWORKPREFIX=
|
|
PYTHONFRAMEWORKINSTALLDIR=
|
|
FRAMEWORKINSTALLFIRST=
|
|
FRAMEWORKINSTALLLAST=
|
|
FRAMEWORKALTINSTALLFIRST=
|
|
FRAMEWORKALTINSTALLLAST=
|
|
if test "x${prefix}" = "xNONE"; then
|
|
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
|
|
else
|
|
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
|
|
fi
|
|
enable_framework=
|
|
;;
|
|
*)
|
|
PYTHONFRAMEWORK=Python
|
|
PYTHONFRAMEWORKDIR=Python.framework
|
|
PYTHONFRAMEWORKPREFIX=$enableval
|
|
PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
|
|
FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
|
|
FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
|
|
FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
|
|
FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
|
|
if test "x${prefix}" = "xNONE" ; then
|
|
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
|
|
else
|
|
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
|
|
fi
|
|
prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
|
|
|
|
# Add makefiles for Mac specific code to the list of output
|
|
# files:
|
|
ac_config_files="$ac_config_files Mac/Makefile"
|
|
|
|
ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
|
|
|
|
ac_config_files="$ac_config_files Mac/IDLE/Makefile"
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
PYTHONFRAMEWORK=
|
|
PYTHONFRAMEWORKDIR=no-framework
|
|
PYTHONFRAMEWORKPREFIX=
|
|
PYTHONFRAMEWORKINSTALLDIR=
|
|
FRAMEWORKINSTALLFIRST=
|
|
FRAMEWORKINSTALLLAST=
|
|
FRAMEWORKALTINSTALLFIRST=
|
|
FRAMEWORKALTINSTALLLAST=
|
|
if test "x${prefix}" = "xNONE" ; then
|
|
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
|
|
else
|
|
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
|
|
fi
|
|
enable_framework=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##AC_ARG_WITH(dyld,
|
|
## AC_HELP_STRING(--with-dyld,
|
|
## Use (OpenStep|Rhapsody) dynamic linker))
|
|
##
|
|
# Set name for machine-dependent library files
|
|
|
|
{ echo "$as_me:$LINENO: checking MACHDEP" >&5
|
|
echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
|
|
if test -z "$MACHDEP"
|
|
then
|
|
ac_sys_system=`uname -s`
|
|
if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
|
|
-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
|
|
ac_sys_release=`uname -v`
|
|
else
|
|
ac_sys_release=`uname -r`
|
|
fi
|
|
ac_md_system=`echo $ac_sys_system |
|
|
tr -d '/ ' | tr '[A-Z]' '[a-z]'`
|
|
ac_md_release=`echo $ac_sys_release |
|
|
tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
|
|
MACHDEP="$ac_md_system$ac_md_release"
|
|
|
|
case $MACHDEP in
|
|
cygwin*) MACHDEP="cygwin";;
|
|
darwin*) MACHDEP="darwin";;
|
|
atheos*) MACHDEP="atheos";;
|
|
irix646) MACHDEP="irix6";;
|
|
'') MACHDEP="unknown";;
|
|
esac
|
|
fi
|
|
|
|
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
|
|
# disable features if it is defined, without any means to access these
|
|
# features as extensions. For these systems, we skip the definition of
|
|
# _XOPEN_SOURCE. Before adding a system to the list to gain access to
|
|
# some feature, make sure there is no alternative way to access this
|
|
# feature. Also, when using wildcards, make sure you have verified the
|
|
# need for not defining _XOPEN_SOURCE on all systems matching the
|
|
# wildcard, and that the wildcard does not include future systems
|
|
# (which may remove their limitations).
|
|
case $ac_sys_system/$ac_sys_release in
|
|
# On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
|
|
# even though select is a POSIX function. Reported by J. Ribbens.
|
|
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
|
|
OpenBSD/2.* | OpenBSD/3.[0123456789])
|
|
define_xopen_source=no;;
|
|
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
|
|
# of union __?sigval. Reported by Stuart Bishop.
|
|
SunOS/5.6)
|
|
define_xopen_source=no;;
|
|
# On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
|
|
# but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
|
|
# Reconfirmed for 7.1.4 by Martin v. Loewis.
|
|
OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
|
|
define_xopen_source=no;;
|
|
# On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
|
|
# but used in struct sockaddr.sa_family. Reported by Tim Rice.
|
|
SCO_SV/3.2)
|
|
define_xopen_source=no;;
|
|
# On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
|
|
# it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
|
|
# this is fixed in 10.3, which identifies itself as Darwin/7.*
|
|
# This should hopefully be fixed in FreeBSD 4.9
|
|
FreeBSD/4.8* | Darwin/6* )
|
|
define_xopen_source=no;;
|
|
# On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
|
|
# used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
|
|
# or has another value. By not (re)defining it, the defaults come in place.
|
|
AIX/4)
|
|
define_xopen_source=no;;
|
|
AIX/5)
|
|
if test `uname -r` -eq 1; then
|
|
define_xopen_source=no
|
|
fi
|
|
;;
|
|
# On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
|
|
# disables platform specific features beyond repair.
|
|
# On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
|
|
# has no effect, don't bother defining them
|
|
Darwin/[789].*)
|
|
define_xopen_source=no
|
|
;;
|
|
|
|
esac
|
|
|
|
if test $define_xopen_source = yes
|
|
then
|
|
# On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
|
|
# defined precisely as g++ defines it
|
|
# Furthermore, on Solaris 10, XPG6 requires the use of a C99
|
|
# compiler
|
|
case $ac_sys_system/$ac_sys_release in
|
|
SunOS/5.8|SunOS/5.9|SunOS/5.10)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _XOPEN_SOURCE 500
|
|
_ACEOF
|
|
|
|
;;
|
|
*)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _XOPEN_SOURCE 600
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
|
|
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
|
|
# definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
|
|
# several APIs are not declared. Since this is also needed in some
|
|
# cases for HP-UX, we define it globally.
|
|
# except for Solaris 10, where it must not be defined,
|
|
# as it implies XPG4.2
|
|
case $ac_sys_system/$ac_sys_release in
|
|
SunOS/5.10)
|
|
;;
|
|
*)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _XOPEN_SOURCE_EXTENDED 1
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _POSIX_C_SOURCE 200112L
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
#
|
|
# SGI compilers allow the specification of the both the ABI and the
|
|
# ISA on the command line. Depending on the values of these switches,
|
|
# different and often incompatable code will be generated.
|
|
#
|
|
# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
|
|
# thus supply support for various ABI/ISA combinations. The MACHDEP
|
|
# variable is also adjusted.
|
|
#
|
|
|
|
if test ! -z "$SGI_ABI"
|
|
then
|
|
CC="cc $SGI_ABI"
|
|
LDFLAGS="$SGI_ABI $LDFLAGS"
|
|
MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
|
|
echo "${ECHO_T}$MACHDEP" >&6; }
|
|
|
|
# And add extra plat-mac for darwin
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
|
|
echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
|
|
if test -z "$EXTRAPLATDIR"
|
|
then
|
|
case $MACHDEP in
|
|
darwin)
|
|
EXTRAPLATDIR="\$(PLATMACDIRS)"
|
|
EXTRAMACHDEPPATH="\$(PLATMACPATH)"
|
|
;;
|
|
*)
|
|
EXTRAPLATDIR=""
|
|
EXTRAMACHDEPPATH=""
|
|
;;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
|
|
echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
|
|
|
|
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
|
|
# it may influence the way we can build extensions, so distutils
|
|
# needs to check it
|
|
|
|
|
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
|
|
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
|
|
|
|
# checks for alternative programs
|
|
|
|
# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
|
|
# for debug/optimization stuff. BASECFLAGS is for flags that are required
|
|
# just to get things to compile and link. Users are free to override OPT
|
|
# when running configure or make. The build should not break if they do.
|
|
# BASECFLAGS should generally not be messed with, however.
|
|
|
|
# XXX shouldn't some/most/all of this code be merged with the stuff later
|
|
# on that fiddles with OPT and BASECFLAGS?
|
|
{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
|
|
echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-gcc was given.
|
|
if test "${with_gcc+set}" = set; then
|
|
withval=$with_gcc;
|
|
case $withval in
|
|
no) CC=cc
|
|
without_gcc=yes;;
|
|
yes) CC=gcc
|
|
without_gcc=no;;
|
|
*) CC=$withval
|
|
without_gcc=$withval;;
|
|
esac
|
|
else
|
|
|
|
case $ac_sys_system in
|
|
AIX*) CC=cc_r
|
|
without_gcc=;;
|
|
BeOS*)
|
|
case $BE_HOST_CPU in
|
|
ppc)
|
|
CC=mwcc
|
|
without_gcc=yes
|
|
BASECFLAGS="$BASECFLAGS -export pragma"
|
|
OPT="$OPT -O"
|
|
LDFLAGS="$LDFLAGS -nodup"
|
|
;;
|
|
x86)
|
|
CC=gcc
|
|
without_gcc=no
|
|
OPT="$OPT -O"
|
|
;;
|
|
*)
|
|
{ { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
|
|
echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
;;
|
|
esac
|
|
AR="\$(srcdir)/Modules/ar_beos"
|
|
RANLIB=:
|
|
;;
|
|
Monterey*)
|
|
RANLIB=:
|
|
without_gcc=;;
|
|
*) without_gcc=no;;
|
|
esac
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $without_gcc" >&5
|
|
echo "${ECHO_T}$without_gcc" >&6; }
|
|
|
|
# If the user switches compilers, we can't believe the cache
|
|
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
|
|
then
|
|
{ { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
|
|
(it is also a good idea to do 'make clean' before compiling)" >&5
|
|
echo "$as_me: error: cached CC is different -- throw away $cache_file
|
|
(it is also a good idea to do 'make clean' before compiling)" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
echo "${ECHO_T}$CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_CC"; then
|
|
ac_ct_CC=$CC
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
set dummy gcc; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
else
|
|
CC="$ac_cv_prog_CC"
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
echo "${ECHO_T}$CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
if test -z "$CC"; then
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
set dummy cc; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
ac_prog_rejected=no
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
ac_prog_rejected=yes
|
|
continue
|
|
fi
|
|
ac_cv_prog_CC="cc"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
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_CC
|
|
shift
|
|
if test $# != 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 CC to just the basename; use the full file name.
|
|
shift
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
echo "${ECHO_T}$CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$CC"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CC=$ac_cv_prog_CC
|
|
if test -n "$CC"; then
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
echo "${ECHO_T}$CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$CC" && break
|
|
done
|
|
fi
|
|
if test -z "$CC"; then
|
|
ac_ct_CC=$CC
|
|
for ac_prog in cl.exe
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$ac_ct_CC"; then
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
if test -n "$ac_ct_CC"; then
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$ac_ct_CC" && break
|
|
done
|
|
|
|
if test "x$ac_ct_CC" = x; then
|
|
CC=""
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
CC=$ac_ct_CC
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
# Provide some information about the compiler.
|
|
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
|
{ (ac_try="$ac_compiler --version >&5"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }
|
|
{ (ac_try="$ac_compiler -v >&5"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }
|
|
{ (ac_try="$ac_compiler -V >&5"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
ac_clean_files_save=$ac_clean_files
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
|
# Try to create an executable without -o first, disregard a.out.
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
|
# of exeext.
|
|
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
#
|
|
# List of possible output files, starting from the most likely.
|
|
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
|
# only as a last resort. b.out is created by i960 compilers.
|
|
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
|
#
|
|
# The IRIX 6 linker writes into existing files which may not be
|
|
# executable, retaining their permissions. Remove them first so a
|
|
# subsequent execution test works.
|
|
ac_rmfiles=
|
|
for ac_file in $ac_files
|
|
do
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
esac
|
|
done
|
|
rm -f $ac_rmfiles
|
|
|
|
if { (ac_try="$ac_link_default"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link_default") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
# so that the user can short-circuit this test for compilers unknown to
|
|
# Autoconf.
|
|
for ac_file in $ac_files
|
|
do
|
|
test -f "$ac_file" || continue
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
|
;;
|
|
[ab].out )
|
|
# We found the default executable, but exeext='' is most
|
|
# certainly right.
|
|
break;;
|
|
*.* )
|
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
then :; else
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
fi
|
|
# We set ac_cv_exeext here because the later test for it is not
|
|
# safe: cross compilers may not add the suffix if given an `-o'
|
|
# argument, so we may need to know it at that point already.
|
|
# Even if this section looks crufty: it has the advantage of
|
|
# actually working.
|
|
break;;
|
|
* )
|
|
break;;
|
|
esac
|
|
done
|
|
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: C compiler cannot create executables
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
|
|
ac_exeext=$ac_cv_exeext
|
|
{ echo "$as_me:$LINENO: result: $ac_file" >&5
|
|
echo "${ECHO_T}$ac_file" >&6; }
|
|
|
|
# Check that the compiler produces executables we can run. If not, either
|
|
# the compiler is broken, or we cross compile.
|
|
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
|
# If not cross compiling, check that we can run a simple program.
|
|
if test "$cross_compiling" != yes; then
|
|
if { ac_try='./$ac_file'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
cross_compiling=no
|
|
else
|
|
if test "$cross_compiling" = maybe; then
|
|
cross_compiling=yes
|
|
else
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
|
If you meant to cross compile, use \`--host'.
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot run C compiled programs.
|
|
If you meant to cross compile, use \`--host'.
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
|
ac_clean_files=$ac_clean_files_save
|
|
# Check that the compiler produces executables we can run. If not, either
|
|
# the compiler is broken, or we cross compile.
|
|
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
|
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
|
echo "${ECHO_T}$cross_compiling" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
# `rm'.
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
|
test -f "$ac_file" || continue
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
break;;
|
|
* ) break;;
|
|
esac
|
|
done
|
|
else
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
rm -f conftest$ac_cv_exeext
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
|
|
|
rm -f conftest.$ac_ext
|
|
EXEEXT=$ac_cv_exeext
|
|
ac_exeext=$EXEEXT
|
|
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
|
if test "${ac_cv_objext+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.o conftest.obj
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; then
|
|
for ac_file in conftest.o conftest.obj conftest.*; do
|
|
test -f "$ac_file" || continue;
|
|
case $ac_file in
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
break;;
|
|
esac
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
|
echo "${ECHO_T}$ac_cv_objext" >&6; }
|
|
OBJEXT=$ac_cv_objext
|
|
ac_objext=$OBJEXT
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef __GNUC__
|
|
choke me
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_compiler_gnu=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_compiler_gnu=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
|
ac_save_CFLAGS=$CFLAGS
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
|
ac_c_werror_flag=yes
|
|
ac_cv_prog_cc_g=no
|
|
CFLAGS="-g"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
CFLAGS=""
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
CFLAGS="-g"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
|
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
|
|
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_prog_cc_c89=no
|
|
ac_save_CC=$CC
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
struct buf { int x; };
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
static char *e (p, i)
|
|
char **p;
|
|
int i;
|
|
{
|
|
return p[i];
|
|
}
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
{
|
|
char *s;
|
|
va_list v;
|
|
va_start (v,p);
|
|
s = g (p, va_arg (v,int));
|
|
va_end (v);
|
|
return s;
|
|
}
|
|
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
These don't provoke an error unfortunately, instead are silently treated
|
|
as 'x'. The following induces an error, until -std is added to get
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
|
that's true only with -std. */
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
inside strings and character constants. */
|
|
#define FOO(x) 'x'
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
|
|
int test (int i, double x);
|
|
struct s1 {int (*f) (int a);};
|
|
struct s2 {int (*f) (double a);};
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
int argc;
|
|
char **argv;
|
|
int
|
|
main ()
|
|
{
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_prog_cc_c89=$ac_arg
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
done
|
|
rm -f conftest.$ac_ext
|
|
CC=$ac_save_CC
|
|
|
|
fi
|
|
# AC_CACHE_VAL
|
|
case "x$ac_cv_prog_cc_c89" in
|
|
x)
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5
|
|
echo "${ECHO_T}none needed" >&6; } ;;
|
|
xno)
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
|
echo "${ECHO_T}unsupported" >&6; } ;;
|
|
*)
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
|
esac
|
|
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
|
|
echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-cxx_main was given.
|
|
if test "${with_cxx_main+set}" = set; then
|
|
withval=$with_cxx_main;
|
|
|
|
case $withval in
|
|
no) with_cxx_main=no
|
|
MAINCC='$(CC)';;
|
|
yes) with_cxx_main=yes
|
|
MAINCC='$(CXX)';;
|
|
*) with_cxx_main=yes
|
|
MAINCC=$withval
|
|
if test -z "$CXX"
|
|
then
|
|
CXX=$withval
|
|
fi;;
|
|
esac
|
|
else
|
|
|
|
with_cxx_main=no
|
|
MAINCC='$(CC)'
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
|
|
echo "${ECHO_T}$with_cxx_main" >&6; }
|
|
|
|
preset_cxx="$CXX"
|
|
if test -z "$CXX"
|
|
then
|
|
case "$CC" in
|
|
gcc) # Extract the first word of "g++", so it can be a program name with args.
|
|
set dummy g++; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_path_CXX+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
case $CXX in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in notfound
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
|
|
;;
|
|
esac
|
|
fi
|
|
CXX=$ac_cv_path_CXX
|
|
if test -n "$CXX"; then
|
|
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
|
echo "${ECHO_T}$CXX" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
;;
|
|
cc) # Extract the first word of "c++", so it can be a program name with args.
|
|
set dummy c++; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_path_CXX+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
case $CXX in
|
|
[\\/]* | ?:[\\/]*)
|
|
ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in notfound
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
|
|
;;
|
|
esac
|
|
fi
|
|
CXX=$ac_cv_path_CXX
|
|
if test -n "$CXX"; then
|
|
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
|
echo "${ECHO_T}$CXX" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
if test "$CXX" = "notfound"
|
|
then
|
|
CXX=""
|
|
fi
|
|
fi
|
|
if test -z "$CXX"
|
|
then
|
|
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_CXX+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$CXX"; then
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_CXX="$ac_prog"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
CXX=$ac_cv_prog_CXX
|
|
if test -n "$CXX"; then
|
|
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
|
echo "${ECHO_T}$CXX" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$CXX" && break
|
|
done
|
|
test -n "$CXX" || CXX="notfound"
|
|
|
|
if test "$CXX" = "notfound"
|
|
then
|
|
CXX=""
|
|
fi
|
|
fi
|
|
if test "$preset_cxx" != "$CXX"
|
|
then
|
|
{ echo "$as_me:$LINENO: WARNING:
|
|
|
|
By default, distutils will build C++ extension modules with \"$CXX\".
|
|
If this is not intended, then set CXX on the configure command line.
|
|
" >&5
|
|
echo "$as_me: WARNING:
|
|
|
|
By default, distutils will build C++ extension modules with \"$CXX\".
|
|
If this is not intended, then set CXX on the configure command line.
|
|
" >&2;}
|
|
fi
|
|
|
|
|
|
# checks for UNIX variants that set C preprocessor variables
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
|
# On Suns, sometimes $CPP names a directory.
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
CPP=
|
|
fi
|
|
if test -z "$CPP"; then
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
# Double quotes because CPP needs to be expanded
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
do
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
# <limits.h> exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
:
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <ac_nonexistent.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then
|
|
break
|
|
fi
|
|
|
|
done
|
|
ac_cv_prog_CPP=$CPP
|
|
|
|
fi
|
|
CPP=$ac_cv_prog_CPP
|
|
else
|
|
ac_cv_prog_CPP=$CPP
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
|
echo "${ECHO_T}$CPP" >&6; }
|
|
ac_preproc_ok=false
|
|
for ac_c_preproc_warn_flag in '' yes
|
|
do
|
|
# Use a header file that comes with gcc, so configuring glibc
|
|
# with a fresh cross-compiler works.
|
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
# <limits.h> exists even on freestanding compilers.
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
Syntax error
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
:
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <ac_nonexistent.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
# Broken: success on invalid input.
|
|
continue
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# Passes both tests.
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then
|
|
:
|
|
else
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
ac_ext=c
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
|
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
# Extract the first word of "grep ggrep" to use in msg output
|
|
if test -z "$GREP"; then
|
|
set dummy grep ggrep; ac_prog_name=$2
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_path_GREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in grep ggrep; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
|
# Check for GNU $ac_path_GREP
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
echo 'GREP' >> "conftest.nl"
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
ac_count=`expr $ac_count + 1`
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
|
ac_path_GREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
|
|
$ac_path_GREP_found && break 3
|
|
done
|
|
done
|
|
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
fi
|
|
|
|
GREP="$ac_cv_path_GREP"
|
|
if test -z "$GREP"; then
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
else
|
|
ac_cv_path_GREP=$GREP
|
|
fi
|
|
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
|
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
|
GREP="$ac_cv_path_GREP"
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
then ac_cv_path_EGREP="$GREP -E"
|
|
else
|
|
# Extract the first word of "egrep" to use in msg output
|
|
if test -z "$EGREP"; then
|
|
set dummy egrep; ac_prog_name=$2
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_path_EGREP_found=false
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_prog in egrep; do
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
# Check for GNU $ac_path_EGREP
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
|
*GNU*)
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
*)
|
|
ac_count=0
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
while :
|
|
do
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
mv "conftest.tmp" "conftest.in"
|
|
cp "conftest.in" "conftest.nl"
|
|
echo 'EGREP' >> "conftest.nl"
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
ac_count=`expr $ac_count + 1`
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
# Best one so far, save it but keep looking for a better one
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
ac_path_EGREP_max=$ac_count
|
|
fi
|
|
# 10*(2^10) chars as input seems more than enough
|
|
test $ac_count -gt 10 && break
|
|
done
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
esac
|
|
|
|
|
|
$ac_path_EGREP_found && break 3
|
|
done
|
|
done
|
|
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
fi
|
|
|
|
EGREP="$ac_cv_path_EGREP"
|
|
if test -z "$EGREP"; then
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
else
|
|
ac_cv_path_EGREP=$EGREP
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
|
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
|
EGREP="$ac_cv_path_EGREP"
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for AIX" >&5
|
|
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#ifdef _AIX
|
|
yes
|
|
#endif
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _ALL_SOURCE 1
|
|
_ACEOF
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
# Check for unsupported systems
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Linux*/1*)
|
|
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
|
|
echo See README for details.
|
|
exit 1;;
|
|
esac
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
|
|
echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-suffix was given.
|
|
if test "${with_suffix+set}" = set; then
|
|
withval=$with_suffix;
|
|
case $withval in
|
|
no) EXEEXT=;;
|
|
yes) EXEEXT=.exe;;
|
|
*) EXEEXT=$withval;;
|
|
esac
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
|
|
echo "${ECHO_T}$EXEEXT" >&6; }
|
|
|
|
# Test whether we're running on a non-case-sensitive system, in which
|
|
# case we give a warning if no ext is given
|
|
|
|
{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
|
|
echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
|
|
if test ! -d CaseSensitiveTestDir; then
|
|
mkdir CaseSensitiveTestDir
|
|
fi
|
|
|
|
if test -d casesensitivetestdir
|
|
then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
BUILDEXEEXT=.exe
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
BUILDEXEEXT=$EXEEXT
|
|
fi
|
|
rmdir CaseSensitiveTestDir
|
|
|
|
case $MACHDEP in
|
|
bsdos*)
|
|
case $CC in
|
|
gcc) CC="$CC -D_HAVE_BSDI";;
|
|
esac;;
|
|
esac
|
|
|
|
case $ac_sys_system in
|
|
hp*|HP*)
|
|
case $CC in
|
|
cc|*/cc) CC="$CC -Ae";;
|
|
esac;;
|
|
Monterey*)
|
|
case $CC in
|
|
cc) CC="$CC -Wl,-Bexport";;
|
|
esac;;
|
|
SunOS*)
|
|
# Some functions have a prototype only with that define, e.g. confstr
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define __EXTENSIONS__ 1
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking LIBRARY" >&5
|
|
echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
|
|
if test -z "$LIBRARY"
|
|
then
|
|
LIBRARY='libpython$(VERSION).a'
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
|
|
echo "${ECHO_T}$LIBRARY" >&6; }
|
|
|
|
# LDLIBRARY is the name of the library to link against (as opposed to the
|
|
# name of the library into which to insert object files). BLDLIBRARY is also
|
|
# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
|
|
# is blank as the main program is not linked directly against LDLIBRARY.
|
|
# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
|
|
# systems without shared libraries, LDLIBRARY is the same as LIBRARY
|
|
# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
|
|
# DLLLIBRARY is the shared (i.e., DLL) library.
|
|
#
|
|
# RUNSHARED is used to run shared python without installed libraries
|
|
#
|
|
# INSTSONAME is the name of the shared library that will be use to install
|
|
# on the system - some systems like version suffix, others don't
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LDLIBRARY="$LIBRARY"
|
|
BLDLIBRARY='$(LDLIBRARY)'
|
|
INSTSONAME='$(LDLIBRARY)'
|
|
DLLLIBRARY=''
|
|
LDLIBRARYDIR=''
|
|
RUNSHARED=''
|
|
|
|
# LINKCC is the command that links the python executable -- default is $(CC).
|
|
# If CXX is set, and if it is needed to link a main function that was
|
|
# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
|
|
# python might then depend on the C++ runtime
|
|
# This is altered for AIX in order to build the export list before
|
|
# linking.
|
|
|
|
{ echo "$as_me:$LINENO: checking LINKCC" >&5
|
|
echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
|
|
if test -z "$LINKCC"
|
|
then
|
|
LINKCC='$(PURIFY) $(MAINCC)'
|
|
case $ac_sys_system in
|
|
AIX*)
|
|
exp_extra="\"\""
|
|
if test $ac_sys_release -ge 5 -o \
|
|
$ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
|
|
exp_extra="."
|
|
fi
|
|
LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
|
|
Monterey64*)
|
|
LINKCC="$LINKCC -L/usr/lib/ia64l64";;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $LINKCC" >&5
|
|
echo "${ECHO_T}$LINKCC" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
|
|
echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
|
|
# Check whether --enable-shared was given.
|
|
if test "${enable_shared+set}" = set; then
|
|
enableval=$enable_shared;
|
|
fi
|
|
|
|
|
|
if test -z "$enable_shared"
|
|
then
|
|
case $ac_sys_system in
|
|
CYGWIN* | atheos*)
|
|
enable_shared="yes";;
|
|
*)
|
|
enable_shared="no";;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
|
echo "${ECHO_T}$enable_shared" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
|
|
echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
|
|
# Check whether --enable-profiling was given.
|
|
if test "${enable_profiling+set}" = set; then
|
|
enableval=$enable_profiling; ac_save_cc="$CC"
|
|
CC="$CC -pg"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_enable_profiling="no"
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
int main() { return 0; }
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_enable_profiling="yes"
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_enable_profiling="no"
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
|
|
echo "${ECHO_T}$ac_enable_profiling" >&6; }
|
|
|
|
case "$ac_enable_profiling" in
|
|
"yes")
|
|
BASECFLAGS="-pg $BASECFLAGS"
|
|
LDFLAGS="-pg $LDFLAGS"
|
|
;;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
|
|
echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
|
|
|
|
# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
|
|
# library that we build, but we do not want to link against it (we
|
|
# will find it with a -framework option). For this reason there is an
|
|
# extra variable BLDLIBRARY against which Python and the extension
|
|
# modules are linked, BLDLIBRARY. This is normally the same as
|
|
# LDLIBRARY, but empty for MacOSX framework builds.
|
|
if test "$enable_framework"
|
|
then
|
|
LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
|
|
BLDLIBRARY=''
|
|
else
|
|
BLDLIBRARY='$(LDLIBRARY)'
|
|
fi
|
|
|
|
# Other platforms follow
|
|
if test $enable_shared = "yes"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define Py_ENABLE_SHARED 1
|
|
_ACEOF
|
|
|
|
case $ac_sys_system in
|
|
BeOS*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
;;
|
|
CYGWIN*)
|
|
LDLIBRARY='libpython$(VERSION).dll.a'
|
|
DLLLIBRARY='libpython$(VERSION).dll'
|
|
;;
|
|
SunOS*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
case $ac_sys_system in
|
|
FreeBSD*)
|
|
SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
|
|
;;
|
|
esac
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
hp*|HP*)
|
|
case `uname -m` in
|
|
ia64)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
;;
|
|
*)
|
|
LDLIBRARY='libpython$(VERSION).sl'
|
|
;;
|
|
esac
|
|
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
|
|
RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
|
|
;;
|
|
OSF*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
;;
|
|
atheos*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
|
|
;;
|
|
esac
|
|
else # shared is disabled
|
|
case $ac_sys_system in
|
|
CYGWIN*)
|
|
BLDLIBRARY='$(LIBRARY)'
|
|
LDLIBRARY='libpython$(VERSION).dll.a'
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
|
|
echo "${ECHO_T}$LDLIBRARY" >&6; }
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
RANLIB=$ac_cv_prog_RANLIB
|
|
if test -n "$RANLIB"; then
|
|
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
|
|
echo "${ECHO_T}$RANLIB" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
fi
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
|
ac_ct_RANLIB=$RANLIB
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
set dummy ranlib; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$ac_ct_RANLIB"; then
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
|
if test -n "$ac_ct_RANLIB"; then
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
if test "x$ac_ct_RANLIB" = x; then
|
|
RANLIB=":"
|
|
else
|
|
case $cross_compiling:$ac_tool_warned in
|
|
yes:)
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
whose name does not start with the host triplet. If you think this
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
ac_tool_warned=yes ;;
|
|
esac
|
|
RANLIB=$ac_ct_RANLIB
|
|
fi
|
|
else
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
fi
|
|
|
|
|
|
for ac_prog in ar aal
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$AR"; then
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_AR="$ac_prog"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
AR=$ac_cv_prog_AR
|
|
if test -n "$AR"; then
|
|
{ echo "$as_me:$LINENO: result: $AR" >&5
|
|
echo "${ECHO_T}$AR" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$AR" && break
|
|
done
|
|
test -n "$AR" || AR="ar"
|
|
|
|
|
|
|
|
# Extract the first word of "svnversion", so it can be a program name with args.
|
|
set dummy svnversion; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_SVNVERSION+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$SVNVERSION"; then
|
|
ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_SVNVERSION="found"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
|
|
fi
|
|
fi
|
|
SVNVERSION=$ac_cv_prog_SVNVERSION
|
|
if test -n "$SVNVERSION"; then
|
|
{ echo "$as_me:$LINENO: result: $SVNVERSION" >&5
|
|
echo "${ECHO_T}$SVNVERSION" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
if test $SVNVERSION = found
|
|
then
|
|
SVNVERSION="svnversion \$(srcdir)"
|
|
else
|
|
SVNVERSION="echo exported"
|
|
fi
|
|
|
|
case $MACHDEP in
|
|
bsdos*|hp*|HP*)
|
|
# install -d does not work on BSDI or HP-UX
|
|
if test -z "$INSTALL"
|
|
then
|
|
INSTALL="${srcdir}/install-sh -c"
|
|
fi
|
|
esac
|
|
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
|
|
elif test -f "$ac_dir/shtool"; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
break
|
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
|
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
|
|
# These three variables are undocumented and unsupported,
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
|
# whose full name contains unusual characters.
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
|
|
|
|
# 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
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
|
# 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"
|
|
# OS/2's system install, which has a completely different semantic
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
|
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
|
if test -z "$INSTALL"; then
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
# Account for people who put trailing slashes in PATH elements.
|
|
case $as_dir/ in
|
|
./ | .// | /cC/* | \
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
|
/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
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
|
if test $ac_prog = install &&
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
# AIX install. It has an incompatible calling convention.
|
|
:
|
|
elif test $ac_prog = install &&
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
# program-specific install script used by HP pwplus--don't use.
|
|
:
|
|
else
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
break 3
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
;;
|
|
esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
fi
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
INSTALL=$ac_cv_path_install
|
|
else
|
|
# As a last resort, use the slow shell script. Don't cache a
|
|
# value for INSTALL within a source directory, because that will
|
|
# break other packages using the cache if that directory is
|
|
# removed, or if the value is a relative name.
|
|
INSTALL=$ac_install_sh
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
|
echo "${ECHO_T}$INSTALL" >&6; }
|
|
|
|
# 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}'
|
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
|
|
# Not every filesystem supports hard links
|
|
|
|
if test -z "$LN" ; then
|
|
case $ac_sys_system in
|
|
BeOS*) LN="ln -s";;
|
|
CYGWIN*) LN="ln -s";;
|
|
atheos*) LN="ln -s";;
|
|
*) LN=ln;;
|
|
esac
|
|
fi
|
|
|
|
# Check for --with-pydebug
|
|
{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
|
|
echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-pydebug was given.
|
|
if test "${with_pydebug+set}" = set; then
|
|
withval=$with_pydebug;
|
|
if test "$withval" != no
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define Py_DEBUG 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; };
|
|
Py_DEBUG='true'
|
|
else { echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
|
|
# merged with this chunk of code?
|
|
|
|
# Optimizer/debugger flags
|
|
# ------------------------
|
|
# (The following bit of code is complicated enough - please keep things
|
|
# indented properly. Just pretend you're editing Python code. ;-)
|
|
|
|
# There are two parallel sets of case statements below, one that checks to
|
|
# see if OPT was set and one that does BASECFLAGS setting based upon
|
|
# compiler and platform. BASECFLAGS tweaks need to be made even if the
|
|
# user set OPT.
|
|
|
|
# tweak OPT based on compiler and platform, only if the user didn't set
|
|
# it on the command line
|
|
|
|
if test -z "$OPT"
|
|
then
|
|
case $GCC in
|
|
yes)
|
|
if test "$CC" != 'g++' ; then
|
|
STRICT_PROTO="-Wstrict-prototypes"
|
|
fi
|
|
case $ac_cv_prog_cc_g in
|
|
yes)
|
|
if test "$Py_DEBUG" = 'true' ; then
|
|
# Optimization messes up debuggers, so turn it off for
|
|
# debug builds.
|
|
OPT="-g -Wall $STRICT_PROTO"
|
|
else
|
|
OPT="-g -O3 -Wall $STRICT_PROTO"
|
|
fi
|
|
;;
|
|
*)
|
|
OPT="-O3 -Wall $STRICT_PROTO"
|
|
;;
|
|
esac
|
|
case $ac_sys_system in
|
|
SCO_SV*) OPT="$OPT -m486 -DSCO5"
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
*)
|
|
OPT="-O"
|
|
;;
|
|
esac
|
|
|
|
# The current (beta) Monterey compiler dies with optimizations
|
|
# XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
|
|
case $ac_sys_system in
|
|
Monterey*)
|
|
OPT=""
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
# tweak BASECFLAGS based on compiler and platform
|
|
case $GCC in
|
|
yes)
|
|
# Python violates C99 rules, by casting between incompatible
|
|
# pointer types. GCC may generate bad code as a result of that,
|
|
# so use -fno-strict-aliasing if supported.
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
|
|
ac_save_cc="$CC"
|
|
CC="$CC -fno-strict-aliasing"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_no_strict_aliasing_ok=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
int main() { return 0; }
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_no_strict_aliasing_ok=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_no_strict_aliasing_ok=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
|
|
echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
|
|
if test $ac_cv_no_strict_aliasing_ok = yes
|
|
then
|
|
BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
|
|
fi
|
|
case $ac_sys_system in
|
|
SCO_SV*)
|
|
BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
|
|
;;
|
|
# is there any other compiler on Darwin besides gcc?
|
|
Darwin*)
|
|
BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
|
|
if test "${enable_universalsdk}"; then
|
|
BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
|
|
fi
|
|
|
|
;;
|
|
OSF*)
|
|
BASECFLAGS="$BASECFLAGS -mieee"
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
*)
|
|
case $ac_sys_system in
|
|
OpenUNIX*|UnixWare*)
|
|
BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
|
|
;;
|
|
OSF*)
|
|
BASECFLAGS="$BASECFLAGS -ieee -std"
|
|
;;
|
|
SCO_SV*)
|
|
BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
if test "$Py_DEBUG" = 'true'; then
|
|
:
|
|
else
|
|
OPT="-DNDEBUG $OPT"
|
|
fi
|
|
|
|
if test "$ac_arch_flags"
|
|
then
|
|
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
|
|
fi
|
|
|
|
# disable check for icc since it seems to pass, but generates a warning
|
|
if test "$CC" = icc
|
|
then
|
|
ac_cv_opt_olimit_ok=no
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
|
|
if test "${ac_cv_opt_olimit_ok+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_cc="$CC"
|
|
CC="$CC -OPT:Olimit=0"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_opt_olimit_ok=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
int main() { return 0; }
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_opt_olimit_ok=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_opt_olimit_ok=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
|
|
echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
|
|
if test $ac_cv_opt_olimit_ok = yes; then
|
|
case $ac_sys_system in
|
|
# XXX is this branch needed? On MacOSX 10.2.2 the result of the
|
|
# olimit_ok test is "no". Is it "yes" in some other Darwin-esque
|
|
# environment?
|
|
Darwin*)
|
|
;;
|
|
*)
|
|
BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
|
|
;;
|
|
esac
|
|
else
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
|
|
if test "${ac_cv_olimit_ok+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_cc="$CC"
|
|
CC="$CC -Olimit 1500"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_olimit_ok=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
int main() { return 0; }
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_olimit_ok=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_olimit_ok=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
|
|
echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
|
|
if test $ac_cv_olimit_ok = yes; then
|
|
BASECFLAGS="$BASECFLAGS -Olimit 1500"
|
|
fi
|
|
fi
|
|
|
|
# On some compilers, pthreads are available without further options
|
|
# (e.g. MacOS X). On some of these systems, the compiler will not
|
|
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
|
|
# So we have to see first whether pthreads are available without
|
|
# options before we can check whether -Kpthread improves anything.
|
|
{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
|
|
echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
|
|
if test "${ac_cv_pthread_is_default+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_pthread_is_default=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <pthread.h>
|
|
|
|
void* routine(void* p){return NULL;}
|
|
|
|
int main(){
|
|
pthread_t p;
|
|
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
|
return 1;
|
|
(void)pthread_detach(p);
|
|
return 0;
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
ac_cv_pthread_is_default=yes
|
|
ac_cv_kthread=no
|
|
ac_cv_pthread=no
|
|
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_pthread_is_default=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
|
|
echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
|
|
|
|
|
|
if test $ac_cv_pthread_is_default = yes
|
|
then
|
|
ac_cv_kpthread=no
|
|
else
|
|
# -Kpthread, if available, provides the right #defines
|
|
# and linker options to make pthread_create available
|
|
# Some compilers won't report that they do not support -Kpthread,
|
|
# so we need to run a program to see whether it really made the
|
|
# function available.
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
|
|
if test "${ac_cv_kpthread+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_cc="$CC"
|
|
CC="$CC -Kpthread"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_kpthread=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <pthread.h>
|
|
|
|
void* routine(void* p){return NULL;}
|
|
|
|
int main(){
|
|
pthread_t p;
|
|
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
|
return 1;
|
|
(void)pthread_detach(p);
|
|
return 0;
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_kpthread=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_kpthread=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
|
|
echo "${ECHO_T}$ac_cv_kpthread" >&6; }
|
|
fi
|
|
|
|
if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
|
|
then
|
|
# -Kthread, if available, provides the right #defines
|
|
# and linker options to make pthread_create available
|
|
# Some compilers won't report that they do not support -Kthread,
|
|
# so we need to run a program to see whether it really made the
|
|
# function available.
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
|
|
if test "${ac_cv_kthread+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_cc="$CC"
|
|
CC="$CC -Kthread"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_kthread=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <pthread.h>
|
|
|
|
void* routine(void* p){return NULL;}
|
|
|
|
int main(){
|
|
pthread_t p;
|
|
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
|
return 1;
|
|
(void)pthread_detach(p);
|
|
return 0;
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_kthread=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_kthread=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
|
|
echo "${ECHO_T}$ac_cv_kthread" >&6; }
|
|
fi
|
|
|
|
if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
|
|
then
|
|
# -pthread, if available, provides the right #defines
|
|
# and linker options to make pthread_create available
|
|
# Some compilers won't report that they do not support -pthread,
|
|
# so we need to run a program to see whether it really made the
|
|
# function available.
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
|
|
echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
|
|
if test "${ac_cv_thread+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_save_cc="$CC"
|
|
CC="$CC -pthread"
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_pthread=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <pthread.h>
|
|
|
|
void* routine(void* p){return NULL;}
|
|
|
|
int main(){
|
|
pthread_t p;
|
|
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
|
return 1;
|
|
(void)pthread_detach(p);
|
|
return 0;
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_pthread=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_pthread=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
CC="$ac_save_cc"
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
|
|
echo "${ECHO_T}$ac_cv_pthread" >&6; }
|
|
fi
|
|
|
|
# If we have set a CC compiler flag for thread support then
|
|
# check if it works for CXX, too.
|
|
ac_cv_cxx_thread=no
|
|
if test ! -z "$CXX"
|
|
then
|
|
{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
|
|
echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
|
|
ac_save_cxx="$CXX"
|
|
|
|
if test "$ac_cv_kpthread" = "yes"
|
|
then
|
|
CXX="$CXX -Kpthread"
|
|
ac_cv_cxx_thread=yes
|
|
elif test "$ac_cv_kthread" = "yes"
|
|
then
|
|
CXX="$CXX -Kthread"
|
|
ac_cv_cxx_thread=yes
|
|
elif test "$ac_cv_pthread" = "yes"
|
|
then
|
|
CXX="$CXX -pthread"
|
|
ac_cv_cxx_thread=yes
|
|
fi
|
|
|
|
if test $ac_cv_cxx_thread = yes
|
|
then
|
|
echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
|
|
$CXX -c conftest.$ac_ext 2>&5
|
|
if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
|
|
&& test -s conftest$ac_exeext && ./conftest$ac_exeext
|
|
then
|
|
ac_cv_cxx_thread=yes
|
|
else
|
|
ac_cv_cxx_thread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
|
|
echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
|
|
fi
|
|
CXX="$ac_save_cxx"
|
|
|
|
|
|
# checks for header files
|
|
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <string.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
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 <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdlib.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
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 <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) \
|
|
(('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
|
|
#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))
|
|
return 2;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define STDC_HEADERS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
inttypes.h stdint.h unistd.h
|
|
do
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
|
|
#include <$ac_header>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_Header=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_Header=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
|
fcntl.h grp.h \
|
|
shadow.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
|
|
signal.h stropts.h termios.h thread.h \
|
|
unistd.h utime.h \
|
|
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
|
|
sys/modem.h \
|
|
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
|
|
sys/time.h \
|
|
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
|
|
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
|
bluetooth/bluetooth.h
|
|
do
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <$ac_header>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <$ac_header>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
|
fi
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_header_dirent=no
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
|
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
|
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <$ac_hdr>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
if ((DIR *) 0)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_Header=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_Header=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
ac_header_dirent=$ac_hdr; break
|
|
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 "$as_me:$LINENO: checking for library containing opendir" >&5
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char opendir ();
|
|
int
|
|
main ()
|
|
{
|
|
return opendir ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' dir; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_search_opendir=$ac_res
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
break
|
|
fi
|
|
done
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
:
|
|
else
|
|
ac_cv_search_opendir=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
|
ac_res=$ac_cv_search_opendir
|
|
if test "$ac_res" != no; then
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
fi
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char opendir ();
|
|
int
|
|
main ()
|
|
{
|
|
return opendir ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' x; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_search_opendir=$ac_res
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
break
|
|
fi
|
|
done
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
|
:
|
|
else
|
|
ac_cv_search_opendir=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
|
ac_res=$ac_cv_search_opendir
|
|
if test "$ac_res" != no; then
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
|
|
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
int
|
|
main ()
|
|
{
|
|
return makedev(0, 0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_header_sys_types_h_makedev=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_header_sys_types_h_makedev=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
|
|
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
|
|
|
|
if test $ac_cv_header_sys_types_h_makedev = no; then
|
|
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
|
|
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
|
|
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <sys/mkdev.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
|
|
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/mkdev.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
|
|
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_sys_mkdev_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_sys_mkdev_h = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define MAJOR_IN_MKDEV 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_header_sys_mkdev_h = no; then
|
|
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
|
|
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
|
|
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <sys/sysmacros.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
|
|
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/sysmacros.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
|
|
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_sys_sysmacros_h = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define MAJOR_IN_SYSMACROS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
# On Solaris, term.h requires curses.h
|
|
|
|
for ac_header in term.h
|
|
do
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#ifdef HAVE_CURSES_H
|
|
#include <curses.h>
|
|
#endif
|
|
|
|
|
|
#include <$ac_header>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_Header=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_Header=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
# On Linux, netlink.h requires asm/types.h
|
|
|
|
for ac_header in linux/netlink.h
|
|
do
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#ifdef HAVE_ASM_TYPES_H
|
|
#include <asm/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
|
|
|
|
#include <$ac_header>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_Header=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_Header=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
# checks for typedefs
|
|
was_it_defined=no
|
|
{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
|
|
echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "clock_t" >/dev/null 2>&1; then
|
|
was_it_defined=yes
|
|
else
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define clock_t long
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
rm -f conftest*
|
|
|
|
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
|
echo "${ECHO_T}$was_it_defined" >&6; }
|
|
|
|
# Check whether using makedev requires defining _OSF_SOURCE
|
|
{ echo "$as_me:$LINENO: checking for makedev" >&5
|
|
echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
int
|
|
main ()
|
|
{
|
|
makedev(0, 0)
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_has_makedev=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_has_makedev=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test "$ac_cv_has_makedev" = "no"; then
|
|
# we didn't link, try if _OSF_SOURCE will allow us to link
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#define _OSF_SOURCE 1
|
|
#include <sys/types.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
makedev(0, 0)
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_has_makedev=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_has_makedev=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
if test "$ac_cv_has_makedev" = "yes"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _OSF_SOURCE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
|
|
echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
|
|
if test "$ac_cv_has_makedev" = "yes"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_MAKEDEV 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
|
|
# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
|
|
# defined, but the compiler does not support pragma redefine_extname,
|
|
# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
|
|
# structures (such as rlimit64) without declaring them. As a
|
|
# work-around, disable LFS on such configurations
|
|
|
|
use_lfs=yes
|
|
{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
|
|
echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#define _LARGEFILE_SOURCE 1
|
|
#define _FILE_OFFSET_BITS 64
|
|
#include <sys/resource.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct rlimit foo;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
sol_lfs_bug=no
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
sol_lfs_bug=yes
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
|
|
echo "${ECHO_T}$sol_lfs_bug" >&6; }
|
|
if test "$sol_lfs_bug" = "yes"; then
|
|
use_lfs=no
|
|
fi
|
|
|
|
if test "$use_lfs" = "yes"; then
|
|
# Two defines needed to enable largefile support on various platforms
|
|
# These may affect some typedefs
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _LARGEFILE_SOURCE 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _FILE_OFFSET_BITS 64
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Add some code to confdefs.h so that the test for off_t works on SCO
|
|
cat >> confdefs.h <<\EOF
|
|
#if defined(SCO_DS)
|
|
#undef _OFF_T
|
|
#endif
|
|
EOF
|
|
|
|
# Type availability checks
|
|
{ echo "$as_me:$LINENO: checking for mode_t" >&5
|
|
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_mode_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef mode_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_mode_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_mode_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
|
|
if test $ac_cv_type_mode_t = yes; then
|
|
:
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define mode_t int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for off_t" >&5
|
|
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_off_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef off_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_off_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_off_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
|
|
if test $ac_cv_type_off_t = yes; then
|
|
:
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define off_t long int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for pid_t" >&5
|
|
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_pid_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef pid_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_pid_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_pid_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
|
|
if test $ac_cv_type_pid_t = yes; then
|
|
:
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define pid_t int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_signal+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return *(signal (0, 0)) (0) == 1;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_signal=int
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_signal=void
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for size_t" >&5
|
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_size_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_size_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_size_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
|
if test $ac_cv_type_size_t = yes; then
|
|
:
|
|
else
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define size_t unsigned int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
|
|
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_uid_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "uid_t" >/dev/null 2>&1; then
|
|
ac_cv_type_uid_t=yes
|
|
else
|
|
ac_cv_type_uid_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
|
|
if test $ac_cv_type_uid_t = no; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define uid_t int
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define gid_t int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
|
|
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_ssize_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef ssize_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_ssize_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_ssize_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
|
|
if test $ac_cv_type_ssize_t = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SSIZE_T 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
# Sizes of various common basic types
|
|
# ANSI C requires sizeof(char) == 1, so no need to check it
|
|
{ echo "$as_me:$LINENO: checking for int" >&5
|
|
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_int+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_int=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_int=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
|
|
echo "${ECHO_T}$ac_cv_type_int" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of int" >&5
|
|
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_int+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_int" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_int=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef int ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_int=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_int=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_INT $ac_cv_sizeof_int
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for long" >&5
|
|
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_long+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_long=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_long=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
|
|
echo "${ECHO_T}$ac_cv_type_long" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of long" >&5
|
|
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_long+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_long" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_long=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_long=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_long=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_LONG $ac_cv_sizeof_long
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for void *" >&5
|
|
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_void_p+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_void_p=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_void_p=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
|
|
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of void *" >&5
|
|
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_void_p+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_void_p" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_void_p=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (void *)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef void * ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_void_p=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (void *)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_void_p=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for short" >&5
|
|
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_short+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_short=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_short=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
|
|
echo "${ECHO_T}$ac_cv_type_short" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of short" >&5
|
|
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_short+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_short" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_short=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef short ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_short=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_short=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for float" >&5
|
|
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_float+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_float=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_float=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
|
|
echo "${ECHO_T}$ac_cv_type_float" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of float" >&5
|
|
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_float+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_float" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_float=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (float)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef float ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_float=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (float)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_float=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for double" >&5
|
|
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_double+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_double=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_double=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
|
|
echo "${ECHO_T}$ac_cv_type_double" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of double" >&5
|
|
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_double+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_double" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_double=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (double)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef double ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_double=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (double)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_double=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for fpos_t" >&5
|
|
echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_fpos_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_fpos_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_fpos_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
|
|
echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_fpos_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_fpos_t" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_fpos_t=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (fpos_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef fpos_t ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_fpos_t=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (fpos_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_fpos_t=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for size_t" >&5
|
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_size_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_size_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_size_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of size_t" >&5
|
|
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_size_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_size_t" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_size_t=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (size_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef size_t ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_size_t=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (size_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_size_t=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
|
|
_ACEOF
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for long long support" >&5
|
|
echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
|
|
have_long_long=no
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
long long x; x = (long long)0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_LONG_LONG 1
|
|
_ACEOF
|
|
|
|
have_long_long=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $have_long_long" >&5
|
|
echo "${ECHO_T}$have_long_long" >&6; }
|
|
if test "$have_long_long" = yes ; then
|
|
{ echo "$as_me:$LINENO: checking for long long" >&5
|
|
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_long_long+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_long_long=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_long_long=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
|
|
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of long long" >&5
|
|
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_long_long+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_long_long" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_long_long=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (long long)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef long long ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_long_long=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (long long)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_long_long=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for uintptr_t support" >&5
|
|
echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6; }
|
|
have_uintptr_t=no
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
uintptr_t x; x = (uintptr_t)0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_UINTPTR_T 1
|
|
_ACEOF
|
|
|
|
have_uintptr_t=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
|
|
echo "${ECHO_T}$have_uintptr_t" >&6; }
|
|
if test "$have_uintptr_t" = yes ; then
|
|
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
|
|
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_uintptr_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_uintptr_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_uintptr_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
|
|
echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_uintptr_t" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (uintptr_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
typedef uintptr_t ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_uintptr_t=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (uintptr_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_uintptr_t=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
|
|
{ echo "$as_me:$LINENO: checking size of off_t" >&5
|
|
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_off_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_off_t=4
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(off_t));
|
|
exit(0);
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_off_t=`cat conftestval`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_sizeof_off_t=0
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
|
|
_ACEOF
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
|
|
echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
|
|
if test "$have_long_long" = yes -a \
|
|
"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
|
|
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_LARGEFILE_SUPPORT 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
# AC_CHECK_SIZEOF() doesn't include <time.h>.
|
|
{ echo "$as_me:$LINENO: checking size of time_t" >&5
|
|
echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_time_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_time_t=4
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(time_t));
|
|
exit(0);
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_time_t=`cat conftestval`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_sizeof_time_t=0
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
|
|
_ACEOF
|
|
|
|
|
|
|
|
# if have pthread_t then define SIZEOF_PTHREAD_T
|
|
ac_save_cc="$CC"
|
|
if test "$ac_cv_kpthread" = "yes"
|
|
then CC="$CC -Kpthread"
|
|
elif test "$ac_cv_kthread" = "yes"
|
|
then CC="$CC -Kthread"
|
|
elif test "$ac_cv_pthread" = "yes"
|
|
then CC="$CC -pthread"
|
|
fi
|
|
{ echo "$as_me:$LINENO: checking for pthread_t" >&5
|
|
echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
|
|
have_pthread_t=no
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <pthread.h>
|
|
int
|
|
main ()
|
|
{
|
|
pthread_t x; x = *(pthread_t*)0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
have_pthread_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
|
|
echo "${ECHO_T}$have_pthread_t" >&6; }
|
|
if test "$have_pthread_t" = yes ; then
|
|
# AC_CHECK_SIZEOF() doesn't include <pthread.h>.
|
|
{ echo "$as_me:$LINENO: checking size of pthread_t" >&5
|
|
echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_pthread_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_sizeof_pthread_t=4
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
#include <pthread.h>
|
|
main()
|
|
{
|
|
FILE *f=fopen("conftestval", "w");
|
|
if (!f) exit(1);
|
|
fprintf(f, "%d\n", sizeof(pthread_t));
|
|
exit(0);
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_pthread_t=`cat conftestval`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_sizeof_pthread_t=0
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
|
|
_ACEOF
|
|
|
|
fi
|
|
CC="$ac_save_cc"
|
|
|
|
{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
|
|
echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
|
|
# Check whether --enable-toolbox-glue was given.
|
|
if test "${enable_toolbox_glue+set}" = set; then
|
|
enableval=$enable_toolbox_glue;
|
|
fi
|
|
|
|
|
|
if test -z "$enable_toolbox_glue"
|
|
then
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/*)
|
|
enable_toolbox_glue="yes";;
|
|
*)
|
|
enable_toolbox_glue="no";;
|
|
esac
|
|
fi
|
|
case "$enable_toolbox_glue" in
|
|
yes)
|
|
extra_machdep_objs="Python/mactoolboxglue.o"
|
|
extra_undefs="-u _PyMac_Error"
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define USE_TOOLBOX_OBJECT_GLUE 1
|
|
_ACEOF
|
|
|
|
;;
|
|
*)
|
|
extra_machdep_objs=""
|
|
extra_undefs=""
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
|
|
echo "${ECHO_T}$enable_toolbox_glue" >&6; }
|
|
|
|
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/[01567]\..*)
|
|
OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
|
|
;;
|
|
Darwin/*)
|
|
OTHER_LIBTOOL_OPT=""
|
|
;;
|
|
esac
|
|
|
|
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/[01567]\..*)
|
|
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
|
|
if test "${enable_universalsdk}"; then
|
|
:
|
|
else
|
|
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
|
|
fi
|
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
|
Darwin/*)
|
|
gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
|
|
if test ${gcc_version} '<' 4.0
|
|
then
|
|
LIBTOOL_CRUFT="-lcc_dynamic"
|
|
else
|
|
LIBTOOL_CRUFT=""
|
|
fi
|
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
|
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
|
|
echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
|
|
if test "$enable_framework"
|
|
then
|
|
BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
|
|
# -F. is needed to allow linking to the framework while
|
|
# in the build location.
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_NEXT_FRAMEWORK 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for dyld" >&5
|
|
echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/*)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_DYLD 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: always on for Darwin" >&5
|
|
echo "${ECHO_T}always on for Darwin" >&6; }
|
|
;;
|
|
*)
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
;;
|
|
esac
|
|
|
|
# Set info about shared libraries.
|
|
|
|
|
|
|
|
|
|
|
|
# SO is the extension of shared libraries `(including the dot!)
|
|
# -- usually .so, .sl on HP-UX, .dll on Cygwin
|
|
{ echo "$as_me:$LINENO: checking SO" >&5
|
|
echo $ECHO_N "checking SO... $ECHO_C" >&6; }
|
|
if test -z "$SO"
|
|
then
|
|
case $ac_sys_system in
|
|
hp*|HP*)
|
|
case `uname -m` in
|
|
ia64) SO=.so;;
|
|
*) SO=.sl;;
|
|
esac
|
|
;;
|
|
CYGWIN*) SO=.dll;;
|
|
*) SO=.so;;
|
|
esac
|
|
else
|
|
# this might also be a termcap variable, see #610332
|
|
echo
|
|
echo '====================================================================='
|
|
echo '+ +'
|
|
echo '+ WARNING: You have set SO in your environment. +'
|
|
echo '+ Do you really mean to change the extension for shared libraries? +'
|
|
echo '+ Continuing in 10 seconds to let you to ponder. +'
|
|
echo '+ +'
|
|
echo '====================================================================='
|
|
sleep 10
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $SO" >&5
|
|
echo "${ECHO_T}$SO" >&6; }
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SHLIB_EXT "$SO"
|
|
_ACEOF
|
|
|
|
# LDSHARED is the ld *command* used to create shared library
|
|
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
|
|
# (Shared libraries in this instance are shared modules to be loaded into
|
|
# Python, as opposed to building Python itself as a shared library.)
|
|
{ echo "$as_me:$LINENO: checking LDSHARED" >&5
|
|
echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
|
|
if test -z "$LDSHARED"
|
|
then
|
|
case $ac_sys_system/$ac_sys_release in
|
|
AIX*)
|
|
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
|
|
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
|
|
;;
|
|
BeOS*)
|
|
BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
|
|
LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
|
|
;;
|
|
IRIX/5*) LDSHARED="ld -shared";;
|
|
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
|
|
SunOS/5*)
|
|
if test "$GCC" = "yes"
|
|
then LDSHARED='$(CC) -shared'
|
|
else LDSHARED='$(CC) -G';
|
|
fi ;;
|
|
hp*|HP*) LDSHARED="ld -b";;
|
|
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
|
Darwin/1.3*)
|
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
|
if test "$enable_framework" ; then
|
|
# Link against the framework. All externals should be defined.
|
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
else
|
|
# No framework. Ignore undefined symbols, assuming they come from Python
|
|
LDSHARED="$LDSHARED -undefined suppress"
|
|
fi ;;
|
|
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
|
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
|
if test "$enable_framework" ; then
|
|
# Link against the framework. All externals should be defined.
|
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
else
|
|
# No framework, use the Python app as bundle-loader
|
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
|
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
fi ;;
|
|
Darwin/*)
|
|
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
|
|
# This allows an extension to be used in any Python
|
|
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
|
|
if test ${cur_target} '>' 10.2; then
|
|
cur_target=10.3
|
|
fi
|
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
|
|
EXPORT_MACOSX_DEPLOYMENT_TARGET=''
|
|
if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
|
|
then
|
|
if test "${enable_universalsdk}"; then
|
|
LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
|
|
fi
|
|
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
|
|
BLDSHARED="$LDSHARED"
|
|
else
|
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
|
if test "$enable_framework" ; then
|
|
# Link against the framework. All externals should be defined.
|
|
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
else
|
|
# No framework, use the Python app as bundle-loader
|
|
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
|
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
fi
|
|
fi
|
|
;;
|
|
Linux*|GNU*) LDSHARED='$(CC) -shared';;
|
|
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
|
FreeBSD*)
|
|
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
|
then
|
|
LDSHARED="$CC -shared ${LDFLAGS}"
|
|
else
|
|
LDSHARED="ld -Bshareable ${LDFLAGS}"
|
|
fi;;
|
|
OpenBSD*)
|
|
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
|
then
|
|
LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
|
|
else
|
|
case `uname -r` in
|
|
[01].* | 2.[0-7] | 2.[0-7].*)
|
|
LDSHARED="ld -Bshareable ${LDFLAGS}"
|
|
;;
|
|
*)
|
|
LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
|
|
;;
|
|
esac
|
|
fi;;
|
|
NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then LDSHARED='$(CC) -shared'
|
|
else LDSHARED='$(CC) -G'
|
|
fi;;
|
|
SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
|
|
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
|
|
CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
|
|
atheos*) LDSHARED="gcc -shared";;
|
|
*) LDSHARED="ld";;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
|
|
echo "${ECHO_T}$LDSHARED" >&6; }
|
|
BLDSHARED=${BLDSHARED-$LDSHARED}
|
|
# CCSHARED are the C *flags* used to create objects to go into a shared
|
|
# library (module) -- this is only needed for a few systems
|
|
{ echo "$as_me:$LINENO: checking CCSHARED" >&5
|
|
echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
|
|
if test -z "$CCSHARED"
|
|
then
|
|
case $ac_sys_system/$ac_sys_release in
|
|
SunOS*) if test "$GCC" = yes;
|
|
then CCSHARED="-fPIC";
|
|
else CCSHARED="-xcode=pic32";
|
|
fi;;
|
|
hp*|HP*) if test "$GCC" = yes;
|
|
then CCSHARED="-fPIC";
|
|
else CCSHARED="+z";
|
|
fi;;
|
|
Linux*|GNU*) CCSHARED="-fPIC";;
|
|
BSD/OS*/4*) CCSHARED="-fpic";;
|
|
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then CCSHARED="-fPIC"
|
|
else CCSHARED="-KPIC"
|
|
fi;;
|
|
SCO_SV*)
|
|
if test "$GCC" = "yes"
|
|
then CCSHARED="-fPIC"
|
|
else CCSHARED="-Kpic -belf"
|
|
fi;;
|
|
Monterey*) CCSHARED="-G";;
|
|
IRIX*/6*) case $CC in
|
|
*gcc*) CCSHARED="-shared";;
|
|
*) CCSHARED="";;
|
|
esac;;
|
|
atheos*) CCSHARED="-fPIC";;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
|
|
echo "${ECHO_T}$CCSHARED" >&6; }
|
|
# LINKFORSHARED are the flags passed to the $(CC) command that links
|
|
# the python executable -- this is only needed for a few systems
|
|
{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
|
|
echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
|
|
if test -z "$LINKFORSHARED"
|
|
then
|
|
case $ac_sys_system/$ac_sys_release in
|
|
AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
|
|
hp*|HP*)
|
|
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
|
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
|
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
|
# -u libsys_s pulls in all symbols in libsys
|
|
Darwin/*)
|
|
# -u _PyMac_Error is needed to pull in the mac toolbox glue,
|
|
# which is
|
|
# not used by the core itself but which needs to be in the core so
|
|
# that dynamically loaded extension modules have access to it.
|
|
# -prebind is no longer used, because it actually seems to give a
|
|
# slowdown in stead of a speedup, maybe due to the large number of
|
|
# dynamic loads Python does.
|
|
|
|
LINKFORSHARED="$extra_undefs"
|
|
if test "$enable_framework"
|
|
then
|
|
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
fi
|
|
LINKFORSHARED="$LINKFORSHARED";;
|
|
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
|
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
|
|
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
|
|
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
|
|
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
|
then
|
|
LINKFORSHARED="-Wl,--export-dynamic"
|
|
fi;;
|
|
SunOS/5*) case $CC in
|
|
*gcc*)
|
|
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
|
|
then
|
|
LINKFORSHARED="-Xlinker --export-dynamic"
|
|
fi;;
|
|
esac;;
|
|
CYGWIN*)
|
|
if test $enable_shared = "no"
|
|
then
|
|
LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
|
|
fi;;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
|
|
echo "${ECHO_T}$LINKFORSHARED" >&6; }
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
|
|
echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
|
|
if test ! "$LIBRARY" = "$LDLIBRARY"
|
|
then
|
|
case $ac_sys_system in
|
|
CYGWIN*)
|
|
# Cygwin needs CCSHARED when building extension DLLs
|
|
# but not when building the interpreter DLL.
|
|
CFLAGSFORSHARED='';;
|
|
*)
|
|
CFLAGSFORSHARED='$(CCSHARED)'
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
|
|
echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
|
|
|
|
# SHLIBS are libraries (except -lc and -lm) to link to the python shared
|
|
# library (with --enable-shared).
|
|
# For platforms on which shared libraries are not allowed to have unresolved
|
|
# symbols, this must be set to $(LIBS) (expanded by make). We do this even
|
|
# if it is not required, since it creates a dependency of the shared library
|
|
# to LIBS. This, in turn, means that applications linking the shared libpython
|
|
# don't need to link LIBS explicitly. The default should be only changed
|
|
# on systems where this approach causes problems.
|
|
|
|
{ echo "$as_me:$LINENO: checking SHLIBS" >&5
|
|
echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
|
|
case "$ac_sys_system" in
|
|
*)
|
|
SHLIBS='$(LIBS)';;
|
|
esac
|
|
{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
|
|
echo "${ECHO_T}$SHLIBS" >&6; }
|
|
|
|
|
|
# checks for libraries
|
|
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldl $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char dlopen ();
|
|
int
|
|
main ()
|
|
{
|
|
return dlopen ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_dl_dlopen=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_dl_dlopen=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBDL 1
|
|
_ACEOF
|
|
|
|
LIBS="-ldl $LIBS"
|
|
|
|
fi
|
|
# Dynamic linking for SunOS/Solaris and SYSV
|
|
|
|
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ldld $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char shl_load ();
|
|
int
|
|
main ()
|
|
{
|
|
return shl_load ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_dld_shl_load=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_dld_shl_load=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
|
|
if test $ac_cv_lib_dld_shl_load = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBDLD 1
|
|
_ACEOF
|
|
|
|
LIBS="-ldld $LIBS"
|
|
|
|
fi
|
|
# Dynamic linking for HP-UX
|
|
|
|
# only check for sem_ini if thread support is requested
|
|
if test "$with_threads" = "yes" -o -z "$with_threads"; then
|
|
{ echo "$as_me:$LINENO: checking for library containing sem_init" >&5
|
|
echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
|
|
if test "${ac_cv_search_sem_init+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_func_search_save_LIBS=$LIBS
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char sem_init ();
|
|
int
|
|
main ()
|
|
{
|
|
return sem_init ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
for ac_lib in '' pthread rt posix4; do
|
|
if test -z "$ac_lib"; then
|
|
ac_res="none required"
|
|
else
|
|
ac_res=-l$ac_lib
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
fi
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_search_sem_init=$ac_res
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext
|
|
if test "${ac_cv_search_sem_init+set}" = set; then
|
|
break
|
|
fi
|
|
done
|
|
if test "${ac_cv_search_sem_init+set}" = set; then
|
|
:
|
|
else
|
|
ac_cv_search_sem_init=no
|
|
fi
|
|
rm conftest.$ac_ext
|
|
LIBS=$ac_func_search_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
|
|
echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
|
|
ac_res=$ac_cv_search_sem_init
|
|
if test "$ac_res" != no; then
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
|
|
fi
|
|
# 'Real Time' functions on Solaris
|
|
# posix4 on Solaris 2.6
|
|
# pthread (first!) on Linux
|
|
fi
|
|
|
|
# check if we need libintl for locale functions
|
|
{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
|
|
echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_intl_textdomain+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lintl $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char textdomain ();
|
|
int
|
|
main ()
|
|
{
|
|
return textdomain ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_intl_textdomain=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_intl_textdomain=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
|
|
if test $ac_cv_lib_intl_textdomain = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_LIBINTL 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
# checks for system dependent C++ extensions support
|
|
case "$ac_sys_system" in
|
|
AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
|
|
echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include "/usr/lpp/xlC/include/load.h"
|
|
int
|
|
main ()
|
|
{
|
|
loadAndInit("", 0, "")
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define AIX_GENUINE_CPLUSPLUS 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext;;
|
|
*) ;;
|
|
esac
|
|
|
|
# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
|
|
# BeOS' sockets are stashed in libnet.
|
|
{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
|
|
echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lnsl $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char t_open ();
|
|
int
|
|
main ()
|
|
{
|
|
return t_open ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_nsl_t_open=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_nsl_t_open=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
|
|
if test $ac_cv_lib_nsl_t_open = yes; then
|
|
LIBS="-lnsl $LIBS"
|
|
fi
|
|
# SVR4
|
|
{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
|
|
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_socket_socket+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lsocket $LIBS $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char socket ();
|
|
int
|
|
main ()
|
|
{
|
|
return socket ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_socket_socket=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_socket_socket=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
|
|
if test $ac_cv_lib_socket_socket = yes; then
|
|
LIBS="-lsocket $LIBS"
|
|
fi
|
|
# SVR4 sockets
|
|
|
|
case "$ac_sys_system" in
|
|
BeOS*)
|
|
{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
|
|
echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_net_socket+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lnet $LIBS $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char socket ();
|
|
int
|
|
main ()
|
|
{
|
|
return socket ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_net_socket=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_net_socket=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
|
|
if test $ac_cv_lib_net_socket = yes; then
|
|
LIBS="-lnet $LIBS"
|
|
fi
|
|
# BeOS
|
|
;;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-libs" >&5
|
|
echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-libs was given.
|
|
if test "${with_libs+set}" = set; then
|
|
withval=$with_libs;
|
|
{ echo "$as_me:$LINENO: result: $withval" >&5
|
|
echo "${ECHO_T}$withval" >&6; }
|
|
LIBS="$withval $LIBS"
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# Check for use of the system libffi library
|
|
{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
|
|
echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-system_ffi was given.
|
|
if test "${with_system_ffi+set}" = set; then
|
|
withval=$with_system_ffi;
|
|
fi
|
|
|
|
|
|
if test -z "$with_system_ffi"
|
|
then with_system_ffi="no"
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
|
|
echo "${ECHO_T}$with_system_ffi" >&6; }
|
|
|
|
# Determine if signalmodule should be used.
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
|
|
echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-signal-module was given.
|
|
if test "${with_signal_module+set}" = set; then
|
|
withval=$with_signal_module;
|
|
fi
|
|
|
|
|
|
if test -z "$with_signal_module"
|
|
then with_signal_module="yes"
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
|
|
echo "${ECHO_T}$with_signal_module" >&6; }
|
|
|
|
if test "${with_signal_module}" = "yes"; then
|
|
USE_SIGNAL_MODULE=""
|
|
SIGNAL_OBJS=""
|
|
else
|
|
USE_SIGNAL_MODULE="#"
|
|
SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
|
|
fi
|
|
|
|
# This is used to generate Setup.config
|
|
|
|
USE_THREAD_MODULE=""
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
|
|
echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
|
|
|
|
|
|
# Check whether --with-dec-threads was given.
|
|
if test "${with_dec_threads+set}" = set; then
|
|
withval=$with_dec_threads;
|
|
{ echo "$as_me:$LINENO: result: $withval" >&5
|
|
echo "${ECHO_T}$withval" >&6; }
|
|
LDLAST=-threads
|
|
if test "${with_thread+set}" != set; then
|
|
with_thread="$withval";
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# Templates for things AC_DEFINEd more than once.
|
|
# For a single AC_DEFINE, no template is needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-threads" >&5
|
|
echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-threads was given.
|
|
if test "${with_threads+set}" = set; then
|
|
withval=$with_threads;
|
|
fi
|
|
|
|
|
|
# --with-thread is deprecated, but check for it anyway
|
|
|
|
# Check whether --with-thread was given.
|
|
if test "${with_thread+set}" = set; then
|
|
withval=$with_thread; with_threads=$with_thread
|
|
fi
|
|
|
|
|
|
if test -z "$with_threads"
|
|
then with_threads="yes"
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $with_threads" >&5
|
|
echo "${ECHO_T}$with_threads" >&6; }
|
|
|
|
|
|
if test "$with_threads" = "no"
|
|
then
|
|
USE_THREAD_MODULE="#"
|
|
elif test "$ac_cv_pthread_is_default" = yes
|
|
then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
# Defining _REENTRANT on system with POSIX threads should not hurt.
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _REENTRANT 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
elif test "$ac_cv_kpthread" = "yes"
|
|
then
|
|
CC="$CC -Kpthread"
|
|
if test "$ac_cv_cxx_thread" = "yes"; then
|
|
CXX="$CXX -Kpthread"
|
|
fi
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
elif test "$ac_cv_kthread" = "yes"
|
|
then
|
|
CC="$CC -Kthread"
|
|
if test "$ac_cv_cxx_thread" = "yes"; then
|
|
CXX="$CXX -Kthread"
|
|
fi
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
elif test "$ac_cv_pthread" = "yes"
|
|
then
|
|
CC="$CC -pthread"
|
|
if test "$ac_cv_cxx_thread" = "yes"; then
|
|
CXX="$CXX -pthread"
|
|
fi
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
if test ! -z "$with_threads" -a -d "$with_threads"
|
|
then LDFLAGS="$LDFLAGS -L$with_threads"
|
|
fi
|
|
if test ! -z "$withval" -a -d "$withval"
|
|
then LDFLAGS="$LDFLAGS -L$withval"
|
|
fi
|
|
|
|
# According to the POSIX spec, a pthreads implementation must
|
|
# define _POSIX_THREADS in unistd.h. Some apparently don't
|
|
# (e.g. gnu pth with pthread emulation)
|
|
{ echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
|
|
echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <unistd.h>
|
|
#ifdef _POSIX_THREADS
|
|
yes
|
|
#endif
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
unistd_defines_pthreads=yes
|
|
else
|
|
unistd_defines_pthreads=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
|
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _REENTRANT 1
|
|
_ACEOF
|
|
|
|
if test "${ac_cv_header_cthreads_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
|
|
echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_cthreads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
|
|
echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <cthreads.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
|
|
echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <cthreads.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
|
|
echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_cthreads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_cthreads_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_cthreads_h = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define C_THREADS 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HURD_C_THREADS 1
|
|
_ACEOF
|
|
|
|
LIBS="$LIBS -lthreads"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
|
|
echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
|
|
echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <mach/cthreads.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
|
|
echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <mach/cthreads.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
|
|
echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_mach_cthreads_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_mach_cthreads_h = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define C_THREADS 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define MACH_C_THREADS 1
|
|
_ACEOF
|
|
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-pth" >&5
|
|
echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-pth was given.
|
|
if test "${with_pth+set}" = set; then
|
|
withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
|
|
echo "${ECHO_T}$withval" >&6; }
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_PTH 1
|
|
_ACEOF
|
|
|
|
LIBS="-lpth $LIBS"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
# Just looking for pthread_create in libpthread is not enough:
|
|
# on HP/UX, pthread.h renames pthread_create to a different symbol name.
|
|
# So we really have to include pthread.h, and then link.
|
|
_libs=$LIBS
|
|
LIBS="$LIBS -lpthread"
|
|
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
|
|
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <pthread.h>
|
|
|
|
void * start_routine (void *arg) { exit (0); }
|
|
int
|
|
main ()
|
|
{
|
|
|
|
pthread_create (NULL, NULL, start_routine, NULL)
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
LIBS=$_libs
|
|
{ echo "$as_me:$LINENO: checking for pthread_detach" >&5
|
|
echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
|
|
if test "${ac_cv_func_pthread_detach+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define pthread_detach innocuous_pthread_detach
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char pthread_detach (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef pthread_detach
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_detach ();
|
|
/* 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_pthread_detach || defined __stub___pthread_detach
|
|
choke me
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_detach ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_func_pthread_detach=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_func_pthread_detach=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
|
|
echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
|
|
if test $ac_cv_func_pthread_detach = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
|
|
echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
|
|
echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <atheos/threads.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
|
|
echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <atheos/threads.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
|
|
echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_atheos_threads_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_atheos_threads_h = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define ATHEOS_THREADS 1
|
|
_ACEOF
|
|
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
|
|
echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
|
|
echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <kernel/OS.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
|
|
echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <kernel/OS.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
|
|
echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_kernel_OS_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_kernel_OS_h = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define BEOS_THREADS 1
|
|
_ACEOF
|
|
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
|
|
echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthreads $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_pthreads_pthread_create=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_pthreads_pthread_create=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
|
|
if test $ac_cv_lib_pthreads_pthread_create = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
LIBS="$LIBS -lpthreads"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
|
|
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc_r $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_c_r_pthread_create=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_c_r_pthread_create=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
|
|
if test $ac_cv_lib_c_r_pthread_create = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
LIBS="$LIBS -lc_r"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
|
|
echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lpthread $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char __pthread_create_system ();
|
|
int
|
|
main ()
|
|
{
|
|
return __pthread_create_system ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_pthread___pthread_create_system=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_pthread___pthread_create_system=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
|
|
if test $ac_cv_lib_pthread___pthread_create_system = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
LIBS="$LIBS -lpthread"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
|
|
echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lcma $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_cma_pthread_create=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_cma_pthread_create=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
|
|
if test $ac_cv_lib_cma_pthread_create = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
posix_threads=yes
|
|
LIBS="$LIBS -lcma"
|
|
THREADOBJ="Python/thread.o"
|
|
else
|
|
|
|
USE_THREAD_MODULE="#"
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
|
|
echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lmpc $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char usconfig ();
|
|
int
|
|
main ()
|
|
{
|
|
return usconfig ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_mpc_usconfig=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_mpc_usconfig=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
|
|
if test $ac_cv_lib_mpc_usconfig = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="$LIBS -lmpc"
|
|
THREADOBJ="Python/thread.o"
|
|
USE_THREAD_MODULE=""
|
|
fi
|
|
|
|
|
|
if test "$posix_threads" != "yes"; then
|
|
{ echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
|
|
echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_thread_thr_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lthread $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char thr_create ();
|
|
int
|
|
main ()
|
|
{
|
|
return thr_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_thread_thr_create=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_thread_thr_create=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
|
|
if test $ac_cv_lib_thread_thr_create = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_THREAD 1
|
|
_ACEOF
|
|
|
|
LIBS="$LIBS -lthread"
|
|
THREADOBJ="Python/thread.o"
|
|
USE_THREAD_MODULE=""
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$USE_THREAD_MODULE" != "#"
|
|
then
|
|
# If the above checks didn't disable threads, (at least) OSF1
|
|
# needs this '-threads' argument during linking.
|
|
case $ac_sys_system in
|
|
OSF1) LDLAST=-threads;;
|
|
esac
|
|
fi
|
|
fi
|
|
|
|
if test "$posix_threads" = "yes"; then
|
|
if test "$unistd_defines_pthreads" = "no"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _POSIX_THREADS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
|
|
case $ac_sys_system/$ac_sys_release in
|
|
SunOS/5.6)
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_PTHREAD_DESTRUCTOR 1
|
|
_ACEOF
|
|
|
|
;;
|
|
SunOS/5.8)
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
|
|
echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
|
|
if test "${ac_cv_pthread_system_supported+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_pthread_system_supported=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <pthread.h>
|
|
void *foo(void *parm) {
|
|
return NULL;
|
|
}
|
|
main() {
|
|
pthread_attr_t attr;
|
|
pthread_t id;
|
|
if (pthread_attr_init(&attr)) exit(-1);
|
|
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
|
if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
|
|
exit(0);
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_pthread_system_supported=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_pthread_system_supported=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
|
|
echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
|
|
if test "$ac_cv_pthread_system_supported" = "yes"; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
for ac_func in pthread_sigmask
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
case $ac_sys_system in
|
|
CYGWIN*)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_BROKEN_PTHREAD_SIGMASK 1
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
# Check for enable-ipv6
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
|
|
echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
|
|
# Check whether --enable-ipv6 was given.
|
|
if test "${enable_ipv6+set}" = set; then
|
|
enableval=$enable_ipv6; case "$enableval" in
|
|
no)
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
ipv6=no
|
|
;;
|
|
*) { echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define ENABLE_IPV6 1
|
|
_ACEOF
|
|
|
|
ipv6=yes
|
|
;;
|
|
esac
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
ipv6=no
|
|
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* AF_INET6 available check */
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
main()
|
|
{
|
|
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
|
|
exit(1);
|
|
else
|
|
exit(0);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
ipv6=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
ipv6=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
if test "$ipv6" = "yes"; then
|
|
{ echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
|
|
echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <netinet/in.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr_in6 x;
|
|
x.sin6_scope_id;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
ipv6=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
ipv6=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
if test "$ipv6" = "yes"; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define ENABLE_IPV6 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
ipv6type=unknown
|
|
ipv6lib=none
|
|
ipv6trylibc=no
|
|
|
|
if test "$ipv6" = "yes"; then
|
|
{ echo "$as_me:$LINENO: checking ipv6 stack type" >&5
|
|
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
|
|
for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
|
|
do
|
|
case $i in
|
|
inria)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <netinet/in.h>
|
|
#ifdef IPV6_INRIA_VERSION
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
kame)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <netinet/in.h>
|
|
#ifdef __KAME__
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i;
|
|
ipv6lib=inet6
|
|
ipv6libdir=/usr/local/v6/lib
|
|
ipv6trylibc=yes
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
linux-glibc)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <features.h>
|
|
#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i;
|
|
ipv6trylibc=yes
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
linux-inet6)
|
|
if test -d /usr/inet6; then
|
|
ipv6type=$i
|
|
ipv6lib=inet6
|
|
ipv6libdir=/usr/inet6/lib
|
|
BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
|
|
fi
|
|
;;
|
|
solaris)
|
|
if test -f /etc/netconfig; then
|
|
if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
|
|
ipv6type=$i
|
|
ipv6trylibc=yes
|
|
fi
|
|
fi
|
|
;;
|
|
toshiba)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/param.h>
|
|
#ifdef _TOSHIBA_INET6
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i;
|
|
ipv6lib=inet6;
|
|
ipv6libdir=/usr/local/v6/lib
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
v6d)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include </usr/local/v6/include/sys/v6config.h>
|
|
#ifdef __V6D__
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i;
|
|
ipv6lib=v6;
|
|
ipv6libdir=/usr/local/v6/lib;
|
|
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
zeta)
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/param.h>
|
|
#ifdef _ZETA_MINAMI_INET6
|
|
yes
|
|
#endif
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
|
ipv6type=$i;
|
|
ipv6lib=inet6;
|
|
ipv6libdir=/usr/local/v6/lib
|
|
fi
|
|
rm -f conftest*
|
|
|
|
;;
|
|
esac
|
|
if test "$ipv6type" != "unknown"; then
|
|
break
|
|
fi
|
|
done
|
|
{ echo "$as_me:$LINENO: result: $ipv6type" >&5
|
|
echo "${ECHO_T}$ipv6type" >&6; }
|
|
fi
|
|
|
|
if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
|
|
if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
|
|
LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
|
|
echo "using lib$ipv6lib"
|
|
else
|
|
if test $ipv6trylibc = "yes"; then
|
|
echo "using libc"
|
|
else
|
|
echo 'Fatal: no $ipv6lib library found. cannot continue.'
|
|
echo "You need to fetch lib$ipv6lib.a from appropriate"
|
|
echo 'ipv6 kit and compile beforehand.'
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# Check for --with-doc-strings
|
|
{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
|
|
echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-doc-strings was given.
|
|
if test "${with_doc_strings+set}" = set; then
|
|
withval=$with_doc_strings;
|
|
fi
|
|
|
|
|
|
if test -z "$with_doc_strings"
|
|
then with_doc_strings="yes"
|
|
fi
|
|
if test "$with_doc_strings" != "no"
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_DOC_STRINGS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
|
|
echo "${ECHO_T}$with_doc_strings" >&6; }
|
|
|
|
# Check for Python-specific malloc support
|
|
{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
|
|
echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-tsc was given.
|
|
if test "${with_tsc+set}" = set; then
|
|
withval=$with_tsc;
|
|
if test "$withval" != no
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_TSC 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else { echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# Check for Python-specific malloc support
|
|
{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
|
|
echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-pymalloc was given.
|
|
if test "${with_pymalloc+set}" = set; then
|
|
withval=$with_pymalloc;
|
|
fi
|
|
|
|
|
|
if test -z "$with_pymalloc"
|
|
then with_pymalloc="yes"
|
|
fi
|
|
if test "$with_pymalloc" != "no"
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WITH_PYMALLOC 1
|
|
_ACEOF
|
|
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
|
|
echo "${ECHO_T}$with_pymalloc" >&6; }
|
|
|
|
# Check for --with-wctype-functions
|
|
{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
|
|
echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-wctype-functions was given.
|
|
if test "${with_wctype_functions+set}" = set; then
|
|
withval=$with_wctype_functions;
|
|
if test "$withval" != no
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WANT_WCTYPE_FUNCTIONS 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else { echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# -I${DLINCLDIR} is added to the compile rule for importdl.o
|
|
|
|
DLINCLDIR=.
|
|
|
|
# the dlopen() function means we might want to use dynload_shlib.o. some
|
|
# platforms, such as AIX, have dlopen(), but don't want to use it.
|
|
|
|
for ac_func in dlopen
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
|
|
# loading of modules.
|
|
|
|
{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
|
|
echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
|
|
if test -z "$DYNLOADFILE"
|
|
then
|
|
case $ac_sys_system/$ac_sys_release in
|
|
AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
|
|
if test "$ac_cv_func_dlopen" = yes
|
|
then DYNLOADFILE="dynload_shlib.o"
|
|
else DYNLOADFILE="dynload_aix.o"
|
|
fi
|
|
;;
|
|
BeOS*) DYNLOADFILE="dynload_beos.o";;
|
|
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
|
|
# Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
|
|
Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
|
|
atheos*) DYNLOADFILE="dynload_atheos.o";;
|
|
*)
|
|
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
|
|
# out any dynamic loading
|
|
if test "$ac_cv_func_dlopen" = yes
|
|
then DYNLOADFILE="dynload_shlib.o"
|
|
else DYNLOADFILE="dynload_stub.o"
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
|
|
echo "${ECHO_T}$DYNLOADFILE" >&6; }
|
|
if test "$DYNLOADFILE" != "dynload_stub.o"
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_DYNAMIC_LOADING 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# MACHDEP_OBJS can be set to platform-specific object files needed by Python
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
|
|
echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
|
|
if test -z "$MACHDEP_OBJS"
|
|
then
|
|
MACHDEP_OBJS=$extra_machdep_objs
|
|
else
|
|
MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
|
|
echo "${ECHO_T}MACHDEP_OBJS" >&6; }
|
|
|
|
# checks for library functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
|
|
execv fork fpathconf ftime ftruncate \
|
|
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
|
|
getpriority getpwent getspnam getspent getsid getwd \
|
|
kill killpg lchown lstat mkfifo mknod mktime \
|
|
mremap nice pathconf pause plock poll pthread_init \
|
|
putenv readlink realpath \
|
|
select setegid seteuid setgid \
|
|
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
|
|
sigaction siginterrupt sigrelse strftime \
|
|
sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
|
|
truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
# For some functions, having a definition is not sufficient, since
|
|
# we want to take their address.
|
|
{ echo "$as_me:$LINENO: checking for chroot" >&5
|
|
echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=chroot
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_CHROOT 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: checking for link" >&5
|
|
echo $ECHO_N "checking for link... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=link
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_LINK 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: checking for symlink" >&5
|
|
echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=symlink
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SYMLINK 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: checking for fchdir" >&5
|
|
echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=fchdir
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FCHDIR 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: checking for fsync" >&5
|
|
echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=fsync
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FSYNC 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: checking for fdatasync" >&5
|
|
echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=fdatasync
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FDATASYNC 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
# On some systems (eg. FreeBSD 5), we would find a definition of the
|
|
# functions ctermid_r, setgroups in the library, but no prototype
|
|
# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
|
|
# address to avoid compiler warnings and potential miscompilations
|
|
# because of the missing prototypes.
|
|
|
|
{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
|
|
echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = ctermid_r
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_CTERMID_R 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for flock" >&5
|
|
echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <sys/file.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = flock
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FLOCK 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for getpagesize" >&5
|
|
echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = getpagesize
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETPAGESIZE 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
for ac_prog in true
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
if test "${ac_cv_prog_TRUE+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test -n "$TRUE"; then
|
|
ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
|
|
else
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
ac_cv_prog_TRUE="$ac_prog"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
fi
|
|
fi
|
|
TRUE=$ac_cv_prog_TRUE
|
|
if test -n "$TRUE"; then
|
|
{ echo "$as_me:$LINENO: result: $TRUE" >&5
|
|
echo "${ECHO_T}$TRUE" >&6; }
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
test -n "$TRUE" && break
|
|
done
|
|
test -n "$TRUE" || TRUE="/bin/true"
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
|
|
echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_c_inet_aton+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lc $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char inet_aton ();
|
|
int
|
|
main ()
|
|
{
|
|
return inet_aton ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_c_inet_aton=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_c_inet_aton=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
|
|
if test $ac_cv_lib_c_inet_aton = yes; then
|
|
$ac_cv_prog_TRUE
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
|
|
echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lresolv $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char inet_aton ();
|
|
int
|
|
main ()
|
|
{
|
|
return inet_aton ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_resolv_inet_aton=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_resolv_inet_aton=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
|
|
if test $ac_cv_lib_resolv_inet_aton = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBRESOLV 1
|
|
_ACEOF
|
|
|
|
LIBS="-lresolv $LIBS"
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/*)
|
|
_CUR_CFLAGS="${CFLAGS}"
|
|
_CUR_LDFLAGS="${LDFLAGS}"
|
|
CFLAGS="${CFLAGS} -Wl,-search_paths_first"
|
|
LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
|
|
;;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
|
|
echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lz $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char inflateCopy ();
|
|
int
|
|
main ()
|
|
{
|
|
return inflateCopy ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_z_inflateCopy=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_z_inflateCopy=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
|
|
if test $ac_cv_lib_z_inflateCopy = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_ZLIB_COPY 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
case $ac_sys_system/$ac_sys_release in
|
|
Darwin/*)
|
|
CFLAGS="${_CUR_CFLAGS}"
|
|
LDFLAGS="${_CUR_LDFLAGS}"
|
|
;;
|
|
esac
|
|
|
|
{ echo "$as_me:$LINENO: checking for hstrerror" >&5
|
|
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <netdb.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = hstrerror; hstrerror(0)
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_HSTRERROR 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for inet_aton" >&5
|
|
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = inet_aton;inet_aton(0,0)
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_INET_ATON 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for inet_pton" >&5
|
|
echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = inet_pton
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_INET_PTON 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
# On some systems, setgroups is in unistd.h, on others, in grp.h
|
|
{ echo "$as_me:$LINENO: checking for setgroups" >&5
|
|
echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
#include <unistd.h>
|
|
#ifdef HAVE_GRP_H
|
|
#include <grp.h>
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void* p = setgroups
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SETGROUPS 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
# check for openpty and forkpty
|
|
|
|
|
|
for ac_func in openpty
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
|
|
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_util_openpty+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lutil $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char openpty ();
|
|
int
|
|
main ()
|
|
{
|
|
return openpty ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_util_openpty=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_util_openpty=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
|
|
if test $ac_cv_lib_util_openpty = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_OPENPTY 1
|
|
_ACEOF
|
|
LIBS="$LIBS -lutil"
|
|
else
|
|
{ echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
|
|
echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_bsd_openpty+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lbsd $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char openpty ();
|
|
int
|
|
main ()
|
|
{
|
|
return openpty ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_bsd_openpty=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_bsd_openpty=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
|
|
if test $ac_cv_lib_bsd_openpty = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_OPENPTY 1
|
|
_ACEOF
|
|
LIBS="$LIBS -lbsd"
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
for ac_func in forkpty
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
|
|
echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_util_forkpty+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lutil $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char forkpty ();
|
|
int
|
|
main ()
|
|
{
|
|
return forkpty ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_util_forkpty=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_util_forkpty=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
|
|
if test $ac_cv_lib_util_forkpty = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FORKPTY 1
|
|
_ACEOF
|
|
LIBS="$LIBS -lutil"
|
|
else
|
|
{ echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
|
|
echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lbsd $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char forkpty ();
|
|
int
|
|
main ()
|
|
{
|
|
return forkpty ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_bsd_forkpty=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_bsd_forkpty=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
|
|
if test $ac_cv_lib_bsd_forkpty = yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_FORKPTY 1
|
|
_ACEOF
|
|
LIBS="$LIBS -lbsd"
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
# check for long file support functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ac_func in dup2 getcwd strdup strerror memmove
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
else
|
|
case " $LIBOBJS " in
|
|
*" $ac_func.$ac_objext "* ) ;;
|
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
for ac_func in getpgrp
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
getpgrp(0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define GETPGRP_HAVE_ARG 1
|
|
_ACEOF
|
|
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
for ac_func in setpgrp
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <unistd.h>
|
|
int
|
|
main ()
|
|
{
|
|
setpgrp(0,0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define SETPGRP_HAVE_ARG 1
|
|
_ACEOF
|
|
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
for ac_func in gettimeofday
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/time.h>
|
|
int
|
|
main ()
|
|
{
|
|
gettimeofday((struct timeval*)0,(struct timezone*)0);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define GETTIMEOFDAY_NO_TZ 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for major" >&5
|
|
echo $ECHO_N "checking for major... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#if defined(MAJOR_IN_MKDEV)
|
|
#include <sys/mkdev.h>
|
|
#elif defined(MAJOR_IN_SYSMACROS)
|
|
#include <sys/sysmacros.h>
|
|
#else
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
makedev(major(0),minor(0));
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_DEVICE_MACROS 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
# On OSF/1 V5.1, getaddrinfo is available, but a define
|
|
# for [no]getaddrinfo in netdb.h.
|
|
{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
|
|
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netdb.h>
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
getaddrinfo(NULL, NULL, NULL, NULL);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
|
|
echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
|
|
if test "$cross_compiling" = yes; then
|
|
{ echo "$as_me:$LINENO: result: buggy" >&5
|
|
echo "${ECHO_T}buggy" >&6; }
|
|
buggygetaddrinfo=yes
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <netdb.h>
|
|
#include <string.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
|
|
main()
|
|
{
|
|
int passive, gaierr, inet4 = 0, inet6 = 0;
|
|
struct addrinfo hints, *ai, *aitop;
|
|
char straddr[INET6_ADDRSTRLEN], strport[16];
|
|
|
|
for (passive = 0; passive <= 1; passive++) {
|
|
memset(&hints, 0, sizeof(hints));
|
|
hints.ai_family = AF_UNSPEC;
|
|
hints.ai_flags = passive ? AI_PASSIVE : 0;
|
|
hints.ai_socktype = SOCK_STREAM;
|
|
hints.ai_protocol = IPPROTO_TCP;
|
|
if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
|
|
(void)gai_strerror(gaierr);
|
|
goto bad;
|
|
}
|
|
for (ai = aitop; ai; ai = ai->ai_next) {
|
|
if (ai->ai_addr == NULL ||
|
|
ai->ai_addrlen == 0 ||
|
|
getnameinfo(ai->ai_addr, ai->ai_addrlen,
|
|
straddr, sizeof(straddr), strport, sizeof(strport),
|
|
NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
|
|
goto bad;
|
|
}
|
|
switch (ai->ai_family) {
|
|
case AF_INET:
|
|
if (strcmp(strport, "54321") != 0) {
|
|
goto bad;
|
|
}
|
|
if (passive) {
|
|
if (strcmp(straddr, "0.0.0.0") != 0) {
|
|
goto bad;
|
|
}
|
|
} else {
|
|
if (strcmp(straddr, "127.0.0.1") != 0) {
|
|
goto bad;
|
|
}
|
|
}
|
|
inet4++;
|
|
break;
|
|
case AF_INET6:
|
|
if (strcmp(strport, "54321") != 0) {
|
|
goto bad;
|
|
}
|
|
if (passive) {
|
|
if (strcmp(straddr, "::") != 0) {
|
|
goto bad;
|
|
}
|
|
} else {
|
|
if (strcmp(straddr, "::1") != 0) {
|
|
goto bad;
|
|
}
|
|
}
|
|
inet6++;
|
|
break;
|
|
case AF_UNSPEC:
|
|
goto bad;
|
|
break;
|
|
default:
|
|
/* another family support? */
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!(inet4 == 0 || inet4 == 2))
|
|
goto bad;
|
|
if (!(inet6 == 0 || inet6 == 2))
|
|
goto bad;
|
|
|
|
if (aitop)
|
|
freeaddrinfo(aitop);
|
|
exit(0);
|
|
|
|
bad:
|
|
if (aitop)
|
|
freeaddrinfo(aitop);
|
|
exit(1);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
{ echo "$as_me:$LINENO: result: good" >&5
|
|
echo "${ECHO_T}good" >&6; }
|
|
buggygetaddrinfo=no
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ echo "$as_me:$LINENO: result: buggy" >&5
|
|
echo "${ECHO_T}buggy" >&6; }
|
|
buggygetaddrinfo=yes
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
buggygetaddrinfo=yes
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
if test "$buggygetaddrinfo" = "yes"; then
|
|
if test "$ipv6" = "yes"; then
|
|
echo 'Fatal: You must get working getaddrinfo() function.'
|
|
echo ' or you can specify "--disable-ipv6"'.
|
|
exit 1
|
|
fi
|
|
else
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETADDRINFO 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
for ac_func in getnameinfo
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
# checks for structures
|
|
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
|
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_time+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
if ((struct tm *) 0)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_header_time=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_header_time=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
|
echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
|
if test $ac_cv_header_time = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define TIME_WITH_SYS_TIME 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_struct_tm+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct tm *tp; tp->tm_sec;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_struct_tm=time.h
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_struct_tm=sys/time.h
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
|
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define TM_IN_SYS_TIME 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
|
|
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <$ac_cv_struct_tm>
|
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
static struct tm ac_aggr;
|
|
if (ac_aggr.tm_zone)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_tm_tm_zone=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <$ac_cv_struct_tm>
|
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
static struct tm ac_aggr;
|
|
if (sizeof ac_aggr.tm_zone)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_tm_tm_zone=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_tm_tm_zone=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
|
|
if test $ac_cv_member_struct_tm_tm_zone = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_TM_TM_ZONE 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_TM_ZONE 1
|
|
_ACEOF
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: checking whether tzname is declared" >&5
|
|
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
|
|
if test "${ac_cv_have_decl_tzname+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef tzname
|
|
char *p = (char *) tzname;
|
|
return !p;
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_have_decl_tzname=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_have_decl_tzname=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
|
|
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
|
|
if test $ac_cv_have_decl_tzname = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_DECL_TZNAME 1
|
|
_ACEOF
|
|
|
|
|
|
else
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_DECL_TZNAME 0
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for tzname" >&5
|
|
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
|
|
if test "${ac_cv_var_tzname+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
#if !HAVE_DECL_TZNAME
|
|
extern char *tzname[];
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return tzname[0][0];
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_var_tzname=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_var_tzname=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
|
|
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
|
|
if test $ac_cv_var_tzname = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_TZNAME 1
|
|
_ACEOF
|
|
|
|
fi
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
|
|
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_rdev)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_rdev=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_rdev)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_rdev=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_rdev=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_rdev = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
|
|
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_blksize)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_blksize=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_blksize)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_blksize=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_blksize=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_blksize = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
|
|
echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_flags)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_flags=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_flags)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_flags=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_flags=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_flags = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_FLAGS 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
|
|
echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_gen)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_gen=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_gen)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_gen=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_gen=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_gen = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_GEN 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
|
|
echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_birthtime)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_birthtime=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_birthtime)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_birthtime=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_birthtime=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_birthtime = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
|
|
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (ac_aggr.st_blocks)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_blocks=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static struct stat ac_aggr;
|
|
if (sizeof ac_aggr.st_blocks)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_stat_st_blocks=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_stat_st_blocks=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
|
|
if test $ac_cv_member_struct_stat_st_blocks = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_ST_BLOCKS 1
|
|
_ACEOF
|
|
|
|
else
|
|
case " $LIBOBJS " in
|
|
*" fileblocks.$ac_objext "* ) ;;
|
|
*) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
|
|
echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_time_altzone+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
int
|
|
main ()
|
|
{
|
|
return altzone;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_header_time_altzone=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_header_time_altzone=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
|
|
echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
|
|
if test $ac_cv_header_time_altzone = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_ALTZONE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
was_it_defined=no
|
|
{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
|
|
echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/select.h>
|
|
#include <sys/time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define SYS_SELECT_WITH_SYS_TIME 1
|
|
_ACEOF
|
|
|
|
was_it_defined=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
|
echo "${ECHO_T}$was_it_defined" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking for addrinfo" >&5
|
|
echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
|
|
if test "${ac_cv_struct_addrinfo+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# include <netdb.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct addrinfo a
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_struct_addrinfo=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_struct_addrinfo=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
|
|
echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
|
|
if test $ac_cv_struct_addrinfo = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_ADDRINFO 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
|
|
echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
|
|
if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# include <sys/types.h>
|
|
# include <sys/socket.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr_storage s
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_struct_sockaddr_storage=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_struct_sockaddr_storage=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
|
|
echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
|
|
if test $ac_cv_struct_sockaddr_storage = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SOCKADDR_STORAGE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# checks for compiler characteristics
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
|
|
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
|
|
if test "${ac_cv_c_char_unsigned+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((char) -1) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_c_char_unsigned=no
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_c_char_unsigned=yes
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
|
|
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
|
|
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define __CHAR_UNSIGNED__ 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
|
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
|
if test "${ac_cv_c_const+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
/* FIXME: Include the comments suggested by Paul. */
|
|
#ifndef __cplusplus
|
|
/* 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;
|
|
if (s) return 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;
|
|
if (!foo) return 0;
|
|
}
|
|
return !x[0] && !zero.x;
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_c_const=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_c_const=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
|
echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
|
if test $ac_cv_c_const = no; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define const
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
works=no
|
|
{ echo "$as_me:$LINENO: checking for working volatile" >&5
|
|
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
volatile int x; x = 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
works=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define volatile
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $works" >&5
|
|
echo "${ECHO_T}$works" >&6; }
|
|
|
|
works=no
|
|
{ echo "$as_me:$LINENO: checking for working signed char" >&5
|
|
echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
main ()
|
|
{
|
|
signed char c;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
works=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define signed
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $works" >&5
|
|
echo "${ECHO_T}$works" >&6; }
|
|
|
|
have_prototypes=no
|
|
{ echo "$as_me:$LINENO: checking for prototypes" >&5
|
|
echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
int foo(int x) { return 0; }
|
|
int
|
|
main ()
|
|
{
|
|
return foo(10);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_PROTOTYPES 1
|
|
_ACEOF
|
|
|
|
have_prototypes=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
|
|
echo "${ECHO_T}$have_prototypes" >&6; }
|
|
|
|
works=no
|
|
{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
|
|
echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdarg.h>
|
|
int foo(int x, ...) {
|
|
va_list va;
|
|
va_start(va, x);
|
|
va_arg(va, int);
|
|
va_arg(va, char *);
|
|
va_arg(va, double);
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return foo(10, "", 3.14);
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_STDARG_PROTOTYPES 1
|
|
_ACEOF
|
|
|
|
works=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $works" >&5
|
|
echo "${ECHO_T}$works" >&6; }
|
|
|
|
# check for socketpair
|
|
{ echo "$as_me:$LINENO: checking for socketpair" >&5
|
|
echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
void *x=socketpair
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SOCKETPAIR 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
# check if sockaddr has sa_len member
|
|
{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
|
|
echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
int
|
|
main ()
|
|
{
|
|
struct sockaddr x;
|
|
x.sa_len = 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_SOCKADDR_SA_LEN 1
|
|
_ACEOF
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
va_list_is_array=no
|
|
{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
|
|
echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#ifdef HAVE_STDARG_PROTOTYPES
|
|
#include <stdarg.h>
|
|
#else
|
|
#include <varargs.h>
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
va_list list1, list2; list1 = list2;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
:
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define VA_LIST_IS_ARRAY 1
|
|
_ACEOF
|
|
|
|
va_list_is_array=yes
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
|
|
echo "${ECHO_T}$va_list_is_array" >&6; }
|
|
|
|
# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
|
|
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
|
|
if test "${ac_cv_func_gethostbyname_r+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define gethostbyname_r innocuous_gethostbyname_r
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char gethostbyname_r (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef gethostbyname_r
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char gethostbyname_r ();
|
|
/* 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_gethostbyname_r || defined __stub___gethostbyname_r
|
|
choke me
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return gethostbyname_r ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_func_gethostbyname_r=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_func_gethostbyname_r=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
|
|
echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
|
|
if test $ac_cv_func_gethostbyname_r = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
|
|
echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
|
|
OLD_CFLAGS=$CFLAGS
|
|
CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# include <netdb.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
char *name;
|
|
struct hostent *he, *res;
|
|
char buffer[2048];
|
|
int buflen = 2048;
|
|
int h_errnop;
|
|
|
|
(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R_6_ARG 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
{ echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
|
|
echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# include <netdb.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
char *name;
|
|
struct hostent *he;
|
|
char buffer[2048];
|
|
int buflen = 2048;
|
|
int h_errnop;
|
|
|
|
(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R_5_ARG 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
{ echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
|
|
echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
# include <netdb.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
char *name;
|
|
struct hostent *he;
|
|
struct hostent_data data;
|
|
|
|
(void) gethostbyname_r(name, he, &data);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R 1
|
|
_ACEOF
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETHOSTBYNAME_R_3_ARG 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
CFLAGS=$OLD_CFLAGS
|
|
|
|
else
|
|
|
|
|
|
for ac_func in gethostbyname
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# checks for system services
|
|
# (none yet)
|
|
|
|
# Linux requires this for correct f.p. operations
|
|
{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
|
|
echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
|
|
if test "${ac_cv_func___fpu_control+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define __fpu_control innocuous___fpu_control
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char __fpu_control (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef __fpu_control
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char __fpu_control ();
|
|
/* 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___fpu_control || defined __stub_____fpu_control
|
|
choke me
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return __fpu_control ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_func___fpu_control=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_func___fpu_control=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
|
|
echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
|
|
if test $ac_cv_func___fpu_control = yes; then
|
|
:
|
|
else
|
|
|
|
{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
|
|
echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lieee $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char __fpu_control ();
|
|
int
|
|
main ()
|
|
{
|
|
return __fpu_control ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_ieee___fpu_control=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_ieee___fpu_control=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
|
|
if test $ac_cv_lib_ieee___fpu_control = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBIEEE 1
|
|
_ACEOF
|
|
|
|
LIBS="-lieee $LIBS"
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
# Check for --with-fpectl
|
|
{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
|
|
echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-fpectl was given.
|
|
if test "${with_fpectl+set}" = set; then
|
|
withval=$with_fpectl;
|
|
if test "$withval" != no
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WANT_SIGFPE_HANDLER 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else { echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
|
|
|
|
# check for --with-libm=...
|
|
|
|
case $ac_sys_system in
|
|
Darwin) ;;
|
|
BeOS) ;;
|
|
*) LIBM=-lm
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
|
|
echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-libm was given.
|
|
if test "${with_libm+set}" = set; then
|
|
withval=$with_libm;
|
|
if test "$withval" = no
|
|
then LIBM=
|
|
{ echo "$as_me:$LINENO: result: force LIBM empty" >&5
|
|
echo "${ECHO_T}force LIBM empty" >&6; }
|
|
elif test "$withval" != yes
|
|
then LIBM=$withval
|
|
{ echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
|
|
echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
|
|
else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
|
|
echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
|
|
echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
|
|
fi
|
|
|
|
|
|
# check for --with-libc=...
|
|
|
|
{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
|
|
echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
|
|
|
|
# Check whether --with-libc was given.
|
|
if test "${with_libc+set}" = set; then
|
|
withval=$with_libc;
|
|
if test "$withval" = no
|
|
then LIBC=
|
|
{ echo "$as_me:$LINENO: result: force LIBC empty" >&5
|
|
echo "${ECHO_T}force LIBC empty" >&6; }
|
|
elif test "$withval" != yes
|
|
then LIBC=$withval
|
|
{ echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
|
|
echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
|
|
else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
|
|
echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
else
|
|
{ echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
|
|
echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
|
|
fi
|
|
|
|
|
|
# check for hypot() in math library
|
|
LIBS_SAVE=$LIBS
|
|
LIBS="$LIBS $LIBM"
|
|
|
|
for ac_func in hypot
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
#define $ac_func innocuous_$ac_func
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func (); below.
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
<limits.h> exists even on freestanding compilers. */
|
|
|
|
#ifdef __STDC__
|
|
# include <limits.h>
|
|
#else
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#undef $ac_func
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char $ac_func ();
|
|
/* 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
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return $ac_func ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
eval "$as_ac_var=no"
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
|
|
else
|
|
case " $LIBOBJS " in
|
|
*" $ac_func.$ac_objext "* ) ;;
|
|
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
done
|
|
|
|
|
|
LIBS=$LIBS_SAVE
|
|
|
|
# check for wchar.h
|
|
if test "${ac_cv_header_wchar_h+set}" = set; then
|
|
{ echo "$as_me:$LINENO: checking for wchar.h" >&5
|
|
echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_wchar_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
|
|
else
|
|
# Is the header compilable?
|
|
{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
|
|
echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
#include <wchar.h>
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_header_compiler=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_compiler=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
|
# Is the header present?
|
|
{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
|
|
echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_header_preproc=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
|
# So? What about this header?
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
yes:no: )
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
|
|
echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
|
|
ac_header_preproc=yes
|
|
;;
|
|
no:yes:* )
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
|
|
echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
|
|
echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
|
|
echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
|
|
echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
|
|
{ echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
|
|
echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
|
|
( cat <<\_ASBOX
|
|
## ------------------------------------------------ ##
|
|
## Report this to http://www.python.org/python-bugs ##
|
|
## ------------------------------------------------ ##
|
|
_ASBOX
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
;;
|
|
esac
|
|
{ echo "$as_me:$LINENO: checking for wchar.h" >&5
|
|
echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
|
|
if test "${ac_cv_header_wchar_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_cv_header_wchar_h=$ac_header_preproc
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
|
|
echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
|
|
|
|
fi
|
|
if test $ac_cv_header_wchar_h = yes; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_WCHAR_H 1
|
|
_ACEOF
|
|
|
|
wchar_h="yes"
|
|
|
|
else
|
|
wchar_h="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# determine wchar_t size
|
|
if test "$wchar_h" = yes
|
|
then
|
|
{ echo "$as_me:$LINENO: checking for wchar_t" >&5
|
|
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_wchar_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_wchar_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_wchar_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
|
|
|
|
{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
|
|
echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_sizeof_wchar_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
if test "$ac_cv_type_wchar_t" = yes; then
|
|
# The cast to long int works around a bug in the HP C Compiler
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
# This bug is HP SR number 8606223364.
|
|
if test "$cross_compiling" = yes; then
|
|
# Depending upon the size, compute the lo and hi bounds.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=0 ac_mid=0
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr $ac_mid + 1`
|
|
if test $ac_lo -le $ac_mid; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=-1 ac_mid=-1
|
|
while :; do
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_lo=$ac_mid; break
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
if test $ac_mid -le $ac_hi; then
|
|
ac_lo= ac_hi=
|
|
break
|
|
fi
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo= ac_hi=
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
# Binary search between lo and hi bounds.
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
int
|
|
main ()
|
|
{
|
|
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
|
test_array [0] = 0
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_hi=$ac_mid
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
done
|
|
case $ac_lo in
|
|
?*) ac_cv_sizeof_wchar_t=$ac_lo;;
|
|
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (wchar_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; } ;;
|
|
esac
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <wchar.h>
|
|
|
|
typedef wchar_t ac__type_sizeof_;
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen ("conftest.val", "w");
|
|
if (! f)
|
|
return 1;
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
|
{
|
|
long int i = longval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%ld\n", i);
|
|
}
|
|
else
|
|
{
|
|
unsigned long int i = ulongval ();
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
|
return 1;
|
|
fprintf (f, "%lu\n", i);
|
|
}
|
|
return ferror (f) || fclose (f) != 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_sizeof_wchar_t=`cat conftest.val`
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot compute sizeof (wchar_t)
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 77); exit 77; }; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
rm -f conftest.val
|
|
else
|
|
ac_cv_sizeof_wchar_t=0
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
|
|
echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
|
|
echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
|
|
have_ucs4_tcl=no
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <tcl.h>
|
|
#if TCL_UTF_MAX != 6
|
|
# error "NOT UCS4_TCL"
|
|
#endif
|
|
int
|
|
main ()
|
|
{
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_UCS4_TCL 1
|
|
_ACEOF
|
|
|
|
have_ucs4_tcl=yes
|
|
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
|
|
echo "${ECHO_T}$have_ucs4_tcl" >&6; }
|
|
|
|
# check whether wchar_t is signed or not
|
|
if test "$wchar_h" = yes
|
|
then
|
|
# check whether wchar_t is signed or not
|
|
{ echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
|
|
echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
|
|
if test "${ac_cv_wchar_t_signed+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_wchar_t_signed=yes
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <wchar.h>
|
|
int main()
|
|
{
|
|
/* Success: exit code 0 */
|
|
exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_wchar_t_signed=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_wchar_t_signed=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
|
|
echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
|
|
echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
|
|
# Check whether --enable-unicode was given.
|
|
if test "${enable_unicode+set}" = set; then
|
|
enableval=$enable_unicode;
|
|
else
|
|
enable_unicode=yes
|
|
fi
|
|
|
|
|
|
if test $enable_unicode = yes
|
|
then
|
|
# Without any arguments, Py_UNICODE defaults to two-byte mode
|
|
case "$have_ucs4_tcl" in
|
|
yes) enable_unicode="ucs4"
|
|
;;
|
|
*) enable_unicode="ucs2"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
|
|
|
|
case "$enable_unicode" in
|
|
ucs2) unicode_size="2"
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define Py_UNICODE_SIZE 2
|
|
_ACEOF
|
|
|
|
;;
|
|
ucs4) unicode_size="4"
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define Py_UNICODE_SIZE 4
|
|
_ACEOF
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
if test "$enable_unicode" = "no"
|
|
then
|
|
UNICODE_OBJS=""
|
|
{ echo "$as_me:$LINENO: result: not used" >&5
|
|
echo "${ECHO_T}not used" >&6; }
|
|
else
|
|
UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define Py_USING_UNICODE 1
|
|
_ACEOF
|
|
|
|
|
|
# wchar_t is only usable if it maps to an unsigned type
|
|
if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
|
|
-a "$ac_cv_wchar_t_signed" = "no"
|
|
then
|
|
PY_UNICODE_TYPE="wchar_t"
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_USABLE_WCHAR_T 1
|
|
_ACEOF
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define PY_UNICODE_TYPE wchar_t
|
|
_ACEOF
|
|
|
|
elif test "$ac_cv_sizeof_short" = "$unicode_size"
|
|
then
|
|
PY_UNICODE_TYPE="unsigned short"
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define PY_UNICODE_TYPE unsigned short
|
|
_ACEOF
|
|
|
|
elif test "$ac_cv_sizeof_long" = "$unicode_size"
|
|
then
|
|
PY_UNICODE_TYPE="unsigned long"
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define PY_UNICODE_TYPE unsigned long
|
|
_ACEOF
|
|
|
|
else
|
|
PY_UNICODE_TYPE="no type found"
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
|
|
echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
|
|
fi
|
|
|
|
# check for endianness
|
|
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
|
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
|
if test "${ac_cv_c_bigendian+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
bogus endian macros
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
|
not big endian
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_c_bigendian=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_c_bigendian=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
# It does not; compile a test program.
|
|
if test "$cross_compiling" = yes; then
|
|
# try to guess the endianness by grepping values into an object file
|
|
ac_cv_c_bigendian=unknown
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
|
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
|
int
|
|
main ()
|
|
{
|
|
_ascii (); _ebcdic ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
|
ac_cv_c_bigendian=yes
|
|
fi
|
|
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
|
if test "$ac_cv_c_bigendian" = unknown; then
|
|
ac_cv_c_bigendian=no
|
|
else
|
|
# finding both strings is unlikely to happen, but who knows?
|
|
ac_cv_c_bigendian=unknown
|
|
fi
|
|
fi
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
$ac_includes_default
|
|
int
|
|
main ()
|
|
{
|
|
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
union
|
|
{
|
|
long int l;
|
|
char c[sizeof (long int)];
|
|
} u;
|
|
u.l = 1;
|
|
return u.c[sizeof (long int) - 1] == 1;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_c_bigendian=no
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_c_bigendian=yes
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
|
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
|
case $ac_cv_c_bigendian in
|
|
yes)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WORDS_BIGENDIAN 1
|
|
_ACEOF
|
|
;;
|
|
no)
|
|
;;
|
|
*)
|
|
{ { echo "$as_me:$LINENO: error: unknown endianness
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
|
echo "$as_me: error: unknown endianness
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
|
{ (exit 1); exit 1; }; } ;;
|
|
esac
|
|
|
|
|
|
|
|
|
|
# Check whether right shifting a negative integer extends the sign bit
|
|
# or fills with zeros (like the Cray J90, according to Tim Peters).
|
|
{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
|
|
echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
|
|
if test "${ac_cv_rshift_extends_sign+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_rshift_extends_sign=yes
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int main()
|
|
{
|
|
exit(((-1)>>3 == -1) ? 0 : 1);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_rshift_extends_sign=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_rshift_extends_sign=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
|
|
echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
|
|
if test "$ac_cv_rshift_extends_sign" = no
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# check for getc_unlocked and related locking functions
|
|
{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
|
|
echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
|
|
if test "${ac_cv_have_getc_unlocked+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
FILE *f = fopen("/dev/null", "r");
|
|
flockfile(f);
|
|
getc_unlocked(f);
|
|
funlockfile(f);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_have_getc_unlocked=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_have_getc_unlocked=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
|
|
echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
|
|
if test "$ac_cv_have_getc_unlocked" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_GETC_UNLOCKED 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# check where readline lives
|
|
# save the value of LIBS so we don't actually link Python with readline
|
|
LIBS_no_readline=$LIBS
|
|
|
|
{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
|
|
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_readline_readline+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lreadline $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char readline ();
|
|
int
|
|
main ()
|
|
{
|
|
return readline ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_readline_readline=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_readline_readline=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
|
|
if test $ac_cv_lib_readline_readline = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBREADLINE 1
|
|
_ACEOF
|
|
|
|
LIBS="-lreadline $LIBS"
|
|
|
|
fi
|
|
|
|
if test "$ac_cv_have_readline_readline" = no
|
|
then
|
|
|
|
{ echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
|
|
echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_termcap_readline+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-ltermcap $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char readline ();
|
|
int
|
|
main ()
|
|
{
|
|
return readline ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_termcap_readline=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_termcap_readline=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
|
|
if test $ac_cv_lib_termcap_readline = yes; then
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_LIBTERMCAP 1
|
|
_ACEOF
|
|
|
|
LIBS="-ltermcap $LIBS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# check for readline 2.1
|
|
{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
|
|
echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lreadline $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char rl_callback_handler_install ();
|
|
int
|
|
main ()
|
|
{
|
|
return rl_callback_handler_install ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_readline_rl_callback_handler_install=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_readline_rl_callback_handler_install=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
|
|
if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_RL_CALLBACK 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
# check for readline 2.2
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <readline/readline.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
have_readline=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
have_readline=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if test $have_readline = yes
|
|
then
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <readline/readline.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
|
|
_ACEOF
|
|
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
# check for readline 4.0
|
|
{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
|
|
echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lreadline $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char rl_pre_input_hook ();
|
|
int
|
|
main ()
|
|
{
|
|
return rl_pre_input_hook ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_readline_rl_pre_input_hook=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_readline_rl_pre_input_hook=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
|
|
if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_RL_PRE_INPUT_HOOK 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
# check for readline 4.2
|
|
{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
|
|
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
|
|
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
LIBS="-lreadline $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
/* Override any GCC internal prototype to avoid an error.
|
|
Use char because int might match the return type of a GCC
|
|
builtin and then its argument prototype would still apply. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
char rl_completion_matches ();
|
|
int
|
|
main ()
|
|
{
|
|
return rl_completion_matches ();
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_lib_readline_rl_completion_matches=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_lib_readline_rl_completion_matches=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
|
|
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
|
|
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_RL_COMPLETION_MATCHES 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
# also in readline 4.2
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <readline/readline.h>
|
|
_ACEOF
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } >/dev/null; then
|
|
if test -s conftest.err; then
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
else
|
|
ac_cpp_err=
|
|
fi
|
|
else
|
|
ac_cpp_err=yes
|
|
fi
|
|
if test -z "$ac_cpp_err"; then
|
|
have_readline=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
have_readline=no
|
|
fi
|
|
|
|
rm -f conftest.err conftest.$ac_ext
|
|
if test $have_readline = yes
|
|
then
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <readline/readline.h>
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
$EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_RL_CATCH_SIGNAL 1
|
|
_ACEOF
|
|
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
# End of readline checks: restore LIBS
|
|
LIBS=$LIBS_no_readline
|
|
|
|
{ echo "$as_me:$LINENO: checking for broken nice()" >&5
|
|
echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
|
|
if test "${ac_cv_broken_nice+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_broken_nice=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
int main()
|
|
{
|
|
int val1 = nice(1);
|
|
if (val1 != -1 && val1 == nice(2))
|
|
exit(0);
|
|
exit(1);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_broken_nice=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_broken_nice=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
|
|
echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
|
|
if test "$ac_cv_broken_nice" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_BROKEN_NICE 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for broken poll()" >&5
|
|
echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_broken_poll=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <poll.h>
|
|
|
|
int main (void)
|
|
{
|
|
struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
|
|
|
|
close (42);
|
|
|
|
int poll_test = poll (&poll_struct, 1, 0);
|
|
|
|
if (poll_test < 0)
|
|
{
|
|
exit(0);
|
|
}
|
|
else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
|
|
{
|
|
exit(0);
|
|
}
|
|
else
|
|
{
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_broken_poll=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_broken_poll=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
|
|
echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
|
|
if test "$ac_cv_broken_poll" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_BROKEN_POLL 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Before we can test tzset, we need to check if struct tm has a tm_zone
|
|
# (which is not required by ISO C or UNIX spec) and/or if we support
|
|
# tzname[]
|
|
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
|
|
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
|
|
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <$ac_cv_struct_tm>
|
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
static struct tm ac_aggr;
|
|
if (ac_aggr.tm_zone)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_tm_tm_zone=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/types.h>
|
|
#include <$ac_cv_struct_tm>
|
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
static struct tm ac_aggr;
|
|
if (sizeof ac_aggr.tm_zone)
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_member_struct_tm_tm_zone=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_member_struct_tm_tm_zone=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
|
|
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
|
|
if test $ac_cv_member_struct_tm_tm_zone = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_STRUCT_TM_TM_ZONE 1
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_TM_ZONE 1
|
|
_ACEOF
|
|
|
|
else
|
|
{ echo "$as_me:$LINENO: checking whether tzname is declared" >&5
|
|
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
|
|
if test "${ac_cv_have_decl_tzname+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifndef tzname
|
|
char *p = (char *) tzname;
|
|
return !p;
|
|
#endif
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_have_decl_tzname=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_have_decl_tzname=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
|
|
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
|
|
if test $ac_cv_have_decl_tzname = yes; then
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_DECL_TZNAME 1
|
|
_ACEOF
|
|
|
|
|
|
else
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_DECL_TZNAME 0
|
|
_ACEOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for tzname" >&5
|
|
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
|
|
if test "${ac_cv_var_tzname+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <time.h>
|
|
#if !HAVE_DECL_TZNAME
|
|
extern char *tzname[];
|
|
#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return tzname[0][0];
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_var_tzname=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_var_tzname=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
|
|
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
|
|
if test $ac_cv_var_tzname = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_TZNAME 1
|
|
_ACEOF
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
# check tzset(3) exists and works like we expect it to
|
|
{ echo "$as_me:$LINENO: checking for working tzset()" >&5
|
|
echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
|
|
if test "${ac_cv_working_tzset+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_working_tzset=no
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <string.h>
|
|
|
|
#if HAVE_TZNAME
|
|
extern char *tzname[];
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
/* Note that we need to ensure that not only does tzset(3)
|
|
do 'something' with localtime, but it works as documented
|
|
in the library reference and as expected by the test suite.
|
|
This includes making sure that tzname is set properly if
|
|
tm->tm_zone does not exist since it is the alternative way
|
|
of getting timezone info.
|
|
|
|
Red Hat 6.2 doesn't understand the southern hemisphere
|
|
after New Year's Day.
|
|
*/
|
|
|
|
time_t groundhogday = 1044144000; /* GMT-based */
|
|
time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
|
|
|
|
putenv("TZ=UTC+0");
|
|
tzset();
|
|
if (localtime(&groundhogday)->tm_hour != 0)
|
|
exit(1);
|
|
#if HAVE_TZNAME
|
|
/* For UTC, tzname[1] is sometimes "", sometimes " " */
|
|
if (strcmp(tzname[0], "UTC") ||
|
|
(tzname[1][0] != 0 && tzname[1][0] != ' '))
|
|
exit(1);
|
|
#endif
|
|
|
|
putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
|
|
tzset();
|
|
if (localtime(&groundhogday)->tm_hour != 19)
|
|
exit(1);
|
|
#if HAVE_TZNAME
|
|
if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
|
|
exit(1);
|
|
#endif
|
|
|
|
putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
|
|
tzset();
|
|
if (localtime(&groundhogday)->tm_hour != 11)
|
|
exit(1);
|
|
#if HAVE_TZNAME
|
|
if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
|
|
exit(1);
|
|
#endif
|
|
|
|
#if HAVE_STRUCT_TM_TM_ZONE
|
|
if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
|
|
exit(1);
|
|
if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
|
|
exit(1);
|
|
#endif
|
|
|
|
exit(0);
|
|
}
|
|
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_working_tzset=yes
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
ac_cv_working_tzset=no
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
|
|
echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
|
|
if test "$ac_cv_working_tzset" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_WORKING_TZSET 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Look for subsecond timestamps in struct stat
|
|
{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
|
|
echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
|
|
if test "${ac_cv_stat_tv_nsec+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/stat.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct stat st;
|
|
st.st_mtim.tv_nsec = 1;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_stat_tv_nsec=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_stat_tv_nsec=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
|
|
echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
|
|
if test "$ac_cv_stat_tv_nsec" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_STAT_TV_NSEC 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# Look for BSD style subsecond timestamps in struct stat
|
|
{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
|
|
echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
|
|
if test "${ac_cv_stat_tv_nsec2+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <sys/stat.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
struct stat st;
|
|
st.st_mtimespec.tv_nsec = 1;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_stat_tv_nsec2=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_stat_tv_nsec2=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
|
|
echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
|
|
if test "$ac_cv_stat_tv_nsec2" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_STAT_TV_NSEC2 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
# On HP/UX 11.0, mvwdelch is a block with a return statement
|
|
{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
|
|
echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
|
|
if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <curses.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
int rtn;
|
|
rtn = mvwdelch(0,0,0);
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_mvwdelch_is_expression=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_mvwdelch_is_expression=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
|
|
echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
|
|
|
|
if test "$ac_cv_mvwdelch_is_expression" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define MVWDELCH_IS_EXPRESSION 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
|
|
echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
|
|
if test "${ac_cv_window_has_flags+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <curses.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
WINDOW *w;
|
|
w->_flags = 0;
|
|
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_window_has_flags=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_window_has_flags=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
|
|
echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
|
|
|
|
|
|
if test "$ac_cv_window_has_flags" = yes
|
|
then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define WINDOW_HAS_FLAGS 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
|
|
echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <curses.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=is_term_resized
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_CURSES_IS_TERM_RESIZED 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for resize_term" >&5
|
|
echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <curses.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=resize_term
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_CURSES_RESIZE_TERM 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for resizeterm" >&5
|
|
echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <curses.h>
|
|
int
|
|
main ()
|
|
{
|
|
void *x=resizeterm
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_CURSES_RESIZETERM 1
|
|
_ACEOF
|
|
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
|
|
echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
|
|
if test "${ac_cv_file__dev_ptmx+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
test "$cross_compiling" = yes &&
|
|
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
|
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
if test -r "/dev/ptmx"; then
|
|
ac_cv_file__dev_ptmx=yes
|
|
else
|
|
ac_cv_file__dev_ptmx=no
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_file__dev_ptmx" >&5
|
|
echo "${ECHO_T}$ac_cv_file__dev_ptmx" >&6; }
|
|
if test $ac_cv_file__dev_ptmx = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_DEV_PTMX 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
|
|
echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
|
|
if test "${ac_cv_file__dev_ptc+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
test "$cross_compiling" = yes &&
|
|
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
|
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
if test -r "/dev/ptc"; then
|
|
ac_cv_file__dev_ptc=yes
|
|
else
|
|
ac_cv_file__dev_ptc=no
|
|
fi
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_file__dev_ptc" >&5
|
|
echo "${ECHO_T}$ac_cv_file__dev_ptc" >&6; }
|
|
if test $ac_cv_file__dev_ptc = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_DEV_PTC 1
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
|
|
echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
|
|
if test "$cross_compiling" = yes; then
|
|
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
|
See \`config.log' for more details." >&5
|
|
echo "$as_me: error: cannot run test program while cross compiling
|
|
See \`config.log' for more details." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
#include <stdio.h>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
|
|
int main()
|
|
{
|
|
char buffer[4];
|
|
|
|
if(sprintf(buffer, "%zd", (size_t)123) < 0)
|
|
return 1;
|
|
|
|
if (strncmp(buffer, "123", 3))
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest$ac_exeext
|
|
if { (ac_try="$ac_link"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_link") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
echo "${ECHO_T}yes" >&6; }
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define PY_FORMAT_SIZE_T "z"
|
|
_ACEOF
|
|
|
|
else
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
( exit $ac_status )
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6; }
|
|
fi
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
|
|
|
|
|
|
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
|
|
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
|
|
if test "${ac_cv_type_socklen_t+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
|
|
|
|
typedef socklen_t ac__type_new_;
|
|
int
|
|
main ()
|
|
{
|
|
if ((ac__type_new_ *) 0)
|
|
return 0;
|
|
if (sizeof (ac__type_new_))
|
|
return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
_ACEOF
|
|
rm -f conftest.$ac_objext
|
|
if { (ac_try="$ac_compile"
|
|
case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_compile") 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
{ ac_try='test -s conftest.$ac_objext'
|
|
{ (case "(($ac_try" in
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
*) ac_try_echo=$ac_try;;
|
|
esac
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
(eval "$ac_try") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
ac_cv_type_socklen_t=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
ac_cv_type_socklen_t=no
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
|
|
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
|
|
if test $ac_cv_type_socklen_t = yes; then
|
|
:
|
|
else
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define socklen_t int
|
|
_ACEOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for h in `(cd $srcdir;echo Python/thread_*.h)`
|
|
do
|
|
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
|
|
done
|
|
|
|
|
|
SRCDIRS="Parser Grammar Objects Python Modules Mac"
|
|
{ echo "$as_me:$LINENO: checking for build directories" >&5
|
|
echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
|
|
for dir in $SRCDIRS; do
|
|
if test ! -d $dir; then
|
|
mkdir $dir
|
|
fi
|
|
done
|
|
{ echo "$as_me:$LINENO: result: done" >&5
|
|
echo "${ECHO_T}done" >&6; }
|
|
|
|
# generate output files
|
|
ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
|
|
|
|
cat >confcache <<\_ACEOF
|
|
# 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, see configure's option --config-cache.
|
|
# It is not useful on other systems. If it contains results you don't
|
|
# want to keep, you may remove or edit it.
|
|
#
|
|
# config.status only pays attention to the cache file if you give it
|
|
# the --recheck option to rerun configure.
|
|
#
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
# following values.
|
|
|
|
_ACEOF
|
|
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
|
# So, we kill variables containing newlines.
|
|
# 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.
|
|
(
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
eval ac_val=\$$ac_var
|
|
case $ac_val in #(
|
|
*${as_nl}*)
|
|
case $ac_var in #(
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
esac
|
|
case $ac_var in #(
|
|
_ | IFS | as_nl) ;; #(
|
|
*) $as_unset $ac_var ;;
|
|
esac ;;
|
|
esac
|
|
done
|
|
|
|
(set) 2>&1 |
|
|
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
*${as_nl}ac_space=\ *)
|
|
# `set' does not quote correctly, so add quotes (double-quote
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
|
sed -n \
|
|
"s/'/'\\\\''/g;
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
;; #(
|
|
*)
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
;;
|
|
esac |
|
|
sort
|
|
) |
|
|
sed '
|
|
/^ac_cv_env_/b end
|
|
t clear
|
|
:clear
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
t end
|
|
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
:end' >>confcache
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
if test -w "$cache_file"; then
|
|
test "x$cache_file" != "x/dev/null" &&
|
|
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
|
echo "$as_me: updating cache $cache_file" >&6;}
|
|
cat confcache >$cache_file
|
|
else
|
|
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
|
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
fi
|
|
fi
|
|
rm -f confcache
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
# Let make expand exec_prefix.
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
ac_libobjs=
|
|
ac_ltlibobjs=
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
# 1. Remove the extension, and $U if already installed.
|
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
ac_i=`echo "$ac_i" | sed "$ac_script"`
|
|
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
# will be set to the directory where LIBOBJS objects are built.
|
|
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
done
|
|
LIBOBJS=$ac_libobjs
|
|
|
|
LTLIBOBJS=$ac_ltlibobjs
|
|
|
|
|
|
|
|
: ${CONFIG_STATUS=./config.status}
|
|
ac_clean_files_save=$ac_clean_files
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
cat >$CONFIG_STATUS <<_ACEOF
|
|
#! $SHELL
|
|
# Generated by $as_me.
|
|
# Run this file to recreate the current configuration.
|
|
# Compiler output produced by configure, useful for debugging
|
|
# configure, is in config.log if it exists.
|
|
|
|
debug=false
|
|
ac_cs_recheck=false
|
|
ac_cs_silent=false
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
## --------------------- ##
|
|
## M4sh Initialization. ##
|
|
## --------------------- ##
|
|
|
|
# Be Bourne compatible
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
emulate sh
|
|
NULLCMD=:
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
# is contrary to our usage. Disable this feature.
|
|
alias -g '${1+"$@"}'='"$@"'
|
|
setopt NO_GLOB_SUBST
|
|
else
|
|
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
|
fi
|
|
BIN_SH=xpg4; export BIN_SH # for Tru64
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
|
|
|
# PATH needs CR
|
|
# Avoid depending upon Character Ranges.
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
as_cr_digits='0123456789'
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
|
# The user is always right.
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
|
echo "#! /bin/sh" >conf$$.sh
|
|
echo "exit 0" >>conf$$.sh
|
|
chmod +x conf$$.sh
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
PATH_SEPARATOR=';'
|
|
else
|
|
PATH_SEPARATOR=:
|
|
fi
|
|
rm -f conf$$.sh
|
|
fi
|
|
|
|
# Support unset when possible.
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
as_unset=unset
|
|
else
|
|
as_unset=false
|
|
fi
|
|
|
|
|
|
# IFS
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
|
# there to prevent editors from complaining about space-tab.
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
# splitting by setting IFS to empty value.)
|
|
as_nl='
|
|
'
|
|
IFS=" "" $as_nl"
|
|
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
|
case $0 in
|
|
*[\\/]* ) as_myself=$0 ;;
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
for as_dir in $PATH
|
|
do
|
|
IFS=$as_save_IFS
|
|
test -z "$as_dir" && as_dir=.
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
done
|
|
IFS=$as_save_IFS
|
|
|
|
;;
|
|
esac
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
# in which case we are not to be found in the path.
|
|
if test "x$as_myself" = x; then
|
|
as_myself=$0
|
|
fi
|
|
if test ! -f "$as_myself"; then
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
{ (exit 1); exit 1; }
|
|
fi
|
|
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
|
for as_var in ENV MAIL MAILPATH
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
done
|
|
PS1='$ '
|
|
PS2='> '
|
|
PS4='+ '
|
|
|
|
# NLS nuisances.
|
|
for as_var in \
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
LC_TELEPHONE LC_TIME
|
|
do
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
eval $as_var=C; export $as_var
|
|
else
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
fi
|
|
done
|
|
|
|
# Required to use basename.
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
as_basename=basename
|
|
else
|
|
as_basename=false
|
|
fi
|
|
|
|
|
|
# Name of the executable.
|
|
as_me=`$as_basename -- "$0" ||
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
X"$0" : 'X\(//\)$' \| \
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
echo X/"$0" |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\/\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
|
|
# CDPATH.
|
|
$as_unset CDPATH
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO
|
|
as_lineno_2=$LINENO
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
|
# does the real work. The second script uses 'N' to pair each
|
|
# line-number line with the line containing $LINENO, and appends
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
|
# case at line end.
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
sed -n '
|
|
p
|
|
/[$]LINENO/=
|
|
' <$as_myself |
|
|
sed '
|
|
s/[$]LINENO.*/&-/
|
|
t lineno
|
|
b
|
|
:lineno
|
|
N
|
|
:loop
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
t loop
|
|
s/-\n.*//
|
|
' >$as_me.lineno &&
|
|
chmod +x "$as_me.lineno" ||
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
# (the dirname of $[0] is not the place where we might find the
|
|
# original and so on. Autoconf is especially sensitive to this).
|
|
. "./$as_me.lineno"
|
|
# Exit status is that of the last command.
|
|
exit
|
|
}
|
|
|
|
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
as_dirname=dirname
|
|
else
|
|
as_dirname=false
|
|
fi
|
|
|
|
ECHO_C= ECHO_N= ECHO_T=
|
|
case `echo -n x` in
|
|
-n*)
|
|
case `echo 'x\c'` in
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
*) ECHO_C='\c';;
|
|
esac;;
|
|
*)
|
|
ECHO_N='-n';;
|
|
esac
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
as_expr=expr
|
|
else
|
|
as_expr=false
|
|
fi
|
|
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
|
if test -d conf$$.dir; then
|
|
rm -f conf$$.dir/conf$$.file
|
|
else
|
|
rm -f conf$$.dir
|
|
mkdir conf$$.dir
|
|
fi
|
|
echo >conf$$.file
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s='ln -s'
|
|
# ... but there are two gotchas:
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
# In both cases, we have to default to `cp -p'.
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
as_ln_s='cp -p'
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
as_ln_s=ln
|
|
else
|
|
as_ln_s='cp -p'
|
|
fi
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
rmdir conf$$.dir 2>/dev/null
|
|
|
|
if mkdir -p . 2>/dev/null; then
|
|
as_mkdir_p=:
|
|
else
|
|
test -d ./-p && rmdir ./-p
|
|
as_mkdir_p=false
|
|
fi
|
|
|
|
# Find out whether ``test -x'' works. Don't use a zero-byte file, as
|
|
# systems may use methods other than mode bits to determine executability.
|
|
cat >conf$$.file <<_ASEOF
|
|
#! /bin/sh
|
|
exit 0
|
|
_ASEOF
|
|
chmod +x conf$$.file
|
|
if test -x conf$$.file >/dev/null 2>&1; then
|
|
as_executable_p="test -x"
|
|
else
|
|
as_executable_p=:
|
|
fi
|
|
rm -f conf$$.file
|
|
|
|
# Sed expression to map a string onto a valid CPP name.
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
# Sed expression to map a string onto a valid variable name.
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
|
|
|
exec 6>&1
|
|
|
|
# Save the log message, to keep $[0] and so on meaningful, and to
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
|
# values after options handling.
|
|
ac_log="
|
|
This file was extended by python $as_me 3.0, which was
|
|
generated by GNU Autoconf 2.60. Invocation command line was
|
|
|
|
CONFIG_FILES = $CONFIG_FILES
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
$ $0 $@
|
|
|
|
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
"
|
|
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
# Files that config.status was made for.
|
|
config_files="$ac_config_files"
|
|
config_headers="$ac_config_headers"
|
|
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
ac_cs_usage="\
|
|
\`$as_me' instantiates files from templates according to the
|
|
current configuration.
|
|
|
|
Usage: $0 [OPTIONS] [FILE]...
|
|
|
|
-h, --help print this help, then exit
|
|
-V, --version print version number, then exit
|
|
-q, --quiet do not print progress messages
|
|
-d, --debug don't remove temporary files
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
|
--file=FILE[:TEMPLATE]
|
|
instantiate the configuration file FILE
|
|
--header=FILE[:TEMPLATE]
|
|
instantiate the configuration header FILE
|
|
|
|
Configuration files:
|
|
$config_files
|
|
|
|
Configuration headers:
|
|
$config_headers
|
|
|
|
Report bugs to <bug-autoconf@gnu.org>."
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
ac_cs_version="\\
|
|
python config.status 3.0
|
|
configured by $0, generated by GNU Autoconf 2.60,
|
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
|
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
|
This config.status script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it."
|
|
|
|
ac_pwd='$ac_pwd'
|
|
srcdir='$srcdir'
|
|
INSTALL='$INSTALL'
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
# If no file are specified by the user, then we need to provide default
|
|
# value. By we need to know if files were specified by the user.
|
|
ac_need_defaults=:
|
|
while test $# != 0
|
|
do
|
|
case $1 in
|
|
--*=*)
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
ac_shift=:
|
|
;;
|
|
*)
|
|
ac_option=$1
|
|
ac_optarg=$2
|
|
ac_shift=shift
|
|
;;
|
|
esac
|
|
|
|
case $ac_option in
|
|
# Handling of the options.
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
ac_cs_recheck=: ;;
|
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
echo "$ac_cs_version"; exit ;;
|
|
--debug | --debu | --deb | --de | --d | -d )
|
|
debug=: ;;
|
|
--file | --fil | --fi | --f )
|
|
$ac_shift
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
|
ac_need_defaults=false;;
|
|
--header | --heade | --head | --hea )
|
|
$ac_shift
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
|
ac_need_defaults=false;;
|
|
--he | --h)
|
|
# Conflict between --help and --header
|
|
{ echo "$as_me: error: ambiguous option: $1
|
|
Try \`$0 --help' for more information." >&2
|
|
{ (exit 1); exit 1; }; };;
|
|
--help | --hel | -h )
|
|
echo "$ac_cs_usage"; exit ;;
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
ac_cs_silent=: ;;
|
|
|
|
# This is an error.
|
|
-*) { echo "$as_me: error: unrecognized option: $1
|
|
Try \`$0 --help' for more information." >&2
|
|
{ (exit 1); exit 1; }; } ;;
|
|
|
|
*) ac_config_targets="$ac_config_targets $1"
|
|
ac_need_defaults=false ;;
|
|
|
|
esac
|
|
shift
|
|
done
|
|
|
|
ac_configure_extra_args=
|
|
|
|
if $ac_cs_silent; then
|
|
exec 6>/dev/null
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
fi
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
if \$ac_cs_recheck; then
|
|
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
|
CONFIG_SHELL=$SHELL
|
|
export CONFIG_SHELL
|
|
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
fi
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
exec 5>>config.log
|
|
{
|
|
echo
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
## Running $as_me. ##
|
|
_ASBOX
|
|
echo "$ac_log"
|
|
} >&5
|
|
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
|
# Handling of arguments.
|
|
for ac_config_target in $ac_config_targets
|
|
do
|
|
case $ac_config_target in
|
|
"pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
|
|
"Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
|
|
"Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
|
|
"Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
|
|
"Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
|
|
"Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
|
|
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
done
|
|
|
|
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
|
# then the envvar interface is used. Set only those that are not.
|
|
# We use the long form for the default assignment because of an extremely
|
|
# bizarre bug on SunOS 4.1.3.
|
|
if $ac_need_defaults; then
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
fi
|
|
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
|
# simply because there is no reason against having it here, and in addition,
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
|
# Hook for its removal unless debugging.
|
|
# Note that there is a small window in which the directory will not be cleaned:
|
|
# after its creation but before its name has been assigned to `$tmp'.
|
|
$debug ||
|
|
{
|
|
tmp=
|
|
trap 'exit_status=$?
|
|
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
|
' 0
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
|
}
|
|
# Create a (secure) tmp directory for tmp files.
|
|
|
|
{
|
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
test -n "$tmp" && test -d "$tmp"
|
|
} ||
|
|
{
|
|
tmp=./conf$$-$RANDOM
|
|
(umask 077 && mkdir "$tmp")
|
|
} ||
|
|
{
|
|
echo "$me: cannot create a temporary directory in ." >&2
|
|
{ (exit 1); exit 1; }
|
|
}
|
|
|
|
#
|
|
# Set up the sed scripts for CONFIG_FILES section.
|
|
#
|
|
|
|
# No need to generate the scripts if there are no CONFIG_FILES.
|
|
# This happens for instance when ./config.status config.h
|
|
if test -n "$CONFIG_FILES"; then
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
ac_delim='%!_!# '
|
|
for ac_last_try in false false false false false :; do
|
|
cat >conf$$subs.sed <<_ACEOF
|
|
SHELL!$SHELL$ac_delim
|
|
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
|
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
|
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
|
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
|
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
|
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
|
exec_prefix!$exec_prefix$ac_delim
|
|
prefix!$prefix$ac_delim
|
|
program_transform_name!$program_transform_name$ac_delim
|
|
bindir!$bindir$ac_delim
|
|
sbindir!$sbindir$ac_delim
|
|
libexecdir!$libexecdir$ac_delim
|
|
datarootdir!$datarootdir$ac_delim
|
|
datadir!$datadir$ac_delim
|
|
sysconfdir!$sysconfdir$ac_delim
|
|
sharedstatedir!$sharedstatedir$ac_delim
|
|
localstatedir!$localstatedir$ac_delim
|
|
includedir!$includedir$ac_delim
|
|
oldincludedir!$oldincludedir$ac_delim
|
|
docdir!$docdir$ac_delim
|
|
infodir!$infodir$ac_delim
|
|
htmldir!$htmldir$ac_delim
|
|
dvidir!$dvidir$ac_delim
|
|
pdfdir!$pdfdir$ac_delim
|
|
psdir!$psdir$ac_delim
|
|
libdir!$libdir$ac_delim
|
|
localedir!$localedir$ac_delim
|
|
mandir!$mandir$ac_delim
|
|
DEFS!$DEFS$ac_delim
|
|
ECHO_C!$ECHO_C$ac_delim
|
|
ECHO_N!$ECHO_N$ac_delim
|
|
ECHO_T!$ECHO_T$ac_delim
|
|
LIBS!$LIBS$ac_delim
|
|
build_alias!$build_alias$ac_delim
|
|
host_alias!$host_alias$ac_delim
|
|
target_alias!$target_alias$ac_delim
|
|
VERSION!$VERSION$ac_delim
|
|
SOVERSION!$SOVERSION$ac_delim
|
|
CONFIG_ARGS!$CONFIG_ARGS$ac_delim
|
|
UNIVERSALSDK!$UNIVERSALSDK$ac_delim
|
|
PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
|
|
PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
|
|
PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
|
|
PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
|
|
FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
|
|
FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
|
|
FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
|
|
FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
|
|
FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
|
|
MACHDEP!$MACHDEP$ac_delim
|
|
SGI_ABI!$SGI_ABI$ac_delim
|
|
EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
|
|
EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
|
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
|
|
EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
|
|
CC!$CC$ac_delim
|
|
CFLAGS!$CFLAGS$ac_delim
|
|
LDFLAGS!$LDFLAGS$ac_delim
|
|
CPPFLAGS!$CPPFLAGS$ac_delim
|
|
ac_ct_CC!$ac_ct_CC$ac_delim
|
|
EXEEXT!$EXEEXT$ac_delim
|
|
OBJEXT!$OBJEXT$ac_delim
|
|
CXX!$CXX$ac_delim
|
|
MAINCC!$MAINCC$ac_delim
|
|
CPP!$CPP$ac_delim
|
|
GREP!$GREP$ac_delim
|
|
EGREP!$EGREP$ac_delim
|
|
BUILDEXEEXT!$BUILDEXEEXT$ac_delim
|
|
LIBRARY!$LIBRARY$ac_delim
|
|
LDLIBRARY!$LDLIBRARY$ac_delim
|
|
DLLLIBRARY!$DLLLIBRARY$ac_delim
|
|
BLDLIBRARY!$BLDLIBRARY$ac_delim
|
|
LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
|
|
INSTSONAME!$INSTSONAME$ac_delim
|
|
RUNSHARED!$RUNSHARED$ac_delim
|
|
LINKCC!$LINKCC$ac_delim
|
|
RANLIB!$RANLIB$ac_delim
|
|
AR!$AR$ac_delim
|
|
SVNVERSION!$SVNVERSION$ac_delim
|
|
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
|
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
|
INSTALL_DATA!$INSTALL_DATA$ac_delim
|
|
LN!$LN$ac_delim
|
|
OPT!$OPT$ac_delim
|
|
BASECFLAGS!$BASECFLAGS$ac_delim
|
|
OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
|
|
LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
|
|
SO!$SO$ac_delim
|
|
LDSHARED!$LDSHARED$ac_delim
|
|
BLDSHARED!$BLDSHARED$ac_delim
|
|
CCSHARED!$CCSHARED$ac_delim
|
|
LINKFORSHARED!$LINKFORSHARED$ac_delim
|
|
CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
|
|
SHLIBS!$SHLIBS$ac_delim
|
|
USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
|
|
SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
|
|
_ACEOF
|
|
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
|
break
|
|
elif $ac_last_try; then
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
else
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
fi
|
|
done
|
|
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
|
if test -n "$ac_eof"; then
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
|
ac_eof=`expr $ac_eof + 1`
|
|
fi
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
_ACEOF
|
|
sed '
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
|
:n
|
|
t n
|
|
s/'"$ac_delim"'$/,g/; t
|
|
s/$/\\/; p
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
|
' >>$CONFIG_STATUS <conf$$subs.sed
|
|
rm -f conf$$subs.sed
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
CEOF$ac_eof
|
|
_ACEOF
|
|
|
|
|
|
ac_delim='%!_!# '
|
|
for ac_last_try in false false false false false :; do
|
|
cat >conf$$subs.sed <<_ACEOF
|
|
USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
|
|
LDLAST!$LDLAST$ac_delim
|
|
THREADOBJ!$THREADOBJ$ac_delim
|
|
DLINCLDIR!$DLINCLDIR$ac_delim
|
|
DYNLOADFILE!$DYNLOADFILE$ac_delim
|
|
MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
|
|
TRUE!$TRUE$ac_delim
|
|
LIBOBJS!$LIBOBJS$ac_delim
|
|
HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
|
|
HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
|
|
HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
|
|
HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
|
|
HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
|
|
LIBM!$LIBM$ac_delim
|
|
LIBC!$LIBC$ac_delim
|
|
UNICODE_OBJS!$UNICODE_OBJS$ac_delim
|
|
THREADHEADERS!$THREADHEADERS$ac_delim
|
|
SRCDIRS!$SRCDIRS$ac_delim
|
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
|
_ACEOF
|
|
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
|
|
break
|
|
elif $ac_last_try; then
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
else
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
fi
|
|
done
|
|
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
|
if test -n "$ac_eof"; then
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
|
ac_eof=`expr $ac_eof + 1`
|
|
fi
|
|
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
|
_ACEOF
|
|
sed '
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
|
:n
|
|
t n
|
|
s/'"$ac_delim"'$/,g/; t
|
|
s/$/\\/; p
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
|
' >>$CONFIG_STATUS <conf$$subs.sed
|
|
rm -f conf$$subs.sed
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
:end
|
|
s/|#_!!_#|//g
|
|
CEOF$ac_eof
|
|
_ACEOF
|
|
|
|
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
# (actually we leave an empty line to preserve line numbers).
|
|
if test "x$srcdir" = x.; then
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
s/:*\$(srcdir):*/:/
|
|
s/:*\${srcdir}:*/:/
|
|
s/:*@srcdir@:*/:/
|
|
s/^\([^=]*=[ ]*\):*/\1/
|
|
s/:*$//
|
|
s/^[^=]*=[ ]*$//
|
|
}'
|
|
fi
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
fi # test -n "$CONFIG_FILES"
|
|
|
|
|
|
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
|
do
|
|
case $ac_tag in
|
|
:[FHLC]) ac_mode=$ac_tag; continue;;
|
|
esac
|
|
case $ac_mode$ac_tag in
|
|
:[FHL]*:*);;
|
|
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
|
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
:[FH]-) ac_tag=-:-;;
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
esac
|
|
ac_save_IFS=$IFS
|
|
IFS=:
|
|
set x $ac_tag
|
|
IFS=$ac_save_IFS
|
|
shift
|
|
ac_file=$1
|
|
shift
|
|
|
|
case $ac_mode in
|
|
:L) ac_source=$1;;
|
|
:[FH])
|
|
ac_file_inputs=
|
|
for ac_f
|
|
do
|
|
case $ac_f in
|
|
-) ac_f="$tmp/stdin";;
|
|
*) # Look for the file first in the build tree, then in the source tree
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
# because $ac_f cannot contain `:'.
|
|
test -f "$ac_f" ||
|
|
case $ac_f in
|
|
[\\/$]*) false;;
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
esac ||
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
|
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
|
{ (exit 1); exit 1; }; };;
|
|
esac
|
|
ac_file_inputs="$ac_file_inputs $ac_f"
|
|
done
|
|
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
# use $as_me), people would be surprised to read:
|
|
# /* config.h. Generated by config.status. */
|
|
configure_input="Generated from "`IFS=:
|
|
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
|
if test x"$ac_file" != x-; then
|
|
configure_input="$ac_file. $configure_input"
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
|
echo "$as_me: creating $ac_file" >&6;}
|
|
fi
|
|
|
|
case $ac_tag in
|
|
*:-:* | *:-) cat >"$tmp/stdin";;
|
|
esac
|
|
;;
|
|
esac
|
|
|
|
ac_dir=`$as_dirname -- "$ac_file" ||
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
|
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
echo X"$ac_file" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
{ as_dir="$ac_dir"
|
|
case $as_dir in #(
|
|
-*) as_dir=./$as_dir;;
|
|
esac
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
|
as_dirs=
|
|
while :; do
|
|
case $as_dir in #(
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
|
*) as_qdir=$as_dir;;
|
|
esac
|
|
as_dirs="'$as_qdir' $as_dirs"
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
echo X"$as_dir" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)[^/].*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
/^X\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
test -d "$as_dir" && break
|
|
done
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
|
{ (exit 1); exit 1; }; }; }
|
|
ac_builddir=.
|
|
|
|
case "$ac_dir" in
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*)
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
# A ".." for each directory in $ac_dir_suffix.
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
case $ac_top_builddir_sub in
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
esac ;;
|
|
esac
|
|
ac_abs_top_builddir=$ac_pwd
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
# for backward compatibility:
|
|
ac_top_builddir=$ac_top_build_prefix
|
|
|
|
case $srcdir in
|
|
.) # We are building in place.
|
|
ac_srcdir=.
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
ac_top_srcdir=$srcdir
|
|
ac_abs_top_srcdir=$srcdir ;;
|
|
*) # Relative name.
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
esac
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
|
|
|
case $ac_mode in
|
|
:F)
|
|
#
|
|
# CONFIG_FILE
|
|
#
|
|
|
|
case $INSTALL in
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
|
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
|
esac
|
|
_ACEOF
|
|
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
# If the template does not know about datarootdir, expand it.
|
|
# FIXME: This hack should be removed a few years after 2.60.
|
|
ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
|
|
case `sed -n '/datarootdir/ {
|
|
p
|
|
q
|
|
}
|
|
/@datadir@/p
|
|
/@docdir@/p
|
|
/@infodir@/p
|
|
/@localedir@/p
|
|
/@mandir@/p
|
|
' $ac_file_inputs` in
|
|
*datarootdir*) ac_datarootdir_seen=yes;;
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
ac_datarootdir_hack='
|
|
s&@datadir@&$datadir&g
|
|
s&@docdir@&$docdir&g
|
|
s&@infodir@&$infodir&g
|
|
s&@localedir@&$localedir&g
|
|
s&@mandir@&$mandir&g
|
|
s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
esac
|
|
_ACEOF
|
|
|
|
# Neutralize VPATH when `$srcdir' = `.'.
|
|
# Shell code in configure.ac might set extrasub.
|
|
# FIXME: do we really want to maintain this feature?
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
sed "$ac_vpsub
|
|
$extrasub
|
|
_ACEOF
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
:t
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
s&@configure_input@&$configure_input&;t t
|
|
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
s&@srcdir@&$ac_srcdir&;t t
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
s&@builddir@&$ac_builddir&;t t
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
s&@INSTALL@&$ac_INSTALL&;t t
|
|
$ac_datarootdir_hack
|
|
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
|
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
which seems to be undefined. Please make sure it is defined." >&5
|
|
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
which seems to be undefined. Please make sure it is defined." >&2;}
|
|
|
|
rm -f "$tmp/stdin"
|
|
case $ac_file in
|
|
-) cat "$tmp/out"; rm -f "$tmp/out";;
|
|
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
|
esac
|
|
;;
|
|
:H)
|
|
#
|
|
# CONFIG_HEADER
|
|
#
|
|
_ACEOF
|
|
|
|
# Transform confdefs.h into a sed script `conftest.defines', that
|
|
# substitutes the proper values into config.h.in to produce config.h.
|
|
rm -f conftest.defines conftest.tail
|
|
# First, append a space to every undef/define line, to ease matching.
|
|
echo 's/$/ /' >conftest.defines
|
|
# Then, protect against being on the right side of a sed subst, or in
|
|
# an unquoted here document, in config.status. If some macros were
|
|
# called several times there might be several #defines for the same
|
|
# symbol, which is useless. But do not sort them, since the last
|
|
# AC_DEFINE must be honored.
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
|
# NAME is the cpp macro being defined, VALUE is the value it is being given.
|
|
# PARAMS is the parameter list in the macro definition--in most cases, it's
|
|
# just an empty string.
|
|
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
|
ac_dB='\\)[ (].*,\\1define\\2'
|
|
ac_dC=' '
|
|
ac_dD=' ,'
|
|
|
|
uniq confdefs.h |
|
|
sed -n '
|
|
t rset
|
|
:rset
|
|
s/^[ ]*#[ ]*define[ ][ ]*//
|
|
t ok
|
|
d
|
|
:ok
|
|
s/[\\&,]/\\&/g
|
|
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
|
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
|
' >>conftest.defines
|
|
|
|
# Remove the space that was appended to ease matching.
|
|
# Then replace #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.
|
|
# (The regexp can be short, since the line contains either #define or #undef.)
|
|
echo 's/ $//
|
|
s,^[ #]*u.*,/* & */,' >>conftest.defines
|
|
|
|
# Break up conftest.defines:
|
|
ac_max_sed_lines=50
|
|
|
|
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
|
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
|
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
|
# et cetera.
|
|
ac_in='$ac_file_inputs'
|
|
ac_out='"$tmp/out1"'
|
|
ac_nxt='"$tmp/out2"'
|
|
|
|
while :
|
|
do
|
|
# Write a here document:
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
|
# First, check the format of the line:
|
|
cat >"\$tmp/defines.sed" <<\\CEOF
|
|
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
|
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
|
b
|
|
:def
|
|
_ACEOF
|
|
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
|
echo 'CEOF
|
|
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
|
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
|
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
|
grep . conftest.tail >/dev/null || break
|
|
rm -f conftest.defines
|
|
mv conftest.tail conftest.defines
|
|
done
|
|
rm -f conftest.defines conftest.tail
|
|
|
|
echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
if test x"$ac_file" != x-; then
|
|
echo "/* $configure_input */" >"$tmp/config.h"
|
|
cat "$ac_result" >>"$tmp/config.h"
|
|
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
|
echo "$as_me: $ac_file is unchanged" >&6;}
|
|
else
|
|
rm -f $ac_file
|
|
mv "$tmp/config.h" $ac_file
|
|
fi
|
|
else
|
|
echo "/* $configure_input */"
|
|
cat "$ac_result"
|
|
fi
|
|
rm -f "$tmp/out12"
|
|
;;
|
|
|
|
|
|
esac
|
|
|
|
done # for ac_tag
|
|
|
|
|
|
{ (exit 0); exit 0; }
|
|
_ACEOF
|
|
chmod +x $CONFIG_STATUS
|
|
ac_clean_files=$ac_clean_files_save
|
|
|
|
|
|
# configure is writing to config.log, and then calls config.status.
|
|
# config.status does its own redirection, appending to config.log.
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
|
# by configure, so config.status won't be able to write to it; its
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
|
# appended to by config.status. When coming back to configure, we
|
|
# need to make the FD available again.
|
|
if test "$no_create" != yes; then
|
|
ac_cs_success=:
|
|
ac_config_status_args=
|
|
test "$silent" = yes &&
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
|
exec 5>/dev/null
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
exec 5>>config.log
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
# would make configure fail if this is the last instruction.
|
|
$ac_cs_success || { (exit 1); exit 1; }
|
|
fi
|
|
|
|
|
|
echo "creating Modules/Setup"
|
|
if test ! -f Modules/Setup
|
|
then
|
|
cp $srcdir/Modules/Setup.dist Modules/Setup
|
|
fi
|
|
|
|
echo "creating Modules/Setup.local"
|
|
if test ! -f Modules/Setup.local
|
|
then
|
|
echo "# Edit this file for local setup changes" >Modules/Setup.local
|
|
fi
|
|
|
|
echo "creating Makefile"
|
|
$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
|
|
-s Modules Modules/Setup.config \
|
|
Modules/Setup.local Modules/Setup
|
|
mv config.c Modules
|