diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-12-02 10:35:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-12-02 11:44:37 -0500 |
commit | 11fdaff16105f1030a1bc8785bc2bcdcef57fee0 (patch) | |
tree | f48e583e6e47e2b42947f22895c79cbee219b50f /gdbsupport | |
parent | 4de92ce8b239061fd896e1082af2023024ff3218 (diff) | |
download | binutils-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.zip binutils-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.tar.gz binutils-11fdaff16105f1030a1bc8785bc2bcdcef57fee0.tar.bz2 |
gdb, gdbserver, gdbsupport: flatten and sort some list in configure files
This makes the lists easier sort read and modify. There are no changes
in the generated config.h files, so I'm confident this brings no
functional changes.
Change-Id: Ib6b7fc532bcd662af7dbb230070fb1f4fc75f86b
Diffstat (limited to 'gdbsupport')
-rw-r--r-- | gdbsupport/common.m4 | 49 | ||||
-rwxr-xr-x | gdbsupport/configure | 42 |
2 files changed, 76 insertions, 15 deletions
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index d89c3ae..54290cc 100644 --- a/gdbsupport/common.m4 +++ b/gdbsupport/common.m4 @@ -40,22 +40,49 @@ AC_DEFUN([GDB_AC_COMMON], [ dnl by the users of common.m4. AM_LANGINFO_CODESET - AC_CHECK_HEADERS(linux/perf_event.h locale.h memory.h signal.h dnl - sys/resource.h sys/socket.h dnl - sys/un.h sys/wait.h dnl - thread_db.h wait.h dnl - termios.h dnl - dlfcn.h dnl - linux/elf.h proc_service.h dnl - poll.h sys/poll.h sys/select.h) +AC_CHECK_HEADERS([ \ + dlfcn.h \ + linux/elf.h \ + linux/perf_event.h \ + locale.h \ + memory.h \ + poll.h \ + proc_service.h \ + signal.h \ + sys/poll.h \ + sys/resource.h \ + sys/select.h \ + sys/socket.h \ + sys/un.h \ + sys/wait.h \ + termios.h \ + thread_db.h \ + wait.h \ +]) AC_FUNC_MMAP AC_FUNC_FORK # Some systems (e.g. Solaris) have `socketpair' in libsocket. AC_SEARCH_LIBS(socketpair, socket) - AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ - ptrace64 sbrk setns sigaltstack sigprocmask \ - setpgid setpgrp getrusage getauxval sigtimedwait]) + AC_CHECK_FUNCS([ \ + fdwalk \ + getauxval \ + getrlimit \ + getrusage \ + pipe \ + pipe2 \ + poll \ + ptrace64 \ + sbrk \ + setns \ + setpgid \ + setpgrp \ + sigaction \ + sigaltstack \ + sigprocmask \ + sigtimedwait \ + socketpair \ + ]) # This is needed for RHEL 5 and uclibc-ng < 1.0.39. # These did not define ADDR_NO_RANDOMIZE in sys/personality.h, diff --git a/gdbsupport/configure b/gdbsupport/configure index 0240847..87980f6 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -11048,7 +11048,25 @@ $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h +for ac_header in \ + dlfcn.h \ + linux/elf.h \ + linux/perf_event.h \ + locale.h \ + memory.h \ + poll.h \ + proc_service.h \ + signal.h \ + sys/poll.h \ + sys/resource.h \ + sys/select.h \ + sys/socket.h \ + sys/un.h \ + sys/wait.h \ + termios.h \ + thread_db.h \ + wait.h \ + do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -11510,9 +11528,25 @@ if test "$ac_res" != no; then : fi - for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ - ptrace64 sbrk setns sigaltstack sigprocmask \ - setpgid setpgrp getrusage getauxval sigtimedwait + for ac_func in \ + fdwalk \ + getauxval \ + getrlimit \ + getrusage \ + pipe \ + pipe2 \ + poll \ + ptrace64 \ + sbrk \ + setns \ + setpgid \ + setpgrp \ + sigaction \ + sigaltstack \ + sigprocmask \ + sigtimedwait \ + socketpair \ + do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |