aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@getslash.de>2014-11-17 03:30:13 +0100
committerJan-Benedict Glaw <jbglaw@getslash.de>2014-11-17 03:30:13 +0100
commitabdef8eb901ce829fdc9fbe7eb89c8327c262f07 (patch)
tree941a2df064c75d5779290bc39f784dbedf084060 /libiberty/configure.ac
parent41c7760520c02124d2d3d0b8ad12e2186ba48f46 (diff)
downloadgdb-abdef8eb901ce829fdc9fbe7eb89c8327c262f07.zip
gdb-abdef8eb901ce829fdc9fbe7eb89c8327c262f07.tar.gz
gdb-abdef8eb901ce829fdc9fbe7eb89c8327c262f07.tar.bz2
Sync libiberty from GCC
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac14
1 files changed, 11 insertions, 3 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 3380819..90adaea 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -272,8 +272,14 @@ AC_HEADER_TIME
libiberty_AC_DECLARE_ERRNO
-# Determine the size of an int for struct fibnode.
+# Determine sizes of some types.
AC_CHECK_SIZEOF([int])
+AC_CHECK_SIZEOF([long])
+
+# Check for presense of long long
+AC_CHECK_TYPE([long long],
+ [AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the `long long' type.]) AC_CHECK_SIZEOF([long long])],
+ [])
# Look for a 64-bit type.
AC_MSG_CHECKING([for a 64-bit type])
@@ -365,6 +371,8 @@ funcs="$funcs strstr"
funcs="$funcs strtod"
funcs="$funcs strtol"
funcs="$funcs strtoul"
+funcs="$funcs strtoll"
+funcs="$funcs strtoull"
funcs="$funcs strverscmp"
funcs="$funcs tmpnam"
funcs="$funcs vasprintf"
@@ -401,11 +409,11 @@ if test "x" = "y"; then
sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
stpcpy stpncpy strcasecmp strchr strdup \
strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
- strtol strtoul strverscmp sysconf sysctl sysmp \
+ strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
table times tmpnam \
vasprintf vfprintf vprintf vsprintf \
wait3 wait4 waitpid)
- AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf])
+ AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf, strtol, strtoul, strtoll, strtoull])
AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.])
AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.])