mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* configure.in (add_ons): Substitute this. Move $add_ons handling
after AC_CANONICAL_HOST and default setting of $machine et al. Don't set $subdirs from $add_ons. Instead, source add-on/configure fragments early on. (base_machine): If it's already set, don't set it based on $machine. (libc_config_ok): New variable, set to no. If an add-on fragment sets it to yes, skip the tuple sanity check as if --enable-hacker-mode. (sysnames): Try appending add-on names after machine as well. * configure: Regenerated. * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@. * Makeconfig ($(common-objpfx)config.status): Also depend on configure files in $(add_ons) dirs. * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove definition, now in netinet/in.h proper. long. Rewrite example code so that it takes into account l64a output
This commit is contained in:
20
ChangeLog
20
ChangeLog
@ -1,3 +1,21 @@
|
|||||||
|
2004-07-20 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* configure.in (add_ons): Substitute this. Move $add_ons handling
|
||||||
|
after AC_CANONICAL_HOST and default setting of $machine et al.
|
||||||
|
Don't set $subdirs from $add_ons.
|
||||||
|
Instead, source add-on/configure fragments early on.
|
||||||
|
(base_machine): If it's already set, don't set it based on $machine.
|
||||||
|
(libc_config_ok): New variable, set to no. If an add-on fragment sets
|
||||||
|
it to yes, skip the tuple sanity check as if --enable-hacker-mode.
|
||||||
|
(sysnames): Try appending add-on names after machine as well.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
|
||||||
|
* Makeconfig ($(common-objpfx)config.status): Also depend on configure
|
||||||
|
files in $(add_ons) dirs.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
|
||||||
|
definition, now in netinet/in.h proper.
|
||||||
|
|
||||||
2004-07-20 Alexandre Oliva <aoliva@redhat.com>
|
2004-07-20 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
|
* sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
|
||||||
@ -136,7 +154,7 @@
|
|||||||
|
|
||||||
[BZ #266]
|
[BZ #266]
|
||||||
* manual/string.texi (l64a): Note that the static buffer is 7 bytes
|
* manual/string.texi (l64a): Note that the static buffer is 7 bytes
|
||||||
long. Rewrite example code so that it takes account l64a output
|
long. Rewrite example code so that it takes into account l64a output
|
||||||
shorter than 6 characters.
|
shorter than 6 characters.
|
||||||
Reported by Julian Graham <julian.graham@aya.yale.edu>.
|
Reported by Julian Graham <julian.graham@aya.yale.edu>.
|
||||||
|
|
||||||
|
10
Makeconfig
10
Makeconfig
@ -110,15 +110,19 @@ $(common-objpfx)config.make: $(common-objpfx)config.status \
|
|||||||
$(..)config.make.in $(..)config.h.in
|
$(..)config.make.in $(..)config.h.in
|
||||||
cd $(<D); $(SHELL) $(<F)
|
cd $(<D); $(SHELL) $(<F)
|
||||||
|
|
||||||
# Find all the sysdeps configure fragments, to make sure we re-run
|
# Find all the add-on and sysdeps configure fragments, to make sure we
|
||||||
# configure when any of them changes.
|
# re-run configure when any of them changes.
|
||||||
$(common-objpfx)config.status: $(..)version.h $(..)configure \
|
$(common-objpfx)config.status: $(..)version.h $(..)configure \
|
||||||
$(foreach dir,$(full_config_sysdirs),\
|
$(foreach dir,$(full_config_sysdirs),\
|
||||||
$(wildcard \
|
$(wildcard \
|
||||||
$(dir)/Implies) \
|
$(dir)/Implies) \
|
||||||
$(patsubst %.in,%,\
|
$(patsubst %.in,%,\
|
||||||
$(firstword $(wildcard \
|
$(firstword $(wildcard \
|
||||||
$(addprefix $(dir)/,configure configure.in)))))
|
$(addprefix $(dir)/,configure configure.in))))) \
|
||||||
|
$(patsubst %.in,%,\
|
||||||
|
$(foreach dir,$(add_ons),\
|
||||||
|
$(firstword $(wildcard \
|
||||||
|
$(addprefix $(..)$(dir)/,configure configure.in)))))
|
||||||
@cd $(@D); if test -f $(@F); then exec $(SHELL) $(@F) --recheck; else \
|
@cd $(@D); if test -f $(@F); then exec $(SHELL) $(@F) --recheck; else \
|
||||||
echo The GNU C library has not been configured. >&2; \
|
echo The GNU C library has not been configured. >&2; \
|
||||||
echo Run \`configure\' to configure it before building. >&2; \
|
echo Run \`configure\' to configure it before building. >&2; \
|
||||||
|
@ -87,7 +87,7 @@ build-profile = @profile@
|
|||||||
build-omitfp = @omitfp@
|
build-omitfp = @omitfp@
|
||||||
build-bounded = @bounded@
|
build-bounded = @bounded@
|
||||||
build-static-nss = @static_nss@
|
build-static-nss = @static_nss@
|
||||||
add-ons = @subdirs@
|
add-ons = @add_ons@
|
||||||
cross-compiling = @cross_compiling@
|
cross-compiling = @cross_compiling@
|
||||||
force-install = @force_install@
|
force-install = @force_install@
|
||||||
|
|
||||||
|
99
configure.in
99
configure.in
@ -210,38 +210,6 @@ AC_ARG_ENABLE([bind-now],
|
|||||||
[bindnow=no])
|
[bindnow=no])
|
||||||
AC_SUBST(bindnow)
|
AC_SUBST(bindnow)
|
||||||
|
|
||||||
AC_CONFIG_SUBDIRS([ ])dnl Bonehead new Autoconf whines if we do it cleanly.
|
|
||||||
add_ons_pfx=
|
|
||||||
if test x"$add_ons" != x; then
|
|
||||||
for f in $add_ons; do
|
|
||||||
# Some sanity checks
|
|
||||||
if test "$f" = "crypt"; then
|
|
||||||
AC_MSG_ERROR([
|
|
||||||
*** It seems that you're using an old \`crypt' add-on. crypt is now
|
|
||||||
*** part of glibc and using the old add-on will not work with this
|
|
||||||
*** release. Start again with fresh sources and without the old
|
|
||||||
*** \`crypt' add-on.])
|
|
||||||
fi
|
|
||||||
if test "$f" = "localedata"; then
|
|
||||||
AC_MSG_ERROR([
|
|
||||||
*** It seems that you're using an old \`localedata' add-on. localedata
|
|
||||||
*** is now part of glibc and using the old add-on will not work with
|
|
||||||
*** this release. Start again with fresh sources and without the old
|
|
||||||
*** \`localedata' add-on.])
|
|
||||||
fi
|
|
||||||
# Test whether such a subdir really exists.
|
|
||||||
if test -d $srcdir/$f; then
|
|
||||||
add_ons_pfx="$add_ons_pfx $f/"
|
|
||||||
dnl This variable is what AC_CONFIG_SUBDIRS is supposed to set,
|
|
||||||
dnl but the new Autoconf maintainers don't care about compatibility
|
|
||||||
dnl so we cannot use it normally any more without complaints.
|
|
||||||
subdirs="$subdirs $f"
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR(add-on directory \"$f\" does not exist)
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl On some platforms we cannot use dynamic loading. We must provide
|
dnl On some platforms we cannot use dynamic loading. We must provide
|
||||||
dnl static NSS modules.
|
dnl static NSS modules.
|
||||||
AC_ARG_ENABLE([static-nss],
|
AC_ARG_ENABLE([static-nss],
|
||||||
@ -334,6 +302,9 @@ aix*)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# The configure fragment of an add-on port can modify these to supplement
|
||||||
|
# or override the table in the case statement below. No fragment should
|
||||||
|
# ever change the config_* variables, however.
|
||||||
machine=$config_machine
|
machine=$config_machine
|
||||||
vendor=$config_vendor
|
vendor=$config_vendor
|
||||||
os=$config_os
|
os=$config_os
|
||||||
@ -351,6 +322,59 @@ case "$machine-$host_os" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# An add-on can set this when it the tuple to disable the sanity check below.
|
||||||
|
libc_config_ok=no
|
||||||
|
|
||||||
|
dnl Having this here, though empty, makes sure that if add-ons' fragments
|
||||||
|
dnl do AC_CONFIG_SUBDIRS([some-dir]), which just sets $subdirs, then
|
||||||
|
dnl our AC_OUTPUT will actually use it.
|
||||||
|
AC_CONFIG_SUBDIRS()
|
||||||
|
|
||||||
|
add_ons_sfx=
|
||||||
|
add_ons_pfx=
|
||||||
|
if test x"$add_ons" != x; then
|
||||||
|
for f in $add_ons; do
|
||||||
|
# Some sanity checks
|
||||||
|
case "$f" in
|
||||||
|
crypt)
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** It seems that you're using an old \`crypt' add-on. crypt is now
|
||||||
|
*** part of glibc and using the old add-on will not work with this
|
||||||
|
*** release. Start again with fresh sources and without the old
|
||||||
|
*** \`crypt' add-on.])
|
||||||
|
;;
|
||||||
|
localedata)
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** It seems that you're using an old \`localedata' add-on. localedata
|
||||||
|
*** is now part of glibc and using the old add-on will not work with
|
||||||
|
*** this release. Start again with fresh sources and without the old
|
||||||
|
*** \`localedata' add-on.])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Test whether such a subdir really exists.
|
||||||
|
if test -d $srcdir/$f; then
|
||||||
|
add_ons_pfx="$add_ons_pfx $f/"
|
||||||
|
add_ons_sfx="$add_ons_sfx /$f"
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(add-on directory \"$f\" does not exist)
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for f in $add_ons; do
|
||||||
|
frag=$srcdir/$f/configure
|
||||||
|
if test -r $frag; then
|
||||||
|
AC_MSG_RESULT(running configure fragment for add-on $f)
|
||||||
|
. $frag
|
||||||
|
else
|
||||||
|
AC_MSG_WARN(add-on fragment $frag missing)
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
AC_SUBST(add_ons)
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### I put this here to prevent those annoying emails from people who cannot
|
### I put this here to prevent those annoying emails from people who cannot
|
||||||
### read and try to compile glibc on unsupported platforms. --drepper
|
### read and try to compile glibc on unsupported platforms. --drepper
|
||||||
@ -359,7 +383,7 @@ esac
|
|||||||
### one can skip this test to make the configuration not fail for unsupported
|
### one can skip this test to make the configuration not fail for unsupported
|
||||||
### platforms.
|
### platforms.
|
||||||
###
|
###
|
||||||
if test -z "$enable_hacker_mode"; then
|
if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
|
||||||
case "$machine-$host_os" in
|
case "$machine-$host_os" in
|
||||||
*-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
|
*-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
|
||||||
;;
|
;;
|
||||||
@ -378,8 +402,9 @@ fi
|
|||||||
dnl We need to use [ and ] for other purposes for a while now.
|
dnl We need to use [ and ] for other purposes for a while now.
|
||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
# Expand the configuration machine name into a subdirectory by architecture
|
# Expand the configuration machine name into a subdirectory by architecture
|
||||||
# type and particular chip.
|
# type and particular chip. If an add-on configure fragment already set
|
||||||
case "$machine" in
|
# base_machine, we don't change it.
|
||||||
|
test -n "$base_machine" || case "$machine" in
|
||||||
a29k | am29000) base_machine=a29k machine=a29k ;;
|
a29k | am29000) base_machine=a29k machine=a29k ;;
|
||||||
alpha*) base_machine=alpha machine=alpha/$machine ;;
|
alpha*) base_machine=alpha machine=alpha/$machine ;;
|
||||||
arm*) base_machine=arm machine=arm/arm32/$machine ;;
|
arm*) base_machine=arm machine=arm/arm32/$machine ;;
|
||||||
@ -535,8 +560,9 @@ for d in $add_ons_pfx ''; do
|
|||||||
for o in /$ostry ''; do
|
for o in /$ostry ''; do
|
||||||
test "$o" = / && continue
|
test "$o" = / && continue
|
||||||
for m in $mach ''; do
|
for m in $mach ''; do
|
||||||
|
for a in $add_ons_sfx ''; do
|
||||||
if test "$m0$b$v$o$m"; then
|
if test "$m0$b$v$o$m"; then
|
||||||
try="${d}sysdeps$m0$b$v$o$m"
|
try="${d}sysdeps$m0$b$v$o$m$a"
|
||||||
test -n "$enable_debug_configure" &&
|
test -n "$enable_debug_configure" &&
|
||||||
echo "$0 [DEBUG]: try $try" >&2
|
echo "$0 [DEBUG]: try $try" >&2
|
||||||
if test -d $srcdir/$try; then
|
if test -d $srcdir/$try; then
|
||||||
@ -551,6 +577,7 @@ for d in $add_ons_pfx ''; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
done
|
||||||
IFS="$ac_save_ifs"
|
IFS="$ac_save_ifs"
|
||||||
|
|
||||||
if test -z "$os_used" && test "$os" != none; then
|
if test -z "$os_used" && test "$os" != none; then
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-02 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* configure: Don't exit.
|
||||||
|
|
||||||
2004-05-21 Ulrich Drepper <drepper@redhat.com>
|
2004-05-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* idna.c (idna_to_unicode_4z4z): Fix test for failed memory allocation.
|
* idna.c (idna_to_unicode_4z4z): Fix test for failed memory allocation.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-02 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* configure: Don't exit.
|
||||||
|
|
||||||
2004-07-20 Alexandre Oliva <aoliva@redhat.com>
|
2004-07-20 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* sysdeps/mips/pt-machine.h: Use standard names for ABI macros,
|
* sysdeps/mips/pt-machine.h: Use standard names for ABI macros,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-02 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* configure: Don't exit.
|
||||||
|
|
||||||
2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
|
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
|
||||||
|
@ -85,14 +85,7 @@ struct ip_opts
|
|||||||
char ip_opts[40]; /* Actually variable in size. */
|
char ip_opts[40]; /* Actually variable in size. */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structure used for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. */
|
/* Like `struct ip_mreq' but including interface specification by index. */
|
||||||
struct ip_mreq
|
|
||||||
{
|
|
||||||
struct in_addr imr_multiaddr; /* IP multicast address of group */
|
|
||||||
struct in_addr imr_interface; /* local IP address of interface */
|
|
||||||
};
|
|
||||||
|
|
||||||
/* As above but including interface specification by index. */
|
|
||||||
struct ip_mreqn
|
struct ip_mreqn
|
||||||
{
|
{
|
||||||
struct in_addr imr_multiaddr; /* IP multicast address of group */
|
struct in_addr imr_multiaddr; /* IP multicast address of group */
|
||||||
|
Reference in New Issue
Block a user