VirtualBox

Changeset 501 in kBuild for vendor/gnumake/current/aclocal.m4


Ignore:
Timestamp:
Sep 15, 2006 2:30:32 AM (18 years ago)
Author:
bird
Message:

Load make-3.81/ into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/aclocal.m4

    r149 r501  
    1 # generated automatically by aclocal 1.8.2 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    4 # Free Software Foundation, Inc.
     1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
     2
     3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     4# 2005  Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
    66# gives unlimited permission to copy and/or distribute it,
     
    1212# PARTICULAR PURPOSE.
    1313
    14 #                                                        -*- Autoconf -*-
    15 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
    16 # Generated from amversion.in; do not edit by hand.
    17 
    18 # This program is free software; you can redistribute it and/or modify
    19 # it under the terms of the GNU General Public License as published by
    20 # the Free Software Foundation; either version 2, or (at your option)
    21 # any later version.
    22 
    23 # This program is distributed in the hope that it will be useful,
    24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    26 # GNU General Public License for more details.
    27 
    28 # You should have received a copy of the GNU General Public License
    29 # along with this program; if not, write to the Free Software
    30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     14# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
     15#
     16# This file is free software; the Free Software Foundation
     17# gives unlimited permission to copy and/or distribute it,
     18# with or without modifications, as long as this notice is preserved.
    3119
    3220# AM_AUTOMAKE_VERSION(VERSION)
     
    3422# Automake X.Y traces this macro to ensure aclocal.m4 has been
    3523# generated from the m4 files accompanying Automake X.Y.
    36 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
     24AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
    3725
    3826# AM_SET_CURRENT_AUTOMAKE_VERSION
     
    4129# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    4230AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    43          [AM_AUTOMAKE_VERSION([1.8.2])])
    44 
    45 # AM_AUX_DIR_EXPAND
    46 
    47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    48 
    49 # This program is free software; you can redistribute it and/or modify
    50 # it under the terms of the GNU General Public License as published by
    51 # the Free Software Foundation; either version 2, or (at your option)
    52 # any later version.
    53 
    54 # This program is distributed in the hope that it will be useful,
    55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    57 # GNU General Public License for more details.
    58 
    59 # You should have received a copy of the GNU General Public License
    60 # along with this program; if not, write to the Free Software
    61 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    62 # 02111-1307, USA.
     31         [AM_AUTOMAKE_VERSION([1.9.6])])
     32
     33# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     34
     35# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
     36#
     37# This file is free software; the Free Software Foundation
     38# gives unlimited permission to copy and/or distribute it,
     39# with or without modifications, as long as this notice is preserved.
    6340
    6441# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     
    10784])
    10885
    109 # AM_CONDITIONAL                                              -*- Autoconf -*-
    110 
    111 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    112 
    113 # This program is free software; you can redistribute it and/or modify
    114 # it under the terms of the GNU General Public License as published by
    115 # the Free Software Foundation; either version 2, or (at your option)
    116 # any later version.
    117 
    118 # This program is distributed in the hope that it will be useful,
    119 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    121 # GNU General Public License for more details.
    122 
    123 # You should have received a copy of the GNU General Public License
    124 # along with this program; if not, write to the Free Software
    125 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    126 # 02111-1307, USA.
    127 
    128 # serial 6
     86# AM_CONDITIONAL                                            -*- Autoconf -*-
     87
     88# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
     89# Free Software Foundation, Inc.
     90#
     91# This file is free software; the Free Software Foundation
     92# gives unlimited permission to copy and/or distribute it,
     93# with or without modifications, as long as this notice is preserved.
     94
     95# serial 7
    12996
    13097# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     
    146113AC_CONFIG_COMMANDS_PRE(
    147114[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    148   AC_MSG_ERROR([conditional "$1" was never defined.
    149 Usually this means the macro was only invoked conditionally.])
     115  AC_MSG_ERROR([[conditional "$1" was never defined.
     116Usually this means the macro was only invoked conditionally.]])
    150117fi])])
    151118
    152 # serial 6                                              -*- Autoconf -*-
    153 
    154 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
     119
     120# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
    155121# Free Software Foundation, Inc.
    156 
    157 # This program is free software; you can redistribute it and/or modify
    158 # it under the terms of the GNU General Public License as published by
    159 # the Free Software Foundation; either version 2, or (at your option)
    160 # any later version.
    161 
    162 # This program is distributed in the hope that it will be useful,
    163 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    164 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    165 # GNU General Public License for more details.
    166 
    167 # You should have received a copy of the GNU General Public License
    168 # along with this program; if not, write to the Free Software
    169 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    170 # 02111-1307, USA.
    171 
     122#
     123# This file is free software; the Free Software Foundation
     124# gives unlimited permission to copy and/or distribute it,
     125# with or without modifications, as long as this notice is preserved.
     126
     127# serial 8
    172128
    173129# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     
    176132# C support machinery.  Also note that it means that autoscan, seeing
    177133# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    178 
    179134
    180135
     
    237192    for i in 1 2 3 4 5 6; do
    238193      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    239       : > sub/conftst$i.h
     194      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     195      # Solaris 8's {/usr,}/bin/sh.
     196      touch sub/conftst$i.h
    240197    done
    241198    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     
    265222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    266223      # icc doesn't choke on unknown options, it will just issue warnings
    267       # (even with -Werror).  So we grep stderr for any message
    268       # that says an option was ignored.
    269       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
     224      # or remarks (even with -Werror).  So we grep stderr for any message
     225      # that says an option was ignored or not supported.
     226      # When given -MP, icc 7.0 and 7.1 complain thusly:
     227      #   icc: Command line warning: ignoring option '-M'; no argument required
     228      # The diagnosis changed in icc 8.0:
     229      #   icc: Command line remark: option '-MP' not supported
     230      if (grep 'ignoring option' conftest.err ||
     231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    270232        am_cv_$1_dependencies_compiler_type=$depmode
    271233        break
     
    311273])
    312274
    313 # Generate code to set up dependency tracking.   -*- Autoconf -*-
    314 
    315 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    316 
    317 # This program is free software; you can redistribute it and/or modify
    318 # it under the terms of the GNU General Public License as published by
    319 # the Free Software Foundation; either version 2, or (at your option)
    320 # any later version.
    321 
    322 # This program is distributed in the hope that it will be useful,
    323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    325 # GNU General Public License for more details.
    326 
    327 # You should have received a copy of the GNU General Public License
    328 # along with this program; if not, write to the Free Software
    329 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    330 # 02111-1307, USA.
    331 
    332 #serial 2
     275# Generate code to set up dependency tracking.              -*- Autoconf -*-
     276
     277# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
     278# Free Software Foundation, Inc.
     279#
     280# This file is free software; the Free Software Foundation
     281# gives unlimited permission to copy and/or distribute it,
     282# with or without modifications, as long as this notice is preserved.
     283
     284#serial 3
    333285
    334286# _AM_OUTPUT_DEPENDENCY_COMMANDS
     
    349301    continue
    350302  fi
    351   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
    352   # Extract the definition of DEP_FILES from the Makefile without
    353   # running `make'.
    354   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     303  # Extract the definition of DEPDIR, am__include, and am__quote
     304  # from the Makefile without running `make'.
     305  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    355306  test -z "$DEPDIR" && continue
     307  am__include=`sed -n 's/^am__include = //p' < "$mf"`
     308  test -z "am__include" && continue
     309  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    356310  # When using ansi2knr, U may be empty or an underscore; expand it
    357   U=`sed -n -e '/^U = / s///p' < "$mf"`
    358   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    359   # We invoke sed twice because it is the simplest approach to
    360   # changing $(DEPDIR) to its actual value in the expansion.
    361   for file in `sed -n -e '
    362     /^DEP_FILES = .*\\\\$/ {
    363       s/^DEP_FILES = //
    364       :loop
    365         s/\\\\$//
    366         p
    367         n
    368         /\\\\$/ b loop
    369       p
    370     }
    371     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
     311  U=`sed -n 's/^U = //p' < "$mf"`
     312  # Find all dependency output files, they are included files with
     313  # $(DEPDIR) in their names.  We invoke sed twice because it is the
     314  # simplest approach to changing $(DEPDIR) to its actual value in the
     315  # expansion.
     316  for file in `sed -n "
     317    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
    372318       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    373319    # Make sure the directory exists.
     
    396342
    397343
    398 # Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003
     344# Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005
    399345# Free Software Foundation, Inc.
    400 
    401 # This program is free software; you can redistribute it and/or modify
    402 # it under the terms of the GNU General Public License as published by
    403 # the Free Software Foundation; either version 2, or (at your option)
    404 # any later version.
    405 
    406 # This program is distributed in the hope that it will be useful,
    407 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    408 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    409 # GNU General Public License for more details.
    410 
    411 # You should have received a copy of the GNU General Public License
    412 # along with this program; if not, write to the Free Software
    413 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    414 # 02111-1307, USA.
    415 
    416 # serial 2
     346#
     347# This file is free software; the Free Software Foundation
     348# gives unlimited permission to copy and/or distribute it,
     349# with or without modifications, as long as this notice is preserved.
     350
     351# serial 3
    417352
    418353AC_DEFUN([AM_WITH_DMALLOC],
     
    434369AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC])
    435370
    436 # Do all the work for Automake.                            -*- Autoconf -*-
    437 
    438 # This macro actually does too much some checks are only needed if
     371# Do all the work for Automake.                             -*- Autoconf -*-
     372
     373# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     374# Free Software Foundation, Inc.
     375#
     376# This file is free software; the Free Software Foundation
     377# gives unlimited permission to copy and/or distribute it,
     378# with or without modifications, as long as this notice is preserved.
     379
     380# serial 12
     381
     382# This macro actually does too much.  Some checks are only needed if
    439383# your package does certain things.  But this isn't really a big deal.
    440 
    441 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    442 # Free Software Foundation, Inc.
    443 
    444 # This program is free software; you can redistribute it and/or modify
    445 # it under the terms of the GNU General Public License as published by
    446 # the Free Software Foundation; either version 2, or (at your option)
    447 # any later version.
    448 
    449 # This program is distributed in the hope that it will be useful,
    450 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    452 # GNU General Public License for more details.
    453 
    454 # You should have received a copy of the GNU General Public License
    455 # along with this program; if not, write to the Free Software
    456 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    457 # 02111-1307, USA.
    458 
    459 # serial 11
    460384
    461385# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     
    515439AM_MISSING_PROG(AUTOHEADER, autoheader)
    516440AM_MISSING_PROG(MAKEINFO, makeinfo)
    517 AM_MISSING_PROG(AMTAR, tar)
    518441AM_PROG_INSTALL_SH
    519442AM_PROG_INSTALL_STRIP
     
    524447AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    525448AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    526 
     449_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
     450              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
     451                             [_AM_PROG_TAR([v7])])])
    527452_AM_IF_OPTION([no-dependencies],,
    528453[AC_PROVIDE_IFELSE([AC_PROG_CC],
     
    558483echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
    559484
     485# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
     486#
     487# This file is free software; the Free Software Foundation
     488# gives unlimited permission to copy and/or distribute it,
     489# with or without modifications, as long as this notice is preserved.
     490
    560491# AM_PROG_INSTALL_SH
    561492# ------------------
    562493# Define $install_sh.
    563 
    564 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    565 
    566 # This program is free software; you can redistribute it and/or modify
    567 # it under the terms of the GNU General Public License as published by
    568 # the Free Software Foundation; either version 2, or (at your option)
    569 # any later version.
    570 
    571 # This program is distributed in the hope that it will be useful,
    572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    574 # GNU General Public License for more details.
    575 
    576 # You should have received a copy of the GNU General Public License
    577 # along with this program; if not, write to the Free Software
    578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    579 # 02111-1307, USA.
    580 
    581494AC_DEFUN([AM_PROG_INSTALL_SH],
    582495[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     
    584497AC_SUBST(install_sh)])
    585498
    586 #                                                          -*- Autoconf -*-
    587 # Copyright (C) 2003  Free Software Foundation, Inc.
    588 
    589 # This program is free software; you can redistribute it and/or modify
    590 # it under the terms of the GNU General Public License as published by
    591 # the Free Software Foundation; either version 2, or (at your option)
    592 # any later version.
    593 
    594 # This program is distributed in the hope that it will be useful,
    595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    597 # GNU General Public License for more details.
    598 
    599 # You should have received a copy of the GNU General Public License
    600 # along with this program; if not, write to the Free Software
    601 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    602 # 02111-1307, USA.
    603 
    604 # serial 1
     499# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
     500#
     501# This file is free software; the Free Software Foundation
     502# gives unlimited permission to copy and/or distribute it,
     503# with or without modifications, as long as this notice is preserved.
     504
     505# serial 2
    605506
    606507# Check whether the underlying file-system supports filenames
     
    617518AC_SUBST([am__leading_dot])])
    618519
    619 # Check to see how 'make' treats includes.      -*- Autoconf -*-
    620 
    621 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    622 
    623 # This program is free software; you can redistribute it and/or modify
    624 # it under the terms of the GNU General Public License as published by
    625 # the Free Software Foundation; either version 2, or (at your option)
    626 # any later version.
    627 
    628 # This program is distributed in the hope that it will be useful,
    629 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    630 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    631 # GNU General Public License for more details.
    632 
    633 # You should have received a copy of the GNU General Public License
    634 # along with this program; if not, write to the Free Software
    635 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    636 # 02111-1307, USA.
    637 
    638 # serial 2
     520# Check to see how 'make' treats includes.                  -*- Autoconf -*-
     521
     522# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
     523#
     524# This file is free software; the Free Software Foundation
     525# gives unlimited permission to copy and/or distribute it,
     526# with or without modifications, as long as this notice is preserved.
     527
     528# serial 3
    639529
    640530# AM_MAKE_INCLUDE()
     
    680570])
    681571
    682 # serial 2
     572# Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
     573#
     574# This file is free software; the Free Software Foundation
     575# gives unlimited permission to copy and/or distribute it,
     576# with or without modifications, as long as this notice is preserved.
     577
     578# serial 3
    683579
    684580# AM_PROG_CC_C_O
    685581# --------------
    686582# Like AC_PROG_CC_C_O, but changed for automake.
    687 
    688 # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    689 
    690 # This program is free software; you can redistribute it and/or modify
    691 # it under the terms of the GNU General Public License as published by
    692 # the Free Software Foundation; either version 2, or (at your option)
    693 # any later version.
    694 
    695 # This program is distributed in the hope that it will be useful,
    696 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    697 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    698 # GNU General Public License for more details.
    699 
    700 # You should have received a copy of the GNU General Public License
    701 # along with this program; if not, write to the Free Software
    702 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    703 # 02111-1307, USA.
    704 
    705583AC_DEFUN([AM_PROG_CC_C_O],
    706584[AC_REQUIRE([AC_PROG_CC_C_O])dnl
     
    720598])
    721599
    722 #  -*- Autoconf -*-
    723 
    724 
    725 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    726 
    727 # This program is free software; you can redistribute it and/or modify
    728 # it under the terms of the GNU General Public License as published by
    729 # the Free Software Foundation; either version 2, or (at your option)
    730 # any later version.
    731 
    732 # This program is distributed in the hope that it will be useful,
    733 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    734 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    735 # GNU General Public License for more details.
    736 
    737 # You should have received a copy of the GNU General Public License
    738 # along with this program; if not, write to the Free Software
    739 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    740 # 02111-1307, USA.
    741 
    742 # serial 3
     600# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
     601
     602# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
     603# Free Software Foundation, Inc.
     604#
     605# This file is free software; the Free Software Foundation
     606# gives unlimited permission to copy and/or distribute it,
     607# with or without modifications, as long as this notice is preserved.
     608
     609# serial 4
    743610
    744611# AM_MISSING_PROG(NAME, PROGRAM)
     
    766633])
    767634
     635# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
     636#
     637# This file is free software; the Free Software Foundation
     638# gives unlimited permission to copy and/or distribute it,
     639# with or without modifications, as long as this notice is preserved.
     640
    768641# AM_PROG_MKDIR_P
    769642# ---------------
    770643# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
    771 
    772 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    773 
    774 # This program is free software; you can redistribute it and/or modify
    775 # it under the terms of the GNU General Public License as published by
    776 # the Free Software Foundation; either version 2, or (at your option)
    777 # any later version.
    778 
    779 # This program is distributed in the hope that it will be useful,
    780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    782 # GNU General Public License for more details.
    783 
    784 # You should have received a copy of the GNU General Public License
    785 # along with this program; if not, write to the Free Software
    786 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    787 # 02111-1307, USA.
    788 
     644#
    789645# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
    790646# created by `make install' are always world readable, even if the
     
    797653# Do not use -m 0755 and let people choose whatever they expect by
    798654# setting umask.
     655#
     656# We cannot accept any implementation of `mkdir' that recognizes `-p'.
     657# Some implementations (such as Solaris 8's) are not thread-safe: if a
     658# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
     659# concurrently, both version can detect that a/ is missing, but only
     660# one can create it and the other will error out.  Consequently we
     661# restrict ourselves to GNU make (using the --version option ensures
     662# this.)
    799663AC_DEFUN([AM_PROG_MKDIR_P],
    800 [if mkdir -p -- . 2>/dev/null; then
    801   # Keeping the `.' argument allows $(mkdir_p) to be used without
    802   # argument.  Indeed, we sometimes output rules like
     664[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     665  # We used to keeping the `.' as first argument, in order to
     666  # allow $(mkdir_p) to be used without argument.  As in
    803667  #   $(mkdir_p) $(somedir)
    804   # where $(somedir) is conditionally defined.
    805   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
    806   # expensive solution, as it forces Make to start a sub-shell.)
    807   mkdir_p='mkdir -p -- .'
     668  # where $(somedir) is conditionally defined.  However this is wrong
     669  # for two reasons:
     670  #  1. if the package is installed by a user who cannot write `.'
     671  #     make install will fail,
     672  #  2. the above comment should most certainly read
     673  #     $(mkdir_p) $(DESTDIR)$(somedir)
     674  #     so it does not work when $(somedir) is undefined and
     675  #     $(DESTDIR) is not.
     676  #  To support the latter case, we have to write
     677  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
     678  #  so the `.' trick is pointless.
     679  mkdir_p='mkdir -p --'
    808680else
    809681  # On NextStep and OpenStep, the `mkdir' command does not
     
    811683  # directories to create, and then abort because `.' already
    812684  # exists.
    813   for d in ./-p ./--;
     685  for d in ./-p ./--version;
    814686  do
    815687    test -d $d && rmdir $d
     
    824696AC_SUBST([mkdir_p])])
    825697
    826 # Helper functions for option handling.                    -*- Autoconf -*-
    827 
    828 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
    829 
    830 # This program is free software; you can redistribute it and/or modify
    831 # it under the terms of the GNU General Public License as published by
    832 # the Free Software Foundation; either version 2, or (at your option)
    833 # any later version.
    834 
    835 # This program is distributed in the hope that it will be useful,
    836 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    838 # GNU General Public License for more details.
    839 
    840 # You should have received a copy of the GNU General Public License
    841 # along with this program; if not, write to the Free Software
    842 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    843 # 02111-1307, USA.
    844 
    845 # serial 2
     698# Helper functions for option handling.                     -*- Autoconf -*-
     699
     700# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
     701#
     702# This file is free software; the Free Software Foundation
     703# gives unlimited permission to copy and/or distribute it,
     704# with or without modifications, as long as this notice is preserved.
     705
     706# serial 3
    846707
    847708# _AM_MANGLE_OPTION(NAME)
     
    868729[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    869730
    870 
    871 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
     731# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
    872732# Free Software Foundation, Inc.
    873 
    874 # This program is free software; you can redistribute it and/or modify
    875 # it under the terms of the GNU General Public License as published by
    876 # the Free Software Foundation; either version 2, or (at your option)
    877 # any later version.
    878 
    879 # This program is distributed in the hope that it will be useful,
    880 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    881 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    882 # GNU General Public License for more details.
    883 
    884 # You should have received a copy of the GNU General Public License
    885 # along with this program; if not, write to the Free Software
    886 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    887 # 02111-1307, USA.
    888 
    889 # serial 3
     733#
     734# This file is free software; the Free Software Foundation
     735# gives unlimited permission to copy and/or distribute it,
     736# with or without modifications, as long as this notice is preserved.
     737
     738# serial 4
    890739
    891740AC_DEFUN([AM_C_PROTOTYPES],
     
    905754AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
    906755
    907 #
    908 # Check to make sure that the build environment is sane.
    909 #
    910 
    911 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    912 
    913 # This program is free software; you can redistribute it and/or modify
    914 # it under the terms of the GNU General Public License as published by
    915 # the Free Software Foundation; either version 2, or (at your option)
    916 # any later version.
    917 
    918 # This program is distributed in the hope that it will be useful,
    919 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    920 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    921 # GNU General Public License for more details.
    922 
    923 # You should have received a copy of the GNU General Public License
    924 # along with this program; if not, write to the Free Software
    925 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    926 # 02111-1307, USA.
    927 
    928 # serial 3
     756# Check to make sure that the build environment is sane.    -*- Autoconf -*-
     757
     758# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
     759# Free Software Foundation, Inc.
     760#
     761# This file is free software; the Free Software Foundation
     762# gives unlimited permission to copy and/or distribute it,
     763# with or without modifications, as long as this notice is preserved.
     764
     765# serial 4
    929766
    930767# AM_SANITY_CHECK
     
    969806AC_MSG_RESULT(yes)])
    970807
     808# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
     809#
     810# This file is free software; the Free Software Foundation
     811# gives unlimited permission to copy and/or distribute it,
     812# with or without modifications, as long as this notice is preserved.
     813
    971814# AM_PROG_INSTALL_STRIP
    972 
    973 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    974 
    975 # This program is free software; you can redistribute it and/or modify
    976 # it under the terms of the GNU General Public License as published by
    977 # the Free Software Foundation; either version 2, or (at your option)
    978 # any later version.
    979 
    980 # This program is distributed in the hope that it will be useful,
    981 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    983 # GNU General Public License for more details.
    984 
    985 # You should have received a copy of the GNU General Public License
    986 # along with this program; if not, write to the Free Software
    987 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    988 # 02111-1307, USA.
    989 
     815# ---------------------
    990816# One issue with vendor `install' (even GNU) is that you can't
    991817# specify the program used to strip binaries.  This is especially
     
    1008834AC_SUBST([INSTALL_STRIP_PROGRAM])])
    1009835
     836# Check how to create a tarball.                            -*- Autoconf -*-
     837
     838# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
     839#
     840# This file is free software; the Free Software Foundation
     841# gives unlimited permission to copy and/or distribute it,
     842# with or without modifications, as long as this notice is preserved.
     843
     844# serial 2
     845
     846# _AM_PROG_TAR(FORMAT)
     847# --------------------
     848# Check how to create a tarball in format FORMAT.
     849# FORMAT should be one of `v7', `ustar', or `pax'.
     850#
     851# Substitute a variable $(am__tar) that is a command
     852# writing to stdout a FORMAT-tarball containing the directory
     853# $tardir.
     854#     tardir=directory && $(am__tar) > result.tar
     855#
     856# Substitute a variable $(am__untar) that extract such
     857# a tarball read from stdin.
     858#     $(am__untar) < result.tar
     859AC_DEFUN([_AM_PROG_TAR],
     860[# Always define AMTAR for backward compatibility.
     861AM_MISSING_PROG([AMTAR], [tar])
     862m4_if([$1], [v7],
     863     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
     864     [m4_case([$1], [ustar],, [pax],,
     865              [m4_fatal([Unknown tar format])])
     866AC_MSG_CHECKING([how to create a $1 tar archive])
     867# Loop over all known methods to create a tar archive until one works.
     868_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
     869_am_tools=${am_cv_prog_tar_$1-$_am_tools}
     870# Do not fold the above two line into one, because Tru64 sh and
     871# Solaris sh will not grok spaces in the rhs of `-'.
     872for _am_tool in $_am_tools
     873do
     874  case $_am_tool in
     875  gnutar)
     876    for _am_tar in tar gnutar gtar;
     877    do
     878      AM_RUN_LOG([$_am_tar --version]) && break
     879    done
     880    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
     881    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
     882    am__untar="$_am_tar -xf -"
     883    ;;
     884  plaintar)
     885    # Must skip GNU tar: if it does not support --format= it doesn't create
     886    # ustar tarball either.
     887    (tar --version) >/dev/null 2>&1 && continue
     888    am__tar='tar chf - "$$tardir"'
     889    am__tar_='tar chf - "$tardir"'
     890    am__untar='tar xf -'
     891    ;;
     892  pax)
     893    am__tar='pax -L -x $1 -w "$$tardir"'
     894    am__tar_='pax -L -x $1 -w "$tardir"'
     895    am__untar='pax -r'
     896    ;;
     897  cpio)
     898    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
     899    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
     900    am__untar='cpio -i -H $1 -d'
     901    ;;
     902  none)
     903    am__tar=false
     904    am__tar_=false
     905    am__untar=false
     906    ;;
     907  esac
     908
     909  # If the value was cached, stop now.  We just wanted to have am__tar
     910  # and am__untar set.
     911  test -n "${am_cv_prog_tar_$1}" && break
     912
     913  # tar/untar a dummy directory, and stop if the command works
     914  rm -rf conftest.dir
     915  mkdir conftest.dir
     916  echo GrepMe > conftest.dir/file
     917  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
     918  rm -rf conftest.dir
     919  if test -s conftest.tar; then
     920    AM_RUN_LOG([$am__untar <conftest.tar])
     921    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
     922  fi
     923done
     924rm -rf conftest.dir
     925
     926AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
     927AC_MSG_RESULT([$am_cv_prog_tar_$1])])
     928AC_SUBST([am__tar])
     929AC_SUBST([am__untar])
     930]) # _AM_PROG_TAR
     931
    1010932m4_include([config/dospaths.m4])
    1011933m4_include([config/gettext.m4])
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette