Skip to content

Commit

Permalink
Purge sfio support from configure.com, Configure and related files.
Browse files Browse the repository at this point in the history
Most of these are actually generated, so the maintenance complexity reduction
is not as impressive as the diffstat suggests.

(Incorporating a fix from Merijn)
  • Loading branch information
nwc10 committed Dec 27, 2013
1 parent 97cb92d commit 0b39d4d
Show file tree
Hide file tree
Showing 26 changed files with 8 additions and 283 deletions.
86 changes: 2 additions & 84 deletions Configure
Expand Up @@ -706,8 +706,6 @@ d_setservent_r=''
setservent_r_proto=''
d_setsid=''
d_setvbuf=''
d_sfio=''
usesfio=''
d_shm=''
d_shmat=''
d_shmatprototype=''
Expand Down Expand Up @@ -931,7 +929,6 @@ d_pwgecos=''
d_pwpasswd=''
d_pwquota=''
i_pwd=''
i_sfio=''
i_shadow=''
i_socks=''
i_stdbool=''
Expand Down Expand Up @@ -1378,7 +1375,7 @@ libswanted_uselargefiles=''
: set usesocks on the Configure command line to enable socks.
: List of libraries we want.
: If anyone needs extra -lxxx, put those in a hint file.
libswanted="sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun"
libswanted="socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun"
libswanted="$libswanted m crypt sec util c cposix posix ucb bsd BSD"
: We probably want to search /usr/shlib before most other libraries.
: This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
Expand Down Expand Up @@ -5330,20 +5327,7 @@ if $sh -c "$cc -o try $optimize $ccflags $ldflags try.c $libs" >>try.msg 2>&1; t
xxx=`$run ./try`
case "$xxx" in
"Ok") dflt=n ;;
*) echo 'The program compiled OK, but produced no output.' >> try.msg
case " $libs " in
*" -lsfio "*)
cat >> try.msg <<'EOQS'
If $libs contains -lsfio, and sfio is mis-configured, then it
sometimes (apparently) runs and exits with a 0 status, but with no
output! It may have to do with sfio's use of _exit vs. exit.

EOQS
rp="You have a big problem. Shall I abort Configure"
dflt=y
;;
esac
;;
*) echo 'The program compiled OK, but produced no output.' >> try.msg ;;
esac
else
echo "The program compiled OK, but exited with status $?." >>try.msg
Expand Down Expand Up @@ -17421,69 +17405,6 @@ eval $inlibc
set setvbuf d_setvbuf
eval $inlibc

: see if sfio.h is available
set sfio.h i_sfio
eval $inhdr

: see if sfio library is available
case "$i_sfio" in
$define)
val=''
set sfreserve val
eval $inlibc
;;
*)
val="$undef"
;;
esac
: Ok, but do we want to use it.
case "$val" in
$define)
case "$usesfio" in
true|$define|[yY]*) dflt='y';;
*) dflt='n';;
esac
echo "$package can use the sfio library, but it is experimental."
rp="You seem to have sfio available, do you want to try using it?"
. ./myread
case "$ans" in
y|Y) echo "Ok, turning on sfio then."
val="$define"
;;
*) echo "Ok, avoiding sfio this time. I'll use stdio instead."
val="$undef"
;;
esac
;;
*) case "$usesfio" in
true|$define|[yY]*)
echo "Sorry, cannot find sfio on this machine." >&4
echo "Ignoring your setting of usesfio=$usesfio." >&4
val="$undef"
;;
esac
;;
esac
set d_sfio
eval $setvar
case "$d_sfio" in
$define) usesfio='true';;
*) usesfio='false';;
esac
case "$d_sfio" in
$define) ;;
*) : Remove sfio from list of libraries to use
case "$libs" in
*-lsfio*)
echo "Removing unneeded -lsfio from library list" >&4
set `echo X $libs | $sed -e 's/-lsfio / /' -e 's/-lsfio$//'`
shift
libs="$*"
echo "libs = $libs" >&4
;;
esac
;;
esac


