This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Backport #30904
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 18 Apr 2007 10:25:54 +0000 (10:25 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 18 Apr 2007 10:25:54 +0000 (10:25 +0000)
If the test programs for strtoul(), strtoull() or strtouq() fail, don't
assume that the functions work.

p4raw-id: //depot/metaconfig@30975

U/modified/d_strtoul.U
U/perl/d_strtoull.U
U/perl/d_strtouq.U

index 261bc15..0ffa3dc 100644 (file)
@@ -101,6 +101,9 @@ EOM
                   d_strtoul="$undef"
                   ;;
                esac
+       else
+               echo "(I can't seem to compile the test program--assuming it doesn't)"
+               d_strtoul="$undef"
        fi
        ;;
 esac
index 7ea0203..51b573f 100644 (file)
@@ -68,6 +68,9 @@ EOM
                   d_strtoull="$undef"
                   ;;
                esac
+       else
+               echo "(I can't seem to compile the test program--assuming it doesn't)"
+               d_strtoull="$undef"
        fi
        ;;
 esac
index cc0a787..ca14e89 100644 (file)
@@ -66,6 +66,9 @@ EOM
                   d_strtouq="$undef"
                   ;;
                esac
+       else
+               echo "(I can't seem to compile the test program--assuming it doesn't)"
+               d_strtouq="$undef"
        fi
        ;;
 esac