summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1998-07-14 10:14:59 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-07-15 05:57:39 +0000
commit9334179235ad5f0daf753c23b9b00df2933b98e9 (patch)
treed9f614c119068020c9cdae010372bd1db11ad407 /Configure
parent2f3671218f9e35aa2ccad92da0178b84a44df3a2 (diff)
downloadperl-9334179235ad5f0daf753c23b9b00df2933b98e9.tar.gz
Config_74-01
Message-Id: <Pine.SUN.3.96.980714141346.29710D-100000@newton.phys> p4raw-id: //depot/perl@1500
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure28
1 files changed, 16 insertions, 12 deletions
diff --git a/Configure b/Configure
index 8c2c4c06aa..1425a350a5 100755
--- a/Configure
+++ b/Configure
@@ -391,7 +391,7 @@ d_getservprotos=''
d_getsbyname=''
d_getsbyport=''
d_gnulibc=''
-i_arpa_inet=''
+i_arpainet=''
d_htonl=''
d_inetaton=''
d_isascii=''
@@ -4316,16 +4316,20 @@ int main()
return 1;
}
EOM
-$cc $ccflags $ldflags -o tebcdic tebcdic.c $libs >/dev/null 2>&1
-if ./tebcdic; then
- echo "You have EBCDIC. Adding -DEBCDIC to ccflags." >&4
- ccflags="$ccflags -DEBCDIC"
- val="$define"
+val=$undef
+set tebcdic
+if eval $compile_ok; then
+ if ./tebcdic; then
+ echo "You have EBCDIC." >&4
+ val="$define"
+ else
+ echo "Nope, no EBCDIC. Assuming ASCII or some ISO Latin." >&4
+ fi
else
- echo "Nope, no EBCDIC. Assuming ASCII or some ISO Latin. Or UTF-8." >&4
- val="$undef"
+ echo "I'm unable to compile the test program." >&4
+ echo "I'll asuume ASCII or some ISO Latin." >&4
fi
-rm -f tebcdic.c tebcdic
+$rm -f tebcdic.c tebcdic
set ebcdic
eval $setvar
@@ -7302,7 +7306,7 @@ set netinet/in.h i_niin sys/in.h i_sysin
eval $inhdr
: see if this is an arpa/inet.h
-set arpa/inet.h i_arpa_inet
+set arpa/inet.h i_arpainet
eval $inhdr
: see if htonl --and friends-- exists
@@ -7318,7 +7322,7 @@ $undef)
#include <sys/types.h>
#$i_niin I_NETINET_IN
#$i_sysin I_SYS_IN
-#$i_arpa_inet I_ARPA_INET
+#$i_arpainet I_ARPA_INET
#ifdef I_NETINET_IN
#include <netinet/in.h>
#endif
@@ -11661,7 +11665,7 @@ h_sysfile='$h_sysfile'
hint='$hint'
hostcat='$hostcat'
huge='$huge'
-i_arpa_inet='$i_arpa_inet'
+i_arpainet='$i_arpainet'
i_bsdioctl='$i_bsdioctl'
i_db='$i_db'
i_dbm='$i_dbm'