Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 18, 1995
  1. perl5.000 patch.0g: [various portability fixes, and use latest metaco…

    Andy Dougherty authored
    …nfig for Configure]
    This patch incorporates various portability fixes and uses the latest
    metaconfig to generate Configure (and config_h.SH).
    It would take a long time to summarize all that I've changed.  I
    haven't included many code changes because I'm trying *not* to
    duplicate bug fixes Larry may already have applied.
    Here's an older description I prepared that's still mostly accurate:
    I've also included a few portability fixes in the main source, but
    these are certainly not a complete set of everything that's been
    Don't be put off by the size of the patch.  Mostly, it's just
    rearrangement of the parts in Configure and some cosmetic changes.
    Since gcc often supports long long, I had started to add quad support
    to Configure.  Since SunOS 4.1.3 defines a conflicting "quad"
    structure, I changed the name from 'quad' to Quad_t, consistent with
    other Configure "types."  I also changed "QUAD" to "HAS_QUAD".
    However, it turns out it's pretty hard to actually *use* Quad_t.
    Neither system I have access to can sprintf() a "long long", nor can
    they carry one around in an IV, unless I make IV "long long", which I
    didn't want to force generally.  Thus I wonder whether any but a
    precious few could actually use Quad_t, and dropped the tests from
    Configure.  I left in the s/quad/Quad_t/ and s/QUAD/HAS_QUAD/ stuff in
    case someone else wants to pick it up, and also because I was too lazy
    to take it back out :-).
    Some highlights:
        Several new options.  Use Configure -h to learn more.  Also,
            read the directions Configure prints. :-)
        Spaces now allowed in -D command line options.
        New -O option that overrides
        You can start interactively and then change that to accepting
            all the defaults by specifying &-d at any Configure prompt.  This
            is useful if you have to re-run Configure to only change a few
        Signal type set correctly for the cast{i32,neg} tests.
        archname detection improved a bit
        guard against ksh users who have set -u
        Oldconfig.U cleaned up and regularized a bit more.
        Guard against hint files using (and over-writing) $tmp.
        Command line options now are processed after metaconfig INIT
            lines.  Thus things like Configure -Uuseposix should work now.
        Various miscellaneous clean-ups.
        better use/detection of tr.
        i_db.U now checks for hash and prefix type (I think!)  I can't
            test it here.
        i_?db*.U now all check for an associated function before deciding
            to include or not the header.
            Sorted & updated.
        Some shells/makes bombed out on   test -d lib/auto || mkdir lib/auto
            Use makedir instead.
        Some additional notes that people won't read :-).
            Now calls $startsh.  Weird things were happening on Intergraph,
    and this might be related.
            Varargs dependencies on STANDARD_C replaced by I_STDARG.
            quad stuff.
        Use the new DB_Hash_t and DB_Prefix_t symbols.
        Fix #defines to be more robust.
        Replace VOIDSIG by metaconfig's Signal_t.
        semop only takes 2 arguments, not 3.
        Better guard on getenv() prototype.  A hint file can use this, if
            necessary.  Me, I think some compilers are just too picky.
        The (very) beginnings of some Quad support.  See above.
        Remove the very troublesome sprintf() prototype.  Since we don't
            _use_ the return value anyway (since it's not portable) this
            should be o.k.  The problem was that some systems CAN_PROTOTYPE
            but include char *sprintf(); in <stdio.h>.  That's incompatible
            with the version we used to have in perl.h.  Most people have
            a prototype for sprintf() in <stdio.h>.  Those that don't probably
            can get by without it anyway.
        Protect the timesbuf by the specific HAS_TIMES test.  Some older
            gcc-2.something/Solaris 2.something installations apparently don't
            have times.
        More quad stuff.
        s/STANDARD_C/I_STDARG/ for varargs stuff.
        use Signal_t.
       Update to match new metaconfig names.
        s/STANDARD_C/I_STDARG/ for varargs stuff.
        comment out <unistd.h>.  A pause prototype was causing problems on
            some systems.
        Changed to use Signal_t.
Something went wrong with that request. Please try again.