Configure update: OpenBSD thread-awareness, SCO ODT/OSR osvers.
Jarkko Hietaniemi [Fri, 12 Feb 1999 12:03:48 +0000 (12:03 +0000)]
p4raw-id: //depot/cfgperl@2899

Configure
Porting/config.sh
Porting/config_H
hints/openbsd.sh

index ceeac89..92a7e12 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Mon Feb  8 16:55:49 EET 1999 [metaconfig 3.0 PL70]
+# Generated on Fri Feb 12 13:46:36 EET 1999 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -2075,7 +2075,11 @@ EOM
                [23]100) osname=mips ;;
                next*) osname=next ;;
                i386*)
-                       if $test -f /etc/kconfig; then
+                       tmp=`/bin/uname -X 2>/dev/null|awk -e '/3\.2v[45]/{ print $(NF) }'`
+                       if $test "$tmp" != "" -a "$3" = "3.2" -a test -e '/etc/systemid'; then
+                               osname='sco'
+                               osvers=$tmp
+                       elif $test -f /etc/kconfig; then
                                osname=isc
                                if test "$lns" = "ln -s"; then
                                        osvers=4
@@ -2085,6 +2089,7 @@ EOM
                                        osvers=2
                                fi
                        fi
+                       unset tmp
                        ;;
                pc*)
                        if test -n "$DJGPP"; then
@@ -2515,7 +2520,7 @@ case "$usethreads" in
                . ./usethreads.cbu
        fi
        case "$osname" in
-       aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|os2|solaris|vmesa)
+       aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|openbsd|os2|solaris|vmesa)
                # Known thread-capable platforms.
                ;;
        *)
index d6a19ed..ddae299 100644 (file)
@@ -8,7 +8,7 @@
 
 # Package name      : perl5
 # Source directory  : .
-# Configuration time: Mon Feb  8 01:11:15 EET 1999
+# Configuration time: Fri Feb 12 13:48:44 EET 1999
 # Configured by     : jhi
 # Target system     : osf1 alpha.hut.fi v4.0 878 alpha 
 
@@ -52,9 +52,10 @@ cc='cc'
 cccdlflags=' '
 ccdlflags=' '
 ccflags='-pthread -std -D__LANGUAGE_C__'
+ccsymbols='__LANGUAGE_C__=1 _LONGLONG=1 LANGUAGE_C=1 SYSTYPE_BSD=1'
 cf_by='jhi'
 cf_email='yourname@yourhost.yourplace.com'
-cf_time='Mon Feb  8 01:11:15 EET 1999'
+cf_time='Fri Feb 12 13:48:44 EET 1999'
 chgrp=''
 chmod=''
 chown=''
@@ -66,11 +67,13 @@ cp='cp'
 cpio=''
 cpp='cpp'
 cpp_stuff='42'
+cppccsymbols='__alpha=1 __osf__=1 __unix__=1 _SYSTYPE_BSD=1 unix=1'
 cppflags='-pthread -std -D__LANGUAGE_C__'
 cpplast=''
 cppminus=''
 cpprun='/usr/bin/cpp'
 cppstdin='cppstdin'
+cppsymbols=''
 cryptlib=''
 csh='csh'
 d_Gconvert='gcvt((x),(n),(b))'
index 89e106d..70bf0f9 100644 (file)
@@ -17,7 +17,7 @@
 /*
  * Package name      : perl5
  * Source directory  : .
- * Configuration time: Mon Feb  8 01:11:15 EET 1999
+ * Configuration time: Fri Feb 12 13:48:44 EET 1999
  * Configured by     : jhi
  * Target system     : osf1 alpha.hut.fi v4.0 878 alpha 
  */
index 4c98ec8..e9d8ea4 100644 (file)
@@ -48,4 +48,14 @@ d_suidsafe='define'
 # Allow a command-line override, such as -Doptimize=-g
 test "$optimize" || optimize='-O2'
 
+# This script UU/usethreads.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+       # any openbsd version dependencies with pthreads?
+       libswanted="$libswanted pthread"
+esac
+EOCBU
+
 # end