Browse code

re-enable maintainer mode toggling in gmap

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@111271 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 07/12/2015 19:55:43
Showing7 changed files

... ...
@@ -259,6 +259,7 @@ LIBTOOL = @LIBTOOL@
259 259
 LIPO = @LIPO@
260 260
 LN_S = @LN_S@
261 261
 LTLIBOBJS = @LTLIBOBJS@
262
+MAINT = @MAINT@
262 263
 MAKEINFO = @MAKEINFO@
263 264
 MANIFEST_TOOL = @MANIFEST_TOOL@
264 265
 MAX_READLENGTH = @MAX_READLENGTH@
... ...
@@ -355,7 +356,7 @@ all: all-recursive
355 356
 .SUFFIXES:
356 357
 am--refresh: Makefile
357 358
 	@:
358
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
359
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
359 360
 	@for dep in $?; do \
360 361
 	  case '$(am__configure_deps)' in \
361 362
 	    *$$dep*) \
... ...
@@ -382,9 +383,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
382 383
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
383 384
 	$(SHELL) ./config.status --recheck
384 385
 
385
-$(top_srcdir)/configure:  $(am__configure_deps)
386
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
386 387
 	$(am__cd) $(srcdir) && $(AUTOCONF)
387
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
388
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
388 389
 	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
389 390
 $(am__aclocal_m4_deps):
390 391
 
... ...
@@ -642,6 +642,42 @@ fi
642 642
 rmdir .tst 2>/dev/null
643 643
 AC_SUBST([am__leading_dot])])
644 644
 
645
+# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
646
+# From Jim Meyering
647
+
648
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
649
+#
650
+# This file is free software; the Free Software Foundation
651
+# gives unlimited permission to copy and/or distribute it,
652
+# with or without modifications, as long as this notice is preserved.
653
+
654
+# AM_MAINTAINER_MODE([DEFAULT-MODE])
655
+# ----------------------------------
656
+# Control maintainer-specific portions of Makefiles.
657
+# Default is to disable them, unless 'enable' is passed literally.
658
+# For symmetry, 'disable' may be passed as well.  Anyway, the user
659
+# can override the default with the --enable/--disable switch.
660
+AC_DEFUN([AM_MAINTAINER_MODE],
661
+[m4_case(m4_default([$1], [disable]),
662
+       [enable], [m4_define([am_maintainer_other], [disable])],
663
+       [disable], [m4_define([am_maintainer_other], [enable])],
664
+       [m4_define([am_maintainer_other], [enable])
665
+        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
666
+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
667
+  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
668
+  AC_ARG_ENABLE([maintainer-mode],
669
+    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
670
+      am_maintainer_other[ make rules and dependencies not useful
671
+      (and sometimes confusing) to the casual installer])],
672
+    [USE_MAINTAINER_MODE=$enableval],
673
+    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
674
+  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
675
+  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
676
+  MAINT=$MAINTAINER_MODE_TRUE
677
+  AC_SUBST([MAINT])dnl
678
+]
679
+)
680
+
645 681
 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
646 682
 
647 683
 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
... ...
@@ -732,6 +732,9 @@ build_vendor
732 732
 build_cpu
733 733
 build
734 734
 CFLAGS
735
+MAINT
736
+MAINTAINER_MODE_FALSE
737
+MAINTAINER_MODE_TRUE
735 738
 target_alias
736 739
 host_alias
737 740
 build_alias
... ...
@@ -773,6 +776,7 @@ SHELL'
773 776
 ac_subst_files=''
774 777
 ac_user_opts='
775 778
 enable_option_checking
779
+enable_maintainer_mode
776 780
 enable_largefile
777 781
 enable_dependency_tracking
778 782
 enable_silent_rules
... ...
@@ -1426,6 +1430,9 @@ Optional Features:
1426 1430
   --disable-option-checking  ignore unrecognized --enable/--with options
1427 1431
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428 1432
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433
+  --disable-maintainer-mode
1434
+                          disable make rules and dependencies not useful (and
1435
+                          sometimes confusing) to the casual installer
1429 1436
   --disable-largefile     omit support for large files
1430 1437
   --enable-dependency-tracking
1431 1438
                           do not reject slow dependency extractors
... ...
@@ -2510,6 +2517,29 @@ $as_echo_n "checking package version... " >&6; }
2510 2517
 $as_echo "2013-11-01" >&6; }
2511 2518
 
2512 2519
 
2520
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2521
+$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2522
+    # Check whether --enable-maintainer-mode was given.
2523
+if test "${enable_maintainer_mode+set}" = set; then :
2524
+  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2525
+else
2526
+  USE_MAINTAINER_MODE=yes
2527
+fi
2528
+
2529
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2530
+$as_echo "$USE_MAINTAINER_MODE" >&6; }
2531
+   if test $USE_MAINTAINER_MODE = yes; then
2532
+  MAINTAINER_MODE_TRUE=
2533
+  MAINTAINER_MODE_FALSE='#'
2534
+else
2535
+  MAINTAINER_MODE_TRUE='#'
2536
+  MAINTAINER_MODE_FALSE=
2537
+fi
2538
+
2539
+  MAINT=$MAINTAINER_MODE_TRUE
2540
+
2541
+
2542
+
2513 2543
 ### Read defaults
