summaryrefslogtreecommitdiff
path: root/mcon/U/d_usendir.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_usendir.U')
-rw-r--r--mcon/U/d_usendir.U44
1 files changed, 23 insertions, 21 deletions
diff --git a/mcon/U/d_usendir.U b/mcon/U/d_usendir.U
index 00f604c..21484c3 100644
--- a/mcon/U/d_usendir.U
+++ b/mcon/U/d_usendir.U
@@ -1,12 +1,12 @@
-?RCS: $Id: d_usendir.U,v 3.0.1.1 1997/02/28 15:47:34 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: d_usendir.U,v $
?RCS: Revision 3.0.1.1 1997/02/28 15:47:34 ram
@@ -16,7 +16,7 @@
?RCS: Revision 3.0 1993/08/18 12:07:52 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?MAKE:d_usendir i_ndir ndirc ndiro ndirlib: test Csym Findhdr _a _o
+?MAKE:d_usendir i_ndir ndirlib: test Setvar Findhdr d_readdir _a
?MAKE: -pick add $@ %<
?S:d_usendir:
?S: This variable conditionally defines the EMULATE_NDIR symbol, which
@@ -43,8 +43,8 @@
?H:#$d_usendir EMULATE_NDIR /**/
?H:#$i_ndir I_NDIR /**/
?H:.
-?T:val
-?LINT:describe ndirc ndiro
+?T:val2
+?LINT: set d_usendir i_ndir
: see if there are directory access routines out there
echo " "
if $test `./findhdr ndir.h` && \
@@ -55,23 +55,25 @@ if $test `./findhdr ndir.h` && \
else
ndirlib="/usr/local/lib/libndir$_a"
fi
- i_ndir="$define"
- d_usendir="$undef"
- ndirc=''
- ndiro=''
+ val2="$define"
+ val="$undef"
else
ndirlib=''
- i_ndir="$undef"
- if set readdir val -f; eval $csym; $val; then
+ val2="$undef"
+ case "$d_readdir" in
+ "$define")
echo "No ndir library found, but you have readdir() so we'll use that." >&4
- d_usendir="$undef"
- ndirc=''
- ndiro=''
- else
- echo "No ndir library found--using ./ndir.c." >&4
- d_usendir="$define"
- ndirc='ndir.c'
- ndiro="ndir$_o"
- fi
+ val="$undef";
+ ;;
+ *)
+ echo "No ndir library found." >&4
+ val="$define"
+ ;;
+ esac
fi
+set d_usendir
+eval $setvar
+val="$val2"
+set i_ndir
+eval $setvar