1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License, Version 1.0 only
1N/A# (the "License"). You may not use this file except in compliance
1N/A# with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/Ause ExtUtils::MakeMaker;
1N/Ause ExtUtils::Constant 0.11 'WriteConstants';
1N/AWriteMakefile(
1N/A NAME => 'File::Glob',
1N/A VERSION_FROM => 'Glob.pm',
1N/A MAN3PODS => {}, # Pods will be built by installman.
1N/A OBJECT => 'bsd_glob$(OBJ_EXT) Glob$(OBJ_EXT)',
1N/A realclean => {FILES=> 'const-c.inc const-xs.inc'},
1N/A
1N/A## uncomment for glob debugging (will cause make test to fail)
1N/A# DEFINE => '-DGLOB_DEBUG',
1N/A# OPTIMIZE => '-g',
1N/A);
1N/Ause Config;
1N/Asub MY::cflags {
1N/A package MY;
1N/A my $inherited = shift->SUPER::cflags(@_);
1N/A if ($Config::Config{archname} =~ /^aix/ and
1N/A $Config::Config{use64bitall} eq 'define') {
1N/A $inherited =~ s/\s-O\d?//m;
1N/A }
1N/A $inherited;
1N/A}
1N/A
1N/AWriteConstants(
1N/A NAME => 'File::Glob',
1N/A NAMES => [qw(GLOB_ABEND GLOB_ALPHASORT GLOB_ALTDIRFUNC GLOB_BRACE GLOB_ERR
1N/A GLOB_LIMIT GLOB_MARK GLOB_NOCASE GLOB_NOCHECK GLOB_NOMAGIC
1N/A GLOB_NOSORT GLOB_NOSPACE GLOB_QUOTE GLOB_TILDE),
1N/A {name=>"GLOB_ERROR", macro=>["#ifdef GLOB_ERROR\n\tdMY_CXT;\n\n","#endif\n"]}],
1N/A BREAKOUT_AT => 8,
1N/A);