summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 10:35:44 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:52:47 +0100
commit1509effa50d0917578f8ab4dd412918cb11d6fcb (patch)
treef9a4f75eb01b57778a6be857c993c96e900c36f1 /Configure
parentf1519f70705b2eee563b9ac4056d4eb39d383ea1 (diff)
downloadperl-1509effa50d0917578f8ab4dd412918cb11d6fcb.tar.gz
Rely on C89 strchr() and strrchr()
This needs a metaconfig change that defangs the standard unit for finding strchr(), because that unit sees the uses of "index" and "rindex" (in files like keywords.c and opcode.h) as indicators that it must be used instead.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure37
1 files changed, 0 insertions, 37 deletions
diff --git a/Configure b/Configure
index 6da12686a5..49c90007ba 100755
--- a/Configure
+++ b/Configure
@@ -856,8 +856,6 @@ stdio_bufsiz=''
stdio_cnt=''
stdio_filbuf=''
stdio_ptr=''
-d_index=''
-d_strchr=''
d_strcoll=''
d_strerrm=''
d_strerror=''
@@ -15776,39 +15774,6 @@ eval $inlibc
set ilogbl d_ilogbl
eval $inlibc
-: index or strchr
-echo " "
-if set index val -f; eval $csym; $val; then
- if set strchr val -f d_strchr; eval $csym; $val; then
- if $contains strchr "$strings" >/dev/null 2>&1 ; then
- val="$define"
- vali="$undef"
- echo "strchr() found." >&4
- else
- val="$undef"
- vali="$define"
- echo "index() found." >&4
- fi
- else
- val="$undef"
- vali="$define"
- echo "index() found." >&4
- fi
-else
- if set strchr val -f d_strchr; eval $csym; $val; then
- val="$define"
- vali="$undef"
- echo "strchr() found." >&4
- else
- echo "No index() or strchr() found!" >&4
- val="$undef"
- vali="$undef"
- fi
-fi
-set d_strchr; eval $setvar
-val="$vali"
-set d_index; eval $setvar
-
: check whether inet_aton exists
set inet_aton d_inetaton
eval $inlibc
@@ -24168,7 +24133,6 @@ d_hypot='$d_hypot'
d_ilogb='$d_ilogb'
d_ilogbl='$d_ilogbl'
d_inc_version_list='$d_inc_version_list'
-d_index='$d_index'
d_inetaton='$d_inetaton'
d_inetntop='$d_inetntop'
d_inetpton='$d_inetpton'
@@ -24416,7 +24380,6 @@ d_stdio_ptr_lval_sets_cnt='$d_stdio_ptr_lval_sets_cnt'
d_stdio_stream_array='$d_stdio_stream_array'
d_stdiobase='$d_stdiobase'
d_stdstdio='$d_stdstdio'
-d_strchr='$d_strchr'
d_strcoll='$d_strcoll'
d_strerrm='$d_strerrm'
d_strerror='$d_strerror'