Codebase list libpam-mount / d3d0a7c
New upstream version 2.16 Jochen Sprickerhof 7 years ago
28 changed file(s) with 1488 addition(s) and 1221 deletion(s). Raw diff Collapse all Expand all
0 *.la
1 *.lo
2 *.o
3 .deps
4 .libs
5 Makefile
6 Makefile.in
7
8 /aclocal.m4
9 /autom4te*.cache
10 /build-aux/
11 /config.*
12 /configure
13 /libtool
14 /stamp-h1
15
16 /libcryptmount.pc
0 # Makefile.in generated by automake 1.12.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1616 # -*- Makefile -*-
1717
1818 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
19 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
20 am__make_running_with_option = \
21 case $${target_option-} in \
22 ?) ;; \
23 *) echo "am__make_running_with_option: internal error: invalid" \
24 "target option '$${target_option-}' specified" >&2; \
25 exit 1;; \
26 esac; \
27 has_opt=no; \
28 sane_makeflags=$$MAKEFLAGS; \
29 if $(am__is_gnu_make); then \
30 sane_makeflags=$$MFLAGS; \
31 else \
2232 case $$MAKEFLAGS in \
2333 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
34 bs=\\; \
35 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
36 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3337 esac; \
34 test $$am__dry = yes; \
35 }
38 fi; \
39 skip_next=no; \
40 strip_trailopt () \
41 { \
42 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
43 }; \
44 for flg in $$sane_makeflags; do \
45 test $$skip_next = yes && { skip_next=no; continue; }; \
46 case $$flg in \
47 *=*|--*) continue;; \
48 -*I) strip_trailopt 'I'; skip_next=yes;; \
49 -*I?*) strip_trailopt 'I';; \
50 -*O) strip_trailopt 'O'; skip_next=yes;; \
51 -*O?*) strip_trailopt 'O';; \
52 -*l) strip_trailopt 'l'; skip_next=yes;; \
53 -*l?*) strip_trailopt 'l';; \
54 -[dEDm]) skip_next=yes;; \
55 -[JT]) skip_next=yes;; \
56 esac; \
57 case $$flg in \
58 *$$target_option*) has_opt=yes; break;; \
59 esac; \
60 done; \
61 test $$has_opt = yes
62 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
63 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3664 pkgdatadir = $(datadir)/@PACKAGE@
3765 pkgincludedir = $(includedir)/@PACKAGE@
3866 pkglibdir = $(libdir)/@PACKAGE@
5280 build_triplet = @build@
5381 host_triplet = @host@
5482 subdir = .
55 DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
56 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
57 $(srcdir)/libcryptmount.pc.in $(top_srcdir)/build-aux/ar-lib \
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/configure $(am__configure_deps) \
85 $(srcdir)/config.h.in $(srcdir)/libcryptmount.pc.in COPYING \
86 build-aux/ar-lib build-aux/compile build-aux/config.guess \
87 build-aux/config.sub build-aux/install-sh build-aux/missing \
88 build-aux/ltmain.sh $(top_srcdir)/build-aux/ar-lib \
5889 $(top_srcdir)/build-aux/compile \
5990 $(top_srcdir)/build-aux/config.guess \
6091 $(top_srcdir)/build-aux/config.sub \
6192 $(top_srcdir)/build-aux/install-sh \
6293 $(top_srcdir)/build-aux/ltmain.sh \
63 $(top_srcdir)/build-aux/missing $(top_srcdir)/configure \
64 COPYING build-aux/ar-lib build-aux/compile \
65 build-aux/config.guess build-aux/config.sub \
66 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
94 $(top_srcdir)/build-aux/missing
6795 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6896 am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \
6997 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
77105 CONFIG_HEADER = config.h
78106 CONFIG_CLEAN_FILES = libcryptmount.pc
79107 CONFIG_CLEAN_VPATH_FILES =
108 AM_V_P = $(am__v_P_@AM_V@)
109 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
110 am__v_P_0 = false
111 am__v_P_1 = :
80112 AM_V_GEN = $(am__v_GEN_@AM_V@)
81113 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
82114 am__v_GEN_0 = @echo " GEN " $@;
115 am__v_GEN_1 =
83116 AM_V_at = $(am__v_at_@AM_V@)
84117 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
85118 am__v_at_0 = @
119 am__v_at_1 =
86120 SOURCES =
87121 DIST_SOURCES =
88 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
89 html-recursive info-recursive install-data-recursive \
90 install-dvi-recursive install-exec-recursive \
91 install-html-recursive install-info-recursive \
92 install-pdf-recursive install-ps-recursive install-recursive \
93 installcheck-recursive installdirs-recursive pdf-recursive \
94 ps-recursive uninstall-recursive
122 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
123 ctags-recursive dvi-recursive html-recursive info-recursive \
124 install-data-recursive install-dvi-recursive \
125 install-exec-recursive install-html-recursive \
126 install-info-recursive install-pdf-recursive \
127 install-ps-recursive install-recursive installcheck-recursive \
128 installdirs-recursive pdf-recursive ps-recursive \
129 tags-recursive uninstall-recursive
95130 am__can_run_installinfo = \
96131 case $$AM_UPDATE_INFO_DIR in \
97132 n|no|NO) false;; \
128163 DATA = $(pkgconfig_DATA)
129164 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
130165 distclean-recursive maintainer-clean-recursive
131 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
132 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
166 am__recursive_targets = \
167 $(RECURSIVE_TARGETS) \
168 $(RECURSIVE_CLEAN_TARGETS) \
169 $(am__extra_recursive_targets)
170 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
133171 cscope distdir dist dist-all distcheck
172 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
173 $(LISP)config.h.in
174 # Read a list of newline-separated strings from the standard input,
175 # and print each of them once, without duplicates. Input order is
176 # *not* preserved.
177 am__uniquify_input = $(AWK) '\
178 BEGIN { nonempty = 0; } \
179 { items[$$0] = 1; nonempty = 1; } \
180 END { if (nonempty) { for (i in items) print i; }; } \
181 '
182 # Make sure the list of sources is unique. This is necessary because,
183 # e.g., the same source file might be shared among _SOURCES variables
184 # for different programs/libraries.
185 am__define_uniq_tagged_files = \
186 list='$(am__tagged_files)'; \
187 unique=`for i in $$list; do \
188 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
189 done | $(am__uniquify_input)`
134190 ETAGS = etags
135191 CTAGS = ctags
136192 CSCOPE = cscope
422478 # (1) if the variable is set in 'config.status', edit 'config.status'
423479 # (which will cause the Makefiles to be regenerated when you run 'make');
424480 # (2) otherwise, pass the desired values on the 'make' command line.
425 $(RECURSIVE_TARGETS):
426 @fail= failcom='exit 1'; \
427 for f in x $$MAKEFLAGS; do \
428 case $$f in \
429 *=* | --[!k]*);; \
430 *k*) failcom='fail=yes';; \
431 esac; \
432 done; \
481 $(am__recursive_targets):
482 @fail=; \
483 if $(am__make_keepgoing); then \
484 failcom='fail=yes'; \
485 else \
486 failcom='exit 1'; \
487 fi; \
433488 dot_seen=no; \
434489 target=`echo $@ | sed s/-recursive//`; \
435 list='$(SUBDIRS)'; for subdir in $$list; do \
490 case "$@" in \
491 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
492 *) list='$(SUBDIRS)' ;; \
493 esac; \
494 for subdir in $$list; do \
436495 echo "Making $$target in $$subdir"; \
437496 if test "$$subdir" = "."; then \
438497 dot_seen=yes; \
447506 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
448507 fi; test -z "$$fail"
449508
450 $(RECURSIVE_CLEAN_TARGETS):
451 @fail= failcom='exit 1'; \
452 for f in x $$MAKEFLAGS; do \
453 case $$f in \
454 *=* | --[!k]*);; \
455 *k*) failcom='fail=yes';; \
456 esac; \
457 done; \
458 dot_seen=no; \
459 case "$@" in \
460 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
461 *) list='$(SUBDIRS)' ;; \
462 esac; \
463 rev=''; for subdir in $$list; do \
464 if test "$$subdir" = "."; then :; else \
465 rev="$$subdir $$rev"; \
466 fi; \
467 done; \
468 rev="$$rev ."; \
469 target=`echo $@ | sed s/-recursive//`; \
470 for subdir in $$rev; do \
471 echo "Making $$target in $$subdir"; \
472 if test "$$subdir" = "."; then \
473 local_target="$$target-am"; \
474 else \
475 local_target="$$target"; \
476 fi; \
477 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
478 || eval $$failcom; \
479 done && test -z "$$fail"
480 tags-recursive:
481 list='$(SUBDIRS)'; for subdir in $$list; do \
482 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
483 done
484 ctags-recursive:
485 list='$(SUBDIRS)'; for subdir in $$list; do \
486 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
487 done
488 cscopelist-recursive:
489 list='$(SUBDIRS)'; for subdir in $$list; do \
490 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
491 done
492
493 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
494 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
495 unique=`for i in $$list; do \
496 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
497 done | \
498 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
499 END { if (nonempty) { for (i in files) print i; }; }'`; \
500 mkid -fID $$unique
501 tags: TAGS
502
503 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
504 $(TAGS_FILES) $(LISP)
509 ID: $(am__tagged_files)
510 $(am__define_uniq_tagged_files); mkid -fID $$unique
511 tags: tags-recursive
512 TAGS: tags
513
514 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
505515 set x; \
506516 here=`pwd`; \
507517 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
517527 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
518528 fi; \
519529 done; \
520 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
521 unique=`for i in $$list; do \
522 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
523 done | \
524 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
525 END { if (nonempty) { for (i in files) print i; }; }'`; \
530 $(am__define_uniq_tagged_files); \
526531 shift; \
527532 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
528533 test -n "$$unique" || unique=$$empty_fix; \
534539 $$unique; \
535540 fi; \
536541 fi
537 ctags: CTAGS
538 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
539 $(TAGS_FILES) $(LISP)
540 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
541 unique=`for i in $$list; do \
542 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
543 done | \
544 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
545 END { if (nonempty) { for (i in files) print i; }; }'`; \
542 ctags: ctags-recursive
543
544 CTAGS: ctags
545 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
546 $(am__define_uniq_tagged_files); \
546547 test -z "$(CTAGS_ARGS)$$unique" \
547548 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
548549 $$unique
551552 here=`$(am__cd) $(top_builddir) && pwd` \
552553 && $(am__cd) $(top_srcdir) \
553554 && gtags -i $(GTAGS_ARGS) "$$here"
554
555555 cscope: cscope.files
556556 test ! -s cscope.files \
557557 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
558
559558 clean-cscope:
560559 -rm -f cscope.files
561
562 cscope.files: clean-cscope cscopelist-recursive cscopelist
563
564 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
565 list='$(SOURCES) $(HEADERS) $(LISP)'; \
560 cscope.files: clean-cscope cscopelist
561 cscopelist: cscopelist-recursive
562
563 cscopelist-am: $(am__tagged_files)
564 list='$(am__tagged_files)'; \
566565 case "$(srcdir)" in \
567566 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
568567 *) sdir=$(subdir)/$(srcdir) ;; \
695694 *.zip*) \
696695 unzip $(distdir).zip ;;\
697696 esac
698 chmod -R a-w $(distdir); chmod a+w $(distdir)
699 mkdir $(distdir)/_build
700 mkdir $(distdir)/_inst
697 chmod -R a-w $(distdir)
698 chmod u+w $(distdir)
699 mkdir $(distdir)/_build $(distdir)/_inst
701700 chmod a-w $(distdir)
702701 test -d $(distdir)/_build || exit 0; \
703702 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
869868
870869 uninstall-am: uninstall-pkgconfigDATA
871870
872 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
873 cscopelist-recursive ctags-recursive install-am \
874 install-data-am install-strip tags-recursive
875
876 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
877 all all-am am--refresh check check-am clean clean-cscope \
878 clean-generic clean-libtool cscope cscopelist \
879 cscopelist-recursive ctags ctags-recursive dist dist-all \
880 dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \
881 dist-zip distcheck distclean distclean-generic distclean-hdr \
882 distclean-libtool distclean-tags distcleancheck distdir \
883 distuninstallcheck dvi dvi-am html html-am info info-am \
884 install install-am install-data install-data-am \
871 .MAKE: $(am__recursive_targets) all install-am install-data-am \
872 install-strip
873
874 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
875 am--refresh check check-am clean clean-cscope clean-generic \
876 clean-libtool cscope cscopelist-am ctags ctags-am dist \
877 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
878 dist-xz dist-zip distcheck distclean distclean-generic \
879 distclean-hdr distclean-libtool distclean-tags distcleancheck \
880 distdir distuninstallcheck dvi dvi-am html html-am info \
881 info-am install install-am install-data install-data-am \
885882 install-data-hook install-dvi install-dvi-am install-exec \
886883 install-exec-am install-html install-html-am install-info \
887884 install-info-am install-man install-pdf install-pdf-am \
889886 installcheck installcheck-am installdirs installdirs-am \
890887 maintainer-clean maintainer-clean-generic mostlyclean \
891888 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
892 tags tags-recursive uninstall uninstall-am \
893 uninstall-pkgconfigDATA
889 tags tags-am uninstall uninstall-am uninstall-pkgconfigDATA
894890
895891
896892 ${pkgconfig_DATA}: ${top_builddir}/config.status
0 # generated automatically by aclocal 1.12.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1516 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
218219 m4_popdef([pkg_description])
219220 ]) dnl PKG_NOARCH_INSTALLDIR
220221
221 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
222 #
223 # This file is free software; the Free Software Foundation
224 # gives unlimited permission to copy and/or distribute it,
225 # with or without modifications, as long as this notice is preserved.
226
227 # serial 8
222
223 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
224 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
225 # -------------------------------------------
226 # Retrieves the value of the pkg-config variable for the given module.
227 AC_DEFUN([PKG_CHECK_VAR],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
229 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
230
231 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
232 AS_VAR_COPY([$1], [pkg_cv_][$1])
233
234 AS_VAR_IF([$1], [""], [$5], [$4])dnl
235 ])# PKG_CHECK_VAR
236
237 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
238 #
239 # This file is free software; the Free Software Foundation
240 # gives unlimited permission to copy and/or distribute it,
241 # with or without modifications, as long as this notice is preserved.
228242
229243 # AM_AUTOMAKE_VERSION(VERSION)
230244 # ----------------------------
232246 # generated from the m4 files accompanying Automake X.Y.
233247 # (This private macro should not be called outside this file.)
234248 AC_DEFUN([AM_AUTOMAKE_VERSION],
235 [am__api_version='1.12'
249 [am__api_version='1.13'
236250 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
237251 dnl require some minimum version. Point them to the right macro.
238 m4_if([$1], [1.12.1], [],
252 m4_if([$1], [1.13.4], [],
239253 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
240254 ])
241255
251265 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
252266 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
253267 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
254 [AM_AUTOMAKE_VERSION([1.12.1])dnl
268 [AM_AUTOMAKE_VERSION([1.13.4])dnl
255269 m4_ifndef([AC_AUTOCONF_VERSION],
256270 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
257271 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
258272
259 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
260 #
261 # This file is free software; the Free Software Foundation
262 # gives unlimited permission to copy and/or distribute it,
263 # with or without modifications, as long as this notice is preserved.
264
265 # serial 1
273 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
274 #
275 # This file is free software; the Free Software Foundation
276 # gives unlimited permission to copy and/or distribute it,
277 # with or without modifications, as long as this notice is preserved.
266278
267279 # AM_PROG_AR([ACT-IF-FAIL])
268280 # -------------------------
319331
320332 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
321333
322 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
323 #
324 # This file is free software; the Free Software Foundation
325 # gives unlimited permission to copy and/or distribute it,
326 # with or without modifications, as long as this notice is preserved.
327
328 # serial 2
334 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
329339
330340 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
331341 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
374384
375385 # AM_CONDITIONAL -*- Autoconf -*-
376386
377 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
378 #
379 # This file is free software; the Free Software Foundation
380 # gives unlimited permission to copy and/or distribute it,
381 # with or without modifications, as long as this notice is preserved.
382
383 # serial 10
387 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
388 #
389 # This file is free software; the Free Software Foundation
390 # gives unlimited permission to copy and/or distribute it,
391 # with or without modifications, as long as this notice is preserved.
384392
385393 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
386394 # -------------------------------------
407415 Usually this means the macro was only invoked conditionally.]])
408416 fi])])
409417
410 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
411 #
412 # This file is free software; the Free Software Foundation
413 # gives unlimited permission to copy and/or distribute it,
414 # with or without modifications, as long as this notice is preserved.
415
416 # serial 17
418 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
419 #
420 # This file is free software; the Free Software Foundation
421 # gives unlimited permission to copy and/or distribute it,
422 # with or without modifications, as long as this notice is preserved.
423
417424
418425 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
419426 # written in clear, in which case automake, when reading aclocal.m4,
599606
600607 # Generate code to set up dependency tracking. -*- Autoconf -*-
601608
602 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
603 #
604 # This file is free software; the Free Software Foundation
605 # gives unlimited permission to copy and/or distribute it,
606 # with or without modifications, as long as this notice is preserved.
607
608 # serial 6
609 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
610 #
611 # This file is free software; the Free Software Foundation
612 # gives unlimited permission to copy and/or distribute it,
613 # with or without modifications, as long as this notice is preserved.
614
609615
610616 # _AM_OUTPUT_DEPENDENCY_COMMANDS
611617 # ------------------------------
612618 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
613619 [{
614 # Autoconf 2.62 quotes --file arguments for eval, but not when files
620 # Older Autoconf quotes --file arguments for eval, but not when files
615621 # are listed without --file. Let's play safe and only enable the eval
616622 # if we detect the quoting.
617623 case $CONFIG_FILES in
640646 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
641647 test -z "$DEPDIR" && continue
642648 am__include=`sed -n 's/^am__include = //p' < "$mf"`
643 test -z "am__include" && continue
649 test -z "$am__include" && continue
644650 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
645651 # Find all dependency output files, they are included files with
646652 # $(DEPDIR) in their names. We invoke sed twice because it is the
676682
677683 # Do all the work for Automake. -*- Autoconf -*-
678684
679 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
680 #
681 # This file is free software; the Free Software Foundation
682 # gives unlimited permission to copy and/or distribute it,
683 # with or without modifications, as long as this notice is preserved.
684
685 # serial 19
685 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
686 #
687 # This file is free software; the Free Software Foundation
688 # gives unlimited permission to copy and/or distribute it,
689 # with or without modifications, as long as this notice is preserved.
686690
687691 # This macro actually does too much. Some checks are only needed if
688692 # your package does certain things. But this isn't really a big deal.
699703 # arguments mandatory, and then we can depend on a new Autoconf
700704 # release and drop the old call support.
701705 AC_DEFUN([AM_INIT_AUTOMAKE],
702 [AC_PREREQ([2.62])dnl
706 [AC_PREREQ([2.65])dnl
703707 dnl Autoconf wants to disallow AM_ names. We explicitly allow
704708 dnl the ones we care about.
705709 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
729733 dnl Distinguish between old-style and new-style calls.
730734 m4_ifval([$2],
731735 [AC_DIAGNOSE([obsolete],
732 [$0: two- and three-arguments forms are deprecated. For more info, see:
733 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
736 [$0: two- and three-arguments forms are deprecated.])
734737 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
735738 AC_SUBST([PACKAGE], [$1])dnl
736739 AC_SUBST([VERSION], [$2])],
758761 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
759762 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
760763 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
761 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
764 # For better backward compatibility. To be removed once Automake 1.9.x
765 # dies out for good. For more background, see:
766 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
767 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
768 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
762769 # We need awk for the "check" target. The system "awk" is bad on
763770 # some platforms.
764771 AC_REQUIRE([AC_PROG_AWK])dnl
780787 [_AM_DEPENDENCIES([OBJC])],
781788 [m4_define([AC_PROG_OBJC],
782789 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
783 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
784 dnl but we still cater to Autoconf 2.62.
785 m4_ifdef([AC_PROG_OBJCXX],
786 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
790 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
787791 [_AM_DEPENDENCIES([OBJCXX])],
788792 [m4_define([AC_PROG_OBJCXX],
789 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
790 ])
791 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
792 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
793 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
794 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
793 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
794 ])
795 AC_REQUIRE([AM_SILENT_RULES])dnl
796 dnl The testsuite driver may need to know about EXEEXT, so add the
797 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
798 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
795799 AC_CONFIG_COMMANDS_PRE(dnl
796800 [m4_provide_if([_AM_COMPILER_EXEEXT],
797801 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
826830 done
827831 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
828832
829 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
830 #
831 # This file is free software; the Free Software Foundation
832 # gives unlimited permission to copy and/or distribute it,
833 # with or without modifications, as long as this notice is preserved.
834
835 # serial 8
833 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
834 #
835 # This file is free software; the Free Software Foundation
836 # gives unlimited permission to copy and/or distribute it,
837 # with or without modifications, as long as this notice is preserved.
836838
837839 # AM_PROG_INSTALL_SH
838840 # ------------------
849851 fi
850852 AC_SUBST([install_sh])])
851853
852 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
853 #
854 # This file is free software; the Free Software Foundation
855 # gives unlimited permission to copy and/or distribute it,
856 # with or without modifications, as long as this notice is preserved.
857
858 # serial 2
854 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
855 #
856 # This file is free software; the Free Software Foundation
857 # gives unlimited permission to copy and/or distribute it,
858 # with or without modifications, as long as this notice is preserved.
859859
860860 # Check whether the underlying file-system supports filenames
861861 # with a leading dot. For instance MS-DOS doesn't.
872872
873873 # Check to see how 'make' treats includes. -*- Autoconf -*-
874874
875 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
876 #
877 # This file is free software; the Free Software Foundation
878 # gives unlimited permission to copy and/or distribute it,
879 # with or without modifications, as long as this notice is preserved.
880
881 # serial 5
875 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
876 #
877 # This file is free software; the Free Software Foundation
878 # gives unlimited permission to copy and/or distribute it,
879 # with or without modifications, as long as this notice is preserved.
882880
883881 # AM_MAKE_INCLUDE()
884882 # -----------------
922920 rm -f confinc confmf
923921 ])
924922
925 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
926 #
927 # This file is free software; the Free Software Foundation
928 # gives unlimited permission to copy and/or distribute it,
929 # with or without modifications, as long as this notice is preserved.
930
931 # serial 6
923 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
924 #
925 # This file is free software; the Free Software Foundation
926 # gives unlimited permission to copy and/or distribute it,
927 # with or without modifications, as long as this notice is preserved.
932928
933929 # AM_PROG_CC_C_O
934930 # --------------
958954
959955 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
960956
961 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
962 #
963 # This file is free software; the Free Software Foundation
964 # gives unlimited permission to copy and/or distribute it,
965 # with or without modifications, as long as this notice is preserved.
966
967 # serial 7
957 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
958 #
959 # This file is free software; the Free Software Foundation
960 # gives unlimited permission to copy and/or distribute it,
961 # with or without modifications, as long as this notice is preserved.
968962
969963 # AM_MISSING_PROG(NAME, PROGRAM)
970964 # ------------------------------
973967 $1=${$1-"${am_missing_run}$2"}
974968 AC_SUBST($1)])
975969
976
977970 # AM_MISSING_HAS_RUN
978971 # ------------------
979 # Define MISSING if not defined so far and test if it supports --run.
980 # If it does, set am_missing_run to use it, otherwise, to nothing.
972 # Define MISSING if not defined so far and test if it is modern enough.
973 # If it is, set am_missing_run to use it, otherwise, to nothing.
981974 AC_DEFUN([AM_MISSING_HAS_RUN],
982975 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
983976 AC_REQUIRE_AUX_FILE([missing])dnl
990983 esac
991984 fi
992985 # Use eval to expand $SHELL
993 if eval "$MISSING --run true"; then
994 am_missing_run="$MISSING --run "
986 if eval "$MISSING --is-lightweight"; then
987 am_missing_run="$MISSING "
995988 else
996989 am_missing_run=
997990 AC_MSG_WARN(['missing' script is too old or missing])
1000993
1001994 # Helper functions for option handling. -*- Autoconf -*-
1002995
1003 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1004 #
1005 # This file is free software; the Free Software Foundation
1006 # gives unlimited permission to copy and/or distribute it,
1007 # with or without modifications, as long as this notice is preserved.
1008
1009 # serial 6
996 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
997 #
998 # This file is free software; the Free Software Foundation
999 # gives unlimited permission to copy and/or distribute it,
1000 # with or without modifications, as long as this notice is preserved.
10101001
10111002 # _AM_MANGLE_OPTION(NAME)
10121003 # -----------------------
10311022 AC_DEFUN([_AM_IF_OPTION],
10321023 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10331024
1034 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1035 #
1036 # This file is free software; the Free Software Foundation
1037 # gives unlimited permission to copy and/or distribute it,
1038 # with or without modifications, as long as this notice is preserved.
1039
1040 # serial 1
1025 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1026 #
1027 # This file is free software; the Free Software Foundation
1028 # gives unlimited permission to copy and/or distribute it,
1029 # with or without modifications, as long as this notice is preserved.
10411030
10421031 # AM_RUN_LOG(COMMAND)
10431032 # -------------------
10521041
10531042 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10541043
1055 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1056 #
1057 # This file is free software; the Free Software Foundation
1058 # gives unlimited permission to copy and/or distribute it,
1059 # with or without modifications, as long as this notice is preserved.
1060
1061 # serial 9
1044 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1045 #
1046 # This file is free software; the Free Software Foundation
1047 # gives unlimited permission to copy and/or distribute it,
1048 # with or without modifications, as long as this notice is preserved.
10621049
10631050 # AM_SANITY_CHECK
10641051 # ---------------
11351122 rm -f conftest.file
11361123 ])
11371124
1138 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
1139 #
1140 # This file is free software; the Free Software Foundation
1141 # gives unlimited permission to copy and/or distribute it,
1142 # with or without modifications, as long as this notice is preserved.
1143
1144 # serial 3
1125 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1126 #
1127 # This file is free software; the Free Software Foundation
1128 # gives unlimited permission to copy and/or distribute it,
1129 # with or without modifications, as long as this notice is preserved.
11451130
11461131 # AM_SILENT_RULES([DEFAULT])
11471132 # --------------------------
11971182 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11981183 ])
11991184
1200 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1201 #
1202 # This file is free software; the Free Software Foundation
1203 # gives unlimited permission to copy and/or distribute it,
1204 # with or without modifications, as long as this notice is preserved.
1205
1206 # serial 2
1185 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1186 #
1187 # This file is free software; the Free Software Foundation
1188 # gives unlimited permission to copy and/or distribute it,
1189 # with or without modifications, as long as this notice is preserved.
12071190
12081191 # AM_PROG_INSTALL_STRIP
12091192 # ---------------------
12271210 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12281211 AC_SUBST([INSTALL_STRIP_PROGRAM])])
12291212
1230 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
1231 #
1232 # This file is free software; the Free Software Foundation
1233 # gives unlimited permission to copy and/or distribute it,
1234 # with or without modifications, as long as this notice is preserved.
1235
1236 # serial 3
1213 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1214 #
1215 # This file is free software; the Free Software Foundation
1216 # gives unlimited permission to copy and/or distribute it,
1217 # with or without modifications, as long as this notice is preserved.
12371218
12381219 # _AM_SUBST_NOTMAKE(VARIABLE)
12391220 # ---------------------------
12481229
12491230 # Check how to create a tarball. -*- Autoconf -*-
12501231
1251 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
1252 #
1253 # This file is free software; the Free Software Foundation
1254 # gives unlimited permission to copy and/or distribute it,
1255 # with or without modifications, as long as this notice is preserved.
1256
1257 # serial 3
1232 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1233 #
1234 # This file is free software; the Free Software Foundation
1235 # gives unlimited permission to copy and/or distribute it,
1236 # with or without modifications, as long as this notice is preserved.
12581237
12591238 # _AM_PROG_TAR(FORMAT)
12601239 # --------------------
12691248 # Substitute a variable $(am__untar) that extract such
12701249 # a tarball read from stdin.
12711250 # $(am__untar) < result.tar
1251 #
12721252 AC_DEFUN([_AM_PROG_TAR],
12731253 [# Always define AMTAR for backward compatibility. Yes, it's still used
12741254 # in the wild :-( We should find a proper way to deprecate it ...
12751255 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1256
1257 # We'll loop over all known methods to create a tar archive until one works.
1258 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1259
12761260 m4_if([$1], [v7],
1277 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1278 [m4_case([$1], [ustar],, [pax],,
1279 [m4_fatal([Unknown tar format])])
1280 AC_MSG_CHECKING([how to create a $1 tar archive])
1281 # Loop over all known methods to create a tar archive until one works.
1282 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1283 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1284 # Do not fold the above two line into one, because Tru64 sh and
1285 # Solaris sh will not grok spaces in the rhs of '-'.
1286 for _am_tool in $_am_tools
1287 do
1288 case $_am_tool in
1289 gnutar)
1290 for _am_tar in tar gnutar gtar;
1291 do
1292 AM_RUN_LOG([$_am_tar --version]) && break
1293 done
1294 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1295 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1296 am__untar="$_am_tar -xf -"
1297 ;;
1298 plaintar)
1299 # Must skip GNU tar: if it does not support --format= it doesn't create
1300 # ustar tarball either.
1301 (tar --version) >/dev/null 2>&1 && continue
1302 am__tar='tar chf - "$$tardir"'
1303 am__tar_='tar chf - "$tardir"'
1304 am__untar='tar xf -'
1305 ;;
1306 pax)
1307 am__tar='pax -L -x $1 -w "$$tardir"'
1308 am__tar_='pax -L -x $1 -w "$tardir"'
1309 am__untar='pax -r'
1310 ;;
1311 cpio)
1312 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1313 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1314 am__untar='cpio -i -H $1 -d'
1315 ;;
1316 none)
1317 am__tar=false
1318 am__tar_=false
1319 am__untar=false
1320 ;;
1321 esac
1322
1323 # If the value was cached, stop now. We just wanted to have am__tar
1324 # and am__untar set.
1325 test -n "${am_cv_prog_tar_$1}" && break
1326
1327 # tar/untar a dummy directory, and stop if the command works
1261 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1262
1263 [m4_case([$1],
1264 [ustar],
1265 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1266 # There is notably a 21 bits limit for the UID and the GID. In fact,
1267 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1268 # and bug#13588).
1269 am_max_uid=2097151 # 2^21 - 1
1270 am_max_gid=$am_max_uid
1271 # The $UID and $GID variables are not portable, so we need to resort
1272 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1273 # below are definitely unexpected, so allow the users to see them
1274 # (that is, avoid stderr redirection).
1275 am_uid=`id -u || echo unknown`
1276 am_gid=`id -g || echo unknown`
1277 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1278 if test $am_uid -le $am_max_uid; then
1279 AC_MSG_RESULT([yes])
1280 else
1281 AC_MSG_RESULT([no])
1282 _am_tools=none
1283 fi
1284 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1285 if test $am_gid -le $am_max_gid; then
1286 AC_MSG_RESULT([yes])
1287 else
1288 AC_MSG_RESULT([no])
1289 _am_tools=none
1290 fi],
1291
1292 [pax],
1293 [],
1294
1295 [m4_fatal([Unknown tar format])])
1296
1297 AC_MSG_CHECKING([how to create a $1 tar archive])
1298
1299 # Go ahead even if we have the value already cached. We do so because we
1300 # need to set the values for the 'am__tar' and 'am__untar' variables.
1301 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1302
1303 for _am_tool in $_am_tools; do
1304 case $_am_tool in
1305 gnutar)
1306 for _am_tar in tar gnutar gtar; do
1307 AM_RUN_LOG([$_am_tar --version]) && break
1308 done
1309 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1310 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1311 am__untar="$_am_tar -xf -"
1312 ;;
1313 plaintar)
1314 # Must skip GNU tar: if it does not support --format= it doesn't create
1315 # ustar tarball either.
1316 (tar --version) >/dev/null 2>&1 && continue
1317 am__tar='tar chf - "$$tardir"'
1318 am__tar_='tar chf - "$tardir"'
1319 am__untar='tar xf -'
1320 ;;
1321 pax)
1322 am__tar='pax -L -x $1 -w "$$tardir"'
1323 am__tar_='pax -L -x $1 -w "$tardir"'
1324 am__untar='pax -r'
1325 ;;
1326 cpio)
1327 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1328 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1329 am__untar='cpio -i -H $1 -d'
1330 ;;
1331 none)
1332 am__tar=false
1333 am__tar_=false
1334 am__untar=false
1335 ;;
1336 esac
1337
1338 # If the value was cached, stop now. We just wanted to have am__tar
1339 # and am__untar set.
1340 test -n "${am_cv_prog_tar_$1}" && break
1341
1342 # tar/untar a dummy directory, and stop if the command works.
1343 rm -rf conftest.dir
1344 mkdir conftest.dir
1345 echo GrepMe > conftest.dir/file
1346 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1347 rm -rf conftest.dir
1348 if test -s conftest.tar; then
1349 AM_RUN_LOG([$am__untar <conftest.tar])
1350 AM_RUN_LOG([cat conftest.dir/file])
1351 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1352 fi
1353 done
13281354 rm -rf conftest.dir
1329 mkdir conftest.dir
1330 echo GrepMe > conftest.dir/file
1331 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1332 rm -rf conftest.dir
1333 if test -s conftest.tar; then
1334 AM_RUN_LOG([$am__untar <conftest.tar])
1335 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1336 fi
1337 done
1338 rm -rf conftest.dir
1339
1340 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1341 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1355
1356 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1357 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1358
13421359 AC_SUBST([am__tar])
13431360 AC_SUBST([am__untar])
13441361 ]) # _AM_PROG_TAR
33 me=ar-lib
44 scriptversion=2012-03-01.08; # UTC
55
6 # Copyright (C) 2010-2012 Free Software Foundation, Inc.
6 # Copyright (C) 2010-2013 Free Software Foundation, Inc.
77 # Written by Peter Rosin <peda@lysator.liu.se>.
88 #
99 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-03-05.13; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
111111 lib=$dir/$lib.lib
112112 break
113113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
114119 done
115120 IFS=$save_IFS
116121
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
2119 # As a special exception to the GNU General Public License, if you
2220 # distribute this file as part of a program that contains a
2321 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26
27 # Originally written by Per Bothner. Please send patches (context
28 # diff format) to <config-patches@gnu.org> and include a ChangeLog
29 # entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3025 #
31 # This script attempts to guess a canonical system name similar to
32 # config.sub. If it succeeds, it prints the system name on stdout, and
33 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner.
3427 #
3528 # You can get the latest version of this script from:
3629 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
3733
3834 me=`echo "$0" | sed -e 's,.*/,,'`
3935
5349 GNU config.guess ($timestamp)
5450
5551 Originally written by Per Bothner.
56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
52 Copyright 1992-2013 Free Software Foundation, Inc.
5953
6054 This is free software; see the source for copying conditions. There is NO
6155 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
136130 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
137131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
138132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
152 ;;
153 esac
139154
140155 case "${UNAME_MACHINE}" in
141156 i?86)
208223 # contains redundant information, the shorter form:
209224 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
210225 echo "${machine}-${os}${release}"
226 exit ;;
227 *:Bitrig:*:*)
228 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
229 echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE}
211230 exit ;;
212231 *:OpenBSD:*:*)
213232 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
311330 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
312331 echo arm-acorn-riscix${UNAME_RELEASE}
313332 exit ;;
314 arm:riscos:*:*|arm:RISCOS:*:*)
333 arm*:riscos:*:*|arm*:RISCOS:*:*)
315334 echo arm-${VENDOR}-riscos
316335 exit ;;
317336 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
810829 i*:CYGWIN*:*)
811830 echo ${UNAME_MACHINE}-pc-cygwin
812831 exit ;;
832 *:MINGW64*:*)
833 echo ${UNAME_MACHINE}-pc-mingw64
834 exit ;;
813835 *:MINGW*:*)
814836 echo ${UNAME_MACHINE}-pc-mingw32
815837 exit ;;
861883 exit ;;
862884 *:GNU:*:*)
863885 # the GNU system
864 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
886 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
865887 exit ;;
866888 *:GNU/*:*:*)
867889 # other systems with GNU libc and userland
868 echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
890 echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
869891 exit ;;
870892 i*86:Minix:*:*)
871893 echo ${UNAME_MACHINE}-pc-minix
872894 exit ;;
873895 aarch64:Linux:*:*)
874 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
896 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
875897 exit ;;
876898 aarch64_be:Linux:*:*)
877899 UNAME_MACHINE=aarch64_be
878 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
900 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
879901 exit ;;
880902 alpha:Linux:*:*)
881903 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
888910 EV68*) UNAME_MACHINE=alphaev68 ;;
889911 esac
890912 objdump --private-headers /bin/sh | grep -q ld.so.1
891 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
892 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
913 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
914 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
915 exit ;;
916 arc:Linux:*:* | arceb:Linux:*:*)
917 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
893918 exit ;;
894919 arm*:Linux:*:*)
895920 eval $set_cc_for_build
896921 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
897922 | grep -q __ARM_EABI__
898923 then
899 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
924 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
900925 else
901926 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
902927 | grep -q __ARM_PCS_VFP
903928 then
904 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
929 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi
905930 else
906 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabihf
931 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf
907932 fi
908933 fi
909934 exit ;;
910935 avr32*:Linux:*:*)
911 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
936 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
912937 exit ;;
913938 cris:Linux:*:*)
914 echo ${UNAME_MACHINE}-axis-linux-gnu
939 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
915940 exit ;;
916941 crisv32:Linux:*:*)
917 echo ${UNAME_MACHINE}-axis-linux-gnu
942 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
918943 exit ;;
919944 frv:Linux:*:*)
920 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
945 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
921946 exit ;;
922947 hexagon:Linux:*:*)
923 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
948 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
924949 exit ;;
925950 i*86:Linux:*:*)
926 LIBC=gnu
927 eval $set_cc_for_build
928 sed 's/^ //' << EOF >$dummy.c
929 #ifdef __dietlibc__
930 LIBC=dietlibc
931 #endif
932 EOF
933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
934 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
951 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
935952 exit ;;
936953 ia64:Linux:*:*)
937 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
954 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
938955 exit ;;
939956 m32r*:Linux:*:*)
940 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
957 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
941958 exit ;;
942959 m68*:Linux:*:*)
943 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
960 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
944961 exit ;;
945962 mips:Linux:*:* | mips64:Linux:*:*)
946963 eval $set_cc_for_build
959976 #endif
960977 EOF
961978 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
962 test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
979 test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; }
963980 ;;
981 or1k:Linux:*:*)
982 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
983 exit ;;
964984 or32:Linux:*:*)
965 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
985 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
966986 exit ;;
967987 padre:Linux:*:*)
968 echo sparc-${VENDOR}-linux-gnu
988 echo sparc-${VENDOR}-linux-${LIBC}
969989 exit ;;
970990 parisc64:Linux:*:* | hppa64:Linux:*:*)
971 echo hppa64-${VENDOR}-linux-gnu
991 echo hppa64-${VENDOR}-linux-${LIBC}
972992 exit ;;
973993 parisc:Linux:*:* | hppa:Linux:*:*)
974994 # Look for CPU level
975995 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
976 PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
977 PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
978 *) echo hppa-${VENDOR}-linux-gnu ;;
996 PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;;
997 PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;;
998 *) echo hppa-${VENDOR}-linux-${LIBC} ;;
979999 esac
9801000 exit ;;
9811001 ppc64:Linux:*:*)
982 echo powerpc64-${VENDOR}-linux-gnu
1002 echo powerpc64-${VENDOR}-linux-${LIBC}
9831003 exit ;;
9841004 ppc:Linux:*:*)
985 echo powerpc-${VENDOR}-linux-gnu
1005 echo powerpc-${VENDOR}-linux-${LIBC}
1006 exit ;;
1007 ppc64le:Linux:*:*)
1008 echo powerpc64le-${VENDOR}-linux-${LIBC}
1009 exit ;;
1010 ppcle:Linux:*:*)
1011 echo powerpcle-${VENDOR}-linux-${LIBC}
9861012 exit ;;
9871013 s390:Linux:*:* | s390x:Linux:*:*)
988 echo ${UNAME_MACHINE}-ibm-linux
1014 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
9891015 exit ;;
9901016 sh64*:Linux:*:*)
991 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1017 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
9921018 exit ;;
9931019 sh*:Linux:*:*)
994 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1020 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
9951021 exit ;;
9961022 sparc:Linux:*:* | sparc64:Linux:*:*)
997 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1023 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
9981024 exit ;;
9991025 tile*:Linux:*:*)
1000 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1026 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
10011027 exit ;;
10021028 vax:Linux:*:*)
1003 echo ${UNAME_MACHINE}-dec-linux-gnu
1029 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
10041030 exit ;;
10051031 x86_64:Linux:*:*)
1006 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1032 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
10071033 exit ;;
10081034 xtensa*:Linux:*:*)
1009 echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1035 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
10101036 exit ;;
10111037 i*86:DYNIX/ptx:4*:*)
10121038 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
12101236 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12111237 echo i586-pc-haiku
12121238 exit ;;
1239 x86_64:Haiku:*:*)
1240 echo x86_64-${VENDOR}-haiku
1241 exit ;;
12131242 SX-4:SUPER-UX:*:*)
12141243 echo sx4-nec-superux${UNAME_RELEASE}
12151244 exit ;;
12361265 exit ;;
12371266 *:Darwin:*:*)
12381267 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1239 case $UNAME_PROCESSOR in
1240 i386)
1241 eval $set_cc_for_build
1242 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1243 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1244 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1245 grep IS_64BIT_ARCH >/dev/null
1246 then
1247 UNAME_PROCESSOR="x86_64"
1248 fi
1249 fi ;;
1250 unknown) UNAME_PROCESSOR=powerpc ;;
1251 esac
1268 eval $set_cc_for_build
1269 if test "$UNAME_PROCESSOR" = unknown ; then
1270 UNAME_PROCESSOR=powerpc
1271 fi
1272 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1273 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1274 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1275 grep IS_64BIT_ARCH >/dev/null
1276 then
1277 case $UNAME_PROCESSOR in
1278 i386) UNAME_PROCESSOR=x86_64 ;;
1279 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1280 esac
1281 fi
1282 fi
12521283 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12531284 exit ;;
12541285 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12651296 NEO-?:NONSTOP_KERNEL:*:*)
12661297 echo neo-tandem-nsk${UNAME_RELEASE}
12671298 exit ;;
1268 NSE-?:NONSTOP_KERNEL:*:*)
1299 NSE-*:NONSTOP_KERNEL:*:*)
12691300 echo nse-tandem-nsk${UNAME_RELEASE}
12701301 exit ;;
12711302 NSR-?:NONSTOP_KERNEL:*:*)
13381369 echo ${UNAME_MACHINE}-${VENDOR}-esx
13391370 exit ;;
13401371 esac
1341
1342 #echo '(No uname command or uname output not recognized.)' 1>&2
1343 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13441372
13451373 eval $set_cc_for_build
13461374 cat >$dummy.c <<EOF
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-04-18'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-04-24'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
2317 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2519 # As a special exception to the GNU General Public License, if you
2620 # distribute this file as part of a program that contains a
2721 # configuration script generated by Autoconf, you may include it under
28 # the same distribution terms that you use for the rest of that program.
29
30
31 # Please send patches to <config-patches@gnu.org>. Submit a context
32 # diff and a properly formatted GNU ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3328 #
3429 # Configuration subroutine to validate and canonicalize a configuration type.
3530 # Supply the specified configuration type as an argument.
7267 version="\
7368 GNU config.sub ($timestamp)
7469
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
70 Copyright 1992-2013 Free Software Foundation, Inc.
7871
7972 This is free software; see the source for copying conditions. There is NO
8073 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
123116 case $maybe_os in
124117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126119 knetbsd*-gnu* | netbsd*-gnu* | \
127120 kopensolaris*-gnu* | \
128121 storm-chaos* | os2-emx* | rtmk-nova*)
155148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
156149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
157150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
158 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray | -microblaze*)
159152 os=
160153 basic_machine=$1
161154 ;;
258251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
259252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
260253 | am33_2.0 \
261 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
262 | be32 | be64 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
263258 | bfin \
264259 | c4x | clipper \
265260 | d10v | d30v | dlx | dsp16xx \
272267 | le32 | le64 \
273268 | lm32 \
274269 | m32c | m32r | m32rle | m68000 | m68k | m88k \
275 | maxq | mb | microblaze | mcore | mep | metag \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
276271 | mips | mipsbe | mipseb | mipsel | mipsle \
277272 | mips16 \
278273 | mips64 | mips64el \
290285 | mipsisa64r2 | mipsisa64r2el \
291286 | mipsisa64sb1 | mipsisa64sb1el \
292287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
293289 | mipstx39 | mipstx39el \
294290 | mn10200 | mn10300 \
295291 | moxie \
296292 | mt \
297293 | msp430 \
298294 | nds32 | nds32le | nds32be \
299 | nios | nios2 \
295 | nios | nios2 | nios2eb | nios2el \
300296 | ns16k | ns32k \
301297 | open8 \
302 | or32 \
298 | or1k | or32 \
303299 | pdp10 | pdp11 | pj | pjl \
304300 | powerpc | powerpc64 | powerpc64le | powerpcle \
305301 | pyramid \
369365 | aarch64-* | aarch64_be-* \
370366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
371367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
372 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
373369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
374370 | avr-* | avr32-* \
375371 | be32-* | be64-* \
388384 | lm32-* \
389385 | m32c-* | m32r-* | m32rle-* \
390386 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
391 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
387 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
392389 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
393390 | mips16-* \
394391 | mips64-* | mips64el-* \
406403 | mipsisa64r2-* | mipsisa64r2el-* \
407404 | mipsisa64sb1-* | mipsisa64sb1el-* \
408405 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
409407 | mipstx39-* | mipstx39el-* \
410408 | mmix-* \
411409 | mt-* \
412410 | msp430-* \
413411 | nds32-* | nds32le-* | nds32be-* \
414 | nios-* | nios2-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
415413 | none-* | np1-* | ns16k-* | ns32k-* \
416414 | open8-* \
417415 | orion-* \
787785 basic_machine=ns32k-utek
788786 os=-sysv
789787 ;;
790 microblaze)
788 microblaze*)
791789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
792794 ;;
793795 mingw32)
794796 basic_machine=i386-pc
10181020 basic_machine=i586-unknown
10191021 os=-pw32
10201022 ;;
1021 rdos)
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
10221028 basic_machine=i386-pc
10231029 os=-rdos
10241030 ;;
13451351 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13461352 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13471353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1348 | -sym* | -kopensolaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
13491355 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13501356 | -aos* | -aros* \
13511357 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13521358 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13531359 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1354 | -openbsd* | -solidbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
13551361 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13561362 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13571363 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13581364 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13591365 | -chorusos* | -chorusrdb* | -cegcc* \
13601366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1361 | -mingw32* | -linux-gnu* | -linux-android* \
1362 | -linux-newlib* | -linux-uclibc* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13631369 | -uxpv* | -beos* | -mpeix* | -udk* \
13641370 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13651371 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
14911497 -aros*)
14921498 os=-aros
14931499 ;;
1494 -kaos*)
1495 os=-kaos
1496 ;;
14971500 -zvmoe)
14981501 os=-zvmoe
14991502 ;;
15421545 c4x-* | tic4x-*)
15431546 os=-coff
15441547 ;;
1548 hexagon-*)
1549 os=-elf
1550 ;;
15451551 tic54x-*)
15461552 os=-coff
15471553 ;;
15801586 os=-elf
15811587 ;;
15821588 mips*-*)
1589 os=-elf
1590 ;;
1591 or1k-*)
15831592 os=-elf
15841593 ;;
15851594 or32-*)
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2012-03-27.16; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
2626
2727 case $1 in
2828 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3232 -h | --h*)
3333 cat <<\EOF
3434 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
5555 ;;
5656 esac
5757
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
58106 # A tabulation character.
59107 tab=' '
60108 # A newline character.
61109 nl='
62110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
63117
64118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
65119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
72126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
73127
74128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
75132
76133 # Some modes work just like other modes, but use different flags. We
77134 # parameterize here, but still list the modes in the big case below,
84141 fi
85142
86143 if test "$depmode" = dashXmstdout; then
87 # This is just like dashmstdout with a different argument.
88 dashmflag=-xM
89 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
90147 fi
91148
92149 cygpath_u="cygpath -u -f -"
93150 if test "$depmode" = msvcmsys; then
94 # This is just like msvisualcpp but w/o cygpath translation.
95 # Just convert the backslash-escaped backslashes to single forward
96 # slashes to satisfy depend.m4
97 cygpath_u='sed s,\\\\,/,g'
98 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
99156 fi
100157
101158 if test "$depmode" = msvc7msys; then
102 # This is just like msvc7 but w/o cygpath translation.
103 # Just convert the backslash-escaped backslashes to single forward
104 # slashes to satisfy depend.m4
105 cygpath_u='sed s,\\\\,/,g'
106 depmode=msvc7
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
107164 fi
108165
109166 if test "$depmode" = xlc; then
110 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
111 gccflag=-qmakedep=gcc,-MF
112 depmode=gcc
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
113170 fi
114171
115172 case "$depmode" in
132189 done
133190 "$@"
134191 stat=$?
135 if test $stat -eq 0; then :
136 else
192 if test $stat -ne 0; then
137193 rm -f "$tmpdepfile"
138194 exit $stat
139195 fi
141197 ;;
142198
143199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
144203 ## There are various ways to get dependency output from gcc. Here's
145204 ## why we pick this rather obscure method:
146205 ## - Don't want to use -MD because we'd like the dependencies to end
147206 ## up in a subdir. Having to rename by hand is ugly.
148207 ## (We might end up doing this anyway to support other compilers.)
149208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
150 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
151211 ## - Using -M directly means running the compiler twice (even worse
152212 ## than renaming).
153213 if test -z "$gccflag"; then
155215 fi
156216 "$@" -Wp,"$gccflag$tmpdepfile"
157217 stat=$?
158 if test $stat -eq 0; then :
159 else
218 if test $stat -ne 0; then
160219 rm -f "$tmpdepfile"
161220 exit $stat
162221 fi
163222 rm -f "$depfile"
164223 echo "$object : \\" > "$depfile"
165 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
166 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
167226 sed -e 's/^[^:]*: / /' \
168227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
169228 ## This next piece of magic avoids the "deleted header file" problem.
172231 ## typically no way to rebuild the header). We avoid this by adding
173232 ## dummy dependencies for each header file. Too bad gcc doesn't do
174233 ## this for us directly.
175 tr ' ' "$nl" < "$tmpdepfile" |
176234 ## Some versions of gcc put a space before the ':'. On the theory
177235 ## that the space means something, we add a space to the output as
178236 ## well. hp depmode also adds that space, but also prefixes the VPATH
179237 ## to the object. Take care to not repeat it in the output.
180238 ## Some versions of the HPUX 10.20 sed can't process this invocation
181239 ## correctly. Breaking it into two sed invocations is a workaround.
182 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
183 | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
184243 rm -f "$tmpdepfile"
185244 ;;
186245
198257 "$@" -MDupdate "$tmpdepfile"
199258 fi
200259 stat=$?
201 if test $stat -eq 0; then :
202 else
260 if test $stat -ne 0; then
203261 rm -f "$tmpdepfile"
204262 exit $stat
205263 fi
207265
208266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
209267 echo "$object : \\" > "$depfile"
210
211268 # Clip off the initial element (the dependent). Don't try to be
212269 # clever and replace this with sed code, as IRIX sed won't handle
213270 # lines with more than a fixed number of characters (4096 in
215272 # the IRIX cc adds comments like '#:fec' to the end of the
216273 # dependency line.
217274 tr ' ' "$nl" < "$tmpdepfile" \
218 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
219 tr "$nl" ' ' >> "$depfile"
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
220277 echo >> "$depfile"
221
222278 # The second pass generates a dummy entry for each header file.
223279 tr ' ' "$nl" < "$tmpdepfile" \
224 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
225 >> "$depfile"
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
226282 else
227 # The sourcefile does not contain any dependencies, so just
228 # store a dummy comment line, to avoid errors with the Makefile
229 # "include basename.Plo" scheme.
230 echo "#dummy" > "$depfile"
283 make_dummy_depfile
231284 fi
232285 rm -f "$tmpdepfile"
233286 ;;
245298 # current directory. Also, the AIX compiler puts '$object:' at the
246299 # start of each line; $object doesn't have directory information.
247300 # Version 6 uses the directory in both cases.
248 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
249 test "x$dir" = "x$object" && dir=
250 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
251303 if test "$libtool" = yes; then
252304 tmpdepfile1=$dir$base.u
253305 tmpdepfile2=$base.u
260312 "$@" -M
261313 fi
262314 stat=$?
263
264 if test $stat -eq 0; then :
265 else
315 if test $stat -ne 0; then
266316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
267317 exit $stat
268318 fi
271321 do
272322 test -f "$tmpdepfile" && break
273323 done
274 if test -f "$tmpdepfile"; then
275 # Each line is of the form 'foo.o: dependent.h'.
276 # Do two passes, one to just change these to
277 # '$object: dependent.h' and one to simply 'dependent.h:'.
278 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
279 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
280 else
281 # The sourcefile does not contain any dependencies, so just
282 # store a dummy comment line, to avoid errors with the Makefile
283 # "include basename.Plo" scheme.
284 echo "#dummy" > "$depfile"
285 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
286355 rm -f "$tmpdepfile"
287356 ;;
288357
289 icc)
290 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
291 # However on
292 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
293 # ICC 7.0 will fill foo.d with something like
294 # foo.o: sub/foo.c
295 # foo.o: sub/foo.h
296 # which is wrong. We want
297 # sub/foo.o: sub/foo.c
298 # sub/foo.o: sub/foo.h
299 # sub/foo.c:
300 # sub/foo.h:
301 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
302368 # foo.o: sub/foo.c sub/foo.h
303 # and will wrap long lines using '\':
369 # and will wrap long lines using '\' :
304370 # foo.o: sub/foo.c ... \
305371 # sub/foo.h ... \
306372 # ...
307 # tcc 0.9.26 (FIXME still under development at the moment of writing)
308 # will emit a similar output, but also prepend the continuation lines
309 # with horizontal tabulation characters.
310 "$@" -MD -MF "$tmpdepfile"
311 stat=$?
312 if test $stat -eq 0; then :
313 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
314418 rm -f "$tmpdepfile"
315419 exit $stat
316420 fi
317421 rm -f "$depfile"
318 # Each line is of the form 'foo.o: dependent.h',
319 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
320424 # Do two passes, one to just change these to
321 # '$object: dependent.h' and one to simply 'dependent.h:'.
322 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
323 < "$tmpdepfile" > "$depfile"
324 sed '
325 s/[ '"$tab"'][ '"$tab"']*/ /g
326 s/^ *//
327 s/ *\\*$//
328 s/^[^:]*: *//
329 /^$/d
330 /:$/d
331 s/$/ :/
332 ' < "$tmpdepfile" >> "$depfile"
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
333431 rm -f "$tmpdepfile"
334432 ;;
335433
340438 # 'foo.d', which lands next to the object file, wherever that
341439 # happens to be.
342440 # Much of this is similar to the tru64 case; see comments there.
343 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
344 test "x$dir" = "x$object" && dir=
345 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
346443 if test "$libtool" = yes; then
347444 tmpdepfile1=$dir$base.d
348445 tmpdepfile2=$dir.libs/$base.d
353450 "$@" +Maked
354451 fi
355452 stat=$?
356 if test $stat -eq 0; then :
357 else
453 if test $stat -ne 0; then
358454 rm -f "$tmpdepfile1" "$tmpdepfile2"
359455 exit $stat
360456 fi
364460 test -f "$tmpdepfile" && break
365461 done
366462 if test -f "$tmpdepfile"; then
367 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
368464 # Add 'dependent.h:' lines.
369465 sed -ne '2,${
370 s/^ *//
371 s/ \\*$//
372 s/$/:/
373 p
374 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
375471 else
376 echo "#dummy" > "$depfile"
472 make_dummy_depfile
377473 fi
378474 rm -f "$tmpdepfile" "$tmpdepfile2"
379475 ;;
380476
381477 tru64)
382 # The Tru64 compiler uses -MD to generate dependencies as a side
383 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
384 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
385 # dependencies in 'foo.d' instead, so we check for that too.
386 # Subdirectories are respected.
387 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
388 test "x$dir" = "x$object" && dir=
389 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
390
391 if test "$libtool" = yes; then
392 # With Tru64 cc, shared objects can also be used to make a
393 # static library. This mechanism is used in libtool 1.4 series to
394 # handle both shared and static libraries in a single compilation.
395 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
396 #
397 # With libtool 1.5 this exception was removed, and libtool now
398 # generates 2 separate objects for the 2 libraries. These two
399 # compilations output dependencies in $dir.libs/$base.o.d and
400 # in $dir$base.o.d. We have to check for both files, because
401 # one of the two compilations can be disabled. We should prefer
402 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
403 # automatically cleaned when .libs/ is deleted, while ignoring
404 # the former would cause a distcleancheck panic.
405 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
406 tmpdepfile2=$dir$base.o.d # libtool 1.5
407 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
408 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
409 "$@" -Wc,-MD
410 else
411 tmpdepfile1=$dir$base.o.d
412 tmpdepfile2=$dir$base.d
413 tmpdepfile3=$dir$base.d
414 tmpdepfile4=$dir$base.d
415 "$@" -MD
416 fi
417
418 stat=$?
419 if test $stat -eq 0; then :
420 else
421 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
422 exit $stat
423 fi
424
425 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
426 do
427 test -f "$tmpdepfile" && break
428 done
429 if test -f "$tmpdepfile"; then
430 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
431 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
432 else
433 echo "#dummy" > "$depfile"
434 fi
435 rm -f "$tmpdepfile"
436 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
437518
438519 msvc7)
439520 if test "$libtool" = yes; then
444525 "$@" $showIncludes > "$tmpdepfile"
445526 stat=$?
446527 grep -v '^Note: including file: ' "$tmpdepfile"
447 if test "$stat" = 0; then :
448 else
528 if test $stat -ne 0; then
449529 rm -f "$tmpdepfile"
450530 exit $stat
451531 fi
471551 G
472552 p
473553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
474555 rm -f "$tmpdepfile"
475556 ;;
476557
522603 # in the target name. This is to cope with DOS-style filenames:
523604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
524605 "$@" $dashmflag |
525 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
526607 rm -f "$depfile"
527608 cat < "$tmpdepfile" > "$depfile"
528 tr ' ' "$nl" < "$tmpdepfile" | \
529 ## Some versions of the HPUX 10.20 sed can't process this invocation
530 ## correctly. Breaking it into two sed invocations is a workaround.
531 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
532614 rm -f "$tmpdepfile"
533615 ;;
534616
581663 # makedepend may prepend the VPATH from the source file name to the object.
582664 # No need to regex-escape $object, excess matching of '.' is harmless.
583665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
584 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
585 ## Some versions of the HPUX 10.20 sed can't process this invocation
586 ## correctly. Breaking it into two sed invocations is a workaround.
587 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
588672 rm -f "$tmpdepfile" "$tmpdepfile".bak
589673 ;;
590674
620704 esac
621705 done
622706
623 "$@" -E |
624 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
625 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
626 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
627711 rm -f "$depfile"
628712 echo "$object : \\" > "$depfile"
629713 cat < "$tmpdepfile" >> "$depfile"
655739 shift
656740 ;;
657741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
658 set fnord "$@"
659 shift
660 shift
661 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
662746 *)
663 set fnord "$@" "$arg"
664 shift
665 shift
666 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
667751 esac
668752 done
669753 "$@" -E 2>/dev/null |
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2012-01-06.18; # UTC
4
5 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
6 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
2828 exit 1
2929 fi
3030
31 run=:
32 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
33 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
34
35 # In the cases where this matters, 'missing' is being run in the
36 # srcdir already.
37 if test -f configure.ac; then
38 configure_ac=configure.ac
39 else
40 configure_ac=configure.in
41 fi
42
43 msg="missing on your system"
44
4531 case $1 in
46 --run)
47 # Try to run requested program, and just exit if it succeeds.
48 run=
49 shift
50 "$@" && exit 0
51 # Exit code 63 means version mismatch. This often happens
52 # when the user try to use an ancient version of a tool on
53 # a file that requires a minimum version. In this case we
54 # we should proceed has if the program had been absent, or
55 # if --run hadn't been passed.
56 if test $? = 63; then
57 run=:
58 msg="probably too old"
59 fi
60 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6143
6244 -h|--h|--he|--hel|--help)
6345 echo "\
6446 $0 [OPTION]... PROGRAM [ARGUMENT]...
6547
66 Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
67 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6850
6951 Options:
7052 -h, --help display this help and exit
7153 -v, --version output version information and exit
72 --run try to run the given command, and emulate it if it fails
7354
7455 Supported PROGRAM values:
75 aclocal touch file 'aclocal.m4'
76 autoconf touch file 'configure'
77 autoheader touch file 'config.h.in'
78 autom4te touch the output file, or create a stub one
79 automake touch all 'Makefile.in' files
80 bison create 'y.tab.[ch]', if possible, from existing .[ch]
81 flex create 'lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create 'lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 yacc create 'y.tab.[ch]', if possible, from existing .[ch]
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
8658
8759 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
8860 'g' are ignored when checking the name.
9769 ;;
9870
9971 -*)
100 echo 1>&2 "$0: Unknown '$1' option"
72 echo 1>&2 "$0: unknown '$1' option"
10173 echo 1>&2 "Try '$0 --help' for more information"
10274 exit 1
10375 ;;
10476
10577 esac
10678
107 # normalize program name to check for.
108 program=`echo "$1" | sed '
109 s/^gnu-//; t
110 s/^gnu//; t
111 s/^g//; t'`
112
113 # Now exit if we have it, but it failed. Also exit now if we
114 # don't have it and --version was passed (most likely to detect
115 # the program). This is about non-GNU programs, so use $1 not
116 # $program.
117 case $1 in
118 lex*|yacc*)
119 # Not GNU programs, they don't have --version.
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running '$TOOL --version' or '$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case $program in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: '$1' is $msg. You should only need it if
141 you modified 'acinclude.m4' or '${configure_ac}'. You might want
142 to install the Automake and Perl packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf*)
148 echo 1>&2 "\
149 WARNING: '$1' is $msg. You should only need it if
150 you modified '${configure_ac}'. You might want to install the
151 Autoconf and GNU m4 packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader*)
157 echo 1>&2 "\
158 WARNING: '$1' is $msg. You should only need it if
159 you modified 'acconfig.h' or '${configure_ac}'. You might want
160 to install the Autoconf and GNU m4 packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case $f in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: '$1' is $msg. You should only need it if
178 you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'.
179 You might want to install the Automake and Perl packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te*)
187 echo 1>&2 "\
188 WARNING: '$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get '$1' as part of Autoconf from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n "$sed_output"`
195 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison*|yacc*)
210 echo 1>&2 "\
211 WARNING: '$1' $msg. You should only need it if
212 you modified a '.y' file. You may need the Bison package
213 in order for those modifications to take effect. You can get
214 Bison from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if test $# -ne 1; then
217 eval LASTARG=\${$#}
218 case $LASTARG in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if test -f "$SRCFILE"; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if test -f "$SRCFILE"; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if test ! -f y.tab.h; then
232 echo >y.tab.h
233 fi
234 if test ! -f y.tab.c; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex*|flex*)
240 echo 1>&2 "\
241 WARNING: '$1' is $msg. You should only need it if
242 you modified a '.l' file. You may need the Flex package
243 in order for those modifications to take effect. You can get
244 Flex from any GNU archive site."
245 rm -f lex.yy.c
246 if test $# -ne 1; then
247 eval LASTARG=\${$#}
248 case $LASTARG in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if test -f "$SRCFILE"; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if test ! -f lex.yy.c; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man*)
263 echo 1>&2 "\
264 WARNING: '$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 Help2man package in order for those modifications to take
267 effect. You can get Help2man from any GNU archive site."
268
269 file=`echo "$*" | sed -n "$sed_output"`
270 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
271 if test -f "$file"; then
272 touch $file
273 else
274 test -z "$file" || exec >$file
275 echo ".ab help2man is required to generate this page"
276 exit $?
277 fi
278 ;;
279
280 makeinfo*)
281 echo 1>&2 "\
282 WARNING: '$1' is $msg. You should only need it if
283 you modified a '.texi' or '.texinfo' file, or any other file
284 indirectly affecting the aspect of the manual. The spurious
285 call might also be the consequence of using a buggy 'make' (AIX,
286 DU, IRIX). You might want to install the Texinfo package or
287 the GNU make package. Grab either from any GNU archive site."
288 # The file to touch is that specified with -o ...
289 file=`echo "$*" | sed -n "$sed_output"`
290 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
291 if test -z "$file"; then
292 # ... or it is the one specified with @setfilename ...
293 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
294 file=`sed -n '
295 /^@setfilename/{
296 s/.* \([^ ]*\) *$/\1/
297 p
298 q
299 }' $infile`
300 # ... or it is derived from the source name (dir/f.texi becomes f.info)
301 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
302 fi
303 # If the file does not exist, the user really needs makeinfo;
304 # let's fail without touching anything.
305 test -f $file || exit 1
306 touch $file
307 ;;
308
309 *)
310 echo 1>&2 "\
311 WARNING: '$1' is needed, and is $msg.
312 You might have modified some files without having the
313 proper tools for further handling them. Check the 'README' file,
314 it often tells you about the needed prerequisites for installing
315 this package. You may also peek at any GNU archive site, in case
316 some other package would contain this missing '$1' program."
317 exit 1
318 ;;
319 esac
320
321 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
322207
323208 # Local variables:
324209 # eval: (add-hook 'write-file-hooks 'time-stamp)
0 # Makefile.in generated by automake 1.12.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1616 # -*- Makefile -*-
1717
1818 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
19 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
20 am__make_running_with_option = \
21 case $${target_option-} in \
22 ?) ;; \
23 *) echo "am__make_running_with_option: internal error: invalid" \
24 "target option '$${target_option-}' specified" >&2; \
25 exit 1;; \
26 esac; \
27 has_opt=no; \
28 sane_makeflags=$$MAKEFLAGS; \
29 if $(am__is_gnu_make); then \
30 sane_makeflags=$$MFLAGS; \
31 else \
2232 case $$MAKEFLAGS in \
2333 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
34 bs=\\; \
35 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
36 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3337 esac; \
34 test $$am__dry = yes; \
35 }
38 fi; \
39 skip_next=no; \
40 strip_trailopt () \
41 { \
42 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
43 }; \
44 for flg in $$sane_makeflags; do \
45 test $$skip_next = yes && { skip_next=no; continue; }; \
46 case $$flg in \
47 *=*|--*) continue;; \
48 -*I) strip_trailopt 'I'; skip_next=yes;; \
49 -*I?*) strip_trailopt 'I';; \
50 -*O) strip_trailopt 'O'; skip_next=yes;; \
51 -*O?*) strip_trailopt 'O';; \
52 -*l) strip_trailopt 'l'; skip_next=yes;; \
53 -*l?*) strip_trailopt 'l';; \
54 -[dEDm]) skip_next=yes;; \
55 -[JT]) skip_next=yes;; \
56 esac; \
57 case $$flg in \
58 *$$target_option*) has_opt=yes; break;; \
59 esac; \
60 done; \
61 test $$has_opt = yes
62 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
63 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3664 pkgdatadir = $(datadir)/@PACKAGE@
3765 pkgincludedir = $(includedir)/@PACKAGE@
3866 pkglibdir = $(libdir)/@PACKAGE@
5280 build_triplet = @build@
5381 host_triplet = @host@
5482 subdir = config
55 DIST_COMMON = $(am__dist_dtd_DATA_DIST) \
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(am__dist_dtd_DATA_DIST) $(dist_security_DATA) \
5685 $(am__dist_selinux_fc_DATA_DIST) \
57 $(am__dist_selinux_te_DATA_DIST) $(dist_security_DATA) \
58 $(srcdir)/Makefile.am $(srcdir)/Makefile.in
86 $(am__dist_selinux_te_DATA_DIST)
5987 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6088 am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \
6189 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
6795 CONFIG_HEADER = $(top_builddir)/config.h
6896 CONFIG_CLEAN_FILES =
6997 CONFIG_CLEAN_VPATH_FILES =
98 AM_V_P = $(am__v_P_@AM_V@)
99 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
100 am__v_P_0 = false
101 am__v_P_1 = :
70102 AM_V_GEN = $(am__v_GEN_@AM_V@)
71103 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
72104 am__v_GEN_0 = @echo " GEN " $@;
105 am__v_GEN_1 =
73106 AM_V_at = $(am__v_at_@AM_V@)
74107 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
75108 am__v_at_0 = @
109 am__v_at_1 =
76110 SOURCES =
77111 DIST_SOURCES =
78112 am__can_run_installinfo = \
114148 am__dist_selinux_te_DATA_DIST = pam_mount_macros.te
115149 DATA = $(dist_dtd_DATA) $(dist_security_DATA) $(dist_selinux_fc_DATA) \
116150 $(dist_selinux_te_DATA)
151 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
117152 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
118153 ACLOCAL = @ACLOCAL@
119154 AMTAR = @AMTAR@
383418 @list='$(dist_selinux_te_DATA)'; test -n "$(selinux_tedir)" || list=; \
384419 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
385420 dir='$(DESTDIR)$(selinux_tedir)'; $(am__uninstall_files_from_dir)
386 tags: TAGS
387 TAGS:
388
389 ctags: CTAGS
390 CTAGS:
421 tags TAGS:
422
423 ctags CTAGS:
391424
392425 cscope cscopelist:
393426
530563 .MAKE: install-am install-strip
531564
532565 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
533 distclean distclean-generic distclean-libtool distdir dvi \
534 dvi-am html html-am info info-am install install-am \
535 install-data install-data-am install-dist_dtdDATA \
536 install-dist_securityDATA install-dist_selinux_fcDATA \
537 install-dist_selinux_teDATA install-dvi install-dvi-am \
538 install-exec install-exec-am install-html install-html-am \
539 install-info install-info-am install-man install-pdf \
540 install-pdf-am install-ps install-ps-am install-strip \
541 installcheck installcheck-am installdirs maintainer-clean \
542 maintainer-clean-generic mostlyclean mostlyclean-generic \
543 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
544 uninstall-dist_dtdDATA uninstall-dist_securityDATA \
545 uninstall-dist_selinux_fcDATA uninstall-dist_selinux_teDATA
566 cscopelist-am ctags-am distclean distclean-generic \
567 distclean-libtool distdir dvi dvi-am html html-am info info-am \
568 install install-am install-data install-data-am \
569 install-dist_dtdDATA install-dist_securityDATA \
570 install-dist_selinux_fcDATA install-dist_selinux_teDATA \
571 install-dvi install-dvi-am install-exec install-exec-am \
572 install-html install-html-am install-info install-info-am \
573 install-man install-pdf install-pdf-am install-ps \
574 install-ps-am install-strip installcheck installcheck-am \
575 installdirs maintainer-clean maintainer-clean-generic \
576 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
577 ps ps-am tags-am uninstall uninstall-am uninstall-dist_dtdDATA \
578 uninstall-dist_securityDATA uninstall-dist_selinux_fcDATA \
579 uninstall-dist_selinux_teDATA
546580
547581
548582 .PHONY: validate-config
3232 <mntoptions require="nosuid,nodev" />
3333
3434 <!-- requires ofl from hxtools to be present -->
35 <logout wait="0" hup="0" term="0" kill="0" />
35 <logout wait="0" hup="no" term="no" kill="no" />
3636
3737
3838 <!-- pam_mount parameters: Volume-related -->
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for pam_mount 2.14.
2 # Generated by GNU Autoconf 2.69 for pam_mount 2.16.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
586586 # Identity of this package.
587587 PACKAGE_NAME='pam_mount'
588588 PACKAGE_TARNAME='pam_mount'
589 PACKAGE_VERSION='2.14'
590 PACKAGE_STRING='pam_mount 2.14'
589 PACKAGE_VERSION='2.16'
590 PACKAGE_STRING='pam_mount 2.16'
591591 PACKAGE_BUGREPORT=''
592592 PACKAGE_URL=''
593593
13671367 # Omit some internal or obsolete options to make the list less imposing.
13681368 # This message is too long to be a string in the A/UX 3.1 sh.
13691369 cat <<_ACEOF
1370 \`configure' configures pam_mount 2.14 to adapt to many kinds of systems.
1370 \`configure' configures pam_mount 2.16 to adapt to many kinds of systems.
13711371
13721372 Usage: $0 [OPTION]... [VAR=VALUE]...
13731373
14371437
14381438 if test -n "$ac_init_help"; then
14391439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of pam_mount 2.14:";;
1440 short | recursive ) echo "Configuration of pam_mount 2.16:";;
14411441 esac
14421442 cat <<\_ACEOF
14431443
15771577 test -n "$ac_init_help" && exit $ac_status
15781578 if $ac_init_version; then
15791579 cat <<\_ACEOF
1580 pam_mount configure 2.14
1580 pam_mount configure 2.16
15811581 generated by GNU Autoconf 2.69
15821582
15831583 Copyright (C) 2012 Free Software Foundation, Inc.
19991999 This file contains any messages produced by compilers while
20002000 running configure, to aid debugging if configure makes a mistake.
20012001
2002 It was created by pam_mount $as_me 2.14, which was
2002 It was created by pam_mount $as_me 2.16, which was
20032003 generated by GNU Autoconf 2.69. Invocation command line was
20042004
20052005 $ $0 $@
23472347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23482348
23492349
2350 PACKAGE_RELDATE="2013-08-27"
2350 PACKAGE_RELDATE="2016-09-23"
23512351
23522352 ac_aux_dir=
23532353 for ac_dir in build-aux "$srcdir"/build-aux; do
24742474
24752475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24762476
2477 am__api_version='1.12'
2477 am__api_version='1.13'
24782478
24792479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24802480 $as_echo_n "checking whether build environment is sane... " >&6; }
25652565 esac
25662566 fi
25672567 # Use eval to expand $SHELL
2568 if eval "$MISSING --run true"; then
2569 am_missing_run="$MISSING --run "
2568 if eval "$MISSING --is-lightweight"; then
2569 am_missing_run="$MISSING "
25702570 else
25712571 am_missing_run=
25722572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
28062806 fi
28072807 rmdir .tst 2>/dev/null
28082808
2809 # Check whether --enable-silent-rules was given.
2810 if test "${enable_silent_rules+set}" = set; then :
2811 enableval=$enable_silent_rules;
2812 fi
2813
2814 case $enable_silent_rules in # (((
2815 yes) AM_DEFAULT_VERBOSITY=0;;
2816 no) AM_DEFAULT_VERBOSITY=1;;
2817 *) AM_DEFAULT_VERBOSITY=1;;
2818 esac
2819 am_make=${MAKE-make}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2821 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2822 if ${am_cv_make_support_nested_variables+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if $as_echo 'TRUE=$(BAR$(V))
2826 BAR0=false
2827 BAR1=true
2828 V=1
2829 am__doit:
2830 @$(TRUE)
2831 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2832 am_cv_make_support_nested_variables=yes
2833 else
2834 am_cv_make_support_nested_variables=no
2835 fi
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2838 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2839 if test $am_cv_make_support_nested_variables = yes; then
2840 AM_V='$(V)'
2841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2842 else
2843 AM_V=$AM_DEFAULT_VERBOSITY
2844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2845 fi
2846 AM_BACKSLASH='\'
2847
28092848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28102849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28112850 # is not polluted with repeated "-I."
28282867
28292868 # Define the identity of the package.
28302869 PACKAGE='pam_mount'
2831 VERSION='2.14'
2870 VERSION='2.16'
28322871
28332872
28342873 cat >>confdefs.h <<_ACEOF
28562895
28572896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
28582897
2859 mkdir_p="$MKDIR_P"
2898 # For better backward compatibility. To be removed once Automake 1.9.x
2899 # dies out for good. For more background, see:
2900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2901 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2902 mkdir_p='$(MKDIR_P)'
2903
28602904 # We need awk for the "check" target. The system "awk" is bad on
28612905 # some platforms.
28622906 # Always define AMTAR for backward compatibility. Yes, it's still used
28642908 AMTAR='$${TAR-tar}'
28652909
28662910
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2911 # We'll loop over all known methods to create a tar archive until one works.
2912 _am_tools='gnutar pax cpio none'
2913
2914
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
28682917 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2869 # Loop over all known methods to create a tar archive until one works.
2870 _am_tools='gnutar pax cpio none'
2871 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2872 # Do not fold the above two line into one, because Tru64 sh and
2873 # Solaris sh will not grok spaces in the rhs of '-'.
2874 for _am_tool in $_am_tools
2875 do
2876 case $_am_tool in
2877 gnutar)
2878 for _am_tar in tar gnutar gtar;
2879 do
2880 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2918
2919 # Go ahead even if we have the value already cached. We do so because we
2920 # need to set the values for the 'am__tar' and 'am__untar' variables.
2921 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2922
2923 for _am_tool in $_am_tools; do
2924 case $_am_tool in
2925 gnutar)
2926 for _am_tar in tar gnutar gtar; do
2927 { echo "$as_me:$LINENO: $_am_tar --version" >&5
28812928 ($_am_tar --version) >&5 2>&5
28822929 ac_status=$?
28832930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842931 (exit $ac_status); } && break
2885 done
2886 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2887 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2888 am__untar="$_am_tar -xf -"
2889 ;;
2890 plaintar)
2891 # Must skip GNU tar: if it does not support --format= it doesn't create
2892 # ustar tarball either.
2893 (tar --version) >/dev/null 2>&1 && continue
2894 am__tar='tar chf - "$$tardir"'
2895 am__tar_='tar chf - "$tardir"'
2896 am__untar='tar xf -'
2897 ;;
2898 pax)
2899 am__tar='pax -L -x pax -w "$$tardir"'
2900 am__tar_='pax -L -x pax -w "$tardir"'
2901 am__untar='pax -r'
2902 ;;
2903 cpio)
2904 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2905 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2906 am__untar='cpio -i -H pax -d'
2907 ;;
2908 none)
2909 am__tar=false
2910 am__tar_=false
2911 am__untar=false
2912 ;;
2913 esac
2914
2915 # If the value was cached, stop now. We just wanted to have am__tar
2916 # and am__untar set.
2917 test -n "${am_cv_prog_tar_pax}" && break
2918
2919 # tar/untar a dummy directory, and stop if the command works
2920 rm -rf conftest.dir
2921 mkdir conftest.dir
2922 echo GrepMe > conftest.dir/file
2923 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2932 done
2933 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2934 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2935 am__untar="$_am_tar -xf -"
2936 ;;
2937 plaintar)
2938 # Must skip GNU tar: if it does not support --format= it doesn't create
2939 # ustar tarball either.
2940 (tar --version) >/dev/null 2>&1 && continue
2941 am__tar='tar chf - "$$tardir"'
2942 am__tar_='tar chf - "$tardir"'
2943 am__untar='tar xf -'
2944 ;;
2945 pax)
2946 am__tar='pax -L -x pax -w "$$tardir"'
2947 am__tar_='pax -L -x pax -w "$tardir"'
2948 am__untar='pax -r'
2949 ;;
2950 cpio)
2951 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2952 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2953 am__untar='cpio -i -H pax -d'
2954 ;;
2955 none)
2956 am__tar=false
2957 am__tar_=false
2958 am__untar=false
2959 ;;
2960 esac
2961
2962 # If the value was cached, stop now. We just wanted to have am__tar
2963 # and am__untar set.
2964 test -n "${am_cv_prog_tar_pax}" && break
2965
2966 # tar/untar a dummy directory, and stop if the command works.
2967 rm -rf conftest.dir
2968 mkdir conftest.dir
2969 echo GrepMe > conftest.dir/file
2970 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
29242971 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
29252972 ac_status=$?
29262973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272974 (exit $ac_status); }
2928 rm -rf conftest.dir
2929 if test -s conftest.tar; then
2930 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2975 rm -rf conftest.dir
2976 if test -s conftest.tar; then
2977 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
29312978 ($am__untar <conftest.tar) >&5 2>&5
29322979 ac_status=$?
29332980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342981 (exit $ac_status); }
2935 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2936 fi
2937 done
2938 rm -rf conftest.dir
2939
2940 if ${am_cv_prog_tar_pax+:} false; then :
2982 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2983 (cat conftest.dir/file) >&5 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2988 fi
2989 done
2990 rm -rf conftest.dir
2991
2992 if ${am_cv_prog_tar_pax+:} false; then :
29412993 $as_echo_n "(cached) " >&6
29422994 else
29432995 am_cv_prog_tar_pax=$_am_tool
29442996 fi
29452997
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
29472999 $as_echo "$am_cv_prog_tar_pax" >&6; }
3000
29483001
29493002
29503003
66966749 rm -rf conftest*
66976750 ;;
66986751
6699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6752 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
67006753 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
67016754 # Find out which ABI we are using.
67026755 echo 'int i;' > conftest.$ac_ext
67146767 x86_64-*linux*)
67156768 LD="${LD-ld} -m elf_i386"
67166769 ;;
6717 ppc64-*linux*|powerpc64-*linux*)
6770 powerpc64le-*linux*)
6771 LD="${LD-ld} -m elf32lppclinux"
6772 ;;
6773 powerpc64-*linux*)
67186774 LD="${LD-ld} -m elf32ppclinux"
67196775 ;;
67206776 s390x-*linux*)
67336789 x86_64-*linux*)
67346790 LD="${LD-ld} -m elf_x86_64"
67356791 ;;
6736 ppc*-*linux*|powerpc*-*linux*)
6792 powerpcle-*linux*)
6793 LD="${LD-ld} -m elf64lppc"
6794 ;;
6795 powerpc-*linux*)
67376796 LD="${LD-ld} -m elf64ppc"
67386797 ;;
67396798 s390*-*linux*|s390*-*tpf*)
1335313412 # report actual input values of CONFIG_FILES etc. instead of their
1335413413 # values after options handling.
1335513414 ac_log="
13356 This file was extended by pam_mount $as_me 2.14, which was
13415 This file was extended by pam_mount $as_me 2.16, which was
1335713416 generated by GNU Autoconf 2.69. Invocation command line was
1335813417
1335913418 CONFIG_FILES = $CONFIG_FILES
1341913478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1342013479 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1342113480 ac_cs_version="\\
13422 pam_mount config.status 2.14
13481 pam_mount config.status 2.16
1342313482 configured by $0, generated by GNU Autoconf 2.69,
1342413483 with options \\"\$ac_cs_config\\"
1342513484
1442914488
1443014489 case $ac_file$ac_mode in
1443114490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14432 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14491 # Older Autoconf quotes --file arguments for eval, but not when files
1443314492 # are listed without --file. Let's play safe and only enable the eval
1443414493 # if we detect the quoting.
1443514494 case $CONFIG_FILES in
1448014539 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1448114540 test -z "$DEPDIR" && continue
1448214541 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14483 test -z "am__include" && continue
14542 test -z "$am__include" && continue
1448414543 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1448514544 # Find all dependency output files, they are included files with
1448614545 # $(DEPDIR) in their names. We invoke sed twice because it is the
66 # the Free Software Foundation; either version 2 of the License, or
77 # (at your option) any later version.
88 #
9 AC_INIT([pam_mount], [2.14])
10 PACKAGE_RELDATE="2013-08-27"
9 AC_INIT([pam_mount], [2.16])
10 PACKAGE_RELDATE="2016-09-23"
1111 AC_PREREQ([2.59])
1212 AC_CONFIG_AUX_DIR([build-aux])
1313 AC_CONFIG_HEADERS([config.h])
0 /pam_mount.8
1 /pam_mount.conf.5
0 # Makefile.in generated by automake 1.12.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616 # -*- Makefile -*-
1717 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
2131 case $$MAKEFLAGS in \
2232 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3236 esac; \
33 test $$am__dry = yes; \
34 }
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3563 pkgdatadir = $(datadir)/@PACKAGE@
3664 pkgincludedir = $(includedir)/@PACKAGE@
3765 pkglibdir = $(libdir)/@PACKAGE@
5179 build_triplet = @build@
5280 host_triplet = @host@
5381 subdir = doc
54 DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
55 $(srcdir)/Makefile.in
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(dist_man_MANS)
5684 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5785 am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \
5886 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
6492 CONFIG_HEADER = $(top_builddir)/config.h
6593 CONFIG_CLEAN_FILES =
6694 CONFIG_CLEAN_VPATH_FILES =
95 AM_V_P = $(am__v_P_@AM_V@)
96 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
97 am__v_P_0 = false
98 am__v_P_1 = :
6799 AM_V_GEN = $(am__v_GEN_@AM_V@)
68100 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
69101 am__v_GEN_0 = @echo " GEN " $@;
102 am__v_GEN_1 =
70103 AM_V_at = $(am__v_at_@AM_V@)
71104 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
72105 am__v_at_0 = @
106 am__v_at_1 =
73107 SOURCES =
74108 DIST_SOURCES =
75109 am__can_run_installinfo = \
109143 man8dir = $(mandir)/man8
110144 NROFF = nroff
111145 MANS = $(dist_man_MANS) $(man_MANS)
146 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
112147 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
113148 ACLOCAL = @ACLOCAL@
114149 AMTAR = @AMTAR@
384419 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
385420 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
386421 dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
387 tags: TAGS
388 TAGS:
389
390 ctags: CTAGS
391 CTAGS:
422 tags TAGS:
423
424 ctags CTAGS:
392425
393426 cscope cscopelist:
394427
395428
396429 distdir: $(DISTFILES)
397 @list='$(MANS)'; if test -n "$$list"; then \
398 list=`for p in $$list; do \
399 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
400 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
401 if test -n "$$list" && \
402 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
403 echo "error: found man pages containing the 'missing help2man' replacement text:" >&2; \
404 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
405 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
406 echo " typically 'make maintainer-clean' will remove them" >&2; \
407 exit 1; \
408 else :; fi; \
409 else :; fi
410430 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411431 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412432 list='$(DISTFILES)'; \
546566 .MAKE: install-am install-strip
547567
548568 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
549 distclean distclean-generic distclean-libtool distdir dvi \
550 dvi-am html html-am info info-am install install-am \
551 install-data install-data-am install-dvi install-dvi-am \
552 install-exec install-exec-am install-html install-html-am \
553 install-info install-info-am install-man install-man5 \
554 install-man8 install-pdf install-pdf-am install-ps \
555 install-ps-am install-strip installcheck installcheck-am \
556 installdirs maintainer-clean maintainer-clean-generic \
557 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
558 ps ps-am uninstall uninstall-am uninstall-man uninstall-man5 \
559 uninstall-man8
569 cscopelist-am ctags-am distclean distclean-generic \
570 distclean-libtool distdir dvi dvi-am html html-am info info-am \
571 install install-am install-data install-data-am install-dvi \
572 install-dvi-am install-exec install-exec-am install-html \
573 install-html-am install-info install-info-am install-man \
574 install-man5 install-man8 install-pdf install-pdf-am \
575 install-ps install-ps-am install-strip installcheck \
576 installcheck-am installdirs maintainer-clean \
577 maintainer-clean-generic mostlyclean mostlyclean-generic \
578 mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
579 uninstall-am uninstall-man uninstall-man5 uninstall-man8
560580
561581
562582 pam_mount.8: pam_mount.8.in ${top_builddir}/config.status
1919
2020 * openssl 0.9.8 or up
2121 * libcryptsetup 1.1.2 or up -- block-level encryption
22
23 Required packages for runtime:
24
25 * util-linux 2.20 or up
2226
2327 Suggested packages for runtime:
2428
22
33 HEAD
44 ====
5
6
7 v2.16 (2016-09-23)
8 ==================
9 Enhancements:
10 * support building with OpenSSL 1.1.0 and test libressl 2.4.2
11 Changes:
12 * the sgrp match is now implemented by asking for the user's group list instead
13 of asking for the group's user list. (The latter can easily be orders of
14 magnitude larger, which is why some LDAP servers may be configured not to
15 return the list at all.)
16
17
18 v2.15 (2014-12-01)
19 ==================
20 Changes:
21 * util-linux >= 2.20 is required at runtime
22 (just mentioning it again; it was already needed for building)
23 * use the helper= option to get umount.crypt invoked on calling umount
24 * remove unsupported -p0 mount option
25 * fix a crash in ehd_log
526
627
728 v2.14 (2013-08-27)
239239 searched. Since login programs have differing default PATHs, pam_mount has its
240240 own path definition (see above).
241241 .TP
242 \fB<lclmount>\fP\fImount \-p0 \-t %(FSTYPE) ...\fP\fB</lclmount>\fP
242 \fB<lclmount>\fP\fImount \-t %(FSTYPE) ...\fP\fB</lclmount>\fP
243243 The regular mount program.
244244 .TP
245245 \fB<umount>\fP\fIumount %(MNTPT)\fP\fB</umount>\fP
0 pam_mount(8) pam_mount 2.14 pam_mount(8)
0 pam_mount(8) pam_mount 2.15 pam_mount(8)
11
22
33
186186
187187
188188
189 pam_mount 2.14 2013-08-27 pam_mount(8)
189 pam_mount 2.15 2014-11-28 pam_mount(8)
33 ./autogen.sh;
44 fi;
55 exec ./configure CFLAGS=-ggdb3 \
6 LDFLAGS="-Wl,-z -Wl,defs -Wl,-z -Wl,--as-needed" \
6 LDFLAGS="-Wl,-z -Wl,defs -Wl,--as-needed" \
77 --with-rundir="$PWD/run" "$@";
0 /libtool.m4
1 /lt*.m4
13111311 rm -rf conftest*
13121312 ;;
13131313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13161316 # Find out which ABI we are using.
13171317 echo 'int i;' > conftest.$ac_ext
13251325 x86_64-*linux*)
13261326 LD="${LD-ld} -m elf_i386"
13271327 ;;
1328 ppc64-*linux*|powerpc64-*linux*)
1328 powerpc64le-*linux*)
1329 LD="${LD-ld} -m elf32lppclinux"
1330 ;;
1331 powerpc64-*linux*)
13291332 LD="${LD-ld} -m elf32ppclinux"
13301333 ;;
13311334 s390x-*linux*)
13441347 x86_64-*linux*)
13451348 LD="${LD-ld} -m elf_x86_64"
13461349 ;;
1347 ppc*-*linux*|powerpc*-*linux*)
1350 powerpcle-*linux*)
1351 LD="${LD-ld} -m elf64lppc"
1352 ;;
1353 powerpc-*linux*)
13481354 LD="${LD-ld} -m elf64ppc"
13491355 ;;
13501356 s390*-*linux*|s390*-*tpf*)
0 /autoloop
1 /ismnt
2 /mount.crypt
3 /pmt-ehd
4 /pmvarrun
5 /umount.crypt
0 # Makefile.in generated by automake 1.12.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1919
2020
2121 VPATH = @srcdir@
22 am__make_dryrun = \
23 { \
24 am__dry=no; \
22 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
23 am__make_running_with_option = \
24 case $${target_option-} in \
25 ?) ;; \
26 *) echo "am__make_running_with_option: internal error: invalid" \
27 "target option '$${target_option-}' specified" >&2; \
28 exit 1;; \
29 esac; \
30 has_opt=no; \
31 sane_makeflags=$$MAKEFLAGS; \
32 if $(am__is_gnu_make); then \
33 sane_makeflags=$$MFLAGS; \
34 else \
2535 case $$MAKEFLAGS in \
2636 *\\[\ \ ]*) \
27 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
28 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
29 *) \
30 for am__flg in $$MAKEFLAGS; do \
31 case $$am__flg in \
32 *=*|--*) ;; \
33 *n*) am__dry=yes; break;; \
34 esac; \
35 done;; \
37 bs=\\; \
38 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
39 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3640 esac; \
37 test $$am__dry = yes; \
38 }
41 fi; \
42 skip_next=no; \
43 strip_trailopt () \
44 { \
45 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
46 }; \
47 for flg in $$sane_makeflags; do \
48 test $$skip_next = yes && { skip_next=no; continue; }; \
49 case $$flg in \
50 *=*|--*) continue;; \
51 -*I) strip_trailopt 'I'; skip_next=yes;; \
52 -*I?*) strip_trailopt 'I';; \
53 -*O) strip_trailopt 'O'; skip_next=yes;; \
54 -*O?*) strip_trailopt 'O';; \
55 -*l) strip_trailopt 'l'; skip_next=yes;; \
56 -*l?*) strip_trailopt 'l';; \
57 -[dEDm]) skip_next=yes;; \
58 -[JT]) skip_next=yes;; \
59 esac; \
60 case $$flg in \
61 *$$target_option*) has_opt=yes; break;; \
62 esac; \
63 done; \
64 test $$has_opt = yes
65 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
66 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3967 pkgdatadir = $(datadir)/@PACKAGE@
4068 pkgincludedir = $(includedir)/@PACKAGE@
4169 pkglibdir = $(libdir)/@PACKAGE@
6492 @HAVE_MDIO_TRUE@am__append_5 = loop-mdvn.c
6593 @HAVE_VND_TRUE@am__append_6 = loop-vnd.c
6694 subdir = src
67 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
68 $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp
95 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
96 $(top_srcdir)/build-aux/depcomp $(include_HEADERS)
6997 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
7098 am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \
7199 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
124152 AM_V_lt = $(am__v_lt_@AM_V@)
125153 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
126154 am__v_lt_0 = --silent
155 am__v_lt_1 =
127156 libcryptmount_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
128157 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
129158 $(AM_CFLAGS) $(CFLAGS) $(libcryptmount_la_LDFLAGS) $(LDFLAGS) \
164193 pmvarrun_OBJECTS = $(am_pmvarrun_OBJECTS)
165194 pmvarrun_DEPENDENCIES = libcryptmount.la $(am__DEPENDENCIES_1)
166195 SCRIPTS = $(noinst_SCRIPTS)
196 AM_V_P = $(am__v_P_@AM_V@)
197 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
198 am__v_P_0 = false
199 am__v_P_1 = :
200 AM_V_GEN = $(am__v_GEN_@AM_V@)
201 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
202 am__v_GEN_0 = @echo " GEN " $@;
203 am__v_GEN_1 =
204 AM_V_at = $(am__v_at_@AM_V@)
205 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
206 am__v_at_0 = @
207 am__v_at_1 =
167208 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
168209 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
169210 am__depfiles_maybe = depfiles
177218 AM_V_CC = $(am__v_CC_@AM_V@)
178219 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
179220 am__v_CC_0 = @echo " CC " $@;
180 AM_V_at = $(am__v_at_@AM_V@)
181 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
182 am__v_at_0 = @
221 am__v_CC_1 =
183222 CCLD = $(CC)
184223 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
185224 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
187226 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
188227 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
189228 am__v_CCLD_0 = @echo " CCLD " $@;
190 AM_V_GEN = $(am__v_GEN_@AM_V@)
191 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
192 am__v_GEN_0 = @echo " GEN " $@;
229 am__v_CCLD_1 =
193230 SOURCES = $(libcryptmount_la_SOURCES) $(libpmt_mtab_la_SOURCES) \
194231 $(pam_mount_la_SOURCES) $(autoloop_SOURCES) \
195232 $(mount_crypt_SOURCES) $(pmt_ehd_SOURCES) $(pmvarrun_SOURCES)
203240 *) (install-info --version) >/dev/null 2>&1;; \
204241 esac
205242 HEADERS = $(include_HEADERS)
243 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
244 # Read a list of newline-separated strings from the standard input,
245 # and print each of them once, without duplicates. Input order is
246 # *not* preserved.
247 am__uniquify_input = $(AWK) '\
248 BEGIN { nonempty = 0; } \
249 { items[$$0] = 1; nonempty = 1; } \
250 END { if (nonempty) { for (i in items) print i; }; } \
251 '
252 # Make sure the list of sources is unique. This is necessary because,
253 # e.g., the same source file might be shared among _SOURCES variables
254 # for different programs/libraries.
255 am__define_uniq_tagged_files = \
256 list='$(am__tagged_files)'; \
257 unique=`for i in $$list; do \
258 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
259 done | $(am__uniquify_input)`
206260 ETAGS = etags
207261 CTAGS = ctags
208262 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
453507 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
454508 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455509 $(am__aclocal_m4_deps):
510
456511 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
457512 @$(NORMAL_INSTALL)
458513 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
487542 echo rm -f $${locs}; \
488543 rm -f $${locs}; \
489544 }
545
490546 install-moduleLTLIBRARIES: $(module_LTLIBRARIES)
491547 @$(NORMAL_INSTALL)
492548 @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \
532588 echo rm -f $${locs}; \
533589 rm -f $${locs}; \
534590 }
591
535592 libcryptmount.la: $(libcryptmount_la_OBJECTS) $(libcryptmount_la_DEPENDENCIES) $(EXTRA_libcryptmount_la_DEPENDENCIES)
536593 $(AM_V_CCLD)$(libcryptmount_la_LINK) -rpath $(libdir) $(libcryptmount_la_OBJECTS) $(libcryptmount_la_LIBADD) $(LIBS)
594
537595 libpmt_mtab.la: $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_DEPENDENCIES) $(EXTRA_libpmt_mtab_la_DEPENDENCIES)
538596 $(AM_V_CCLD)$(libpmt_mtab_la_LINK) $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_LIBADD) $(LIBS)
597
539598 pam_mount.la: $(pam_mount_la_OBJECTS) $(pam_mount_la_DEPENDENCIES) $(EXTRA_pam_mount_la_DEPENDENCIES)
540599 $(AM_V_CCLD)$(pam_mount_la_LINK) -rpath $(moduledir) $(pam_mount_la_OBJECTS) $(pam_mount_la_LIBADD) $(LIBS)
541600
556615 fi; \
557616 for p in $$list; do echo "$$p $$p"; done | \
558617 sed 's/$(EXEEXT)$$//' | \
559 while read p p1; do if test -f $$p || test -f $$p1; \
560 then echo "$$p"; echo "$$p"; else :; fi; \
618 while read p p1; do if test -f $$p \
619 || test -f $$p1 \
620 ; then echo "$$p"; echo "$$p"; else :; fi; \
561621 done | \
562 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
622 sed -e 'p;s,.*/,,;n;h' \
623 -e 's|.*|.|' \
563624 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
564625 sed 'N;N;N;s,\n, ,g' | \
565626 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
580641 @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
581642 files=`for p in $$list; do echo "$$p"; done | \
582643 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
583 -e 's/$$/$(EXEEXT)/' `; \
644 -e 's/$$/$(EXEEXT)/' \
645 `; \
584646 test -n "$$list" || exit 0; \
585647 echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
586648 cd "$(DESTDIR)$(sbindir)" && rm -f $$files
602664 fi; \
603665 for p in $$list; do echo "$$p $$p"; done | \
604666 sed 's/$(EXEEXT)$$//' | \
605 while read p p1; do if test -f $$p || test -f $$p1; \
606 then echo "$$p"; echo "$$p"; else :; fi; \
667 while read p p1; do if test -f $$p \
668 || test -f $$p1 \
669 ; then echo "$$p"; echo "$$p"; else :; fi; \
607670 done | \
608 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
671 sed -e 'p;s,.*/,,;n;h' \
672 -e 's|.*|.|' \
609673 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
610674 sed 'N;N;N;s,\n, ,g' | \
611675 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
626690 @list='$(ssbin_PROGRAMS)'; test -n "$(ssbindir)" || list=; \
627691 files=`for p in $$list; do echo "$$p"; done | \
628692 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
629 -e 's/$$/$(EXEEXT)/' `; \
693 -e 's/$$/$(EXEEXT)/' \
694 `; \
630695 test -n "$$list" || exit 0; \
631696 echo " ( cd '$(DESTDIR)$(ssbindir)' && rm -f" $$files ")"; \
632697 cd "$(DESTDIR)$(ssbindir)" && rm -f $$files
639704 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
640705 echo " rm -f" $$list; \
641706 rm -f $$list
707
642708 autoloop$(EXEEXT): $(autoloop_OBJECTS) $(autoloop_DEPENDENCIES) $(EXTRA_autoloop_DEPENDENCIES)
643709 @rm -f autoloop$(EXEEXT)
644710 $(AM_V_CCLD)$(LINK) $(autoloop_OBJECTS) $(autoloop_LDADD) $(LIBS)
711
645712 mount.crypt$(EXEEXT): $(mount_crypt_OBJECTS) $(mount_crypt_DEPENDENCIES) $(EXTRA_mount_crypt_DEPENDENCIES)
646713 @rm -f mount.crypt$(EXEEXT)
647714 $(AM_V_CCLD)$(LINK) $(mount_crypt_OBJECTS) $(mount_crypt_LDADD) $(LIBS)
715
648716 pmt-ehd$(EXEEXT): $(pmt_ehd_OBJECTS) $(pmt_ehd_DEPENDENCIES) $(EXTRA_pmt_ehd_DEPENDENCIES)
649717 @rm -f pmt-ehd$(EXEEXT)
650718 $(AM_V_CCLD)$(LINK) $(pmt_ehd_OBJECTS) $(pmt_ehd_LDADD) $(LIBS)
719
651720 pmvarrun$(EXEEXT): $(pmvarrun_OBJECTS) $(pmvarrun_DEPENDENCIES) $(EXTRA_pmvarrun_DEPENDENCIES)
652721 @rm -f pmvarrun$(EXEEXT)
653722 $(AM_V_CCLD)$(LINK) $(pmvarrun_OBJECTS) $(pmvarrun_LDADD) $(LIBS)
789858 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
790859 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
791860
792 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
793 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
794 unique=`for i in $$list; do \
795 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
796 done | \
797 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
798 END { if (nonempty) { for (i in files) print i; }; }'`; \
799 mkid -fID $$unique
800 tags: TAGS
801
802 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
803 $(TAGS_FILES) $(LISP)
861 ID: $(am__tagged_files)
862 $(am__define_uniq_tagged_files); mkid -fID $$unique
863 tags: tags-am
864 TAGS: tags
865
866 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
804867 set x; \
805868 here=`pwd`; \
806 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
807 unique=`for i in $$list; do \
808 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
809 done | \
810 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
811 END { if (nonempty) { for (i in files) print i; }; }'`; \
869 $(am__define_uniq_tagged_files); \
812870 shift; \
813871 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
814872 test -n "$$unique" || unique=$$empty_fix; \
820878 $$unique; \
821879 fi; \
822880 fi
823 ctags: CTAGS
824 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
825 $(TAGS_FILES) $(LISP)
826 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
827 unique=`for i in $$list; do \
828 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
829 done | \
830 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
831 END { if (nonempty) { for (i in files) print i; }; }'`; \
881 ctags: ctags-am
882
883 CTAGS: ctags
884 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
885 $(am__define_uniq_tagged_files); \
832886 test -z "$(CTAGS_ARGS)$$unique" \
833887 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
834888 $$unique
837891 here=`$(am__cd) $(top_builddir) && pwd` \
838892 && $(am__cd) $(top_srcdir) \
839893 && gtags -i $(GTAGS_ARGS) "$$here"
840
841 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
842 list='$(SOURCES) $(HEADERS) $(LISP)'; \
894 cscopelist: cscopelist-am
895
896 cscopelist-am: $(am__tagged_files)
897 list='$(am__tagged_files)'; \
843898 case "$(srcdir)" in \
844899 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
845900 *) sdir=$(subdir)/$(srcdir) ;; \
10051060 .MAKE: install-am install-data-am install-exec-am install-strip \
10061061 uninstall-am
10071062
1008 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
1063 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
10091064 clean-libLTLIBRARIES clean-libtool clean-moduleLTLIBRARIES \
10101065 clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
1011 clean-sbinPROGRAMS clean-ssbinPROGRAMS cscopelist ctags \
1012 distclean distclean-compile distclean-generic \
1066 clean-sbinPROGRAMS clean-ssbinPROGRAMS cscopelist-am ctags \
1067 ctags-am distclean distclean-compile distclean-generic \
10131068 distclean-libtool distclean-tags distdir dvi dvi-am html \
10141069 html-am info info-am install install-am install-data \
10151070 install-data-am install-data-hook install-dvi install-dvi-am \
10221077 installcheck-am installdirs maintainer-clean \
10231078 maintainer-clean-generic mostlyclean mostlyclean-compile \
10241079 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1025 tags uninstall uninstall-am uninstall-hook \
1080 tags tags-am uninstall uninstall-am uninstall-hook \
10261081 uninstall-includeHEADERS uninstall-libLTLIBRARIES \
10271082 uninstall-moduleLTLIBRARIES uninstall-sbinPROGRAMS \
10281083 uninstall-ssbinPROGRAMS
414414 {
415415 unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH];
416416 unsigned int out_cumul_len = 0;
417 EVP_CIPHER_CTX ctx;
417 EVP_CIPHER_CTX *ctx;
418418 int out_len = 0;
419419 hxmc_t *out;
420420
423423 (par->password == NULL) ? 0 : strlen(par->password),
424424 1, key, iv) <= 0)
425425 return EHD_KEYDEC_OTHER;
426
427 out = HXmc_meminit(NULL, par->d_keysize + par->s_cipher->block_size);
428 EVP_CIPHER_CTX_init(&ctx);
429 EVP_DecryptInit_ex(&ctx, par->s_cipher, NULL, key, iv);
430 EVP_DecryptUpdate(&ctx, signed_cast(unsigned char *,
426 ctx = EVP_CIPHER_CTX_new();
427 if (ctx == NULL)
428 return EHD_KEYDEC_OTHER;
429
430 out = HXmc_meminit(NULL, par->d_keysize + EVP_CIPHER_block_size(par->s_cipher));
431 EVP_DecryptInit_ex(ctx, par->s_cipher, NULL, key, iv);
432 EVP_DecryptUpdate(ctx, signed_cast(unsigned char *,
431433 &out[out_len]), &out_len, par->d_text, par->d_keysize);
432434 out_cumul_len += out_len;
433 EVP_DecryptFinal_ex(&ctx, signed_cast(unsigned char *,
435 EVP_DecryptFinal_ex(ctx, signed_cast(unsigned char *,
434436 &out[out_len]), &out_len);
435437 out_cumul_len += out_len;
436438 HXmc_setlen(&out, out_cumul_len);
437 EVP_CIPHER_CTX_cleanup(&ctx);
439 EVP_CIPHER_CTX_free(ctx);
438440
439441 par->d_result = out;
440442 return EHD_KEYDEC_SUCCESS;
4747
4848 assert(format != NULL);
4949
50 va_start(args, format);
5051 if (!ehd_log_ft[EHD_LOGFT_NOSYSLOG]) {
51 va_start(args, format);
5252 va_copy(arg2, args);
5353 vsyslog(LOG_AUTH | LOG_ERR, format, arg2);
5454 va_end(arg2);
7171 hxmc_t *object;
7272 unsigned int no_update, ro_fallback;
7373 bool is_cont, blkdev;
74 char *type;
7475 };
7576
7677 static unsigned int mtcr_debug;
537538 mount_args[argk++] = "-t";
538539 mount_args[argk++] = opt->fstype;
539540 }
541 if (opt->extra_opts == NULL) {
542 opt->extra_opts = "helper=crypt";
543 } else if (*opt->extra_opts != '\0') {
544 HXmc_strcat(&opt->extra_opts, ",");
545 HXmc_strcat(&opt->extra_opts, "helper=crypt");
546 }
547
540548 if (opt->extra_opts != NULL) {
541549 mount_args[argk++] = "-o";
542550 mount_args[argk++] = opt->extra_opts;
590598 .help = "Do not update /etc/mtab"},
591599 {.sh = 'r', .type = HXTYPE_NONE, .ptr = &opt->ro_fallback,
592600 .help = "(Option ignored)"},
601 {.sh = 't', .type = HXTYPE_STRING, .ptr = &opt->type,
602 .help = "(Option ignored)"},
593603 {.sh = 'v', .type = HXTYPE_NONE, .ptr = &mtcr_debug,
594604 .help = "Be verbose - enable debugging"},
595605 HXOPT_AUTOHELP,
706716 */
707717 static int mtcr_umount(struct umount_options *opt)
708718 {
709 const char *umount_args[3];
719 const char *umount_args[4];
710720 int final_ret, ret, argk = 0;
711721 struct ehd_mount_info mount_info;
712722 char *mountpoint = NULL;
739749 pmt_cmtab_remove(mountpoint);
740750
741751 umount_args[argk++] = "umount";
752 umount_args[argk++] = "-i";
742753 umount_args[argk++] = mountpoint;
743754 umount_args[argk] = NULL;
744755
796807
797808 int main(int argc, const char **argv)
798809 {
799 struct stat sb;
800810 int ret;
801
802 if (stat("/etc/mtab", &sb) == 0 && (sb.st_mode & S_IWUGO) == 0)
803 fprintf(stderr, "NOTE: mount.crypt does not support utab "
804 "(systems with no mtab or read-only mtab) yet. This "
805 "means that you will temporarily need to call "
806 "umount.crypt(8) rather than umount(8) to get crypto "
807 "volumes unmounted.\n");
808811
809812 ret = HX_init();
810813 if (ret <= 0) {
616616 * no match was found, positive non-zero on success or negative non-zero on
617617 * failure.
618618 */
619 static bool user_in_sgrp(const char *user, const char *grp, bool icase,
619 static bool user_in_sgrp(const char *user, const char *search_grp, bool icase,
620620 bool regex)
621621 {
622 struct group *gent;
623 const char *const *wp;
624
625 if ((gent = getgrnam(grp)) == NULL) {
626 if (errno != 0)
627 w4rn("getgrnam(\"%s\") failed: %s\n",
628 grp, strerror(errno));
622 const struct group *gent;
623 int i, ret, ngroups = 1;
624 gid_t *grplist, grpbuf;
625
626 ret = getgrouplist(user, -1, &grpbuf, &ngroups);
627 if (ret == 0 || (ret == 1 && grpbuf == -1)) {
628 /* No secondary groups. Cannot be a member, then. */
629629 return false;
630630 }
631
632 wp = const_cast2(const char *const *, gent->gr_mem);
633 while (wp != NULL && *wp != NULL) {
631 grplist = malloc(sizeof(gid_t) * ngroups);
632 ret = getgrouplist(user, -1, grplist, &ngroups);
633 if (ret < 0) {
634 l0g("getgrouplist(%s) failed: %s\n", user, strerror(errno));
635 free(grplist);
636 return false;
637 }
638 for (i = 0; i < ngroups; ++i) {
639 if (grplist[i] == -1)
640 continue;
641 gent = getgrgid(grplist[i]);
642 if (gent == NULL)
643 continue;
634644 if (regex) {
635 if (pmt_strregmatch(user, *wp, icase) > 0)
636 return true;
637 } else if (icase && strcasecmp(*wp, user) == 0) {
638 return true;
639 } else if (strcmp(*wp, user) == 0) {
640 return true;
645 if (pmt_strregmatch(gent->gr_name, search_grp, icase) > 0)
646 goto found;
647 } else if (icase && strcasecmp(gent->gr_name, search_grp) == 0) {
648 goto found;
649 } else if (strcmp(gent->gr_name, search_grp) == 0) {
650 goto found;
641651 }
642 ++wp;
643 }
644
652 }
653 free(grplist);
645654 return false;
655 found:
656 free(grplist);
657 return true;
646658 }
647659
648660 //-----------------------------------------------------------------------------
14271439 */
14281440 {CMD_NFSMOUNT, "nfs", {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(COMBOPATH)", "%(MNTPT)", NULL}},
14291441 {CMD_NFSMOUNT, "nfs4"},
1430 {CMD_LCLMOUNT, NULL, {"mount", "-p0", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(VOLUME)", "%(MNTPT)", NULL}},
1442 {CMD_LCLMOUNT, NULL, {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(VOLUME)", "%(MNTPT)", NULL}},
14311443 {CMD_CRYPTMOUNT, "crypt", {"mount", "-t", "crypt", "%(if %(CIPHER),-ocipher=%(CIPHER))", "%(if %(FSKEYCIPHER),-ofsk_cipher=%(FSKEYCIPHER))", "%(if %(FSKEYHASH),-ofsk_hash=%(FSKEYHASH))", "%(if %(FSKEYPATH),-okeyfile=%(FSKEYPATH))", "%(if %(OPTIONS),-o%(OPTIONS))", "%(VOLUME)", "%(MNTPT)", NULL}},
14321444 {CMD_CRYPTMOUNT, "crypt_LUKS"},
14331445 {CMD_CRYPTMOUNT, "crypto_LUKS"},
1434 {CMD_CRYPTUMOUNT, "crypt", {"umount.crypt", "%(MNTPT)", NULL}},
1446 {CMD_CRYPTUMOUNT, "crypt", {"umount", "%(MNTPT)", NULL}},
14351447 {CMD_UMOUNT, NULL, {"umount", "%(MNTPT)", NULL}},
14361448 {CMD_FSCK, NULL, {"fsck", "-p", "%(FSCKTARGET)", NULL}},
14371449 {CMD_PMVARRUN, NULL, {"pmvarrun", "-u", "%(USER)", "-o", "%(OPERATION)", NULL}},