File tree 4 files changed +16
-3
lines changed
4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ do_check=true
115
115
do_autoconf=false
116
116
do_git=false
117
117
118
- for arg; do
118
+ for arg in " $@ " ; do
119
119
case $arg in
120
120
--help)
121
121
exec echo " $0 : usage: $0 [--no-check] [target...]
Original file line number Diff line number Diff line change @@ -2004,6 +2004,8 @@ ARCH_INDEPENDENT_CONFIG_FILES([src/verbose.mk])
2004
2004
2005
2005
dnl Some other nice autoconf tests.
2006
2006
AC_PROG_INSTALL
2007
+ dnl use "gawk" where possible
2008
+ AC_PROG_AWK
2007
2009
dnl These are commented out, since gl_EARLY and/or Autoconf already does them.
2008
2010
dnl AC_PROG_MKDIR_P
2009
2011
dnl if test "x$RANLIB" = x; then
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ LDFLAGS = @LDFLAGS@
60
60
EXEEXT = @EXEEXT@
61
61
version = @version@
62
62
MKDIR_P = @MKDIR_P@
63
+ AWK = @AWK@
63
64
# Don't use LIBS. configure puts stuff in it that either shouldn't be
64
65
# linked with Emacs or is duplicated by the other stuff below.
65
66
# LIBS = @LIBS@
@@ -543,7 +544,7 @@ pdumper.o: dmpstruct.h
543
544
endif
544
545
dmpstruct.h : $(srcdir ) /dmpstruct.awk
545
546
dmpstruct.h : $(libsrc ) /make-fingerprint$(EXEEXT ) $(dmpstruct_headers )
546
- $(AM_V_GEN ) POSIXLY_CORRECT=1 awk -f $(srcdir ) /dmpstruct.awk \
547
+ $(AM_V_GEN ) POSIXLY_CORRECT=1 $( AWK ) -f $(srcdir ) /dmpstruct.awk \
547
548
$(dmpstruct_headers ) > $@
548
549
549
550
AUTO_DEPEND = @AUTO_DEPEND@
Original file line number Diff line number Diff line change @@ -79,7 +79,17 @@ dirent_namelen (struct dirent *dp)
79
79
}
80
80
81
81
#ifndef HAVE_STRUCT_DIRENT_D_TYPE
82
- enum { DT_UNKNOWN , DT_DIR , DT_LNK };
82
+ #if !defined (DT_UNKNOWN ) && !defined (DT_DIR ) && !defined (DT_LNK )
83
+ enum {
84
+ DT_UNKNOWN ,
85
+ DT_DIR ,
86
+ DT_LNK ,
87
+ };
88
+ #elif defined (DT_UNKNOWN ) && defined (DT_DIR ) && defined (DT_LNK )
89
+ /* Nothing to do here, all three are defined as macros. */
90
+ #elif defined (DT_UNKNOWN ) || defined (DT_DIR ) || defined (DT_LNK )
91
+ #error "Cannot determine DT_UNKNOWN, DT_DIR, DT_LNK"
92
+ #endif
83
93
#endif
84
94
85
95
/* Return the file type of DP. */
You can’t perform that action at this time.
0 commit comments