diff options
author | Ian Lance Taylor <iant@google.com> | 2012-09-18 16:03:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-09-18 16:03:01 +0000 |
commit | 9a9baa5254a06287326469f1b2f9ba1f7db6fd71 (patch) | |
tree | e4924912fd85dad90b6a534928ada8aac3840841 /libiberty/configure | |
parent | fb5e0707d18e9fd0bc6a0e92b6571512aafd0e43 (diff) | |
download | gcc-9a9baa5254a06287326469f1b2f9ba1f7db6fd71.zip gcc-9a9baa5254a06287326469f1b2f9ba1f7db6fd71.tar.gz gcc-9a9baa5254a06287326469f1b2f9ba1f7db6fd71.tar.bz2 |
strnlen.c: New file.
* strnlen.c: New file.
* configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
present.
* Makefile.in: Rebuild dependencies.
(CFILES): Add strnlen.c.
(CONFIGURED_OFILES): Add ./strnlen.$(objext).
* configure, config.in, functions.texi: Rebuild.
* maint-tool: Accept .def files in the include directory.
From-SVN: r191432
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-x | libiberty/configure | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libiberty/configure b/libiberty/configure index 6e98352..5367027 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -5340,6 +5340,7 @@ funcs="$funcs strchr" funcs="$funcs strdup" funcs="$funcs strncasecmp" funcs="$funcs strndup" +funcs="$funcs strnlen" funcs="$funcs strrchr" funcs="$funcs strstr" funcs="$funcs strtod" @@ -5380,8 +5381,8 @@ if test "x" = "y"; then random realpath rename rindex \ sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \ stpcpy stpncpy strcasecmp strchr strdup \ - strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \ - strtoul strverscmp sysconf sysctl sysmp \ + strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \ + strtol strtoul strverscmp sysconf sysctl sysmp \ table times tmpnam \ vasprintf vfprintf vprintf vsprintf \ wait3 wait4 waitpid @@ -5663,6 +5664,12 @@ esac esac case " $LIBOBJS " in + *" strnlen.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" + ;; +esac + + case " $LIBOBJS " in *" strverscmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;; @@ -5683,7 +5690,7 @@ esac for f in $funcs; do case "$f" in - asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid) + asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid) ;; *) n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |