1 dnl Process this file with autoconf to produce a configure script.
5 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
11 # Map target cpu into the config cpu subdirectory name.
12 # The default is $target_cpu.
14 case "${target_cpu}" in
15 alpha) gdb_target_cpu=alpha ;;
16 c[12]) gdb_target_cpu=convex ;;
17 hppa*) gdb_target_cpu=pa ;;
18 i[3456]86) gdb_target_cpu=i386 ;;
19 m68*) gdb_target_cpu=m68k ;;
20 np1) gdb_target_cpu=gould ;;
21 pn) gdb_target_cpu=gould ;;
22 pyramid) gdb_target_cpu=pyr ;;
23 sparc*) gdb_target_cpu=sparc ;;
24 *) gdb_target_cpu=$target_cpu ;;
28 target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt
29 if [ ! -f ${target_makefile_frag} ]; then
30 AC_MSG_ERROR("*** GDBSERVE does not support target ${target}")
33 dnl We have to assign the same value to other variables because autoconf
34 dnl doesn't provide a mechanism to substitute a replacement keyword with
35 dnl arbitrary data or pathnames.
37 target_makefile_frag_path=$target_makefile_frag
38 AC_SUBST(target_makefile_frag_path)
39 AC_SUBST_FILE(target_makefile_frag)
42 s/CPU_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
43 ' ${target_makefile_frag}
48 if [ "${cpufile}" != "" ]; then
49 files="${files} ${cpufile}.h"
50 links="${links} cpu.h"
53 AC_LINK_FILES($files, $links)