: see if shmctl exists
Expand Down Expand Up @@ -23112,7 +23033,6 @@ d_setsent='$d_setsent'
d_setservent_r='$d_setservent_r'
d_setsid='$d_setsid'
d_setvbuf='$d_setvbuf'
d_sfio='$d_sfio'
d_shm='$d_shm'
d_shmat='$d_shmat'
d_shmatprototype='$d_shmatprototype'
Expand Down Expand Up @@ -23350,7 +23270,6 @@ i_prot='$i_prot'
i_pthread='$i_pthread'
i_pwd='$i_pwd'
i_rpcsvcdbm='$i_rpcsvcdbm'
i_sfio='$i_sfio'
i_sgtty='$i_sgtty'
i_shadow='$i_shadow'
i_socks='$i_socks'
Expand Down Expand Up @@ -23723,7 +23642,6 @@ useperlio='$useperlio'
useposix='$useposix'
usereentrant='$usereentrant'
userelocatableinc='$userelocatableinc'
usesfio='$usesfio'
useshrplib='$useshrplib'
usesitecustomize='$usesitecustomize'
usesocks='$usesocks'
Expand Down
5 changes: 1 addition & 4 deletions Cross/config.sh-arm-linux
Expand Up @@ -439,7 +439,6 @@ d_setsent='define'
d_setservent_r='undef'
d_setsid='define'
d_setvbuf='define'
d_sfio='undef'
d_shm='define'
d_shmat='define'
d_shmatprototype='define'
Expand Down Expand Up @@ -676,7 +675,6 @@ i_prot='undef'
i_pthread='define'
i_pwd='define'
i_rpcsvcdbm='undef'
i_sfio='undef'
i_sgtty='undef'
i_shadow='define'
i_socks='undef'
Expand Down Expand Up @@ -780,7 +778,7 @@ libsdirs=' /usr/lib'
libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
libspath=' /usr/local/lib /lib /usr/lib'
libswanted='sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD'
libswanted='socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD'
libswanted_uselargefiles=''
line=''
lint=''
Expand Down Expand Up @@ -1043,7 +1041,6 @@ useperlio='define'
useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
Expand Down
5 changes: 1 addition & 4 deletions Cross/config.sh-arm-linux-n770
Expand Up @@ -416,7 +416,6 @@ d_setsent='define'
d_setservent_r='undef'
d_setsid='define'
d_setvbuf='define'
d_sfio='undef'
d_shm='define'
d_shmat='define'
d_shmatprototype='define'
Expand Down Expand Up @@ -648,7 +647,6 @@ i_prot='undef'
i_pthread='define'
i_pwd='define'
i_rpcsvcdbm='undef'
i_sfio='undef'
i_sgtty='undef'
i_shadow='define'
i_socks='undef'
Expand Down Expand Up @@ -751,7 +749,7 @@ libsdirs=' /usr/lib'
libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
libspath=' /usr/local/lib /lib /usr/lib'
libswanted='sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD'
libswanted='socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD'
libswanted_uselargefiles=''
line=''
lint=''
Expand Down Expand Up @@ -1004,7 +1002,6 @@ useperlio='define'
useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
Expand Down
3 changes: 0 additions & 3 deletions NetWare/config.wc
Expand Up @@ -429,7 +429,6 @@ d_setservent_r='undef'
d_setsid='undef'
d_setspent='undef'
d_setvbuf='define'
d_sfio='undef'
d_shm='undef'
d_shmat='undef'
d_shmatprototype='undef'
Expand Down Expand Up @@ -658,7 +657,6 @@ i_prot='undef'
i_pthread='undef'
i_pwd='undef'
i_rpcsvcdbm='define'
i_sfio='undef'
i_sgtty='undef'
i_shadow='undef'
i_socks='undef'
Expand Down Expand Up @@ -1006,7 +1004,6 @@ useperlio='undef'
useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='true'
usesitecustomize='undef'
usesocks='undef'
Expand Down
12 changes: 0 additions & 12 deletions NetWare/config_H.wc
Expand Up @@ -784,12 +784,6 @@
*/
#define I_NETINET_IN /**/

/* I_SFIO:
* This symbol, if defined, indicates to the C program that it should
* include <sfio.h>.
*/
/*#define I_SFIO /**/

/* I_STDDEF:
* This symbol, if defined, indicates that <stddef.h> exists and should
* be included.
Expand Down Expand Up @@ -1959,12 +1953,6 @@
*/
#define HAS_SETVBUF /**/

/* USE_SFIO:
* This symbol, if defined, indicates that sfio should
* be used.
*/
/*#define USE_SFIO /**/

