This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig maintenance.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Oct 1999 22:54:18 +0000 (22:54 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Oct 1999 22:54:18 +0000 (22:54 +0000)
p4raw-id: //depot/metaconfig@4287

U/ebcdic/ebcdic.U
U/typedefs/gidsign.U
U/typedefs/gidsize.U
U/typedefs/pidsign.U
U/typedefs/pidsize.U
U/typedefs/uidsign.U
U/typedefs/uidsize.U

index d1a5a05..465a1fd 100644 (file)
@@ -41,7 +41,7 @@ if eval $compile_ok; then
                echo "You have EBCDIC." >&4
                val="$define"
        else
                echo "You have EBCDIC." >&4
                val="$define"
        else
-               echo "Nope, no EBCDIC.  Assuming ASCII or some ISO Latin, or UTF." >&4
+               echo "Nope, no EBCDIC, probably ASCII or some ISO Latin." >&4
        fi
 else
        echo "I'm unable to compile the test program." >&4
        fi
 else
        echo "I'm unable to compile the test program." >&4
index ebb6108..954c29f 100644 (file)
 ?H:#define Gid_t_SIGN  $gidsign                /* GID sign */
 ?H:.
 ?F:!try
 ?H:#define Gid_t_SIGN  $gidsign                /* GID sign */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set gidsign
 echo " "
 ?LINT: set gidsign
 echo " "
-echo "Checking the sign of $gidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$gidtype" in
+*_t) zzz="$gidtype"    ;;
+*)   zzz="gid"         ;;
+esac
+echo "Checking the sign of $zzz..." >&4 
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -43,9 +47,10 @@ if eval $compile; then
                ;;
        *)      gidsign=$yyy
                case "$gidsign" in
                ;;
        *)      gidsign=$yyy
                case "$gidsign" in
-                1) echo "Your $gidtype is unsigned." ;;
-               -1) echo "Your $gidtype is signed."   ;;
+                1) echo "Your $zzz is unsigned." ;;
+               -1) echo "Your $zzz is signed."   ;;
                esac
                esac
+               ;;
        esac
 else
        gidsign=1
        esac
 else
        gidsign=1
index 501a6e4..8798f69 100644 (file)
 ?H:#define Gid_t_SIZE $gidsize         /* GID size */
 ?H:.
 ?F:!try
 ?H:#define Gid_t_SIZE $gidsize         /* GID size */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set gidsize
 echo " "
 ?LINT: set gidsize
 echo " "
-echo "Checking the size of $gidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$gidtype" in
+*_t) zzz="$gidtype"    ;;
+*)   zzz="gid"         ;;
+esac
+echo "Checking the size of zzz..." >&4 
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -36,7 +40,7 @@ if eval $compile_ok; then
                echo "(I can't execute the test program--guessing $gidsize.)" >&4
                ;;
        *)      gidsize=$yyy
                echo "(I can't execute the test program--guessing $gidsize.)" >&4
                ;;
        *)      gidsize=$yyy
-               echo "Your $gidtype size is $gidsize bytes."
+               echo "Your $zzz size is $gidsize bytes."
                ;;
        esac
 else
                ;;
        esac
 else
index 8fc69b0..a471de4 100644 (file)
 ?H:#define Pid_t_SIGN  $pidsign                /* PID sign */
 ?H:.
 ?F:!try
 ?H:#define Pid_t_SIGN  $pidsign                /* PID sign */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set pidsign
 echo " "
 ?LINT: set pidsign
 echo " "
-echo "Checking the sign of $pidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$pidtype" in
+*_t) zzz="$pidtype"    ;;
+*)   zzz="pid"         ;;
+esac
+echo "Checking the sign of $zzz..." >&4 
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -46,6 +50,7 @@ if eval $compile; then
                 1) echo "Your $pidtype is unsigned." ;;
                -1) echo "Your $pidtype is signed."   ;;
                esac
                 1) echo "Your $pidtype is unsigned." ;;
                -1) echo "Your $pidtype is signed."   ;;
                esac
