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
diff --git a/gdb/configure b/gdb/configure
index fcebd3e..4c498a8 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -19567,7 +19567,25 @@
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"
@@ -20029,9 +20047,25 @@
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"
@@ -29154,12 +29188,23 @@
fi
# elf_hp.h is for HP/UX 64-bit shared library support.
-for ac_header in nlist.h machine/reg.h \
- thread_db.h \
- sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
- sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
- sys/reg.h sys/debugreg.h \
- termios.h elf_hp.h
+for ac_header in \
+ elf_hp.h \
+ machine/reg.h \
+ nlist.h \
+ ptrace.h \
+ sys/debugreg.h \
+ sys/file.h \
+ sys/filio.h \
+ sys/ioctl.h \
+ sys/param.h \
+ sys/procctl.h \
+ sys/ptrace.h \
+ sys/reg.h \
+ sys/resource.h \
+ termios.h \
+ thread_db.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"
@@ -29172,6 +29217,7 @@
done
+
for ac_header in sys/user.h
do :
ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
@@ -29189,7 +29235,14 @@
done
-for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
+for ac_header in \
+ curses.h \
+ cursesX.h \
+ ncurses.h \
+ ncurses/ncurses.h \
+ ncurses/term.h \
+ ncursesw/ncurses.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"
@@ -29202,6 +29255,7 @@
done
+
for ac_header in term.h
do :
ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
@@ -29853,13 +29907,28 @@
# Checks for library functions. #
# ------------------------------ #
-for ac_func in getuid getgid \
- pread pread64 pwrite resize_term \
- getpgid setsid \
- sigsetmask \
- ttrace wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise waitpid \
- use_default_colors
+for ac_func in \
+ btowc \
+ getgid \
+ getpgid \
+ getrlimit \
+ getuid \
+ iconvlist \
+ libiconvlist \
+ posix_madvise \
+ pread \
+ pread64 \
+ pwrite \
+ resize_term \
+ setlocale \
+ setrlimit \
+ setsid \
+ sigsetmask \
+ ttrace \
+ use_default_colors \
+ waitpid \
+ wresize \
+
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"
@@ -29872,6 +29941,7 @@
done
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
if ${am_cv_langinfo_codeset+:} false; then :
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 6179b5c..72e0e56 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1295,19 +1295,39 @@
AC_HEADER_STDC
# elf_hp.h is for HP/UX 64-bit shared library support.
-AC_CHECK_HEADERS([nlist.h machine/reg.h \
- thread_db.h \
- sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
- sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
- sys/reg.h sys/debugreg.h \
- termios.h elf_hp.h])
+AC_CHECK_HEADERS([ \
+ elf_hp.h \
+ machine/reg.h \
+ nlist.h \
+ ptrace.h \
+ sys/debugreg.h \
+ sys/file.h \
+ sys/filio.h \
+ sys/ioctl.h \
+ sys/param.h \
+ sys/procctl.h \
+ sys/ptrace.h \
+ sys/reg.h \
+ sys/resource.h \
+ termios.h \
+ thread_db.h \
+])
+
AC_CHECK_HEADERS(sys/user.h, [], [],
[#if HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
])
-AC_CHECK_HEADERS(curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h)
+AC_CHECK_HEADERS([ \
+ curses.h \
+ cursesX.h \
+ ncurses.h \
+ ncurses/ncurses.h \
+ ncurses/term.h \
+ ncursesw/ncurses.h \
+])
+
AC_CHECK_HEADERS(term.h, [], [],
[#if HAVE_CURSES_H
# include <curses.h>
@@ -1352,13 +1372,29 @@
# Checks for library functions. #
# ------------------------------ #
-AC_CHECK_FUNCS([getuid getgid \
- pread pread64 pwrite resize_term \
- getpgid setsid \
- sigsetmask \
- ttrace wresize setlocale iconvlist libiconvlist btowc \
- setrlimit getrlimit posix_madvise waitpid \
- use_default_colors])
+AC_CHECK_FUNCS([ \
+ btowc \
+ getgid \
+ getpgid \
+ getrlimit \
+ getuid \
+ iconvlist \
+ libiconvlist \
+ posix_madvise \
+ pread \
+ pread64 \
+ pwrite \
+ resize_term \
+ setlocale \
+ setrlimit \
+ setsid \
+ sigsetmask \
+ ttrace \
+ use_default_colors \
+ waitpid \
+ wresize \
+])
+
AM_LANGINFO_CODESET
# Check the return and argument types of ptrace.
diff --git a/gdbserver/configure b/gdbserver/configure
index 09cb3c5..32980e5 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -8274,7 +8274,25 @@
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"
@@ -8736,9 +8754,25 @@
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"
@@ -13119,7 +13153,23 @@
fi
-for ac_header in termios.h sys/reg.h string.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h ws2tcpip.h
+for ac_header in \
+ arpa/inet.h \
+ fcntl.h \
+ linux/elf.h \
+ netdb.h \
+ netinet/in.h \
+ netinet/tcp.h \
+ signal.h \
+ string.h \
+ sys/file.h \
+ sys/ioctl.h \
+ sys/procfs.h \
+ sys/reg.h \
+ sys/socket.h \
+ termios.h \
+ ws2tcpip.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"
@@ -13132,6 +13182,7 @@
done
+
for ac_header in vfork.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
@@ -13345,7 +13396,11 @@
fi
-for ac_func in pread pwrite pread64
+for ac_func in \
+ pread \
+ pread64 \
+ pwrite \
+
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"
diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac
index ee0de9d..6e3a73a 100644
--- a/gdbserver/configure.ac
+++ b/gdbserver/configure.ac
@@ -80,13 +80,30 @@
ZW_PROG_COMPILER_DEPENDENCIES([CC])
-AC_CHECK_HEADERS(termios.h sys/reg.h string.h dnl
- sys/procfs.h linux/elf.h dnl
- fcntl.h signal.h sys/file.h dnl
- sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
- netinet/tcp.h arpa/inet.h ws2tcpip.h)
+AC_CHECK_HEADERS([ \
+ arpa/inet.h \
+ fcntl.h \
+ linux/elf.h \
+ netdb.h \
+ netinet/in.h \
+ netinet/tcp.h \
+ signal.h \
+ string.h \
+ sys/file.h \
+ sys/ioctl.h \
+ sys/procfs.h \
+ sys/reg.h \
+ sys/socket.h \
+ termios.h \
+ ws2tcpip.h \
+])
+
AC_FUNC_FORK
-AC_CHECK_FUNCS(pread pwrite pread64)
+AC_CHECK_FUNCS([ \
+ pread \
+ pread64 \
+ pwrite \
+])
# Check the return and argument types of ptrace.
GDB_AC_PTRACE
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 @@
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 @@
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 @@
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"