/* HAS_SHM:
* This symbol, if defined, indicates that the entire shm*(2) library is
* supported.
Expand Down
15 changes: 0 additions & 15 deletions Porting/Glossary
Expand Up @@ -2047,10 +2047,6 @@ d_setvbuf (d_setvbuf.U):
indicates to the C program that the setvbuf() routine is available
to change buffering on an open stdio stream.

d_sfio (d_sfio.U):
This variable conditionally defines the USE_SFIO symbol,
and indicates whether sfio is available (and should be used).

d_shm (d_shm.U):
This variable conditionally defines the HAS_SHM symbol, which
indicates that the entire shm*(2) library is present.
Expand Down Expand Up @@ -3162,10 +3158,6 @@ i_rpcsvcdbm (i_dbm.U):
indicates to the C program that <rpcsvc/dbm.h> exists and should
be included. Some System V systems might need this instead of <dbm.h>.

i_sfio (i_sfio.U):
This variable conditionally defines the I_SFIO symbol,
and indicates whether a C program should include <sfio.h>.

i_sgtty (i_termio.U):
This variable conditionally defines the I_SGTTY symbol, which
indicates to the C program that it should include <sgtty.h> rather
Expand Down Expand Up @@ -5122,13 +5114,6 @@ userelocatableinc (bin.U):
containing the perl binary, and a logical cleanup of the path is then
made around the join point (removing "dir/../" pairs)

usesfio (d_sfio.U):
This variable is set to true when the user agrees to use sfio.
It is set to false when sfio is not available or when the user
explicitly requests not to use sfio. It is here primarily so
that command-line settings can override the auto-detection of
d_sfio without running into a "WHOA THERE".

useshrplib (libperl.U):
This variable is set to 'true' if the user wishes
to build a shared libperl, and 'false' otherwise.
Expand Down
5 changes: 1 addition & 4 deletions Porting/config.sh
Expand Up @@ -449,7 +449,6 @@ d_setsent='define'
d_setservent_r='undef'
d_setsid='define'
d_setvbuf='define'
d_sfio='undef'
d_shm='define'
d_shmat='define'
d_shmatprototype='define'
Expand Down Expand Up @@ -687,7 +686,6 @@ i_prot='undef'
i_pthread='define'
i_pwd='define'
i_rpcsvcdbm='undef'
i_sfio='undef'
i_sgtty='undef'
i_shadow='define'
i_socks='undef'
Expand Down Expand Up @@ -793,7 +791,7 @@ libsdirs=' /usr/lib'
libsfiles=' libnsl.so libgdbm.so libdb.so libdl.so libm.so libcrypt.so libutil.so libc.so libgdbm_compat.so'
libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so /usr/lib/libgdbm_compat.so'
libspath=' /pro/local/lib /lib /usr/lib /usr/local/lib'
libswanted='sfio socket inet nsl nm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat'
libswanted='socket inet nsl nm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat'
libswanted_uselargefiles=''
line=''
lint=''
Expand Down Expand Up @@ -1060,7 +1058,6 @@ useperlio='define'
useposix='true'
usereentrant='undef'
userelocatableinc='undef'
usesfio='false'
useshrplib='false'
usesitecustomize='undef'
usesocks='undef'
Expand Down
12 changes: 0 additions & 12 deletions Porting/config_H
Expand Up @@ -707,12 +707,6 @@
*/
#define I_NETINET_IN /**/

/* I_SFIO:
* This symbol, if defined, indicates to the C program that it should
* include <sfio.h>.
*/
/*#define I_SFIO / **/

/* I_STDBOOL:
* This symbol, if defined, indicates that <stdbool.h> exists and should
* be included.
Expand Down Expand Up @@ -3666,12 +3660,6 @@
*/
/*#define HAS_SETPROCTITLE / **/

/* USE_SFIO:
* This symbol, if defined, indicates that sfio should
* be used.
*/
/*#define USE_SFIO / **/

/* HAS_SIGNBIT:
* This symbol, if defined, indicates that the signbit routine is
* available to check if the given number has the sign bit set.
Expand Down
12 changes: 0 additions & 12 deletions config_h.SH
Expand Up @@ -738,12 +738,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$i_niin I_NETINET_IN /**/
/* I_SFIO:
* This symbol, if defined, indicates to the C program that it should
* include <sfio.h>.
*/
#$i_sfio I_SFIO /**/
/* I_STDDEF:
* This symbol, if defined, indicates that <stddef.h> exists and should
* be included.
Expand Down Expand Up @@ -3927,12 +3921,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_setproctitle HAS_SETPROCTITLE /**/
/* USE_SFIO:
* This symbol, if defined, indicates that sfio should
* be used.
*/
#$d_sfio USE_SFIO /**/
/* HAS_SIGNBIT:
* This symbol, if defined, indicates that the signbit routine is
* available to check if the given number has the sign bit set.
Expand Down

0 comments on commit 0b39d4d

Please sign in to comment.