summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-11-04 19:40:34 -0600
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-11-08 16:39:21 +0000
commitde52168c09035e3cc60829f317f4f46c3a4bbc3a (patch)
treefab65e2f863fedab93a7f0bbbefe97ecbe85707e /Configure
parentab7423222bba21f69873406be80957820f00b893 (diff)
downloadperl-de52168c09035e3cc60829f317f4f46c3a4bbc3a.tar.gz
Configure patch to add detection for DIR.dd_fd member variable
From: "Steve Peters" <steve.peters@gmail.com> Message-ID: <fd7a59d30611042340p5543442ctad306aeb748b6bfe@mail.gmail.com> p4raw-id: //depot/perl@29238
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure40
1 files changed, 39 insertions, 1 deletions
diff --git a/Configure b/Configure
index 0e4de27290..533bf25b86 100755
--- a/Configure
+++ b/Configure
@@ -26,7 +26,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Mon Nov 6 16:18:02 CET 2006 [metaconfig 3.0 PL70]
+# Generated on Wed Nov 8 17:31:20 CET 2006 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -401,6 +401,7 @@ d_cuserid=''
d_dbl_dig=''
d_dbminitproto=''
d_difftime=''
+d_dir_dd_fd=''
d_dirfd=''
d_dlerror=''
d_dlopen=''
@@ -11248,6 +11249,42 @@ set d_dirnamlen
eval $setvar
$rm -f try.c
+: Look for DIR.dd_fd
+case "$i_dirent" in
+"$define")
+ echo "Checking to see if DIR has a dd_fd member variable" >&4
+ $cat >try.c <<EOCP
+#$i_stdlib I_STDLIB
+#ifdef I_STDLIB
+#include <stdlib.h>
+#endif
+#include <dirent.h>
+
+int main() {
+ DIR dir;
+ dir.dd_fd = 1;
+ return 0;
+}
+EOCP
+ val=$undef
+ set try
+ if eval $compile; then
+ echo "Yes, it does."
+ val="$define"
+ else
+ echo "No, it does not."
+ val="$undef"
+ fi
+ ;;
+*)
+ echo "You don't have a <dirent.h>, so not checking for dd_fd." >&4
+ val="$undef"
+ ;;
+esac
+set d_dir_dd_fd
+eval $setvar
+$rm -f try try.*
+
: see if this is an sysdir system
set sys/dir.h i_sysdir
eval $inhdr
@@ -21438,6 +21475,7 @@ d_cuserid='$d_cuserid'
d_dbl_dig='$d_dbl_dig'
d_dbminitproto='$d_dbminitproto'
d_difftime='$d_difftime'
+d_dir_dd_fd='$d_dir_dd_fd'
d_dirfd='$d_dirfd'
d_dirnamlen='$d_dirnamlen'
d_dlerror='$d_dlerror'