2514 2544
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CONFIG_SITE" >&5
2515 2545
 $as_echo_n "checking CONFIG_SITE... " >&6; }
... ...
@@ -18064,6 +18094,10 @@ LIBOBJS=$ac_libobjs
18064 18094
 LTLIBOBJS=$ac_ltlibobjs
18065 18095
 
18066 18096
 
18097
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18098
+  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18099
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
18100
+fi
18067 18101
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18068 18102
 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18069 18103
    if test -n "$am_sleep_pid"; then
... ...
@@ -20,6 +20,7 @@ AC_INIT([gmap],PKG_VERSION,[Thomas Wu <twu@gene.com>])
20 20
 AC_MSG_CHECKING(package version)
21 21
 AC_MSG_RESULT(PKG_VERSION)
22 22
 
23
+AM_MAINTAINER_MODE([enable])
23 24
 
24 25
 ### Read defaults
25 26
 AC_MSG_CHECKING(CONFIG_SITE)
... ...
@@ -671,6 +671,7 @@ LIBTOOL = @LIBTOOL@
671 671
 LIPO = @LIPO@
672 672
 LN_S = @LN_S@
673 673
 LTLIBOBJS = @LTLIBOBJS@
674
+MAINT = @MAINT@
674 675
 MAKEINFO = @MAKEINFO@
675 676
 MANIFEST_TOOL = @MANIFEST_TOOL@
676 677
 MAX_READLENGTH = @MAX_READLENGTH@
... ...
@@ -1151,7 +1152,7 @@ all: config.h
1151 1152
 
1152 1153
 .SUFFIXES:
1153 1154
 .SUFFIXES: .c .lo .o .obj
1154
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
1155
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
1155 1156
 	@for dep in $?; do \
1156 1157
 	  case '$(am__configure_deps)' in \
1157 1158
 	    *$$dep*) \
... ...
@@ -1176,9 +1177,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1176 1177
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
1177 1178
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
1178 1179
 
1179
-$(top_srcdir)/configure:  $(am__configure_deps)
1180
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
1180 1181
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
1181
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
1182
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
1182 1183
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
1183 1184
 $(am__aclocal_m4_deps):
1184 1185
 
... ...
@@ -1189,7 +1190,7 @@ config.h: stamp-h1
1189 1190
 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
1190 1191
 	@rm -f stamp-h1
1191 1192
 	cd $(top_builddir) && $(SHELL) ./config.status src/config.h
1192
-$(srcdir)/config.h.in:  $(am__configure_deps) 
1193
+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
1193 1194
 	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
1194 1195
 	rm -f stamp-h1
1195 1196
 	touch $@
... ...
@@ -376,6 +376,7 @@ LIBTOOL = @LIBTOOL@
376 376
 LIPO = @LIPO@
377 377
 LN_S = @LN_S@
378 378
 LTLIBOBJS = @LTLIBOBJS@
379
+MAINT = @MAINT@
379 380
 MAKEINFO = @MAKEINFO@
380 381
 MANIFEST_TOOL = @MANIFEST_TOOL@
381 382
 MAX_READLENGTH = @MAX_READLENGTH@
... ...
@@ -485,7 +486,7 @@ all: all-am
485 486
 
486 487
 .SUFFIXES:
487 488
 .SUFFIXES: .log .test .test$(EXEEXT) .trs
488
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
489
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
489 490
 	@for dep in $?; do \
490 491
 	  case '$(am__configure_deps)' in \
491 492
 	    *$$dep*) \
... ...
@@ -510,9 +511,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
510 511
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
511 512
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
512 513
 
513
-$(top_srcdir)/configure:  $(am__configure_deps)
514
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
514 515
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
515
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
516
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
516 517
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
517 518
 $(am__aclocal_m4_deps):
518 519
 align.test: $(top_builddir)/config.status $(srcdir)/align.test.in
... ...
@@ -216,6 +216,7 @@ LIBTOOL = @LIBTOOL@
216 216
 LIPO = @LIPO@
217 217
 LN_S = @LN_S@
218 218
 LTLIBOBJS = @LTLIBOBJS@
219
+MAINT = @MAINT@
219 220
 MAKEINFO = @MAKEINFO@
220 221
 MANIFEST_TOOL = @MANIFEST_TOOL@
221 222
 MAX_READLENGTH = @MAX_READLENGTH@
... ...
@@ -330,7 +331,7 @@ top_srcdir = @top_srcdir@
330 331
 all: all-am
331 332
 
332 333
 .SUFFIXES:
333
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
334
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
334 335
 	@for dep in $?; do \
335 336
 	  case '$(am__configure_deps)' in \
336 337
 	    *$$dep*) \
... ...
@@ -355,9 +356,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
355 356
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
356 357
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
357 358
 
358
-$(top_srcdir)/configure:  $(am__configure_deps)
359
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
359 360
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
360
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
361
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
361 362
 	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
362 363
 $(am__aclocal_m4_deps):
363 364
 gmap_compress.pl: $(top_builddir)/config.status $(srcdir)/gmap_compress.pl.in