+               ;;
        esac
 else
        pidsign=1
        esac
 else
        pidsign=1
index 3ba8f41..f24192f 100644 (file)
 ?H:#define Pid_t_SIZE $pidsize         /* PID size */
 ?H:.
 ?F:!try
 ?H:#define Pid_t_SIZE $pidsize         /* PID size */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set pidsize
 echo " "
 ?LINT: set pidsize
 echo " "
-echo "Checking the size of $pidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$pidtype" in
+*_t) zzz="$pidtype"    ;;
+*)   zzz="pid"         ;;
+esac
+echo "Checking the size of $zzz..." >&4 
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -36,7 +40,7 @@ if eval $compile_ok; then
                echo "(I can't execute the test program--guessing $pidsize.)" >&4
                ;;
        *)      pidsize=$yyy
                echo "(I can't execute the test program--guessing $pidsize.)" >&4
                ;;
        *)      pidsize=$yyy
-               echo "Your $pidtype size is $pidsize bytes."
+               echo "Your $zzz size is $pidsize bytes."
                ;;
        esac
 else
                ;;
        esac
 else
@@ -44,4 +48,3 @@ else
        echo "(I can't compile the test program--guessing $pidsize.)" >&4
 fi
 
        echo "(I can't compile the test program--guessing $pidsize.)" >&4
 fi
 
-
index 442bb53..3468d79 100644 (file)
 ?H:#define Uid_t_SIGN  $uidsign                /* UID sign */
 ?H:.
 ?F:!try
 ?H:#define Uid_t_SIGN  $uidsign                /* UID sign */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set uidsign
 echo " "
 ?LINT: set uidsign
 echo " "
-echo "Checking the sign of $uidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$uidtype" in
+*_t) zzz="$uidtype"    ;;
+*)   zzz="uid"         ;;
+esac
+echo "Checking the sign of $zzz..." >&4
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -43,9 +47,10 @@ if eval $compile; then
                ;;
        *)      uidsign=$yyy
                case "$uidsign" in
                ;;
        *)      uidsign=$yyy
                case "$uidsign" in
-                1) echo "Your $uidtype is unsigned." ;;
-               -1) echo "Your $uidtype is signed."   ;;
+                1) echo "Your $zzz is unsigned." ;;
+               -1) echo "Your $zzz is signed."   ;;
                esac
                esac
+               ;;
        esac
 else
        uidsign=1
        esac
 else
        uidsign=1
index 92e1a56..240d57d 100644 (file)
 ?H:#define Uid_t_SIZE $uidsize         /* UID size */
 ?H:.
 ?F:!try
 ?H:#define Uid_t_SIZE $uidsize         /* UID size */
 ?H:.
 ?F:!try
-?T:yyy
+?T:yyy zzz
 ?LINT: set uidsize
 echo " "
 ?LINT: set uidsize
 echo " "
-echo "Checking the size of $uidtype..." >&4 
-cat > try.c <<'EOCP'
+case "$uidtype" in
+*_t) zzz="$uidtype"    ;;
+*)   zzz="uid"         ;;
+esac
+echo "Checking the size of $zzz..." >&4 
+cat > try.c <<EOCP
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
 #include <sys/types.h>
 #include <stdio.h>
 int main() {
@@ -36,7 +40,7 @@ if eval $compile_ok; then
                echo "(I can't execute the test program--guessing $uidsize.)" >&4
                ;;
        *)      uidsize=$yyy
                echo "(I can't execute the test program--guessing $uidsize.)" >&4
                ;;
        *)      uidsize=$yyy
-               echo "Your $uidtype size is $uidsize bytes."
+               echo "Your $zzz size is $uidsize bytes."
                ;;
        esac
 else
                ;;
        esac
 else
@@ -44,4 +48,3 @@ else
        echo "(I can't compile the test program--guessing $uidsize.)" >&4
 fi
 
        echo "(I can't compile the test program--guessing $uidsize.)" >&4
 fi
 
-