This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change regexec.c to use new foldEQ functions
[perl5.git] / ext / File-Glob / Makefile.PL
1 use ExtUtils::MakeMaker;
2 use ExtUtils::Constant 0.11 'WriteConstants';
3 WriteMakefile(
4     NAME                => 'File::Glob',
5     VERSION_FROM        => 'Glob.pm',
6     OBJECT              => 'bsd_glob$(OBJ_EXT) Glob$(OBJ_EXT)',
7     realclean => {FILES=> 'const-c.inc const-xs.inc'},
8
9 ## uncomment for glob debugging (will cause make test to fail)
10 #   DEFINE              => '-DGLOB_DEBUG',
11 #   OPTIMIZE            => '-g',
12 );
13 use Config;
14 sub MY::cflags {
15   package MY;
16   my $inherited = shift->SUPER::cflags(@_);
17   if ($Config::Config{archname} =~ /^aix/ and 
18       $Config::Config{use64bitall} eq 'define') {
19     $inherited =~ s/\s-O\d?//m;
20   }
21   $inherited;
22 }
23
24 WriteConstants(
25     NAME => 'File::Glob',
26     NAMES => [qw(GLOB_ABEND GLOB_ALPHASORT GLOB_ALTDIRFUNC GLOB_BRACE GLOB_ERR
27                  GLOB_LIMIT GLOB_MARK GLOB_NOCASE GLOB_NOCHECK GLOB_NOMAGIC
28                  GLOB_NOSORT GLOB_NOSPACE GLOB_QUOTE GLOB_TILDE),
29               {name=>"GLOB_ERROR", macro=>["#ifdef GLOB_ERROR\n\tdMY_CXT;\n\n","#endif\n"]}],
30     BREAKOUT_AT => 8,
31 );