Skip to content

Commit 144978b

Browse files
committed
Merge from trunk-file-locking branch. Update with automake 1.11.3.
2 parents 500413e + 5f7982b commit 144978b

File tree

41 files changed

+1487
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1487
-472
lines changed

ConfigureChecks.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ check_include_files(sys/syscall.h LOG4CPLUS_HAVE_SYS_SYSCALL_H )
1515
check_include_files(sys/time.h LOG4CPLUS_HAVE_SYS_TIME_H )
1616
check_include_files(sys/timeb.h LOG4CPLUS_HAVE_SYS_TIMEB_H )
1717
check_include_files(sys/stat.h LOG4CPLUS_HAVE_SYS_STAT_H )
18+
check_include_files(sys/file.h LOG4CPLUS_HAVE_SYS_FILE_H )
1819
check_include_files(syslog.h LOG4CPLUS_HAVE_SYSLOG_H )
1920
check_include_files(netinet/in.h LOG4CPLUS_HAVE_NETINET_IN_H )
2021
check_include_files(netinet/tcp.h LOG4CPLUS_HAVE_NETINET_TCP_H )
2122
check_include_files(netdb.h LOG4CPLUS_HAVE_NETDB_H )
2223
check_include_files(unistd.h LOG4CPLUS_HAVE_UNISTD_H )
24+
check_include_files(fcntl.h LOG4CPLUS_HAVE_FCNTL_H )
2325
check_include_files(stdio.h LOG4CPLUS_HAVE_STDIO_H )
2426
check_include_files(stdarg.h LOG4CPLUS_HAVE_STDARG_H )
2527
check_include_files(stdlib.h LOG4CPLUS_HAVE_STDLIB_H )
@@ -43,6 +45,9 @@ check_function_exists(getpid LOG4CPLUS_HAVE_GETPID )
4345
check_function_exists(ftime LOG4CPLUS_HAVE_FTIME )
4446
check_function_exists(stat LOG4CPLUS_HAVE_STAT )
4547
check_function_exists(lstat LOG4CPLUS_HAVE_LSTAT )
48+
check_function_exists(fcntl LOG4CPLUS_HAVE_FCNTL )
49+
check_function_exists(lockf LOG4CPLUS_HAVE_FLOCK )
50+
check_function_exists(flock LOG4CPLUS_HAVE_LOCKF )
4651
check_function_exists(htons LOG4CPLUS_HAVE_HTONS )
4752
check_function_exists(ntohs LOG4CPLUS_HAVE_NTOHS )
4853
check_function_exists(htonl LOG4CPLUS_HAVE_HTONL )
@@ -131,6 +136,7 @@ path_to_have(LIBWS2_32)
131136
set(HAVE_STDLIB_H ${LOG4CPLUS_HAVE_STDLIB_H} )
132137
set(HAVE_SYS_STAT_H ${LOG4CPLUS_HAVE_SYS_STAT_H} )
133138
set(HAVE_SYS_TYPES_H ${LOG4CPLUS_HAVE_SYS_TYPES_H} )
139+
set(HAVE_SYS_FILE_H ${LOG4CPLUS_HAVE_SYS_FILE_H} )
134140
set(HAVE_UNISTD_H ${LOG4CPLUS_HAVE_UNISTD_H} )
135141

136142

@@ -146,6 +152,9 @@ set(HAVE_ICONV_OPEN ${LOG4CPLUS_HAVE_ICONV_OPEN} )
146152
set(HAVE_ICONV_CLOSE ${LOG4CPLUS_HAVE_ICONV_CLOSE} )
147153
set(HAVE_ICONV ${LOG4CPLUS_HAVE_ICONV} )
148154
set(HAVE_LSTAT ${LOG4CPLUS_HAVE_LSTAT} )
155+
set(HAVE_FCNTL ${LOG4CPLUS_HAVE_FCNTL} )
156+
set(HAVE_LOCKF ${LOG4CPLUS_HAVE_LOCKF} )
157+
set(HAVE_FLOCK ${LOG4CPLUS_HAVE_FLOCK} )
149158
set(HAVE_LOCALTIME_R ${LOG4CPLUS_HAVE_LOCALTIME_R} )
150159
set(HAVE_NTOHL ${LOG4CPLUS_HAVE_NTOHL} )
151160
set(HAVE_NTOHS ${LOG4CPLUS_HAVE_NTOHS} )

Makefile.in

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Makefile.in generated by automake 1.11.1 from Makefile.am.
1+
# Makefile.in generated by automake 1.11.3 from Makefile.am.
22
# @configure_input@
33

44
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5-
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6-
# Inc.
5+
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6+
# Foundation, Inc.
77
# This Makefile.in is free software; the Free Software Foundation
88
# gives unlimited permission to copy and/or distribute it,
99
# with or without modifications, as long as this notice is preserved.
@@ -102,6 +102,12 @@ am__nobase_list = $(am__nobase_strip_setup); \
102102
am__base_list = \
103103
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
104104
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
105+
am__uninstall_files_from_dir = { \
106+
test -z "$$files" \
107+
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
108+
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
109+
$(am__cd) "$$dir" && rm -f $$files; }; \
110+
}
105111
am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
106112
DATA = $(pkgconfig_DATA)
107113
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
@@ -116,9 +122,11 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
116122
distdir = $(PACKAGE)-$(VERSION)
117123
top_distdir = $(distdir)
118124
am__remove_distdir = \
119-
{ test ! -d "$(distdir)" \
120-
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
121-
&& rm -fr "$(distdir)"; }; }
125+
if test -d "$(distdir)"; then \
126+
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
127+
&& rm -rf "$(distdir)" \
128+
|| { sleep 5 && rm -rf "$(distdir)"; }; \
129+
else :; fi
122130
am__relativize = \
123131
dir0=`pwd`; \
124132
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
@@ -147,6 +155,8 @@ am__relativize = \
147155
DIST_ARCHIVES = $(distdir).tar.gz
148156
GZIP_ENV = --best
149157
distuninstallcheck_listfiles = find . -type f -print
158+
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
159+
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
150160
distcleancheck_listfiles = find . -type f -print
151161
ACLOCAL = @ACLOCAL@
152162
AMTAR = @AMTAR@
@@ -286,7 +296,7 @@ pkgconfig_DATA = log4cplus.pc
286296
all: all-recursive
287297

