From: Tom Tromey Date: Tue, 5 Nov 2013 16:45:03 +0000 (-0700) Subject: remove link.h checks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b4bea7218162ca37016ade4944bd5e9181b8486;p=binutils-gdb.git remove link.h checks The removal of solib-sunos.c also removed the last user of various macros defined by configure. This patch removes the corresponding configure code. 2013-11-08 Tom Tromey * configure, config.in: Rebuild. * configure.ac: Remove all link.h-related checks. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d15bad7cb78..323da728d29 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-11-08 Tom Tromey + + * configure, config.in: Rebuild. + * configure.ac: Remove all link.h-related checks. + 2013-11-08 Tom Tromey * acinclude.m4: Include common.m4. diff --git a/gdb/config.in b/gdb/config.in index 03b097266f5..7905468cbcb 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -225,9 +225,6 @@ /* Define to 1 if you have the `w' library (-lw). */ #undef HAVE_LIBW -/* Define to 1 if you have the header file. */ -#undef HAVE_LINK_H - /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_PERF_EVENT_H @@ -423,17 +420,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H -/* Define if has struct link_map32 */ -#undef HAVE_STRUCT_LINK_MAP32 - -/* Define if exists and defines struct link_map which has members - with an ``lm_'' prefix. (For SunOS.) */ -#undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS - -/* Define if exists and defines struct link_map which has members - with an ``l_'' prefix. (For Solaris, SVR4, and SVR4-like systems.) */ -#undef HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS - /* Define to 1 if your system has struct lwp. */ #undef HAVE_STRUCT_LWP @@ -446,10 +432,6 @@ /* Define to 1 if `struct reg' is a member of `r_gs'. */ #undef HAVE_STRUCT_REG_R_GS -/* Define if exists and defines a struct so_map which has members - with an ``som_'' prefix. (Found on older *BSD systems.) */ -#undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS - /* Define to 1 if `struct stat' is a member of `st_blksize'. */ #undef HAVE_STRUCT_STAT_ST_BLKSIZE @@ -804,9 +786,6 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE -/* Define if has link_map32 (solaris sparc-64 target) */ -#undef _SYSCALL32 - /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/gdb/configure b/gdb/configure index 9d58b11d2b6..8844c900314 100755 --- a/gdb/configure +++ b/gdb/configure @@ -8936,25 +8936,6 @@ fi done -for ac_header in link.h -do : - ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H -# include -#endif -#if HAVE_NLIST_H -# include -#endif - -" -if test "x$ac_cv_header_link_h" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LINK_H 1 -_ACEOF - -fi - -done - for ac_header in sys/proc.h do : ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H @@ -12016,149 +11997,6 @@ $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h fi fi -if test ${host} = ${target} ; then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5 -$as_echo_n "checking for member l_addr in struct link_map... " >&6; } - if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -struct link_map lm; (void) lm.l_addr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_have_struct_link_map_with_l_members=yes -else - gdb_cv_have_struct_link_map_with_l_members=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 -$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; } - if test $gdb_cv_have_struct_link_map_with_l_members = yes; then - -$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5 -$as_echo_n "checking for member lm_addr in struct link_map... " >&6; } - if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int -main () -{ -struct link_map lm; (void) lm.lm_addr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_have_struct_link_map_with_lm_members=yes -else - gdb_cv_have_struct_link_map_with_lm_members=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 -$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; } - if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then - -$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5 -$as_echo_n "checking for member som_addr in struct so_map... " >&6; } - if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#ifdef HAVE_NLIST_H -#include -#endif -#include -int -main () -{ -struct so_map lm; (void) lm.som_addr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_have_struct_so_map_with_som_members=yes -else - gdb_cv_have_struct_so_map_with_som_members=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 -$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; } - if test $gdb_cv_have_struct_so_map_with_som_members = yes; then - -$as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5 -$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; } - if test "${gdb_cv_have_struct_link_map32+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _SYSCALL32 -#include -int -main () -{ -struct link_map32 l; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_have_struct_link_map32=yes -else - gdb_cv_have_struct_link_map32=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5 -$as_echo "$gdb_cv_have_struct_link_map32" >&6; } - if test $gdb_cv_have_struct_link_map32 = yes; then - -$as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h - - -$as_echo "#define _SYSCALL32 1" >>confdefs.h - - fi -fi - # Check if the compiler supports the `long long' type. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5 diff --git a/gdb/configure.ac b/gdb/configure.ac index 3558d6ad04e..8f9e1e2f783 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1084,14 +1084,6 @@ AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h sys/socket.h proc_serv sys/types.h sys/wait.h wait.h termios.h termio.h \ sgtty.h unistd.h elf_hp.h locale.h \ dlfcn.h sys/un.h linux/perf_event.h]) -AC_CHECK_HEADERS(link.h, [], [], -[#if HAVE_SYS_TYPES_H -# include -#endif -#if HAVE_NLIST_H -# include -#endif -]) AC_CHECK_HEADERS(sys/proc.h, [], [], [#if HAVE_SYS_PARAM_H # include @@ -1478,81 +1470,6 @@ if test "$ac_cv_header_sys_procfs_h" = yes; then fi fi -dnl For native ports (host == target), check to see what kind of -dnl legacy link.h support is needed. (See solib-legacy.c.) -if test ${host} = ${target} ; then - dnl Check for struct link_map with l_ members which are indicative - dnl of SVR4-like shared libraries - - AC_MSG_CHECKING(for member l_addr in struct link_map) - AC_CACHE_VAL(gdb_cv_have_struct_link_map_with_l_members, - [AC_TRY_COMPILE([#include ], - [struct link_map lm; (void) lm.l_addr;], - gdb_cv_have_struct_link_map_with_l_members=yes, - gdb_cv_have_struct_link_map_with_l_members=no)]) - AC_MSG_RESULT($gdb_cv_have_struct_link_map_with_l_members) - if test $gdb_cv_have_struct_link_map_with_l_members = yes; then - AC_DEFINE(HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS,1, - [Define if exists and defines struct link_map which has - members with an ``l_'' prefix. (For Solaris, SVR4, and - SVR4-like systems.)]) - fi - - dnl Check for struct link_map with lm_ members which are indicative - dnl of SunOS-like shared libraries - - AC_MSG_CHECKING(for member lm_addr in struct link_map) - AC_CACHE_VAL(gdb_cv_have_struct_link_map_with_lm_members, - [AC_TRY_COMPILE([#include -#include ], - [struct link_map lm; (void) lm.lm_addr;], - gdb_cv_have_struct_link_map_with_lm_members=yes, - gdb_cv_have_struct_link_map_with_lm_members=no)]) - AC_MSG_RESULT($gdb_cv_have_struct_link_map_with_lm_members) - if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then - AC_DEFINE(HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS, 1, - [Define if exists and defines struct link_map which has - members with an ``lm_'' prefix. (For SunOS.)]) - fi - - dnl Check for struct so_map with som_ members which are found on - dnl some *BSD systems. - - AC_MSG_CHECKING(for member som_addr in struct so_map) - AC_CACHE_VAL(gdb_cv_have_struct_so_map_with_som_members, - [AC_TRY_COMPILE([#include -#ifdef HAVE_NLIST_H -#include -#endif -#include ], - [struct so_map lm; (void) lm.som_addr;], - gdb_cv_have_struct_so_map_with_som_members=yes, - gdb_cv_have_struct_so_map_with_som_members=no)]) - AC_MSG_RESULT($gdb_cv_have_struct_so_map_with_som_members) - if test $gdb_cv_have_struct_so_map_with_som_members = yes; then - AC_DEFINE(HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS, 1, - [Define if exists and defines a struct so_map which has - members with an ``som_'' prefix. (Found on older *BSD systems.)]) - fi - - dnl Check for struct link_map32 type, which allows a 64-bit Solaris - dnl debugger to debug a 32-bit Solaris app with 32-bit shared libraries. - - AC_MSG_CHECKING(for struct link_map32 in sys/link.h) - AC_CACHE_VAL(gdb_cv_have_struct_link_map32, - [AC_TRY_COMPILE([#define _SYSCALL32 -#include ], [struct link_map32 l;], - gdb_cv_have_struct_link_map32=yes, - gdb_cv_have_struct_link_map32=no)]) - AC_MSG_RESULT($gdb_cv_have_struct_link_map32) - if test $gdb_cv_have_struct_link_map32 = yes; then - AC_DEFINE(HAVE_STRUCT_LINK_MAP32, 1, - [Define if has struct link_map32]) - AC_DEFINE(_SYSCALL32, 1, - [Define if has link_map32 (solaris sparc-64 target)]) - fi -fi - # Check if the compiler supports the `long long' type. AC_CACHE_CHECK([for long long support in compiler], gdb_cv_c_long_long,