* acconfig.h (_MSE_INT_H): Remove.
* configure.in: Create "Checks for header files" section, and move appropriate tests there. Don't check for objlist.h, wchar.h, wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h> misdetection fix. Also add "Checks for types", "Checks for compiler characteristics" and "Checks for library functions" sections. * config.in, configure: Regenerated.
This commit is contained in:
parent
1c43e6e58a
commit
5ee754fce1
5 changed files with 1518 additions and 510 deletions
|
@ -1,5 +1,14 @@
|
|||
2003-01-02 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* acconfig.h (_MSE_INT_H): Remove.
|
||||
* configure.in: Create "Checks for header files" section, and move
|
||||
appropriate tests there. Don't check for objlist.h, wchar.h,
|
||||
wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
|
||||
misdetection fix. Also add "Checks for types", "Checks for
|
||||
compiler characteristics" and "Checks for library functions"
|
||||
sections.
|
||||
* config.in, configure: Regenerated.
|
||||
|
||||
* configure.in: Create "Checks for programs" section, and move
|
||||
appropriate tests there.
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
/* Define if compiling on Solaris 7. */
|
||||
#undef _MSE_INT_H
|
||||
|
||||
/* Define if your struct reg has r_fs. */
|
||||
#undef HAVE_STRUCT_REG_R_FS
|
||||
|
||||
|
|
|
@ -71,9 +71,6 @@
|
|||
/* Define vfork as fork if vfork does not work. */
|
||||
#undef vfork
|
||||
|
||||
/* Define if compiling on Solaris 7. */
|
||||
#undef _MSE_INT_H
|
||||
|
||||
/* Define if your struct reg has r_fs. */
|
||||
#undef HAVE_STRUCT_REG_R_FS
|
||||
|
||||
|
@ -271,9 +268,6 @@
|
|||
/* Define if you have the <argz.h> header file. */
|
||||
#undef HAVE_ARGZ_H
|
||||
|
||||
/* Define if you have the <asm/debugreg.h> header file. */
|
||||
#undef HAVE_ASM_DEBUGREG_H
|
||||
|
||||
/* Define if you have the <ctype.h> header file. */
|
||||
#undef HAVE_CTYPE_H
|
||||
|
||||
|
@ -310,9 +304,6 @@
|
|||
/* Define if you have the <nlist.h> header file. */
|
||||
#undef HAVE_NLIST_H
|
||||
|
||||
/* Define if you have the <objlist.h> header file. */
|
||||
#undef HAVE_OBJLIST_H
|
||||
|
||||
/* Define if you have the <poll.h> header file. */
|
||||
#undef HAVE_POLL_H
|
||||
|
||||
|
@ -337,6 +328,9 @@
|
|||
/* Define if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define if you have the <sys/debugreg.h> header file. */
|
||||
#undef HAVE_SYS_DEBUGREG_H
|
||||
|
||||
|
@ -412,21 +406,12 @@
|
|||
/* Define if you have the <wait.h> header file. */
|
||||
#undef HAVE_WAIT_H
|
||||
|
||||
/* Define if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define if you have the <wctype.h> header file. */
|
||||
#undef HAVE_WCTYPE_H
|
||||
|
||||
/* Define if you have the dl library (-ldl). */
|
||||
#undef HAVE_LIBDL
|
||||
|
||||
/* Define if you have the m library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define if you have the socket library (-lsocket). */
|
||||
#undef HAVE_LIBSOCKET
|
||||
|
||||
/* Define if you have the w library (-lw). */
|
||||
#undef HAVE_LIBW
|
||||
|
||||
|
@ -445,6 +430,10 @@
|
|||
/* Name of this package. */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to 1 to avoid a clash between <widec.h> and <wchar.h> on
|
||||
Solaris 2.[78] when using GCC. */
|
||||
#undef _MSE_INT_H
|
||||
|
||||
/* Define if sigsetjmp is available. */
|
||||
#undef HAVE_SIGSETJMP
|
||||
|
||||
|
|
1913
gdb/configure
vendored
1913
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -139,33 +139,71 @@ AC_CHECK_FUNC(wctype, [],
|
|||
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
|
||||
AC_SEARCH_LIBS(socketpair, socket)
|
||||
|
||||
AC_TYPE_SIGNAL
|
||||
# ------------------------- #
|
||||
# Checks for header files. #
|
||||
# ------------------------- #
|
||||
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
|
||||
dnl Solaris 7 needs _MSE_INT_H defined to avoid a clash between <widec.h>
|
||||
dnl and <wchar.h> that causes AC_CHECK_HEADERS to think <curses.h> doesn't
|
||||
dnl exist.
|
||||
|
||||
case $host_os in solaris2.7 | solaris2.8) case "$GCC" in yes)
|
||||
AC_DEFINE(_MSE_INT_H)
|
||||
esac; esac
|
||||
|
||||
AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \
|
||||
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
|
||||
string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \
|
||||
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
|
||||
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
|
||||
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
|
||||
sys/filio.h \
|
||||
curses.h ncurses.h \
|
||||
poll.h sys/poll.h)
|
||||
AC_HEADER_STAT
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(link.h)
|
||||
AC_CHECK_HEADERS(nlist.h)
|
||||
AC_CHECK_HEADERS(poll.h sys/poll.h)
|
||||
AC_CHECK_HEADERS(proc_service.h thread_db.h)
|
||||
AC_CHECK_HEADERS(stddef.h)
|
||||
AC_CHECK_HEADERS(stdlib.h)
|
||||
AC_CHECK_HEADERS(stdint.h)
|
||||
AC_CHECK_HEADERS(string.h memory.h strings.h)
|
||||
AC_CHECK_HEADERS(sys/fault.h)
|
||||
AC_CHECK_HEADERS(sys/file.h)
|
||||
AC_CHECK_HEADERS(sys/filio.h)
|
||||
AC_CHECK_HEADERS(sys/ioctl.h)
|
||||
AC_CHECK_HEADERS(sys/param.h)
|
||||
AC_CHECK_HEADERS(sys/proc.h)
|
||||
AC_CHECK_HEADERS(sys/procfs.h)
|
||||
AC_CHECK_HEADERS(sys/ptrace.h ptrace.h)
|
||||
AC_CHECK_HEADERS(sys/reg.h sys/debugreg.h)
|
||||
AC_CHECK_HEADERS(sys/select.h)
|
||||
AC_CHECK_HEADERS(sys/syscall.h)
|
||||
AC_CHECK_HEADERS(sys/user.h)
|
||||
AC_CHECK_HEADERS(sys/wait.h wait.h)
|
||||
AC_CHECK_HEADERS(termios.h termio.h sgtty.h)
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
|
||||
# On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
|
||||
# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
|
||||
# think that we don't have <curses.h> if we're using GCC.
|
||||
case $host_os in
|
||||
solaris2.[[78]])
|
||||
if test "$GCC" = yes; then
|
||||
AC_DEFINE(_MSE_INT_H, 1,
|
||||
[[Define to 1 to avoid a clash between <widec.h> and <wchar.h> on
|
||||
Solaris 2.[78] when using GCC. ]])
|
||||
fi ;;
|
||||
esac
|
||||
AC_CHECK_HEADERS(curses.h ncurses.h term.h)
|
||||
|
||||
# FIXME: kettenis/20030102: In most cases we include these
|
||||
# unconditionally, so what's the point in checking these?
|
||||
AC_CHECK_HEADERS(ctype.h time.h)
|
||||
|
||||
# ------------------ #
|
||||
# Checks for types. #
|
||||
# ------------------ #
|
||||
|
||||
AC_TYPE_SIGNAL
|
||||
|
||||
# ------------------------------------- #
|
||||
# Checks for compiler characteristics. #
|
||||
# ------------------------------------- #
|
||||
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
|
||||
# ------------------------------ #
|
||||
# Checks for library functions. #
|
||||
# ------------------------------ #
|
||||
|
||||
AC_CHECK_FUNCS(btowc canonicalize_file_name isascii poll \
|
||||
realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask )
|
||||
AC_FUNC_ALLOCA
|
||||
|
|
Loading…
Reference in a new issue