9133
9133
# gives unlimited permission to copy and/or distribute it,
9134
9134
# with or without modifications, as long as this notice is preserved.
9138
9138
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9139
9139
# ------------------------------
9140
9140
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9141
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9142
# are listed without --file. Let's play safe and only enable the eval
9143
# if we detect the quoting.
9144
case $CONFIG_FILES in
9145
*\'*) eval set x "$CONFIG_FILES" ;;
9146
*) set x $CONFIG_FILES ;;
9151
# Strip MF so we end up with the name of the file.
9152
mf=`echo "$mf" | sed -e 's/:.*$//'`
9153
# Check whether this is an Automake generated Makefile or not.
9154
# We used to match only the files named `Makefile.in', but
9155
# some people rename them; so instead we look at the file content.
9156
# Grep'ing the first line is not enough: some people post-process
9157
# each Makefile.in and add a new line on top of each file to say so.
9158
# Grep'ing the whole file is not good either: AIX grep has a line
9159
# limit of 2048, but all sed's we know have understand at least 4000.
9160
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9161
dirpart=`AS_DIRNAME("$mf")`
9165
# Extract the definition of DEPDIR, am__include, and am__quote
9166
# from the Makefile without running `make'.
9167
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9168
test -z "$DEPDIR" && continue
9169
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9170
test -z "am__include" && continue
9171
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9172
# When using ansi2knr, U may be empty or an underscore; expand it
9173
U=`sed -n 's/^U = //p' < "$mf"`
9174
# Find all dependency output files, they are included files with
9175
# $(DEPDIR) in their names. We invoke sed twice because it is the
9176
# simplest approach to changing $(DEPDIR) to its actual value in the
9178
for file in `sed -n "
9179
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9180
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9181
# Make sure the directory exists.
9182
test -f "$dirpart/$file" && continue
9183
fdir=`AS_DIRNAME(["$file"])`
9184
AS_MKDIR_P([$dirpart/$fdir])
9185
# echo "creating $dirpart/$file"
9186
echo '# dummy' > "$dirpart/$file"
9142
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9143
# are listed without --file. Let's play safe and only enable the eval
9144
# if we detect the quoting.
9145
case $CONFIG_FILES in
9146
*\'*) eval set x "$CONFIG_FILES" ;;
9147
*) set x $CONFIG_FILES ;;
9152
# Strip MF so we end up with the name of the file.
9153
mf=`echo "$mf" | sed -e 's/:.*$//'`
9154
# Check whether this is an Automake generated Makefile or not.
9155
# We used to match only the files named `Makefile.in', but
9156
# some people rename them; so instead we look at the file content.
9157
# Grep'ing the first line is not enough: some people post-process
9158
# each Makefile.in and add a new line on top of each file to say so.
9159
# Grep'ing the whole file is not good either: AIX grep has a line
9160
# limit of 2048, but all sed's we know have understand at least 4000.
9161
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9162
dirpart=`AS_DIRNAME("$mf")`
9166
# Extract the definition of DEPDIR, am__include, and am__quote
9167
# from the Makefile without running `make'.
9168
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9169
test -z "$DEPDIR" && continue
9170
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9171
test -z "am__include" && continue
9172
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9173
# When using ansi2knr, U may be empty or an underscore; expand it
9174
U=`sed -n 's/^U = //p' < "$mf"`
9175
# Find all dependency output files, they are included files with
9176
# $(DEPDIR) in their names. We invoke sed twice because it is the
9177
# simplest approach to changing $(DEPDIR) to its actual value in the
9179
for file in `sed -n "
9180
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9181
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9182
# Make sure the directory exists.
9183
test -f "$dirpart/$file" && continue
9184
fdir=`AS_DIRNAME(["$file"])`
9185
AS_MKDIR_P([$dirpart/$fdir])
9186
# echo "creating $dirpart/$file"
9187
echo '# dummy' > "$dirpart/$file"
9189
9191
])# _AM_OUTPUT_DEPENDENCY_COMMANDS