Import of oldpackages/perl

Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
Marcel Denia
2014-07-04 05:18:57 +02:00
parent 931f161e27
commit 6420bbd712
17 changed files with 10826 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
--- /dev/null
+++ b/generate_uudmap
@@ -0,0 +1,7 @@
+#!/bin/bash
+echo \{
+for i in {0..31}; do echo -n ' 0,'; done
+echo
+for i in {0..63}; do echo -n " $i,"; done
+echo
+echo \}
--- a/Makefile.micro
+++ b/Makefile.micro
@@ -173,13 +173,8 @@ uperlapi$(_O): $(HE) perlapi.c perlapi.h
uxsutils$(_O): $(HE) xsutils.c
$(CC) $(CCFLAGS) -o $@ $(CFLAGS) xsutils.c
-uudmap.h: generate_uudmap$(_X)
- $(RUN) ./generate_uudmap$(_X) >uudmap.h
-
-generate_uudmap$(_O): generate_uudmap.c
- $(CC) $(CCFLAGS) -o $@ $(CFLAGS) generate_uudmap.c
-
-generate_uudmap$(_X): generate_uudmap$(_O)
- $(LD) -o generate_uudmap $(LDFLAGS) generate_uudmap$(_O) $(LIBS)
+uudmap.h:
+ chmod a+x generate_uudmap
+ $(RUN) ./generate_uudmap >uudmap.h
# That's it, folks!
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -478,11 +478,13 @@ opmini\$(OBJ_EXT): opmini.c
globals\$(OBJ_EXT): uudmap.h
-uudmap.h: generate_uudmap\$(EXE_EXT)
- \$(RUN) ./generate_uudmap\$(EXE_EXT) >uudmap.h
+uudmap.h: generate_uudmap
+ chmod a+x generate_uudmap
+ \$(RUN) ./generate_uudmap >uudmap.h
-generate_uudmap\$(EXE_EXT): generate_uudmap\$(OBJ_EXT)
- \$(CC) -o generate_uudmap \$(LDFLAGS) generate_uudmap\$(OBJ_EXT) \$(libs)
+generate_uudmap:
+ cp ../generate_uudmap .
+ touch generate_uudmap
!GROK!THIS!
$spitshell >>Makefile <<'!NO!SUBS!'
@@ -0,0 +1,22 @@
--- a/config_h.SH
+++ b/config_h.SH
@@ -53,6 +53,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#und
#ifndef _config_h_
#define _config_h_
+#if defined(USE_CROSS_COMPILE) && !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
+# include <endian.h>
+# if defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && defined(__BIG_ENDIAN)
+# if (__BYTE_ORDER == __LITTLE_ENDIAN)
+# define __LITTLE_ENDIAN__
+# elif (__BYTE_ORDER == __BIG_ENDIAN)
+# define __BIG_ENDIAN__
+# else
+# error Unknown endianness
+# endif
+# endif
+#endif
+
/* LOC_SED:
* This symbol holds the complete pathname to the sed program.
*/
@@ -0,0 +1,27 @@
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -133,6 +133,24 @@ case "$optimize" in
;;
esac
+# Ubuntu 11.04 (and later, presumably) doesn't keep most libraries
+# (such as -lm) in /lib or /usr/lib. So we have to ask gcc to tell us
+# where to look. We don't want gcc's own libraries, however, so we
+# filter those out.
+# This could be conditional on Unbuntu, but other distributions may
+# follow suit, and this scheme seems to work even on rather old gcc's.
+# This unconditionally uses gcc because even if the user is using another
+# compiler, we still need to find the math library and friends, and I don't
+# know how other compilers will cope with that situation.
+# Still, as an escape hatch, allow Configure command line overrides to
+# plibpth to bypass this check.
+case "$plibpth" in
+'') plibpth=`gcc -print-search-dirs | grep libraries |
+ cut -f2- -d= | tr ':' $trnl | grep -v 'gcc'`
+ plibpth="$plibpth" # Collapse all entries on one line
+ ;;
+esac
+
# Are we using ELF? Thanks to Kenneth Albanowski <kjahds@kjahds.com>
# for this test.
cat >try.c <<'EOM'