aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-04-14 17:46:29 +0000
committerDJ Delorie <dj@gcc.gnu.org>2009-04-14 13:46:29 -0400
commit01459fb5843b26301018bd9c5170f7753b14a04e (patch)
tree9aacce9b6f0c40db559db0e9a964e64047ec0a58 /libiberty
parentb32f6fffc949f0173fc14ed5c854e1820835150d (diff)
downloadgcc-01459fb5843b26301018bd9c5170f7753b14a04e.zip
gcc-01459fb5843b26301018bd9c5170f7753b14a04e.tar.gz
gcc-01459fb5843b26301018bd9c5170f7753b14a04e.tar.bz2
configure.ac (setobjs, msdosdjgpp): Move a-priori setting of existing and required library functions to...
* 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. From-SVN: r146056
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog8
-rwxr-xr-xlibiberty/configure73
-rw-r--r--libiberty/configure.ac39
3 files changed, 83 insertions, 37 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index c58f635..3952b54 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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
diff --git a/libiberty/configure b/libiberty/configure
index ee8fbb0..15ddff2 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -6375,6 +6375,59 @@ _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
+ ;;
+
esac
# We may wish to install the target headers somewhere.
@@ -6538,26 +6591,6 @@ _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
- ;;
-
esac
fi
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 6cfe335..90d6060 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -469,6 +469,28 @@ if test -n "${with_target_subdir}"; then
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
+ ;;
+
esac
# We may wish to install the target headers somewhere.
@@ -548,23 +570,6 @@ if test -z "${setobjs}"; then
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
- ;;
-
esac
fi