Skip to content

Commit

Permalink
1. Creating backward compatibility for Configure after patches
Browse files Browse the repository at this point in the history
   #22227 and #22302 to still support 5.8.x and below

2. Small change for building on GNU hurd
   From: "Brendan O'Dea" <bod@debian.org>
   Message-ID: <20040215122717.GA26812@londo.c47.org>

p4raw-id: //depot/perl@22314
  • Loading branch information
Brendan O'Dea authored and H.Merijn Brand committed Feb 17, 2004
1 parent 1fd3332 commit 761ee4e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
16 changes: 9 additions & 7 deletions Configure
Expand Up @@ -20,7 +20,7 @@

# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
# Generated on Mon Jan 19 17:27:25 MET 2004 [metaconfig 3.0 PL70]
# Generated on Tue Feb 17 12:34:40 MET 2004 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)

cat >c1$$ <<EOF
Expand Down Expand Up @@ -3103,31 +3103,33 @@ EOM
domainos) osname=apollo
osvers="$3"
;;
dgux) osname=dgux
dgux) osname=dgux
osvers="$3"
;;
dynixptx*) osname=dynixptx
osvers=`echo "$4"|sed 's/^v//'`
;;
freebsd) osname=freebsd
osvers="$3" ;;
genix) osname=genix ;;
hp*) osname=hpux
genix) osname=genix ;;
gnu) osname=gnu
osvers="$3" ;;
hp*) osname=hpux
osvers=`echo "$3" | $sed 's,.*\.\([0-9]*\.[0-9]*\),\1,'`
;;
irix*) osname=irix
irix*) osname=irix
case "$3" in
4*) osvers=4 ;;
5*) osvers=5 ;;
*) osvers="$3" ;;
esac
;;
linux) osname=linux
linux) osname=linux
case "$3" in
*) osvers="$3" ;;
esac
;;
MiNT) osname=mint
MiNT) osname=mint
;;
netbsd*) osname=netbsd
osvers="$3"
Expand Down
11 changes: 11 additions & 0 deletions Makefile.SH
Expand Up @@ -9,6 +9,17 @@ case $PERL_CONFIG_SH in
. $TOP/config.sh
;;
esac

# H.Merijn Brand [17 Feb 2004]
# This comment is just to ensure that Configure will find variables that
# are removed/replaced in patches on blead, but are still needed in the
# 5.8.x, 5.6.x and 5.005.x maintainance tracks.
# metaconfig -m will scan all .SH files on this level (not deeper), and
# not in x2p and other subfolders. This file is as good as any .SH
# patch references
# #22227 $baserev
# #22302 $yacc $byacc

: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
Expand Down
2 changes: 1 addition & 1 deletion hints/gnu.sh
Expand Up @@ -4,7 +4,7 @@

# libnsl is unusable on the Hurd.
# XXX remove this once SUNRPC is implemented.
set `echo X "$libswanted "| sed -e 's/ nsl / /'`
set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ c / pthread /'`
shift
libswanted="$*"

Expand Down

0 comments on commit 761ee4e

Please sign in to comment.