diff options
author | Nick Clifton <nickc@redhat.com> | 2012-05-11 14:25:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-05-11 14:25:30 +0000 |
commit | 208a4923edd990535a9bbf73bf39a8609771aec3 (patch) | |
tree | 03814f8704619ced31086f6b9e5bd345889fab33 /ld/configure | |
parent | bde24c0a34fd79fb9ee6c7a355a46917cd866d26 (diff) | |
download | gdb-208a4923edd990535a9bbf73bf39a8609771aec3.zip gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.gz gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.bz2 |
PR binutils/14028
* configure.in: Invoke ACX_HEADER_STRING.
* configure: Regenerate.
* config.in: Regenerate.
* sysdep.h: If STRINGS_WITH_STRING is defined then include both
string.h and strings.h.
Diffstat (limited to 'ld/configure')
-rwxr-xr-x | ld/configure | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ld/configure b/ld/configure index d087605..85e78ef 100755 --- a/ld/configure +++ b/ld/configure @@ -16216,6 +16216,38 @@ fi done +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 +$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } +if test "${gcc_cv_header_string+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <string.h> +#include <strings.h> +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gcc_cv_header_string=yes +else + gcc_cv_header_string=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 +$as_echo "$gcc_cv_header_string" >&6; } +if test $gcc_cv_header_string = yes; then + +$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h + +fi + for ac_func in glob mkstemp realpath sbrk setlocale waitpid do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |