Changeset 60fc8aa for aclocal.m4


Ignore:
Timestamp:
08/10/04 16:47:01 (18 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
8ba625e
Parents:
97eadcc
Message:

poink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r7957e84 r60fc8aa  
    491491  $1_FALSE=
    492492fi])
     493
     494# Like AC_CONFIG_HEADER, but automatically create stamp file.
     495
     496# serial 3
     497
     498# When config.status generates a header, we must update the stamp-h file.
     499# This file resides in the same directory as the config header
     500# that is generated.  We must strip everything past the first ":",
     501# and everything past the last "/".
     502
     503AC_PREREQ([2.12])
     504
     505AC_DEFUN([AM_CONFIG_HEADER],
     506[ifdef([AC_FOREACH],dnl
     507         [dnl init our file count if it isn't already
     508         m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
     509         dnl prepare to store our destination file list for use in config.status
     510         AC_FOREACH([_AM_File], [$1],
     511                    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
     512                    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
     513                    dnl and add it to the list of files AC keeps track of, along
     514                    dnl with our hook
     515                    AC_CONFIG_HEADERS(_AM_File,
     516dnl COMMANDS, [, INIT-CMDS]
     517[# update the timestamp
     518echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
     519][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
     520                    m4_popdef([_AM_Dest])])],dnl
     521[AC_CONFIG_HEADER([$1])
     522  AC_OUTPUT_COMMANDS(
     523   ifelse(patsubst([$1], [[^ ]], []),
     524          [],
     525          [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
     526           patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
     527[am_indx=1
     528for am_file in $1; do
     529  case " \$CONFIG_HEADERS " in
     530  *" \$am_file "*)
     531    am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
     532    if test -n "\$am_dir"; then
     533      am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
     534      for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
     535        am_tmpdir=\$am_tmpdir\$am_subdir/
     536        if test ! -d \$am_tmpdir; then
     537          mkdir \$am_tmpdir
     538        fi
     539      done
     540    fi
     541    echo timestamp > "\$am_dir"stamp-h\$am_indx
     542    ;;
     543  esac
     544  am_indx=\`expr \$am_indx + 1\`
     545done])
     546])]) # AM_CONFIG_HEADER
     547
     548# _AM_DIRNAME(PATH)
     549# -----------------
     550# Like AS_DIRNAME, only do it during macro expansion
     551AC_DEFUN([_AM_DIRNAME],
     552       [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
     553              m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
     554                    m4_if(m4_regexp([$1], [^/.*]), -1,
     555                          [.],
     556                          m4_patsubst([$1], [^\(/\).*], [\1])),
     557                    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
     558              m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
     559]) # _AM_DIRNAME
    493560
    494561# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
Note: See TracChangeset for help on using the changeset viewer.