From: DJ Delorie Date: Mon, 26 Feb 2007 21:31:42 +0000 (-0500) Subject: configure.ac: add djgpp-specific results, so we don't have to link during a cross... X-Git-Tag: releases/gcc-4.3.0~6593 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f86b57e49fe287c7f751ed7325a721d231ed6413;p=thirdparty%2Fgcc.git configure.ac: add djgpp-specific results, so we don't have to link during a cross compilation. * configure.ac: add djgpp-specific results, so we don't have to link during a cross compilation. * configure: Regenerated. From-SVN: r122343 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8056887b2928..74e49a904fe5 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2007-02-26 DJ Delorie + + * configure.ac: add djgpp-specific results, so we don't have to + link during a cross compilation. + * configure: Regenerated. + 2007-01-31 Ralf Wildenhues * hex.c: Fix typo. diff --git a/libiberty/configure b/libiberty/configure index 349110218911..56d039ea0c20 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6039,6 +6039,26 @@ _ACEOF _ACEOF + setobjs=yes + ;; + + *-*-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 + do + n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >>confdefs.h <<_ACEOF +#define $n 1 +_ACEOF + + done + + setobjs=yes ;; diff --git a/libiberty/configure.ac b/libiberty/configure.ac index f9713c22e26b..fe4633f86973 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -542,6 +542,23 @@ if test -z "${setobjs}"; then # Of the functions in $checkfuncs, VxWorks only has strerror. AC_DEFINE(HAVE_STRERROR) + setobjs=yes + ;; + + *-*-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 + do + n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + AC_DEFINE_UNQUOTED($n) + done + + setobjs=yes ;;