This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add socklen_t probe; Configure maintenance.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 22 Feb 2000 22:03:26 +0000 (22:03 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 22 Feb 2000 22:03:26 +0000 (22:03 +0000)
p4raw-id: //depot/metaconfig@5213

U/a_dvisory/quadtype.U
U/compline/alignbytes.U
U/modified/cc.U
U/modified/libs.U
U/perl/d_int64_t.U [moved from U/perl/d_int64t.U with 87% similarity]
U/perl/d_socklen_t.U [new file with mode: 0644]
U/perl/i_sysutsname.U

index af1998c..8322601 100644 (file)
@@ -6,7 +6,7 @@
 ?RCS: License or the Artistic License, as specified in the README file.
 ?RCS:
 ?MAKE:d_quad quadtype uquadtype quadkind: \
-       longsize intsize d_longlong longlongsize d_int64t \
+       longsize intsize d_longlong longlongsize d_int64_t \
        Inhdr Setvar use64bits
 ?MAKE: -pick add $@ %<
 ?S:d_quad:
@@ -78,7 +78,7 @@ case "$intsize" in
         eval $setvar
         quadkind=3
         ;;
-      *) case "$d_int64t" in
+      *) case "$d_int64_t" in
          define)
            val=int64_t
            set quadtype
index e8e328c..11c2889 100644 (file)
@@ -19,7 +19,7 @@
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
 ?MAKE:alignbytes: Myread Compile cat rm crosscompile multiarch \
-       d_longdbl uselongdouble longdblsize
+       d_longdbl uselongdouble test 
 ?MAKE: -pick add $@ %<
 ?S:alignbytes:
 ?S:    This variable holds the number of bytes required to align a
index e72b4bc..546ad5d 100644 (file)
@@ -44,6 +44,7 @@
 ?D:gccversion=''
 ?LINT:change cpp
 ?LINT:change ccflags
+?LINT:extern ldflags
 : see if we need a special compiler
 echo " "
 if ./usg; then
index 440782e..4496e29 100644 (file)
@@ -32,7 +32,7 @@
 ?RCS: Revision 3.0  1993/08/18  12:09:03  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:libs ignore_versioned_solibs libsfound libsfiles libsdirs: \
+?MAKE:libs ignore_versioned_solibs libsfound libsfiles libsdirs libspath: \
        test cat Myread Oldconfig Loc libpth package xlibpth so _a \
        usesocks ccflags
 ?MAKE: -pick add $@ %<
@@ -52,6 +52,9 @@
 ?S:    This variable holds the directory names aka dirnames of the libraries
 ?S:    we found and accepted, duplicates are removed.
 ?S:.
+?S:libspath:
+?S:    This variable holds the directory names probed for libraries.
+?S:.
 ?S:ignore_versioned_solibs:
 ?S:    This variable should be non-empty if non-versioned shared
 ?S:    libraries (libfoo.so.x.y) are to be ignored (because they
@@ -85,6 +88,7 @@
 ?INIT:libswanted=''
 ?INIT:: some systems want to use only the non-versioned libso:s
 ?INIT:ignore_versioned_solibs=''
+?LINT:extern libscheck
 ?LINT:use libscheck
 : Looking for optional libraries
 echo " "
@@ -105,14 +109,12 @@ esac
 libsfound=''
 libsfiles=''
 libsdirs=''
+libspath=''
+for thisdir in $libpth $xlibpth; do
+  test -d $thisdir && libspath="$libspath $thisdir"
+done
 for thislib in $libswanted; do
-?X:
-?X: Comparisons via case statement use the string " $dflt " to ensure that
-?X: each library is separated by a space. That way, by looking to something
-?X: like *"-l$thislib "*, we ensure we find -lm and not -lmalloc (which was
-?X: the case with the old looking pattern *-l$thislib*.
-?X:
-       for thisdir in $libpth; do
+       for thisdir in $libspath; do
            xxx=''
            if $test ! -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then
                xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|tail -1`
similarity index 87%
rename from U/perl/d_int64t.U
rename to U/perl/d_int64_t.U
index f767348..1850cc3 100644 (file)
@@ -8,9 +8,9 @@
 ?RCS: that same Artistic Licence; a copy of which may be found at the root
 ?RCS: of the source tree for dist 3.0.
 ?RCS:
-?MAKE:d_int64t: Inhdr echo n c cat rm Setvar Compile i_inttypes
+?MAKE:d_int64_t: Inhdr echo n c cat rm Setvar Compile i_inttypes
 ?MAKE: -pick add $@ %<
-?S:d_int64t:
+?S:d_int64_t:
 ?S:     This symbol will be defined if the C compiler supports int64_t.
 ?S:.
 ?C:HAS_INT64_T:
@@ -18,9 +18,9 @@
 ?C:     Usually the <inttypes.h> needs to be included, but sometimes
 ?C:    <sys/types.h> is enough.
 ?C:.
-?H:#$d_int64t     HAS_INT64_T               /**/
+?H:#$d_int64_t     HAS_INT64_T               /**/
 ?H:.
-?LINT:set d_int64t
+?LINT:set d_int64_t
 : check for int64_t
 echo " "
 $echo $n "Checking to see if your system supports int64_t...$c" >&4
@@ -41,6 +41,6 @@ else
        echo " No, it doesn't." >&4
 fi
 $rm -f try try.*
-set d_int64t
+set d_int64_t
 eval $setvar
 
diff --git a/U/perl/d_socklen_t.U b/U/perl/d_socklen_t.U
new file mode 100644 (file)
index 0000000..048a471
--- /dev/null
@@ -0,0 +1,45 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2000, Jarkko Hietaniemi
+?RCS: 
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_socklen_t: Inhdr echo n c cat rm Setvar Compile d_socket
+?MAKE: -pick add $@ %<
+?S:d_socklen_t:
+?S:     This symbol will be defined if the C compiler supports socklen_t.
+?S:.
+?C:HAS_SOCKLEN_T:
+?C:     This symbol will defined if the C compiler supports socklen_t.
+?C:     Usually the <sys/socket.h> needs to be included.
+?C:.
+?H:#$d_socklen_t     HAS_SOCKLEN_T               /**/
+?H:.
+?LINT:set d_socklen_t
+: check for socklen_t
+echo " "
+$echo $n "Checking to see if your system supports socklen_t...$c" >&4
+$cat >try.c <<EOCP
+#include <sys/types.h>
+#$d_socket HAS_SOCKET
+#ifdef HAS_SOCKET
+#include <sys/socket.h>
+#endif
+int main() { socklen_t x = 16; }
+EOCP
+set try
+if eval $compile; then
+       val="$define"
+       echo " Yes, it does." >&4
+else
+       val="$undef"
+       echo " No, it doesn't." >&4
+fi
+$rm -f try try.*
+set d_socklen_t
+eval $setvar
+
index 16ab89e..937e355 100644 (file)
 ?S:    This variable conditionally defines the I_SYSUTSNAME symbol,
 ?S:    and indicates whether a C program should include <sys/utsname.h>.
 ?S:.
-?C:I_SYS_UTSNAME:
+?C:I_SYSUTSNAME:
 ?C:    This symbol, if defined, indicates that <sys/utsname.h> exists and
 ?C:    should be included.
 ?C:.
-?H:#$i_sysutsname      I_SYS_UTSNAME           /**/
+?H:#$i_sysutsname      I_SYSUTSNAME            /**/
 ?H:.
 ?LINT:set i_sysutsname