5 eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
8 # aclocal - create aclocal.m4 by scanning configure.ac
10 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
11 # Free Software Foundation, Inc.
13 # This program is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation; either version 2, or (at your option)
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28 # Written by Tom Tromey <tromey@redhat.com>, and
29 # Alexandre Duret-Lutz <adl@gnu.org>.
33 my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
34 unshift @INC, (split '@PATH_SEPARATOR@', $perllibdir);
40 use Automake::General;
41 use Automake::Configure_ac;
42 use Automake::Channels;
43 use Automake::ChannelDefs;
45 use Automake::FileUtils;
52 # Include paths for searching macros. We search macros in this order:
53 # user-supplied directories first, then the directory containing the
54 # automake macros, and finally the system-wide directories for
55 # third-party macro. @user_includes can be augmented with -I.
56 # @system_includes can be augmented with the `dirlist' file. Also
57 # --acdir will reset both @automake_includes and @system_includes.
58 my @user_includes = ();
59 my @automake_includes = ("@datadir@/aclocal-$APIVERSION");
60 my @system_includes = ('@datadir@/aclocal');
62 # Whether we should copy M4 file in $user_includes[0].
65 # configure.ac or configure.in.
69 my $output_file = 'aclocal.m4';
74 # Modification time of the youngest dependency.
75 my $greatest_mtime = 0;
77 # Which macros have been seen.
80 # Remember the order into which we scanned the files.
81 # It's important to output the contents of aclocal.m4 in the opposite order.
82 # (Definitions in first files we have scanned should override those from
83 # later files. So they must appear last in the output.)
86 # Map macro names to file names.
89 # Ditto, but records the last definition of each macro as returned by --trace.
90 my %map_traced_defs = ();
92 # Map basenames to macro names.
95 # Map file names to file contents.
96 my %file_contents = ();
98 # Map file names to file types.
100 use constant FT_USER => 1;
101 use constant FT_AUTOMAKE => 2;
102 use constant FT_SYSTEM => 3;
104 # Map file names to included files (transitively closed).
105 my %file_includes = ();
107 # Files which have already been added.
110 # Files that have already been scanned.
111 my %scanned_configure_dep = ();
113 # Serial numbers, for files that have one.
114 # The key is the basename of the file,
115 # the value is the serial number represented as a list.
118 # Matches a macro definition.
119 # AC_DEFUN([macroname], ...)
121 # AC_DEFUN(macroname, ...)
122 # When macroname is `['-quoted , we accept any character in the name,
123 # except `]'. Otherwise macroname stops on the first `]', `,', `)',
124 # or `\n' encountered.
126 "(?:AU_ALIAS|A[CU]_DEFUN|AC_DEFUN_ONCE)\\((?:\\[([^]]+)\\]|([^],)\n]+))";
128 # Matches an AC_REQUIRE line.
129 my $ac_require_rx = "AC_REQUIRE\\((?:\\[([^]]+)\\]|([^],)\n]+))\\)";
131 # Matches an m4_include line
132 my $m4_include_rx = "(?:m4_)?s?include\\((?:\\[([^]]+)\\]|([^],)\n]+))\\)";
134 # Match a serial number
135 my $serial_line_rx = '^#\s*serial\s*(.*?)\s*$';
136 my $serial_number_rx = '^\d+(?:\.\d+)*$';
138 ################################################################
140 # Check macros in acinclude.m4. If one is not used, warn.
141 sub check_acinclude ()
143 foreach my $key (keys %map)
145 # FIXME: should print line number of acinclude.m4.
146 msg ('syntax', "warning: macro `$key' defined in "
147 . "acinclude.m4 but never used")
148 if $map{$key} eq 'acinclude.m4' && ! exists $macro_seen{$key};
158 %map_traced_defs = ();
163 %scanned_configure_dep = ();
169 # install_file ($SRC, $DEST)
170 sub install_file ($$)
172 my ($src, $dest) = @_;
175 || !exists $file_contents{$dest}
176 || $file_contents{$src} ne $file_contents{$dest})
178 if (system ('cp', $src, $dest))
180 error ("error while copying `$src' to `$dest'");
184 msg 'note', "installing `$dest'";
189 # Compare two lists of numbers.
190 sub list_compare (\@\@)
198 return (0 == @r) ? 0 : -1;
204 elsif ($l[0] < $r[0])
208 elsif ($l[0] > $r[0])
217 ################################################################
219 # scan_m4_dirs($TYPE, @DIRS)
220 # --------------------------
221 # Scan all M4 files installed in @DIRS for new macro definitions.
222 # Register each file as of type $TYPE (one of the FT_* constants).
223 sub scan_m4_dirs ($@)
225 my ($type, @dirlist) = @_;
227 foreach my $m4dir (@dirlist)
229 if (! opendir (DIR, $m4dir))
231 fatal "couldn't open directory `$m4dir': $!";
234 # We reverse the directory contents so that foo2.m4 gets
235 # used in preference to foo1.m4.
236 foreach my $file (reverse sort grep (! /^\./, readdir (DIR)))
238 # Only examine .m4 files.
239 next unless $file =~ /\.m4$/;
241 # Skip some files when running out of srcdir.
242 next if $file eq 'aclocal.m4';
244 my $fullfile = File::Spec->canonpath ("$m4dir/$file");
245 &scan_file ($type, $fullfile, 'aclocal');
251 # Scan all the installed m4 files and construct a map.
254 # First, scan configure.ac. It may contain macro definitions,
255 # or may include other files that define macros.
256 &scan_file (FT_USER, $configure_ac, 'aclocal');
258 # Then, scan acinclude.m4 if it exists.
259 if (-f 'acinclude.m4')
261 &scan_file (FT_USER, 'acinclude.m4', 'aclocal');
264 # Finally, scan all files in our search paths.
265 scan_m4_dirs (FT_USER, @user_includes);
266 scan_m4_dirs (FT_AUTOMAKE, @automake_includes);
267 scan_m4_dirs (FT_SYSTEM, @system_includes);
269 # Construct a new function that does the searching. We use a
270 # function (instead of just evaluating $search in the loop) so that
271 # "die" is correctly and easily propagated if run.
272 my $search = "sub search {\nmy \$found = 0;\n";
273 foreach my $key (reverse sort keys %map)
275 $search .= ('if (/\b\Q' . $key . '\E(?!\w)/) { & add_macro ("' . $key
276 . '"); $found = 1; }' . "\n");
278 $search .= "return \$found;\n};\n";
280 prog_error "$@\n search is $search" if $@;
283 ################################################################
285 # Add a macro to the output.
290 # Ignore unknown required macros. Either they are not really
291 # needed (e.g., a conditional AC_REQUIRE), in which case aclocal
292 # should be quiet, or they are needed and Autoconf itself will
293 # complain when we trace for macro usage later.
294 return unless defined $map{$macro};
296 verb "saw macro $macro";
297 $macro_seen{$macro} = 1;
298 &add_file ($map{$macro});
301 # scan_configure_dep ($file)
302 # --------------------------
303 # Scan a configure dependency (configure.ac, or separate m4 files)
304 # for uses of know macros and AC_REQUIREs of possibly unknown macros.
305 # Recursively scan m4_included files.
306 sub scan_configure_dep ($)
309 # Do not scan a file twice.
311 if exists $scanned_configure_dep{$file};
312 $scanned_configure_dep{$file} = 1;
314 my $mtime = mtime $file;
315 $greatest_mtime = $mtime if $greatest_mtime < $mtime;
317 my $contents = exists $file_contents{$file} ?
318 $file_contents{$file} : contents $file;
323 foreach (split ("\n", $contents))
326 # Remove comments from current line.
330 while (/$m4_include_rx/go)
332 push (@ilist, $1 || $2);
335 while (/$ac_require_rx/go)
337 push (@rlist, $1 || $2);
340 # The search function is constructed dynamically by
341 # scan_m4_files. The last parenthetical match makes sure we
342 # don't match things that look like macro assignments or
344 if (! &search && /(^|\s+)(AM_[A-Z0-9_]+)($|[^\]\)=A-Z0-9_])/)
346 # Macro not found, but AM_ prefix found.
347 # Make this just a warning, because we do not know whether
348 # the macro is actually used (it could be called conditionally).
349 msg ('unsupported', "$file:$line",
350 "warning: macro `$2' not found in library");
354 add_macro ($_) foreach (@rlist);
355 my $dirname = dirname $file;
356 &scan_configure_dep (File::Spec->rel2abs ($_, $dirname)) foreach (@ilist);
361 # Add $FILE to output.
366 # Only add a file once.
367 return if ($file_added{$file});
368 $file_added{$file} = 1;
370 scan_configure_dep $file;
373 # Point to the documentation for underquoted AC_DEFUN only once.
374 my $underquoted_manual_once = 0;
376 # scan_file ($TYPE, $FILE, $WHERE)
377 # -------------------------
378 # Scan a single M4 file ($FILE), and all files it includes.
379 # Return the list of included files.
380 # $TYPE is one of FT_USER, FT_AUTOMAKE, or FT_SYSTEM, depending
381 # on where the file comes from.
382 # $WHERE is the location to use in the diagnostic if the file
386 my ($type, $file, $where) = @_;
387 my $dirname = dirname $file;
388 my $basename = basename $file;
390 # Do not scan the same file twice.
391 return @{$file_includes{$file}} if exists $file_includes{$file};
392 # Prevent potential infinite recursion (if two files include each other).
393 return () if exists $file_contents{$file};
395 unshift @file_order, $file;
397 $file_type{$file} = $type;
399 fatal "$where: file `$file' does not exist" if ! -e $file;
401 my $fh = new Automake::XFile $file;
408 my $serial_older = 0;
410 while ($_ = $fh->getline)
418 if ($line =~ /$serial_line_rx/go)
421 if ($number !~ /$serial_number_rx/go)
423 msg ('syntax', "$file:$.",
424 "malformed serial number `$number', "
425 . "expecting only digits and dots");
429 # aclocal removes all definitions from M4 file with the
430 # same basename if a greater serial number is found.
431 # Encountering a serial after some macros will undefine
433 msg ('syntax', "$file:$.",
434 'the serial number must appear before any macro definition');
436 # We really care about serials only for non-automake macros
437 # and when --install is used. But the above diagnostics are
438 # made regardless of this, because not using --install is
439 # not a reason not the fix macro files.
440 elsif ($install && $type != FT_AUTOMAKE)
443 my @new = split (/\./, $number);
445 verb "$file:$.: serial $number";
447 if (!exists $serial{$basename}
448 || list_compare (@new, @{$serial{$basename}}) > 0)
450 # Delete any definition we knew from the old macro.
451 foreach my $def (@{$invmap{$basename}})
453 verb "$file:$.: ignoring previous definition of $def";
456 $invmap{$basename} = [];
457 $serial{$basename} = \@new;
466 while ($line =~ /$ac_defun_rx/go)
471 msg ('syntax', "$file:$.", "warning: underquoted definition of $2"
472 . "\n run info '(automake)Extending aclocal'\n"
473 . " or see http://sources.redhat.com/automake/"
474 . "automake.html#Extending-aclocal")
475 unless $underquoted_manual_once;
476 $underquoted_manual_once = 1;
479 # If this macro does not have a serial and we have already
480 # seen a macro with the same basename earlier, we should
481 # ignore the macro (don't exit immediately so we can still
482 # diagnose later #serial numbers and underquoted macros).
483 $serial_older ||= ($type != FT_AUTOMAKE
484 && !$serial_seen && exists $serial{$basename});
486 my $macro = $1 || $2;
487 if (!$serial_older && !defined $map{$macro})
489 verb "found macro $macro in $file: $.";
490 $map{$macro} = $file;
491 push @{$invmap{$basename}}, $macro;
495 # Note: we used to give an error here if we saw a
496 # duplicated macro. However, this turns out to be
497 # extremely unpopular. It causes actual problems which
498 # are hard to work around, especially when you must
499 # mix-and-match tool versions.
500 verb "ignoring macro $macro in $file: $.";
504 while ($line =~ /$m4_include_rx/go)
506 my $ifile = $1 || $2;
507 # m4_include is relative to the directory of the file which
508 # perform the include, but we want paths relative to the
509 # directory where aclocal is run. Do not use
510 # File::Spec->rel2abs, because we want to store relative
511 # paths (they might be used later of aclocal outputs an
512 # m4_include for this file, or if the user itself includes
514 $ifile = "$dirname/$ifile"
515 unless $dirname eq '.' || File::Spec->file_name_is_absolute ($ifile);
516 push (@inc_files, $ifile);
517 $inc_lines{$ifile} = $.;
521 # Ignore any file that has an old serial (or no serial if we know
522 # another one with a serial).
525 ($type != FT_AUTOMAKE && !$serial_seen && exists $serial{$basename}));
527 $file_contents{$file} = $contents;
529 # For some reason I don't understand, it does not work
530 # to do `map { scan_file ($_, ...) } @inc_files' below.
531 # With Perl 5.8.2 it undefines @inc_files.
532 my @copy = @inc_files;
533 my @all_inc_files = (@inc_files,
534 map { scan_file ($type, $_,
535 "$file:$inc_lines{$_}") } @copy);
536 $file_includes{$file} = \@all_inc_files;
537 return @all_inc_files;
540 # strip_redundant_includes (%FILES)
541 # ---------------------------------
542 # Each key in %FILES is a file that must be present in the output.
543 # However some of these files might already include other files in %FILES,
544 # so there is no point in including them another time.
545 # This removes items of %FILES which are already included by another file.
546 sub strip_redundant_includes (%)
549 # Files at the end of @file_order should override those at the beginning,
550 # so it is important to preserve these trailing files. We can remove
551 # a file A if it is going to be output before a file B that includes
552 # file A, not the converse.
553 foreach my $file (reverse @file_order)
555 next unless exists $files{$file};
556 foreach my $ifile (@{$file_includes{$file}})
558 next unless exists $files{$ifile};
559 delete $files{$ifile};
560 verb "$ifile is already included by $file";
566 sub trace_used_macros ()
568 my %files = map { $map{$_} => 1 } keys %macro_seen;
569 $files{'acinclude.m4'} = 1 if -f 'acinclude.m4';
570 %files = strip_redundant_includes %files;
571 # configure.ac is implicitly included.
572 delete $files{$configure_ac};
574 my $traces = ($ENV{AUTOM4TE} || 'autom4te');
575 $traces .= " --language Autoconf-without-aclocal-m4 ";
576 # All candidate files.
577 $traces .= join (' ', grep { exists $files{$_} } @file_order) . " ";
578 # All candidate macros.
579 $traces .= join (' ',
580 (map { "--trace='$_:\$f::\$n::\$1'" } ('AC_DEFUN',
583 # Do not trace $1 for all other macros as we do
584 # not need it and it might contains harmful
585 # characters (like newlines).
586 (map { "--trace='$_:\$f::\$n'" } (keys %macro_seen)));
588 verb "running $traces $configure_ac";
590 my $tracefh = new Automake::XFile ("$traces $configure_ac |");
594 while ($_ = $tracefh->getline)
597 my ($file, $macro, $arg1) = split (/::/);
599 $traced{$macro} = 1 if exists $macro_seen{$macro};
601 $map_traced_defs{$arg1} = $file
602 if ($macro eq 'AC_DEFUN'
603 || $macro eq 'AC_DEFUN_ONCE'
604 || $macro eq 'AU_DEFUN');
612 sub scan_configure ()
614 # Make sure we include acinclude.m4 if it exists.
615 if (-f 'acinclude.m4')
617 add_file ('acinclude.m4');
619 scan_configure_dep ($configure_ac);
622 ################################################################
625 # Return 0 iff some files were installed locally.
626 sub write_aclocal ($@)
628 my ($output_file, @macros) = @_;
632 # Get the list of files containing definitions for the macros used.
633 # (Filter out unused macro definitions with $map_traced_defs. This
634 # can happen when an Autoconf macro is conditionally defined:
635 # aclocal sees the potential definition, but this definition is
636 # actually never processed and the Autoconf implementation is used
641 if (exists $map_traced_defs{$m}
642 && $map{$m} eq $map_traced_defs{$m});
644 # Always include acinclude.m4, even if it does not appear to be used.
645 $files{'acinclude.m4'} = 1 if -f 'acinclude.m4';
646 # Do not explicitly include a file that is already indirectly included.
647 %files = strip_redundant_includes %files;
648 # Never include configure.ac :)
649 delete $files{$configure_ac};
653 for my $file (grep { exists $files{$_} } @file_order)
655 # Check the time stamp of this file, and of all files it includes.
656 for my $ifile ($file, @{$file_includes{$file}})
658 my $mtime = mtime $ifile;
659 $greatest_mtime = $mtime if $greatest_mtime < $mtime;
662 # If the file to add looks like outside the project, copy it
663 # to the output. The regex catches filenames starting with
664 # things like `/', `\', or `c:\'.
665 if ($file_type{$file} != FT_USER
666 || $file =~ m,^(?:\w:)?[\\/],)
668 if (!$install || $file_type{$file} != FT_SYSTEM)
670 # Copy the file into aclocal.m4.
671 $output .= $file_contents{$file} . "\n";
675 # Install the file (and any file it includes).
677 for my $ifile (@{$file_includes{$file}}, $file)
679 $dest = "$user_includes[0]/" . basename $ifile;
680 verb "installing $ifile to $dest";
681 install_file ($ifile, $dest);
688 # Otherwise, simply include the file.
689 $output .= "m4_include([$file])\n";
695 verb "running aclocal anew, because some files were installed locally";
699 # Nothing to output?!
700 # FIXME: Shouldn't we diagnose this?
701 return 1 if ! length ($output);
703 # We used to print `# $output_file generated automatically etc.' But
704 # this creates spurious differences when using autoreconf. Autoreconf
705 # creates aclocal.m4t and then rename it to aclocal.m4, but the
706 # rebuild rules generated by Automake create aclocal.m4 directly --
707 # this would gives two ways to get the same file, with a different
708 # name in the header.
709 $output = "# generated automatically by aclocal $VERSION -*- Autoconf -*-
711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
712 # 2005 Free Software Foundation, Inc.
713 # This file is free software; the Free Software Foundation
714 # gives unlimited permission to copy and/or distribute it,
715 # with or without modifications, as long as this notice is preserved.
717 # This program is distributed in the hope that it will be useful,
718 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
719 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
720 # PARTICULAR PURPOSE.
724 # We try not to update $output_file unless necessary, because
725 # doing so invalidate Autom4te's cache and therefore slows down
726 # tools called after aclocal.
728 # We need to overwrite $output_file in the following situations.
729 # * The --force option is in use.
730 # * One of the dependencies is younger.
731 # (Not updating $output_file in this situation would cause
732 # make to call aclocal in loop.)
733 # * The contents of the current file are different from what
736 && $greatest_mtime < mtime ($output_file)
737 && $output eq contents ($output_file))
739 verb "$output_file unchanged";
743 verb "writing $output_file";
745 my $out = new Automake::XFile "> $output_file";
750 ################################################################
752 # Print usage and exit.
757 print "Usage: aclocal [OPTIONS] ...
759 Generate `aclocal.m4' by scanning `configure.ac' or `configure.in'
762 --acdir=DIR directory holding config files (for debugging)
763 --force always update output file
764 --help print this help, then exit
765 -I DIR add directory to search list for .m4 files
766 --install copy third-party files to the first -I directory
767 --output=FILE put output in FILE (default aclocal.m4)
768 --print-ac-dir print name of directory holding m4 files, then exit
769 --verbose don't be silent
770 --version print version number, then exit
771 -W, --warnings=CATEGORY report the warnings falling in CATEGORY
773 Warning categories include:
774 `syntax' dubious syntactic constructs (default)
775 `unsupported' unknown macros (default)
776 `all' all the warnings (default)
777 `no-CATEGORY' turn off warnings in CATEGORY
778 `none' turn off all the warnings
779 `error' treat warnings as errors
781 Report bugs to <bug-automake\@gnu.org>.\n";
786 # Print version and exit.
790 aclocal (GNU $PACKAGE) $VERSION
791 Written by Tom Tromey <tromey\@redhat.com>
792 and Alexandre Duret-Lutz <adl\@gnu.org>.
794 Copyright (C) 2005 Free Software Foundation, Inc.
795 This is free software; see the source for copying conditions. There is NO
796 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
801 # Parse command line.
802 sub parse_arguments ()
804 my $print_and_exit = 0;
808 'acdir=s' => sub # Setting --acdir overrides both the
809 { # automake (versioned) directory and the
810 # public (unversioned) system directory.
811 @automake_includes = ();
812 @system_includes = ($_[1])
814 'force' => \$force_output,
815 'I=s' => \@user_includes,
816 'install' => \$install,
817 'output=s' => \$output_file,
818 'print-ac-dir' => \$print_and_exit,
819 'verbose' => sub { setup_channel 'verb', silent => 0; },
820 'W|warnings=s' => \&parse_warnings,
823 Getopt::Long::config ("bundling", "pass_through");
825 # See if --version or --help is used. We want to process these before
826 # anything else because the GNU Coding Standards require us to
827 # `exit 0' after processing these options, and we can't guarantee this
828 # if we treat other options first. (Handling other options first
829 # could produce error diagnostics, and in this condition it is
830 # confusing if aclocal does `exit 0'.)
831 my %cli_options_1st_pass =
833 'version' => \&version,
834 'help' => sub { usage(0); },
835 # Recognize all other options (and their arguments) but do nothing.
836 map { $_ => sub {} } (keys %cli_options)
838 my @ARGV_backup = @ARGV;
839 Getopt::Long::GetOptions %cli_options_1st_pass
841 @ARGV = @ARGV_backup;
843 # Now *really* process the options. This time we know that --help
844 # and --version are not present, but we specify them nonetheless so
845 # that ambiguous abbreviation are diagnosed.
846 Getopt::Long::GetOptions %cli_options, 'version' => sub {}, 'help' => sub {}
852 for my $k (keys %cli_options)
856 map { $argopts{(length ($_) == 1)
857 ? "-$_" : "--$_" } = 1; } (split (/\|/, $1));
860 if (exists $argopts{$ARGV[0]})
862 fatal ("option `$ARGV[0]' requires an argument\n"
863 . "Try `$0 --help' for more information.");
867 fatal ("unrecognized option `$ARGV[0]'\n"
868 . "Try `$0 --help' for more information.");
874 print "@system_includes\n";
878 if ($install && !@user_includes)
880 fatal ("--install should copy macros in the directory indicated by the"
881 . "\nfirst -I option, but no -I was supplied.");
884 if (! -d $system_includes[0])
886 # By default $(datadir)/aclocal doesn't exist. We don't want to
887 # get an error in the case where we are searching the default
888 # directory and it hasn't been created. (We know
889 # @system_includes has its default value if @automake_includes
890 # is not empty, because --acdir is the only way to change this.)
891 @system_includes = () if @automake_includes;
895 # Finally, adds any directory listed in the `dirlist' file.
896 if (open (DIRLIST, "$system_includes[0]/dirlist"))
902 # strip off newlines and end-of-line comments
905 push (@system_includes, $_) if -d $_;
912 ################################################################
914 parse_WARNINGS; # Parse the WARNINGS environment variable.
916 $configure_ac = require_configure_ac;
918 # We may have to rerun aclocal if some file have been installed, but
919 # it should not happen more than once. The reason we must run again
920 # is that once the file has been moved from /usr/share/aclocal/ to the
921 # local m4/ directory it appears at a new place in the search path,
922 # hence it should be output at a different position in aclocal.m4. If
923 # we did not rerun aclocal, the next run of aclocal would produce a
924 # different aclocal.m4.
929 prog_error "Too many loops." if $loop > 2;
935 my %macro_traced = trace_used_macros;
936 last if write_aclocal ($output_file, keys %macro_traced);
942 ### Setup "GNU" style for perl-mode and cperl-mode.
944 ## perl-indent-level: 2
945 ## perl-continued-statement-offset: 2
946 ## perl-continued-brace-offset: 0
947 ## perl-brace-offset: 0
948 ## perl-brace-imaginary-offset: 0
949 ## perl-label-offset: -2
950 ## cperl-indent-level: 2
951 ## cperl-brace-offset: 0
952 ## cperl-continued-brace-offset: 0
953 ## cperl-label-offset: -2
954 ## cperl-extra-newline-before-brace: t
955 ## cperl-merge-trailing-else: nil
956 ## cperl-continued-statement-offset: 2