288298
.SUFFIXES:
289-
am--refresh:
299+
am--refresh: Makefile
290300
@:
291301
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
292302
@for dep in $?; do \
@@ -322,10 +332,8 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
322332
$(am__aclocal_m4_deps):
323333

324334
include/log4cplus/config.h: include/log4cplus/stamp-h1
325-
@if test ! -f $@; then \
326-
rm -f include/log4cplus/stamp-h1; \
327-
$(MAKE) $(AM_MAKEFLAGS) include/log4cplus/stamp-h1; \
328-
else :; fi
335+
@if test ! -f $@; then rm -f include/log4cplus/stamp-h1; else :; fi
336+
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) include/log4cplus/stamp-h1; else :; fi
329337

330338
include/log4cplus/stamp-h1: $(top_srcdir)/include/log4cplus/config.h.in $(top_builddir)/config.status
331339
@rm -f include/log4cplus/stamp-h1
@@ -336,10 +344,8 @@ $(top_srcdir)/include/log4cplus/config.h.in: $(am__configure_deps)
336344
touch $@
337345

338346
include/log4cplus/config/defines.hxx: include/log4cplus/config/stamp-h2
339-
@if test ! -f $@; then \
340-
rm -f include/log4cplus/config/stamp-h2; \
341-
$(MAKE) $(AM_MAKEFLAGS) include/log4cplus/config/stamp-h2; \
342-
else :; fi
347+
@if test ! -f $@; then rm -f include/log4cplus/config/stamp-h2; else :; fi
348+
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) include/log4cplus/config/stamp-h2; else :; fi
343349

344350
include/log4cplus/config/stamp-h2: $(top_srcdir)/include/log4cplus/config/defines.hxx.in $(top_builddir)/config.status
345351
@rm -f include/log4cplus/config/stamp-h2
@@ -375,9 +381,7 @@ uninstall-pkgconfigDATA:
375381
@$(NORMAL_UNINSTALL)
376382
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
377383
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
378-
test -n "$$files" || exit 0; \
379-
echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
380-
cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
384+
dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
381385

382386
# This directory's subdirectories are mostly independent; you can cd
383387
# into them and run `make' without going through this Makefile.
@@ -586,15 +590,19 @@ dist-gzip: distdir
586590
$(am__remove_distdir)
587591

588592
dist-bzip2: distdir
589-
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
593+
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
594+
$(am__remove_distdir)
595+
596+
dist-lzip: distdir
597+
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
590598
$(am__remove_distdir)
591599

592600
dist-lzma: distdir
593601
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
594602
$(am__remove_distdir)
595603

596604
dist-xz: distdir
597-
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
605+
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
598606
$(am__remove_distdir)
599607

600608
dist-tarZ: distdir
@@ -625,6 +633,8 @@ distcheck: dist
625633
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
626634
*.tar.lzma*) \
627635
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
636+
*.tar.lz*) \
637+
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
628638
*.tar.xz*) \
629639
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
630640
*.tar.Z*) \
@@ -644,6 +654,7 @@ distcheck: dist
644654
&& am__cwd=`pwd` \
645655
&& $(am__cd) $(distdir)/_build \
646656
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
657+
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
647658
$(DISTCHECK_CONFIGURE_FLAGS) \
648659
&& $(MAKE) $(AM_MAKEFLAGS) \
649660
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
@@ -672,8 +683,16 @@ distcheck: dist
672683
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
673684
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
674685
distuninstallcheck:
675-
@$(am__cd) '$(distuninstallcheck_dir)' \
676-
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
686+
@test -n '$(distuninstallcheck_dir)' || { \
687+
echo 'ERROR: trying to run $@ with an empty' \
688+
'$$(distuninstallcheck_dir)' >&2; \
689+
exit 1; \
690+
}; \
691+
$(am__cd) '$(distuninstallcheck_dir)' || { \
692+
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
693+
exit 1; \
694+
}; \
695+
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
677696
|| { echo "ERROR: files left after uninstall:" ; \
678697
if test -n "$(DESTDIR)"; then \
679698
echo " (check DESTDIR support)"; \
@@ -707,10 +726,15 @@ install-am: all-am
707726

708727
installcheck: installcheck-recursive
709728
install-strip:
710-
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
711-
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
712-
`test -z '$(STRIP)' || \
713-
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
729+
if test -z '$(STRIP)'; then \
730+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
731+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
732+
install; \
733+
else \
734+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
735+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
736+
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
737+
fi
714738
mostlyclean-generic:
715739

716740
clean-generic:
@@ -798,8 +822,8 @@ uninstall-am: uninstall-pkgconfigDATA
798822
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
799823
all all-am am--refresh check check-am clean clean-generic \
800824
clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
801-
dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
802-
distcheck distclean distclean-generic distclean-hdr \
825+
dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
826+
dist-zip distcheck distclean distclean-generic distclean-hdr \
803827
distclean-libtool distclean-tags distcleancheck distdir \
804828
distuninstallcheck dvi dvi-am html html-am info info-am \
805829
install install-am install-data install-data-am install-dvi \

0 commit comments

Comments
 (0)