From: "Steve Peters" <steve.peters@gmail.com>
Message-ID: <
fd7a59d30611042340p5543442ctad306aeb748b6bfe@mail.gmail.com>
p4raw-id: //depot/perl@29238
# $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
d_dbl_dig=''
d_dbminitproto=''
d_difftime=''
+d_dir_dd_fd=''
d_dirfd=''
d_dlerror=''
d_dlopen=''
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
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'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='define'
d_dirnamlen='undef'
d_dlerror='define'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='undef'
d_dlerror='define'
This variable conditionally defines the HAS_DIFFTIME symbol, which
indicates to the C program that the difftime() routine is available.
+d_dir_dd_fd (d_dir_dd_fd.U)
+ This variable conditionally defines the HAS_DIR_DD_FD symbol, which
+ indicates that the DIR directory stream type contains a member
+ variable called dd_fd.
+
d_dirfd (d_dirfd.U):
This variable conditionally defines the HAS_DIRFD constant,
which indicates to the C program that dirfd() is available
#define M_VOID /* Xenix strikes again */
#endif
+/* HAS_DIR_DD_FD:
+ * This symbol, if defined, indicates that the the DIR* dirstream
+ * structure contains a member variable named dd_fd.
+ */
+#$d_dir_dd_fd HAS_DIR_DD_FD /**/
+
#endif
!GROK!THIS!
$ WC "d_dbl_dig='define'"
$ WC "d_dbminitproto='undef'"
$ WC "d_difftime='define'"
+$ WC "d_dir_dd_fd='undef'"
$ WC "d_dirfd='undef'"
$ WC "d_dirnamlen='define'"
$ WC "d_dlerror='undef'"
d_dbl_dig='undef'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='undef'
d_dlerror='undef'
#endif
/* HMB H.Merijn Brand - a placeholder for preparing Configure patches */
-#if defined(HAS_MALLOC_SIZE) && defined(LOCALTIME_R_NEEDS_TZSET)
+#if defined(HAS_MALLOC_SIZE) && defined(LOCALTIME_R_NEEDS_TZSET) && defined(HAS_DIR_DD_FD)
/* Not (yet) used at top level, but mention them for metaconfig */
#endif
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='undef'
d_dlerror='undef'
d_dbl_dig='undef'
d_dbminitproto='undef'
d_difftime='undef'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='define'
d_dlerror='undef'
d_dbl_dig='undef'
d_dbminitproto='undef'
d_difftime='undef'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='undef'
d_dlerror='undef'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='define'
d_dlerror='define'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='define'
d_dlerror='define'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='define'
d_dlerror='define'
d_dbl_dig='define'
d_dbminitproto='undef'
d_difftime='define'
+d_dir_dd_fd='undef'
d_dirfd='undef'
d_dirnamlen='define'
d_dlerror='define'