diff options
Diffstat (limited to 'gdb/rdi-share/configure.in')
-rw-r--r-- | gdb/rdi-share/configure.in | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/gdb/rdi-share/configure.in b/gdb/rdi-share/configure.in index cd4a715..aabe070 100644 --- a/gdb/rdi-share/configure.in +++ b/gdb/rdi-share/configure.in @@ -1,44 +1,35 @@ -srcname="RDI library" -srctrigger=ardi.c +dnl Process this file with autoconf to produce a configure script. +AC_INIT(adp.h) -# per-host: +AM_INIT_AUTOMAKE(rdi-share, 1.0) -. ${srcdir}/../configure.host +PACKAGE=rdi-share +VERSION=1.0 -echo "rdi-share/configure.in: host is $host, target is $target" +dnl Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET +AC_PROG_RANLIB -if [ ! -f ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ]; then - echo '***' "GDB remote does not support host ${host}" 1>&2 - exit 1 -fi +dnl Checks for libraries. -# We really shouldn't depend on there being a space after XM_FILE= ... -hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h sys/filio.h) -# per-target: +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_HEADER_TIME -. ${srcdir}/../configure.tgt +dnl Checks for library functions. +AC_PROG_GCC_TRADITIONAL +AC_TYPE_SIGNAL +AC_FUNC_VPRINTF +AC_CHECK_FUNCS(gettimeofday select socket strtod strtoul memcpy memmove) -echo "rdi-share/configure.in: host_cpu is $host_cpu, target_cpu is $target_cpu" +AM_MAINTAINER_MODE +AM_EXEEXT -if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt ]; then - echo '***' "GDB remote does not support target ${target}" 1>&2 - exit 1 -fi - -if [ -z "${removing}" ] ; then - cat ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" { - print substr($0,6)}' -fi - -# We really shouldn't depend on there being a space after TM_FILE= ... -targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt` - -if [ "${target}" = "${host}" ] ; then - nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` -fi - -host_makefile_frag=../config/${gdb_host_cpu}/${gdb_host}.mh -target_makefile_frag=../config/${gdb_target_cpu}/${gdb_target}.mt - -# post-target: +AC_OUTPUT(Makefile) |