merge from gcc
authorDJ Delorie <dj@redhat.com>
Tue, 14 Apr 2009 18:05:58 +0000 (18:05 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 14 Apr 2009 18:05:58 +0000 (18:05 +0000)
libiberty/ChangeLog
libiberty/configure
libiberty/configure.ac

index c58f63551420074f02c9c1ac2e430a2ea4159f26..3952b54adb8b1727ee1fd96e737e7e4b6e6e3998 100644 (file)
@@ -1,3 +1,11 @@
+2009-04-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * configure.ac  (setobjs, msdosdjgpp): Move a-priori setting of
+       existing and required library functions to with_target_subdir
+       section, so that the native build does detect them at configure
+       time.
+       * configure: Regenerated.
+       
 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
 
         PR target/39397
index ee8fbb02a66983ee942ab2ddc5c135e8075cb559..15ddff22cafc36cafa85eab153de3a8f296661b1 100755 (executable)
@@ -6372,6 +6372,59 @@ _ACEOF
 _ACEOF
 
 
+    setobjs=yes
+    ;;
+
+  *-*-msdosdjgpp)
+    case $LIBOBJS in
+    "vasprintf.$ac_objext"   | \
+  *" vasprintf.$ac_objext"   | \
+    "vasprintf.$ac_objext "* | \
+  *" vasprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
+esac
+
+    case $LIBOBJS in
+    "vsnprintf.$ac_objext"   | \
+  *" vsnprintf.$ac_objext"   | \
+    "vsnprintf.$ac_objext "* | \
+  *" vsnprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext" ;;
+esac
+
+    case $LIBOBJS in
+    "snprintf.$ac_objext"   | \
+  *" snprintf.$ac_objext"   | \
+    "snprintf.$ac_objext "* | \
+  *" snprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
+esac
+
+    case $LIBOBJS in
+    "asprintf.$ac_objext"   | \
+  *" asprintf.$ac_objext"   | \
+    "asprintf.$ac_objext "* | \
+  *" asprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
+esac
+
+
+    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
+             getcwd getpagesize getrusage 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
     ;;
 
@@ -6535,26 +6588,6 @@ _ACEOF
 _ACEOF
 
 
-    setobjs=yes
-    ;;
-
-  *-*-msdosdjgpp)
-    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
-             getcwd getpagesize getrusage 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
     ;;
 
index 6cfe335c687256ab73f1fd3a8109d980bb35603c..90d606011240831be8f87c7760d8732c1822bc28 100644 (file)
@@ -466,6 +466,28 @@ if test -n "${with_target_subdir}"; then
     # Of the functions in $checkfuncs, Mingw only has strerror.
     AC_DEFINE(HAVE_STRERROR)
 
+    setobjs=yes
+    ;;
+
+  *-*-msdosdjgpp)
+    AC_LIBOBJ([vasprintf])
+    AC_LIBOBJ([vsnprintf])
+    AC_LIBOBJ([snprintf])
+    AC_LIBOBJ([asprintf])
+
+    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
+             getcwd getpagesize getrusage 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
     ;;
 
@@ -545,23 +567,6 @@ 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 \
-             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
     ;;
 
This page took 0.03439 seconds and 4 git commands to generate.