aboutsummaryrefslogtreecommitdiff
path: root/libidn
AgeCommit message (Collapse)AuthorFilesLines
2014-02-26Consistently include Makeconfig after defining subdir.Joseph Myers2-3/+6
In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I noted it was necessary to add includes of Makeconfig early in various subdirectory makefiles for the tests-special variable settings added by that patch to be conditional on configuration information. No-one commented on the general question there of whether Makeconfig should always be included immediately after the definition of subdir. This patch implements that early inclusion of Makeconfig in each directory (which is a lot easier than consistent placement of includes of Rules). Includes are added if needed, or moved up if already present. Subdirectory "all:" targets are removed, since Makeconfig provides one. There is potential for further cleanups I haven't done. Rules and Makerules have code such as ifneq "$(findstring env,$(origin headers))" "" headers := endif to override to empty any value of various variables that came from the environment. I think there is a case for Makeconfig setting all the subdirectory variables (other than subdir) to empty to ensure no outside value is going to take effect if a subdirectory fails to define a variable. (A list of such variables, possibly out of date and incomplete, is in manual/maint.texi.) Rules and Makerules would give errors if Makeconfig hadn't already been included, instead of including it themselves. The special code to override values coming from the environment would then be obsolete and could be removed. Tested x86_64, including that installed binaries are identical before and after the patch. * argp/Makefile: Include Makeconfig immediately after defining subdir. * assert/Makefile: Likewise. * benchtests/Makefile: Likewise. * catgets/Makefile: Likewise. * conform/Makefile: Likewise. * crypt/Makefile: Likewise. * csu/Makefile: Likewise. (all): Remove target. * ctype/Makefile: Include Makeconfig immediately after defining subdir. * debug/Makefile: Likewise. * dirent/Makefile: Likewise. * dlfcn/Makefile: Likewise. * gmon/Makefile: Likewise. * gnulib/Makefile: Likewise. * grp/Makefile: Likewise. * gshadow/Makefile: Likewise. * hesiod/Makefile: Likewise. * hurd/Makefile: Likewise. (all): Remove target. * iconvdata/Makefile: Include Makeconfig immediately after defining subdir. * inet/Makefile: Likewise. * intl/Makefile: Likewise. * io/Makefile: Likewise. * libio/Makefile: Likewise. (all): Remove target. * locale/Makefile: Include Makeconfig immediately after defining subdir. * login/Makefile: Likewise. * mach/Makefile: Likewise. (all): Remove target. * malloc/Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. * manual/Makefile: Include Makeconfig immediately after defining subdir. * math/Makefile: Likewise. * misc/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * po/Makefile: Likewise. (all): Remove target. * posix/Makefile: Include Makeconfig immediately after defining subdir. * pwd/Makefile: Likewise. * resolv/Makefile: Likewise. * resource/Makefile: Likewise. * rt/Makefile: Likewise. * setjmp/Makefile: Likewise. * shadow/Makefile: Likewise. * signal/Makefile: Likewise. * socket/Makefile: Likewise. * soft-fp/Makefile: Likewise. * stdio-common/Makefile: Likewise. * stdlib/Makefile: Likewise. * streams/Makefile: Likewise. * string/Makefile: Likewise. * sunrpc/Makefile: Likewise. (all): Remove target. * sysvipc/Makefile: Include Makeconfig immediately after defining subdir. * termios/Makefile: Likewise. * time/Makefile: Likewise. * timezone/Makefile: Likewise. (all): Remove target. * wcsmbs/Makefile: Include Makeconfig immediately after defining subdir. * wctype/Makefile: Likewise. libidn/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. localedata/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. nptl/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. nptl_db/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir.
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae3-3/+3
2013-10-30rename configure.in to configure.acMike Frysinger3-1/+7
Autoconf has been deprecating configure.in for quite a long time. Rename all our configure.in and preconfigure.in files to .ac. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-08-29Fix typos.Ondřej Bílka2-1/+5
2013-06-11Fix-trailing-whitespaces-in-libidn.Ondrej Bilka5-394/+401
2013-05-31Link extra-libs consistently with libc and ld.so.Joseph Myers2-2/+4
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold4-0/+10
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers4-3/+8
2012-10-09Automatically disable libidn add-on under --disable-shared.Roland McGrath3-6/+23
2012-03-07Remove distribute variable from MakefilesUlrich Drepper2-3/+5
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert13-39/+18
2011-12-03Fix more warningsUlrich Drepper2-4/+7
2011-02-15Remove use of ranlib.Ulrich Drepper1-3/+1
2008-03-19Remove useless "if" before "free":Ulrich Drepper1-0/+5
* elf/ldconfig.c (parse_conf_include): Likewise. * gmon/gmon.c (weak_alias): Likewise. * iconv/gconv_conf.c (__gconv_get_path): Likewise. * inet/rcmd.c (__validuser2_sa): Likewise. * intl/bindtextdom.c (set_binding_values): Likewise. * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise. * libio/genops.c (save_for_backup): Likewise. * libio/wgenops.c (save_for_wbackup): Likewise. * locale/programs/ld-collate.c (collate_read): Likewise. * locale/programs/linereader.c (get_string): Likewise. * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise. * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise. * resolv/res_debug.c (do_section): Likewise. * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise. * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise. * sysdeps/posix/sprofil.c (__sprofil): Likewise. * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise. * time/tzset.c (tzset_internal): Likewise.
2008-03-19Remove useless "if" before "free".Ulrich Drepper1-4/+2
2006-02-28* scripts/config.guess: Update from master, timestamp='2006-02-27'.Roland McGrath1-0/+6
* scripts/config.sub: Update from master, timestamp='2006-02-27'.
2006-02-28* Makefile (subdir-target-args): New variable.Roland McGrath3-3/+9
($(all-subdirs-targets)): Use it in place of -C option. * Rules: Use $(..) instead of ../ if it's already defined. * Makeconfig (subdir-srcdirs): New variable. * csu/Makefile (all-Banner-files): Use it. * configure.in (--enable-add-ons): Set to "yes" by default. Handle absolute add-on directory names when looking for configure fragments. Also look for sysdeps/*/preconfigure fragments in add-ons. Require add-on configure to set $libc_add_on_canonical, use that in $add_ons_sfx. Substitute add_on_subdirs with computed list of subdir names each add-on configure set in libc_add_on_subdirs. * configure: Regenerated. * Makefile (%/preconfigure: %/preconfigure.in): New pattern rule. * config.make.in (add-on-subdirs): New substituted variable. * Makeconfig (all-subdirs): Include $(add-on-subdirs). Remove $(add-ons), $(sysdep-subdirs). Don't filter out $(sysdep-inhibit-subdirs). ($(common-objpfx)sysd-dirs): Target removed. Don't include it. ($(common-objpfx)sysd-sorted): Rewritten to feed Depend and Subdirs files together to gen-sorted.awk, and $(subdirs) via -v. (subdirs): Remove magic reordering for mach and hurd. * scripts/gen-sorted.awk: Use subdirs from command line. Process Subdirs and Depend files directly. Let Subdirs files use "first dir" and "inhibit dir". Always move elf to the end of the list. * hurd/Depend: New file. * sysdeps/mach/Subdirs: Use "first mach". * Makefile (dist-separate): Remove linuxthreads. (dist-separate-linuxthreads): Variable removed. (glibc-%.tar rule): Use $(sysdeps-add-ons). * Makerules ($(common-objpfx)Versions.v.i): Use $(subdirs), not $(all-subdirs). (sysdep-makefiles): Use $(sysdirs). (sysdirs): Remove export. ($(+sysdir_pfx)sysd-rules): Handle absolute directory names in $(config-sysdirs). (+sysdir_pfx): Variable removed. (sysd-rules): Use $(common-objpfx) in place of it. (sysdirs): Variable moved to ... * Makeconfig (sysdirs): ... here. Handle absolute directory names in $(config-sysdirs). (full_config_sysdirs): Variable removed. * csu/Makefile: Use $(sysdirs) in vpath directive. * math/Makefile (ulps-file): Use $(sysdirs). * sysdeps/gnu/Makefile (errlist-c): Likewise. ($(objpfx)errlist-compat.c): Likewise. * Makeconfig (all-Subdirs-files): Likewise. ($(common-objpfx)config.status): Likewise. * configure.in (sysnames): Handle absolute add-on directory names. (sysdeps_add_ons): New variable, AC_SUBST it. Compute which add-ons contributed sysdeps directories. * configure: Regenerated. * config.make.in (sysdeps-add-ons): New substituted variable. * Makerules (+sysdep_dirs, +sysdep-includes): Variables moved ... * Makeconfig: ... to here. (+sysdep_dirs): Append $(sysdeps-add-ons) here. (+includes): Remove $(objpfx) include, already in $(+sysdep_dirs). Remove $(includes). (sysdep-makeconfigs): Use $(+sysdep_dirs). ($(common-objpfx)shlib-versions.v.i): Likewise. * Makeconfig: Remove hair to set Makeconfig-add-on. * sysdeps/unix/Makefile (sysdirs): Remove export. (asm_CPP): Variable removed. ($(common-objpfx)sysd-syscalls): Pass them directly for the script. * sysdeps/posix/Makefile: New file. * Makerules (L_tmpnam, TMP_MAX, L_ctermid, L_cuserid): Set non-posix values here with ?=. * stdlib/gen-mpn-copy: File removed. * stdlib/Makefile (distribute): Remove it. * configure.in: Don't grok --with-gmp. * configure: Regenerated. * configure.in (libc_cv_idn): Don't check it; libidn/configure does it. * configure: Regenerated. * bare: Directory removed, saved in ports repository.
2006-02-25* sysdeps/gnu/net/if.h (IFF_DYNAMIC): New macro.Roland McGrath4-5/+18
2005-03-15* sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.Roland McGrath1-0/+10
Patch by Dan Kegel <dank@kegel.com>. * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative, elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): Add inline keyword. * sysdeps/alpha/dl-machine.h (elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline attribute. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): Likewise. Change static inline into auto inline. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): Likewise. * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela): Likewise. * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative, elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel): Likewise. 2005-03-15 Jakub Jelinek <jakub@redhat.com>
2005-03-15[BZ #789]Roland McGrath1-3/+15
2005-03-15 Jakub Jelinek <jakub@redhat.com> [BZ #789] * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints. Remove memory clobber. * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition thread-safe. Subtract GLRO(dl_hp_timing_overhead) from Diff.
2005-02-222005-02-21 Alan Modra <amodra@bigpond.net.au>Ulrich Drepper2-3/+15
* elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv array index is within bounds. * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically linked code. * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid. * elf/Makefile: Remove rules to build and run tst-tls9-static.
2005-02-22* iconvme.h: New file, extracted from toutf8.c but improved.Ulrich Drepper3-138/+214
* iconvme.c: New file. * toutf8.c: Include stringprep.h first, to make the compiler check that stringprep.h is standalone. Improve comments. Replace #include of errno.h and sys/param.h with iconvme.h. Don't define ICONV_CONST. (stringprep_convert): Rewrite to use iconvme.h.
2004-12-22(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper8-283/+148
2007-07-122.5-18.1Jakub Jelinek8-148/+283
2004-10-05Update.Ulrich Drepper2-0/+6
2004-10-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2004-07-20* configure.in (add_ons): Substitute this. Move $add_ons handlingRoland McGrath1-0/+4
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
2004-07-202004-07-02 Roland McGrath <roland@redhat.com>Roland McGrath1-1/+2
* configure: Don't exit.
2004-05-21Update.Ulrich Drepper1-0/+5
2004-05-21 Ulrich Drepper <drepper@redhat.com> * idna.c (idna_to_unicode_4z4z): Fix test for failed memory allocation. Patch by Simon Josefsson.
2004-05-21(idna_to_unicode_4z4z): Fix test for failed memory allocation.Ulrich Drepper1-2/+4
2004-05-07Update.Ulrich Drepper3-20/+64
* sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling. * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that realloc cannot fail. * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot be expanded. * nis/nis_table.c: Clean up memory handling. * nis/nis_subr.c (nis_getnames): Clean up memory handling. * nis/nis_removemember.c (nis_removemember): Add comment explaining use of realloc.
2004-05-04Update.Ulrich Drepper4-8/+12
* sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention rt-sysdep. * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
2004-03-14Update.Ulrich Drepper2-1/+7
2004-03-14 Ulrich Drepper <drepper@redhat.com> * idn-stub.c (__idna_to_unicode_lzlz): Use __strchrnul, not strchrnul. * idna.c (idna_to_ascii_4z): Revert last patch.
2004-03-14(idna_to_ascii_4z): Revert last patch.Ulrich Drepper1-9/+12
2004-03-13Update.Ulrich Drepper3-12/+17
* idna.c (idna_to_ascii_4z): Use strdup if available. Unify two ifs. * idn-stub.c: Implement __idna_to_unicode_lzlz. Split __idna_to_ascii_lz in two parts so that loading can be shared with the new function. * Versions (libcidn): Export idna_to_unicode_lzlz.
2004-03-13Implement __idna_to_unicode_lzlz. Split __idna_to_ascii_lz in two parts so ↵Ulrich Drepper1-30/+74
that loading can be shared with the new function.
2004-03-12Update.Ulrich Drepper2-0/+9
* sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file.
2004-03-08Update.Ulrich Drepper1-0/+4
* Makefile (distribute): Add symbol-hacks.h and extra-modules.mk.
2004-03-08Update to latest libidn version.Ulrich Drepper1-52/+28
2004-03-08Update.Ulrich Drepper2-286/+5
2004-03-08 Ulrich Drepper <drepper@redhat.com> * stringprep.h: Don't include idn-int.h in glibc. * idn-int.h: Removed.
2004-03-08Don't include idn-int.h in glibc.Ulrich Drepper1-1/+5
2004-03-08Update.Ulrich Drepper4-8/+28
2004-03-07 Ulrich Drepper <drepper@redhat.com> * idn-stub.c: Include <gnu/lib-names.h>. Use LIBCIDN_SO for dlopen. * shlib-versions: New file. * toutf8.c: Include <sys/param.h>.
2004-03-08ChangeLog for libidn.Ulrich Drepper20-0/+19096
2004-03-07 Simon Josefsson <jas@extundo.com> * Banner: New file. * Makefile: New file. * Version: New file. * configure: New file. * idn-stub.c: New file. * gunibreak.h: New file. Copied from Libidn. * gunicomp.h: New file. Copied from Libidn. * gunidecomp.h: New file. Copied from Libidn. * idna.h: New file. Copied from Libidn. * idna.c: New file. Copied from Libidn. * nfkc.c: New file. Copied from Libidn. * profiles.c: New file. Copied from Libidn. * punycode.c: New file. Copied from Libidn. * punycode.h: New file. Copied from Libidn. * rfc3454.c: New file. Copied from Libidn. * stringprep.c: New file. Copied from Libidn. * stringprep.h: New file. Copied from Libidn. * toutf8.c: New file. Copied from Libidn. Modified for use in glibc.