[Bug other/32783] gcc-4_3-trunk/libiberty/configure - for ac_func gettimeofday ... gettimeofday - tests twice

rob1weld at aol dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 17 02:52:00 GMT 2007



------- Comment #2 from rob1weld at aol dot com  2007-07-17 02:52 -------
In file: gcc-4_3-trunk/libiberty/configure.ac 

line 364 and line 369 both have gettimeofday


Another occurance (in configure.ac) is here:

  *-*-msdosdjgpp)
    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
             getcwd getpagesize getrusage gettimeofday gettimeofday \
             index insque memchr memcmp memcpy memmove memset psignal \
             putenv random rename rindex sbrk setenv stpcpy strcasecmp \
             strchr strdup strerror strncasecmp strrchr strstr strtod \
             strtol strtoul sysconf times tmpnam vfprintf vprintf \
             vsprintf waitpid

Alphabetical order did not help that time :)



The only occurances of "_doprnt" in configure.ac are here:

  # We only need _doprnt if we might use it to implement v*printf.
  if test $ac_cv_func_vprintf != yes \
     || test $ac_cv_func_vfprintf != yes \
     || test $ac_cv_func_vsprintf != yes; then
    AC_REPLACE_FUNCS(_doprnt)
  else
    AC_CHECK_FUNCS(_doprnt)
  fi

So that one is an autoconf issue an not the way we coded configure.ac - NOTE:
We often do not use the newest auto / conf / make tools so it _might_ be our
fault after all.


It is difficult to pin blame for the other issues I raised since we do not use
the newest configuration tools. The doubling of "gettimeofday" is something we
can fix (our fault).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32783



More information about the Gcc-bugs mailing list