From 078f9c549ae44892b198f83dcbc5217fa14cd350 Mon Sep 17 00:00:00 2001 From: dj Date: Mon, 26 Feb 2007 21:31:42 +0000 Subject: [PATCH] * configure.ac: add djgpp-specific results, so we don't have to link during a cross compilation. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122343 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 6 ++++++ libiberty/configure | 20 ++++++++++++++++++++ libiberty/configure.ac | 17 +++++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8056887b292..74e49a904fe 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 34911021891..56d039ea0c2 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6042,6 +6042,26 @@ _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 + ;; + esac fi diff --git a/libiberty/configure.ac b/libiberty/configure.ac index f9713c22e26..fe4633f8697 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -545,6 +545,23 @@ if test -z "${setobjs}"; then 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 + ;; + esac fi -- 2.11.4.GIT