Generate a valid config.h even if stdarg.h and varargs.h are both missing.
authorNicholas Clark <nick@ccl4.org>
Tue, 5 Feb 2013 19:26:42 +0000 (14:26 -0500)
committerAndy Dougherty <doughera@lafayete.edu>
Tue, 19 Feb 2013 14:27:12 +0000 (09:27 -0500)
Whilst we can't build perl on such a crippled system, there's no excuse for
logical errors in config.sh resulting in an invalid config.h
This is extracted from
    [perl #112494] invalid config.h if stdarg.h and varargs.h both missing
    https://rt.perl.org/rt3//Ticket/Display.html?id=112494

U/modified/i_varhdr.U
U/perl/need_va_copy.U

index f007788..7f50ced 100644 (file)
@@ -126,6 +126,7 @@ chmod +x varargs
 : now check which varargs header should be included
 echo " "
 i_varhdr=''
+val=''
 case "$valstd" in
 "$define")
        if `./varargs I_STDARG`; then
index 0cb5d0f..300d1c1 100644 (file)
@@ -93,6 +93,7 @@ EOCP
        $rm_try
        ;;
 *)     echo "You don't have <stdarg.h>, not checking for va_copy()." >&4
+       need_va_copy="$undef"
        ;;
 esac