1 ?RCS: $Id: d_sfio.U,v $
3 ?RCS: Copyright (c) 1996-1998 Andy Dougherty
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?RCS: $Log: d_sfio.U,v $
10 ?MAKE:usesfio d_sfio: i_sfio Inlibc Myread Oldconfig sed libs \
12 ?MAKE: -pick add $@ %<
14 ?S: This variable is set to true when the user agrees to use sfio.
15 ?S: It is set to false when sfio is not available or when the user
16 ?S: explicitely requests not to use sfio. It is here primarily so
17 ?S: that command-line settings can override the auto-detection of
18 ?S: d_sfio without running into a "WHOA THERE".
21 ?S: This variable conditionally defines the USE_SFIO symbol,
22 ?S: and indicates whether sfio is available (and should be used).
25 ?C: This symbol, if defined, indicates that sfio should
28 ?H:#$d_sfio USE_SFIO /**/
33 : see if sfio library is available
44 : Ok, but do we want to use it.
48 true|$define|[yY]*) dflt='y';;
51 echo "$package can use the sfio library, but it is experimental."
52 rp="You seem to have sfio available, do you want to try using it?"
56 *) echo "Ok, avoiding sfio this time. I'll use stdio instead."
58 : Remove sfio from list of libraries to use
59 set `echo X $libs | $sed -e 's/-lsfio / /' -e 's/-lsfio$//'`
62 echo "libs = $libs" >&4
68 echo "Sorry, cannot find sfio on this machine" >&4
69 echo "Ignoring your setting of usesfio=$usesfio" >&4
75 ?X: Only set d_sfio when final value is known to avoid spurious Whoas
76 ?X: Then set usesfio accordingly to the current value, for next run
81 $define) usesfio='true';;