mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
configure change to handle Implies-{before,after} files
This commit is contained in:
parent
5f658cf147
commit
ba75122dd9
@ -1,3 +1,9 @@
|
|||||||
|
2012-05-15 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* configure.in (sysnames): Look for Implies-before and Implies-after
|
||||||
|
files.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
|
* sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
|
||||||
|
27
configure
vendored
27
configure
vendored
@ -4324,14 +4324,16 @@ while test $# -gt 0; do
|
|||||||
test -n "$enable_debug_configure" &&
|
test -n "$enable_debug_configure" &&
|
||||||
echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
|
echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
|
||||||
|
|
||||||
if test -f $xsrcdir$name/Implies; then
|
for implies_file in Implies Implies-before Implies-after; do
|
||||||
|
implies_type=`echo $implies_file | sed s/-/_/`
|
||||||
|
eval ${implies_type}=
|
||||||
|
if test -f $xsrcdir$name/$implies_file; then
|
||||||
# Collect more names from the `Implies' file (removing comments).
|
# Collect more names from the `Implies' file (removing comments).
|
||||||
implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
|
implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
|
||||||
implied=
|
|
||||||
for x in $implied_candidate; do
|
for x in $implied_candidate; do
|
||||||
found=no
|
found=no
|
||||||
if test -d $xsrcdir$name_base/$x; then
|
if test -d $xsrcdir$name_base/$x; then
|
||||||
implied="$implied $name_base/$x";
|
eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
|
||||||
found=yes
|
found=yes
|
||||||
fi
|
fi
|
||||||
for d in $add_ons_pfx ''; do
|
for d in $add_ons_pfx ''; do
|
||||||
@ -4341,10 +4343,10 @@ while test $# -gt 0; do
|
|||||||
*) try_srcdir=$srcdir/ ;;
|
*) try_srcdir=$srcdir/ ;;
|
||||||
esac
|
esac
|
||||||
test -n "$enable_debug_configure" &&
|
test -n "$enable_debug_configure" &&
|
||||||
echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
|
echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
|
||||||
if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
|
if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
|
||||||
then
|
then
|
||||||
implied="$implied $try"
|
eval "${implies_type}=\"\$${implies_type} \$try\""
|
||||||
found=yes
|
found=yes
|
||||||
case "$sysnames_add_ons" in
|
case "$sysnames_add_ons" in
|
||||||
*" $d "*) ;;
|
*" $d "*) ;;
|
||||||
@ -4353,13 +4355,12 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test $found = no; then
|
if test $found = no; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
|
||||||
$as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
|
$as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
|
||||||
implied=
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Add NAME to the list of names.
|
# Add NAME to the list of names.
|
||||||
names="$names $name"
|
names="$names $name"
|
||||||
@ -4367,6 +4368,10 @@ $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
|
|||||||
# Find the parent of NAME, using the empty string if it has none.
|
# Find the parent of NAME, using the empty string if it has none.
|
||||||
parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
|
parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
|
||||||
|
|
||||||
|
test -n "$enable_debug_configure" &&
|
||||||
|
echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
|
||||||
|
Implies_before='$Implies_after' Implies_after='$Implies_after'" >&2
|
||||||
|
|
||||||
# Add the names implied by NAME, and NAME's parent (if it has one), to
|
# Add the names implied by NAME, and NAME's parent (if it has one), to
|
||||||
# the list of names to be processed (the argument list). We prepend the
|
# the list of names to be processed (the argument list). We prepend the
|
||||||
# implied names to the list and append the parent. We want implied
|
# implied names to the list and append the parent. We want implied
|
||||||
@ -4374,7 +4379,7 @@ $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
|
|||||||
# configuration components; this ensures that for sysv4, unix/common
|
# configuration components; this ensures that for sysv4, unix/common
|
||||||
# (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
|
# (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
|
||||||
# after sysv4).
|
# after sysv4).
|
||||||
sysnames="`echo $implied $* $parent`"
|
sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
|
||||||
test -n "$sysnames" && set $sysnames
|
test -n "$sysnames" && set $sysnames
|
||||||
done
|
done
|
||||||
|
|
||||||
|
25
configure.in
25
configure.in
@ -761,14 +761,16 @@ while test $# -gt 0; do
|
|||||||
test -n "$enable_debug_configure" &&
|
test -n "$enable_debug_configure" &&
|
||||||
echo "[DEBUG]: name/Implies $xsrcdir$name/Implies" >&2
|
echo "[DEBUG]: name/Implies $xsrcdir$name/Implies" >&2
|
||||||
|
|
||||||
if test -f $xsrcdir$name/Implies; then
|
for implies_file in Implies Implies-before Implies-after; do
|
||||||
|
implies_type=`echo $implies_file | sed s/-/_/`
|
||||||
|
eval ${implies_type}=
|
||||||
|
if test -f $xsrcdir$name/$implies_file; then
|
||||||
# Collect more names from the `Implies' file (removing comments).
|
# Collect more names from the `Implies' file (removing comments).
|
||||||
implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
|
implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
|
||||||
implied=
|
|
||||||
for x in $implied_candidate; do
|
for x in $implied_candidate; do
|
||||||
found=no
|
found=no
|
||||||
if test -d $xsrcdir$name_base/$x; then
|
if test -d $xsrcdir$name_base/$x; then
|
||||||
implied="$implied $name_base/$x";
|
eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
|
||||||
found=yes
|
found=yes
|
||||||
fi
|
fi
|
||||||
for d in $add_ons_pfx ''; do
|
for d in $add_ons_pfx ''; do
|
||||||
@ -778,10 +780,10 @@ while test $# -gt 0; do
|
|||||||
*) try_srcdir=$srcdir/ ;;
|
*) try_srcdir=$srcdir/ ;;
|
||||||
esac
|
esac
|
||||||
test -n "$enable_debug_configure" &&
|
test -n "$enable_debug_configure" &&
|
||||||
echo "[DEBUG]: $name implied $x try($d) {$try_srcdir}$try" >&2
|
echo "[DEBUG]: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
|
||||||
if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
|
if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
|
||||||
then
|
then
|
||||||
implied="$implied $try"
|
eval "${implies_type}=\"\$${implies_type} \$try\""
|
||||||
found=yes
|
found=yes
|
||||||
case "$sysnames_add_ons" in
|
case "$sysnames_add_ons" in
|
||||||
*" $d "*) ;;
|
*" $d "*) ;;
|
||||||
@ -790,12 +792,11 @@ while test $# -gt 0; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test $found = no; then
|
if test $found = no; then
|
||||||
AC_MSG_WARN($name/Implies specifies nonexistent $x)
|
AC_MSG_WARN($name/$implies_file specifies nonexistent $x)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
|
||||||
implied=
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Add NAME to the list of names.
|
# Add NAME to the list of names.
|
||||||
names="$names $name"
|
names="$names $name"
|
||||||
@ -805,6 +806,10 @@ changequote(,)dnl
|
|||||||
parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
|
parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
|
||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
|
|
||||||
|
test -n "$enable_debug_configure" &&
|
||||||
|
echo "[DEBUG]: $name Implies='$Implies' rest='$*' parent='$parent' \
|
||||||
|
Implies_before='$Implies_after' Implies_after='$Implies_after'" >&2
|
||||||
|
|
||||||
# Add the names implied by NAME, and NAME's parent (if it has one), to
|
# Add the names implied by NAME, and NAME's parent (if it has one), to
|
||||||
# the list of names to be processed (the argument list). We prepend the
|
# the list of names to be processed (the argument list). We prepend the
|
||||||
# implied names to the list and append the parent. We want implied
|
# implied names to the list and append the parent. We want implied
|
||||||
@ -812,7 +817,7 @@ changequote([,])dnl
|
|||||||
# configuration components; this ensures that for sysv4, unix/common
|
# configuration components; this ensures that for sysv4, unix/common
|
||||||
# (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
|
# (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
|
||||||
# after sysv4).
|
# after sysv4).
|
||||||
sysnames="`echo $implied $* $parent`"
|
sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
|
||||||
test -n "$sysnames" && set $sysnames
|
test -n "$sysnames" && set $sysnames
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user